I am somewhat unsure as to the definition of "Distinctive Ring". What I am trying to achieve is to have Zap connected phones (TDM400P) ring with different cadences depending on whether the call is incoming on the PSTN context or an IAX2 context. Googling, I find this from Mark: I've added distinctive ring support to Asterisk now (also I've added answer confirmation which is an essoterric feature that nobody but oliver will likely ever use). Now you can do the following: exten => 1,1,Dial,Zap/28 ; Ring Zap/28 normally exten => 2,1,Dial,Zap/28r1 ; Ring Zap/28 with ring #1 exten => 3,1,Dial,Zap/28r2 ; Ring Zap/28 with ring #2 and when I do a "show application Dial", I see : 'r' -- indicate ringing to the calling party, pass no audio until answered Which doesn't seem to match up with what I have in mind. Assuming the former usage, and that it does what I am trying to do, do I have to define ring #1 and ring #2 somewhere, or are they hardcoded in? Thanks, Richard
On Wed, Nov 26, 2003 at 10:23:33AM +1300, Richard Scobie wrote:> > exten => 1,1,Dial,Zap/28 ; Ring Zap/28 normally > exten => 2,1,Dial,Zap/28r1 ; Ring Zap/28 with ring #1 > exten => 3,1,Dial,Zap/28r2 ; Ring Zap/28 with ring #2 > > and when I do a "show application Dial", I see : > > 'r' -- indicate ringing to the calling party, pass no audio until answered > > Which doesn't seem to match up with what I have in mind.You are confusing the other parameters to Dial with modifiers that chan_zap knows about. The Dial documentation refers to something like this: exten => 1,1,Dial,Zap/1|60|r (where 60 is the timeout) The Zap/foo just gets passed to chan_zap, Dial doesn't know anything about distinctive rings. -w -- /~\ The ASCII Ribbon Campaign \ / No HTML/RTF in email X No Word docs in email / \ Respect for open standards
Richard Scobie wrote:> I am somewhat unsure as to the definition of "Distinctive Ring". > > What I am trying to achieve is to have Zap connected phones (TDM400P) > ring with different cadences depending on whether the call is incoming > on the PSTN context or an IAX2 context. > > Googling, I find this from Mark: > > > I've added distinctive ring support to Asterisk now (also I've added > answer confirmation which is an essoterric feature that nobody but oliver > will likely ever use). Now you can do the following: > > exten => 1,1,Dial,Zap/28 ; Ring Zap/28 normally > exten => 2,1,Dial,Zap/28r1 ; Ring Zap/28 with ring #1 > exten => 3,1,Dial,Zap/28r2 ; Ring Zap/28 with ring #2 > > > and when I do a "show application Dial", I see : > > 'r' -- indicate ringing to the calling party, pass no audio until answered > > Which doesn't seem to match up with what I have in mind. > > Assuming the former usage, and that it does what I am trying to do, do I > have to define ring #1 and ring #2 somewhere, or are they hardcoded in?You are looking for different ring cadences on an FXS port. You can do something like the following: exten => 200/_XXXX,1,Dial(Zap/28r2) ; Caller*ID is any 4 digits exten => 200,1,Dial,(Zap/28) ; Caller*ID is NOT 4 digits When people say "distinctive ring" they usually are refering to DETECTING it on FXO ports.
On Tuesday 25 November 2003 15:23, Richard Scobie wrote:> I am somewhat unsure as to the definition of "Distinctive Ring".<snip>> and when I do a "show application Dial", I see : > > 'r' -- indicate ringing to the calling party, pass no audio until > answered > > Which doesn't seem to match up with what I have in mind.Do not confuse the Zaptel option r with the Dial option r. Using both, they are as follows: Dial(Zap/3r2,,r) The first r is an option to the Zaptel channel driver, telling it that you want distinctive ring 2, while the second r indicates that you want ringing to be immediately indicated to the caller. -Tilghman
Thanks for all the help and I found the different cadences in chan_zap.c. Richard
Richard Scobie wrote:> Thanks for all the help and I found the different cadences in chan_zap.c.And for non-source code readers I believe the codes are: Cadences to choose from: 1: Quick chirp followed by normal ring 2: British style ring 3: Three short bursts 4: Long ring Right? http://www.voip-info.org/tiki-index.php?page=Asterisk+ZAP+channels /Olle