Hi Craig<br><br>&nbsp;&nbsp; I&#39;ve been developing a Recording Server app (which I will be giving back to the community) and one of the requirements is for the recording to be offloaded to several machines. Because of the filename is being set prior to the recording, I need to pass this variable to the slave server. I&#39;m using 
1.2.13 (heavily patched) and I came across your email. Any chance of getting your port? Thanks for your help...<br><br><br>Jesus Mogollon<br><br><br><br><div><span class="gmail_quote">On 2/22/07, <b class="gmail_sendername">
Craig Guy</b> &lt;<a href="mailto:cguy@bigpond.net.au">cguy@bigpond.net.au</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Richard,<br><br>there was a thread regarding this a while ago on the dev list which resulted<br>in a patch being made to allow variable passing via IAX2 channels.&nbsp;&nbsp;See<br><a href="http://bugs.digium.com/view.php?id=7619">
http://bugs.digium.com/view.php?id=7619</a> for the patch which I think is in<br>SVN or anyhow, is not in 1.2<br><br>I have recently backported this patch to 1.2 and have a patch which is<br>tested against 1.2.12, <a href="http://1.2.12.1">
1.2.12.1</a> and 1.2.15, but should work against at least<br>1.2.13 and 1.2.14.&nbsp;&nbsp;The patch introduces a new dialplan function called<br>IAXVAR, Email me if interested.<br><br>Craig<br><br>----- Original Message -----<br>From: &quot;Richard Lyman&quot; &lt;
<a href="mailto:pchammer@dynx.net">pchammer@dynx.net</a>&gt;<br>To: &quot;Asterisk Users Mailing List - Non-Commercial Discussion&quot;<br>&lt;<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com
</a>&gt;<br>Sent: Wednesday, February 21, 2007 7:27 AM<br>Subject: Re: [asterisk-users] Passing a variable from one Asterisk box<br>toanother<br><br><br>&gt; Richard Lyman wrote:<br>&gt;&gt; Eric Bishop wrote:<br>&gt;&gt;&gt; Hi all,
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; We currently have 2 Asterisk boxes and we pass calls to a fro. All works<br>&gt;&gt;&gt; great except we now need to pass variables between them.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; For example now on box 1 we have:
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; exten =&gt; _23XX,1,SetVar(Foo=1234)<br>&gt;&gt;&gt; exten =&gt; _23XX,2,Dial(SIP/${EXTEN:0}@Box2)<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; When the call dials into Box 2 the variable Foo does not get passed...
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Does anyone have any clever ideas?<br>&gt;&gt; as noted in asterisk/docs/README.variables (iirc)<br>&gt;&gt;<br>&gt;&gt; you should see that variable inheritance can occur by prefacing the
<br>&gt;&gt; variable with &#39;_&#39; or &#39;__&#39;<br>&gt;&gt;<br>&gt;&gt; also, depending on the age of your asterisk you might want to start using<br>&gt;&gt; &#39;Set&#39; vice &#39;SetVar&#39;<br>&gt;&gt;<br>&gt;&gt; also, having ${EXTEN:0} , the :0 doesn&#39;t do anything, so you should not
<br>&gt;&gt; use it and just have ${EXTEN}<br>&gt;&gt;<br>&gt;&gt; i hope this helps<br>&gt;&gt;<br>&gt;&gt;<br>&gt; sadly replying to my own post, but, i forgot to mention that<br>&gt; passing variables with IAX2 can be an issue sometimes when you use
<br>&gt; user and peer (the user side can pass vars the peer side can not, or<br>&gt; doesn&#39;t accept them iirc)<br>&gt;<br>&gt; this does not happen using friend, but that has its own issues... check<br>&gt; the wiki for more thoughts about this.
<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; --Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br>&gt;<br>&gt; asterisk-users mailing list
<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt;<br><br>_______________________________________________
<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.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>