[asterisk-users] Forcing Dial application to skip if called server is unreachable

Alex Balashov abalashov at evaristesys.com
Wed Jun 20 12:47:07 CDT 2007


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



More information about the asterisk-users mailing list