rjcarvalho at reit.up.pt
2007-Jun-20 17:29 UTC
[asterisk-users] Forcing Dial application to skip if called server is unreachable
Is it possible to force the Dial function to skip to the next priority if it doesn't find the server of the called contact within a few seconds? I know I can use: Dial(Technology/resource[&Tech2/resource2...][|timeout][|options][|URL]) where I can use some short timeout in the "timeout" option, but if I do so, when some call is well succeeded, it will only ring for that time! Any ideas? Regards, Ricardo. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070620/a43d8f67/attachment.htm
Alex Balashov
2007-Jun-20 17:47 UTC
[asterisk-users] Forcing Dial application to skip if called server is unreachable
On Wed, 20 Jun 2007, rjcarvalho at reit.up.pt wrote:> Is it possible to force the Dial function to skip to the next priority if it > doesn't find the server of the called contact within a few seconds? > > I know I can use: > Dial(Technology/resource[&Tech2/resource2...][|timeout][|options][|URL]) > where I can use some short timeout in the "timeout" option, but if I do so, > when some call is well succeeded, it will only ring for that time!I think you basically have to pick one or the other. Either set a long timeout (15-30 sec, e.g. Dial(SIP/whatever,20) or don't use this feature. The good news is that if the destination SIP server is actually unreachable, Dial() should return almost instantly, at which point it should jump to the failure priority. -- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : +1-678-954-0670 Direct : +1-678-954-0671
Ex Vitorino
2007-Jun-20 17:58 UTC
[asterisk-users] Forcing Dial application to skip if called server is unreachable
...not really sure, maybe ChanIsAvail can be of use ? -- Ex Vito On 6/20/07, rjcarvalho at reit.up.pt <rjcarvalho at reit.up.pt> wrote:> Is it possible to force the Dial function to skip to the next priority if it > doesn't find the server of the called contact within a few seconds? > > I know I can use: > Dial(Technology/resource[&Tech2/resource2...][|timeout][|options][|URL]) > where I can use some short timeout in the "timeout" option, but if I do so, > when some call is well succeeded, it will only ring for that time! > > Any ideas? >