Brian McEntire
2007-Apr-17 20:52 UTC
[asterisk-users] Can I add distinctive ring with asterisk and TDM400?
Hello - I have a TDM400P with 2 FXO and 2 FXS modules. Feeding the FXS modules are two VOIP lines which are terminated by VOIP adapters and have regular RJ11 wires connecting to the FXS ports. Since the two different VOIP lines have different phone numbers, and I know and can tell asterisk which VOIP line is connected to which FXS port, can I cause a distinctive ring on the extensions if a call comes in the 2nd VOIP line? ie, I'd like to ring all extensions when a call comes in either VOIP line, but I'd like to give a distinctive ring in the case the call came in the 2nd VOIP line. Here is what I have in extensions.conf right now, which works well, except doesn't include any support for distinctive ring: [globals] ALLPHONES=Zap/1&Zap/2 ; ;other stuff [default] ; ; other stuff exten => s,1,NoOp exten => s,n,Dial(${ALLPHONES}) exten => s,n,Hangup I'm not sure if this is something that could/should be implemented in extensions.conf or zapata.conf
Brian McEntire
2007-Apr-17 21:24 UTC
[asterisk-users] Re: Can I add distinctive ring with asterisk and TDM400?
Thinking I might be able to do this with a context in zapata.conf and possibly extensions.conf but I'd need some tips. But just realized I can turn on distinctive ringing for one of the lines through my VOIP provider. As long as asterisk will pass this through, it solves my question. On 4/17/07, Brian McEntire <brian.mcentire@gmail.com> wrote:> Hello - > I have a TDM400P with 2 FXO and 2 FXS modules. > > Feeding the FXS modules are two VOIP lines which are terminated by > VOIP adapters and have regular RJ11 wires connecting to the FXS ports. > > Since the two different VOIP lines have different phone numbers, and I > know and can tell asterisk which VOIP line is connected to which FXS > port, can I cause a distinctive ring on the extensions if a call comes > in the 2nd VOIP line? > > ie, I'd like to ring all extensions when a call comes in either VOIP > line, but I'd like to give a distinctive ring in the case the call > came in the 2nd VOIP line. > > Here is what I have in extensions.conf right now, which works well, > except doesn't include any support for distinctive ring: > > [globals] > ALLPHONES=Zap/1&Zap/2 > ; > ;other stuff > > [default] > ; > ; other stuff > > exten => s,1,NoOp > exten => s,n,Dial(${ALLPHONES}) > exten => s,n,Hangup > > > I'm not sure if this is something that could/should be implemented in > extensions.conf or zapata.conf >
Brian McEntire
2007-Apr-18 15:47 UTC
[asterisk-users] Re: Can I add distinctive ring with asterisk and TDM400?
A follow-up with the solution in case anyone else is looking for this answer: I created two contexts in my zapata.conf file, since each VOIP line is terminated by a VOIP adapter and then just comes in "hardwired" to the TDM400 via RJ11 line, I know which VOIP number is connected to which Wildcard port. In Zapata.conf: usedistinctiveringdetection=yes ; ... signalling=fxs_ks context=incoming-voipsunr rxgain=0 txgain=2.5 channel => 3 signalling=fxs_ks context=incoming-voipvp rxgain=0 txgain=2.5 channel => 4 - - - Now in extensions.conf, I can ring the phones with a normal ring (DIAL with no ring parameter) when a call comes in the voip-sunr context. Or I can ring with a distinctive ring when a call comes in the voip-vp context: [incoming-voipsunr] exten => s,1,NoOp exten => s,n,Dial(${ALLPHONES}) exten => s,n,Hangup [incoming-voipvp] exten => s,1,NoOp exten => s,n,Dial(${ALLPHONES}r2) exten => s,n,Hangup The r2 in the second context causes a distinctive ring. ALLPHONES is defined above in my extensions.conf as ALLPHONES=ZAP/1&ZAP/2 Hope that's useful to someone else. It works for me. On 4/17/07, Brian McEntire <brian.mcentire@gmail.com> wrote:> Hello - > I have a TDM400P with 2 FXO and 2 FXS modules. > > Feeding the FXS modules are two VOIP lines which are terminated by > VOIP adapters and have regular RJ11 wires connecting to the FXS ports. > > Since the two different VOIP lines have different phone numbers, and I > know and can tell asterisk which VOIP line is connected to which FXS > port, can I cause a distinctive ring on the extensions if a call comes > in the 2nd VOIP line? > > ie, I'd like to ring all extensions when a call comes in either VOIP > line, but I'd like to give a distinctive ring in the case the call > came in the 2nd VOIP line. > > Here is what I have in extensions.conf right now, which works well, > except doesn't include any support for distinctive ring: > > [globals] > ALLPHONES=Zap/1&Zap/2 > ; > ;other stuff > > [default] > ; > ; other stuff > > exten => s,1,NoOp > exten => s,n,Dial(${ALLPHONES}) > exten => s,n,Hangup > > > I'm not sure if this is something that could/should be implemented in > extensions.conf or zapata.conf >