[asterisk-users] Re: Can I add distinctive ring with asterisk and TDM400?

Brian McEntire brian.mcentire at gmail.com
Wed Apr 18 15:47:11 MST 2007

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:


; ...

channel => 3

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

exten => s,1,NoOp
exten => s,n,Dial(${ALLPHONES})
exten => s,n,Hangup

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 at 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

More information about the asterisk-users mailing list