Kushal Agarwal wrote:
Hello,
I installing the PBX there and I ran in to a little issue which I am
hoping that someone can help with. I have a distinctive fax number,
with a distinctive ring, however the PBX picks up the call regardless
of whether its coming on the fax number or the regular phone
If you are using the Zap interface (typically a Digium FXO or Sangoma
FXO card) they support distinctive ring natively. The trouble with using
a distinctive ring box in front of Asterisk is you will lose CLID which
comes in between the 1st and 2nd rings. This is the same period where
distinctive ring is detected. (Depending on whether you can set the fax
to pickup only on ring pattern #2, you may want to put a distinctive
ring box on just the fax so it won't pickup on normal calls).
Anyway, in zapata.conf:
signalling=fxs_ks
dring1context=advan-primary <- my primary context for receiving voice
calls
dring1=0,0,0 <- ring pattern #1 (std ring)
dring2context=advan-fax <- my context for fax calls
dring2=388,321,159 <- ring pattern for distinctive ring (pattern
#2) ** See below for notes on where I got the numbers
group=1
rxgain=8.8
txgain=-2
channel => 1
dring1context is the context for my normal calls. dring2context is the
context for my fax calls (which don't get answered by Asterisk but you
still need to identify a unique place for them to go.
dring1=0,0,0 is your normal ring pattern. To figure out what dring2
should be, bring up asterisk -rvvvv, call your fax number and watch the
CLI. It will tell you what the ring cadence is that it has detected.
These are the numbers you put in dring2.
Now, in extensions.conf:
;; Advantech fax context (inbound Sangoma A200D port 1
);;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 1st distinctive ring (905-xxx-xxxx)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[advan-fax]
exten => s,1,NoOp(Fax line - ${CALLERID}) ; write log entry
exten => s,n,Hangup ; end
This causes a log entry for the fax call, but asterisk happily ignores
the call.
Hope this helps.
dbc.