<br><br><div><span class="gmail_quote">On 5/8/08, <b class="gmail_sendername">Tzafrir Cohen</b> &lt;<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>&gt; 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> &gt; Hi all,<br> &gt; I am using a simple perl script to connect with ast manager api. the script<br> &gt; tries to set a channel variable. It extracts the channel name from the<br>
 &gt; events it recieves after dial command. When i try to set the channel<br> &gt; variable, asterisk responses with an error saying that the channel does not<br> &gt; exist. Can anybody tell me why its doing so, coz i can see on cli that the<br>
 &gt; channel exists. If i try to set the variable without stating the channel<br> &gt; then it sets the global variable, but i want to set the channel variable.<br> &gt; 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&#39;t<br> think you can do that in 1.4 .<br><br> --<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tzafrir Cohen<br> icq#16849755&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:jabber%3Atzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a><br>
 +972-50-7952406&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;<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>
&nbsp;&nbsp; <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>