Steve Edwards wrote:
>> Normally the way I do it is to program the failover into the dialplan
>> and then
>> send the call to Local/[EMAIL PROTECTED] to initiate it.
> 
> How about a snippet? (Local channels somewhat escape me.)

Ok,

If you had something like this (we're assuming +101 jumping for arguments sake
here):

[outbound]
exten => _9X.,1,Dial(SIP/${EXTEN:[EMAIL PROTECTED])
exten => _9X.,102,Dial(IAX/myiaxprovider/${EXTEN:1})
exten => _9X.,203,Dial(IAX/myiaxprovider/${EXTEN:1})

Then you could originate a call with the following channel:

Local/[EMAIL PROTECTED]

which would do the whole failover thing for you.

Note that this is slightly simplified.  The jumping behaviour has now been
changed and will require the 'j' option in the latest versions unless you use
gotoif and check the dialstatus.

Normally you'd want to connect the originated call with an extension/context
so that once that number answers it is connected to say an agent or an
application.  This part should be pretty self explanatory.

Make sense now?  Feel free to ask if it doesn't!

:)

-- 
Cheers,

Matt Riddell
_______________________________________________

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@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

Reply via email to