[Asterisk-Dev] Calling apps and parsing return values

Ed Greenberg edg at greenberg.org
Fri Nov 11 11:45:36 MST 2005


Over on the Asterisk-Users list I asked...


> In the wiki it states:
>
>> When an extension is dialed, the command tagged with a priority of 1 is
>> executed, followed by command priority 2, and so on. This goes on until:
>>
>> the call is hung up,
>> a command returns a result code of -1 (indicating failure),
>> a command with the next higher priority doesn't exist (note: Asterisk
>> will not "skip over" missing priorities), or  the call is routed to a new
>> extension.
>
>
> In the case of a return code of -1, where do we go when a -1 is
> encountered? How can I retain control?
>
> For instance, on a Read, if the user enters nothing, I need to continue
> execution in a known state.
>

This leads to the question... Where is the dialplan read and dispatched? 
What part of the code calls the apps and parses their return values?

Thanks,
</edg> 



More information about the asterisk-dev mailing list