[asterisk-users] Manager API - Setvar not working

Gunārs Grundāns gunars.grundans at lighthouse.lv
Fri May 9 07:07:15 CDT 2008


On 5/8/08, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
>
> On Thu, May 08, 2008 at 07:39:39PM +0500, Rizwan Hisham wrote:
> > Hi all,
> > I am using a simple perl script to connect with ast manager api. the
> script
> > tries to set a channel variable. It extracts the channel name from the
> > events it recieves after dial command. When i try to set the channel
> > variable, asterisk responses with an error saying that the channel does
> not
> > exist. Can anybody tell me why its doing so, coz i can see on cli that
> the
> > channel exists. If i try to set the variable without stating the channel
> > then it sets the global variable, but i want to set the channel variable.
> > Anybody has a solution to this problem?
>
>
> In 1.6 you can set a channel variable from a diferent context. I don't
> think you can do that in 1.4 .
>
> --
>                Tzafrir Cohen
> icq#16849755              jabber:tzafrir.cohen at xorcom.com<jabber%3Atzafrir.cohen at xorcom.com>
> +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
> http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>


My guess that Setvar was deprecated in Asterisk 1.4. Use Set instead if you
are trying to use it in 1.6
-- 
Gunars Grundans

http://freight.lv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080509/f018987e/attachment.htm 


More information about the asterisk-users mailing list