[asterisk-users] Match a Numer - then continue with dialplan

Eric "ManxPower" Wieling eric at fnords.org
Wed Dec 20 10:19:05 MST 2006


Douglas Garstang wrote:
>> -----Original Message-----
>> From: David Thomas [mailto:punknow at gmail.com]
>> Sent: Tuesday, December 19, 2006 3:01 PM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: Re: [asterisk-users] Match a Numer - then continue with
>> dialplan
>>
>>
>> On 12/19/06, Douglas Garstang <dgarstang at oneeighty.com> wrote:
>>> Anyone know if there's a way to match a dialplan extension, 
>> execute some code, say set a variable, and then continue with 
>> the dialplan?
>>> I want to set a variable when the dialplan flows beyond a 
>> certain context. This would be a great feature.
>>> Doug.
>> Have you tried using the SetVar cmd? I haven't tried it but it sounds
>> like it might work for this.
>>
>> http://www.voip-info.org/wiki/view/Asterisk+variables
>>
>> Regards,
>> David
> 
> David,
> 
> If I call setvar, my variable will be set, but dialplan processing will stop...

Then something else is wrong.  SetVar will not stop dialplan processing. 
  In 1.4, I believe SetVar() was removed.  Check upgrade.txt.  Use Set 
in 1.4 instead.


More information about the asterisk-users mailing list