<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 lang="EN-AU" link="#0563C1" vlink="#954F72">
<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: 321 216 3844 | 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">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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div style="font-size:small">Best regards,</div><div style="font-size:small">Volodymyr</div></div></div></div>
</div>