<br><br><div><span class="gmail_quote">On 5/8/08, <b class="gmail_sendername">Tzafrir Cohen</b> <<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
On Thu, May 08, 2008 at 07:39:39PM +0500, Rizwan Hisham wrote:<br> > Hi all,<br> > I am using a simple perl script to connect with ast manager api. the script<br> > tries to set a channel variable. It extracts the channel name from the<br>
> events it recieves after dial command. When i try to set the channel<br> > variable, asterisk responses with an error saying that the channel does not<br> > exist. Can anybody tell me why its doing so, coz i can see on cli that the<br>
> channel exists. If i try to set the variable without stating the channel<br> > then it sets the global variable, but i want to set the channel variable.<br> > Anybody has a solution to this problem?<br><br><br>
In 1.6 you can set a channel variable from a diferent context. I don't<br> think you can do that in 1.4 .<br><br> --<br> Tzafrir Cohen<br> icq#16849755 <a href="mailto:jabber%3Atzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a><br>
+972-50-7952406 mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br> <a href="http://www.xorcom.com">http://www.xorcom.com</a> <a href="http://iax:guest@local.xorcom.com/tzafrir">iax:guest@local.xorcom.com/tzafrir</a><br>
<br> _______________________________________________<br> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br><br> asterisk-users mailing list<br> To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all">My guess that Setvar was deprecated in Asterisk 1.4. Use Set instead if you are trying to use it in 1.6<br>
-- <br>Gunars Grundans<br><br><a href="http://freight.lv">http://freight.lv</a><br>