<div dir="ltr"><div><div><div>Hi Kyle,<br><br>destination_number is number what is called. If it is for inbound faxes, then destination_number variable will contain number which your clients calls to get into Freeswitch. More details about channel variables you can find below:<br><br><a href="https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables</a><br><br></div>You can add &lt;action application=&quot;info&quot;/&gt; line before &lt;action application=&quot;rxfax&quot; ....&gt; and in console you will see all related to that call variables. It will looks like:<br><br>2015-12-16 02:20:45.581035 [INFO] mod_dptools.c:1711 CHANNEL_DATA:<br>Channel-State: [CS_EXECUTE]<br>Channel-Call-State: [RINGING]<br>Channel-State-Number: [4]<br>Channel-Name: [.....]<br>....<br>....<br>....<br>Caller-Destination-Number: [Value which you are looking for]<br>....<br>....<br><br></div>With kind regards,<br><br></div>Jurijs<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-16 8:59 GMT+02:00 Volodymyr Fedorov <span dir="ltr">&lt;<a href="mailto:lexxua@gmail.com" target="_blank">lexxua@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>Even variable is not exist you can parse sip-headers and extract variables via regex:</div><div>bellow example for parse to-header</div><div>&lt;action application=&quot;set&quot; data=&quot;act_nmbr=${regex(${sip_h_To}|^\&lt;sip:(\d*)\@.*\&gt;.*$|0%1)}&quot;/&gt;<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 16, 2015 at 1:48 AM, Kyle Hunter <span dir="ltr">&lt;<a href="mailto:khunter@thesummitgroup.com.au" target="_blank">khunter@thesummitgroup.com.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div link="#0563C1" vlink="#954F72" lang="EN-AU">
<p></p>
<div>
<p class="MsoNormal">Hey,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’ve currently got a dial plan set up to receive faxes which looks like:<br>
                        &lt;action application=&quot;rxfax&quot; data=&quot;/var/spool/fax/FAX-${destination_number}-${caller_id_number}-${uuid}.tif&quot;/&gt;<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m just wondering what $destination_number variable is set to. In our SIP Header we’re sending a different ‘SIP Display info’ to what this variable is set to and I can’t seem to find what that variable is actually looking at.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Kyle<u></u><u></u></p>
</div>
<p></p>
<p><font size="2" face="Calibri"></font> </p>
<strong>
<p><font style="font-family:Calibri;font-size:10pt;color:Black;font-weight:bold">Kyle</font><font color="black" size="2" face="Calibri"> </font><font style="font-family:Calibri;font-size:10pt;color:Black">Hunter</font><font color="black" size="2" face="Calibri"> |
</font><font style="font-family:Calibri;font-size:10pt;color:Black;font-weight:bold">Network Engineer</font><font color="black" size="2" face="Calibri"> |
</font><font style="font-family:Calibri;font-size:10pt;color:Black">The Summit Group</font></p>
</strong>
<p><font size="2" face="Calibri">E: </font><span style="font-family:Calibri;font-size:10pt"><a href="mailto:khunter@thesummitgroup.com.au" title="Click to send email to Kyle Hunter" style="font-family:Calibri;font-size:10pt" target="_blank"><span style="font-family:Calibri;font-size:10pt">khunter@thesummitgroup.com.au</span></a></span><font size="2" face="Calibri"> | W:
</font></p>
<p><font size="2" face="Calibri">The Summit Group (Australia) Pty Ltd | P: </font><font size="2"><font face="Calibri"> | Level 1, 39 Railway Road, Blackburn  VIC  3130<br>
The Summit Group (USA) LLC | P: <a href="tel:321%20216%203844" value="+13212163844" target="_blank">321 216 3844</a> | Suite 1003, 364E Main Street, Middletown  DE 19709<br>
</font><font face="Calibri">Postal:      P.O. Box 3225, Doncaster East  VIC  3109</font></font></p>
<p><font size="2" face="Calibri"></font> </p>
<p><font size="2" face="Calibri">Follow us on </font><a href="http://www.facebook.com/thesummitgroup/" target="_blank"><font size="2" face="Calibri">Facebook</font></a><font size="2" face="Calibri"> |
</font><a href="http://www.linkedin.com/company/1942329" target="_blank"><font size="2" face="Calibri">LinkedIn</font></a><font size="2" face="Calibri"> |
</font><a href="http://twitter.com/summitgroupau/" target="_blank"><font size="2" face="Calibri">Twitter</font></a><em><strong><br>
</strong></em></p>
<p></p>
<p><font size="2" face="Calibri"></font></p>
<p><font size="2" face="Calibri"></font></p>

</div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div style="font-size:small">Best regards,</div><div style="font-size:small">Volodymyr</div></div></div></div>
</font></span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>