[asterisk-users] Asterisk dialing next extension only if first is busy?

Carlos Chavez cursor at telecomabmex.com
Mon Apr 23 09:11:48 MST 2007


On Mon, 2007-04-23 at 18:18 +1000, Daniel Pittman wrote:
> G'day.
> 
> I am having reasonable success getting Asterisk 1.4.2 running and doing
> what I want, but I can't figure out one particular idiom that I want:
> 
> There are a few situations where I want to have Asterisk push a call
> through to the first available transport on a list, such as:
> 
> I have two SIP ports attached to one local (two port) analog phone
> system.  I want to ring line 1 for the first call, line 2 for the second
> call and go to voicemail for the third and subsequent.
> 
> I can't work out the best way to express that.
> 
> Using "Dial(SIP/line1&SIP/line2)" will ring both lines at the same time
> which is not really what I want.
> 
> Using two sequential Dial() commands into the extension will ring the
> lines one after the other -- even if it times out on the first line,
> which is again not what I want.
> 
> 
	I find that the easiest way to do it is like this:

1,1,Dial(SIP/line1)
1,2,Dial(SIP/line2)

	Than way if the first like fails for any reason it goes to the second.
You could use Dialstatus but this seems simpler.

-- 
Telecomunicaciones Abiertas de Mexico S.A. de C.V.
Carlos Chávez Prats
Director de Tecnología
+52-55-91169161 ext 2001
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070423/b3404a24/attachment.pgp


More information about the asterisk-users mailing list