On 8/28/05, Matt Riddell <[EMAIL PROTECTED]> wrote:
> 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
> _______________________________________________

Thanks Matt, that is a good strategy.

Any idea on how to pass the reason a call failed back through the
Asterisk Manager Interface?  It would be great to send something back
like Busy, NoAnswer, etc...


Geoff
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
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