[Asterisk-Users] Distinctive ring Issues
Alfred R. Nurnberger
alfred at flosys.com
Thu Jan 29 08:30:48 MST 2004
Steven.
I played a bit with the distinct ring function and noticed that
* doesn't detetect disctinct ring on the very first ring.
Check your log and you will see that the distinct ring output is 0,0,0
After the 2nd or so ring the actual distinct ring pattern shows up.
So what happens is that on the first ring * signals 0,0,0 and you are
connected to your default ringcontext.
Disable the default (no pattern) setting, and make your Standard ring one of
the dring patterns.
Hope this helps.
Alfred.
-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Steven
Ringwald
Sent: Tuesday, January 27, 2004 8:49 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Distinctive ring Issues
Hello all!
We have a PSTN line with four numbers calling into it. There is
distinctive ring on these lines. They are are follows:
1. standard ring
2. short ring
3. long ring
4. short ring, long ring, short ring
Based on the information I have been able to find, I have created the
following entries in my zapata.conf file, to
try and weed out some of the timings:
dring1=95,0,0
dring1context=dist_ring1
dring2=95,325,95
dring2context=dist_ring2
dring3=325,0
dring3context=dist_ring3
; If no pattern is matched here is where we go.
context=dist_ring0
channel => 1
I am assuming that "95 ms" is a short ring and "325 ms" is a long ring.
In my extensions.conf file, I have the following contexts defined:
[dist_ring1]
exten => s,1,Wait,1 ; Wait a second, just for fun
exten => s,2,Answer ; Answer the line
exten => s,3,DigitTimeout,5 ; Set Digit Timeout to 5 seconds
exten => s,4,ResponseTimeout,10 ; Set Response Timeout to 10 seconds
exten => s,5,Macro(exten-vm,7002,SIP/ringwald)
[dist_ring2]
exten => s,1,Wait,1 ; Wait a second, just for fun
exten => s,2,Answer ; Answer the line
exten => s,3,DigitTimeout,5 ; Set Digit Timeout to 5 seconds
exten => s,4,ResponseTimeout,10 ; Set Response Timeout to 10 seconds
exten => s,5,Macro(exten-vm,7003,SIP/ringwald)
[dist_ring3]
exten => s,1,Wait,1 ; Wait a second, just for fun
exten => s,2,Answer ; Answer the line
exten => s,3,DigitTimeout,5 ; Set Digit Timeout to 5 seconds
exten => s,4,ResponseTimeout,10 ; Set Response Timeout to 10 seconds
exten => s,5,Macro(exten-vm,7005,SIP/ringwald)
[default]
exten => s,1,Wait,1 ; Wait a second, just for fun
exten => s,2,Answer ; Answer the line
exten => s,3,DigitTimeout,5 ; Set Digit Timeout to 5 seconds
exten => s,4,ResponseTimeout,10 ; Set Response Timeout to 10 seconds
exten => s,5,Macro(exten-vm,7001,SIP/ringwald)
No matter which number I dial, I always get the [default] context on
answer. Can anyone shed any light on
what I am doing wrong? The PSTN line is through Qwest Business, and uses
US format distinctive ring tones.
"Show version" in the asterisk console returns: Asterisk
CVS-01/27/04-19:07:39
Thank you in advance for any help!
Steve Ringwald
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list