[asterisk-dev] Dial 'd' option improvement
Mark Murawski
markm at intellasoft.net
Wed Jul 14 17:22:36 CDT 2010
Arg... I should make simple test cases rather than relying on my nutty
dialplan for testing.
The below exten/priority stuff can be safely ignored... the behavior of
bailing from dial is actually the same as background.
But I still maintain my previous idea for there being a nice way to bail
and not have your exten/context/priority overridden.
On 07/14/2010 06:04 PM, Mark Murawski wrote:
> Yeah...
>
> I tried keeping the priority (asterisk immediately kills the agi process
> and restarts it)
> I tried priority+1 (asterisk immediately kills the agi process and goes
> to the next part of the dialplan)
>
> This happens on 1.6.2/1.6.0
>
>
> On 07/14/2010 05:47 PM, Tim Ringenbach wrote:
>> On Wed, Jul 14, 2010 at 3:56 PM, Mark Murawski<markm at intellasoft.net> wrote:
>>> Correction...
>>>
>>> Actually I thought I could maintain control by restoring
>>> context/exten/priority, but it stops the agi, and runs it again
>>>
>> You would have to increment your priority by one. (Or explicitly goto
>> wherever it is you want to go to after the AGI exits.) I believe this
>> has to do with the internal pbx auto-increment priory flag getting
>> cleared. (Normally it should auto-increment the priority after you
>> exit the AGI application, but if you explicitly set a new priory, it
>> needs to go to exactly that and not increment it).
>>
>>
>> --Tim
>>
More information about the asterisk-dev
mailing list