here&#39;s another hint.<br><br>use field=&quot;${sip_to_user}&quot;<br><br><br><div class="gmail_quote">On Thu, Nov 13, 2008 at 3:43 AM, Peter P GMX <span dir="ltr">&lt;<a href="mailto:Prometheus001@gmx.net">Prometheus001@gmx.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I checked your hint. The variable sip_to_user has the right value - but<br>
it is evaluated as empty at the time it is parsed.<br>
<br>
Info gives me:<br>
.<br>
.<br>
variable_sip_to_user: [xxxxxxxxx8910]<br>
variable_sip_to_uri: [xxxxxxxxx8910@my.ip.addre.ss]<br>
<br>
<br>
Example1,:<br>
I check with condition field=&quot;destination_number&quot;<br>
Match Result<br>
2008-11-13 10:24:55 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex:<br>
[Inbound QSC trunk] destination_number(xxxxxxxxx89) =~ /^(xxxxxxxxx89)$/<br>
This works but gives only the DID of the trunk (10 is missing at the end).<br>
<br>
Example2:<br>
I check with condition field=&quot;sip_to_user&quot;<br>
Match Result<br>
2008-11-13 10:30:42 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex:<br>
[Inbound QSC trunk] sip_to_user() =~ /^(xxxxxxxxx89[0-9.])$/<br>
2008-11-13 10:30:42 [DEBUG] mod_dialplan_xml.c:119 parse_exten() Regex<br>
mismatch<br>
sip_to_user() is empty<br>
Example3:<br>
I check with condition field=&quot;variable_sip_to_user&quot;<br>
Match Result<br>
2008-11-13 10:39:53 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex:<br>
[Inbound QSC trunk] variable_sip_to_user() =~ /^(xxxxxxxxx89[0-9.])$/<br>
2008-11-13 10:39:53 [DEBUG] mod_dialplan_xml.c:119 parse_exten() Regex<br>
mismatch<br>
variable_sip_to_user() is empty<br>
<br>
So at the time of evaluation &quot;sip_to_user&quot; resp. &quot;variable_sip_to_user&quot;<br>
is empty.<br>
<br>
What can I do?<br>
<br>
Best regards<br>
Peter<br>
<br>
<br>
Anthony Minessale schrieb:<br>
&gt; route the call to the &quot;info&quot; app and look for the one that has it.<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Nov 12, 2008 at 1:36 PM, Peter P GMX &lt;<a href="mailto:Prometheus001@gmx.net">Prometheus001@gmx.net</a><br>
&gt; &lt;mailto:<a href="mailto:Prometheus001@gmx.net">Prometheus001@gmx.net</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt; &nbsp; &nbsp; Dear all,<br>
&gt;<br>
&gt; &nbsp; &nbsp; when I get an incoming call from my SIP provider I do receive an<br>
&gt; &nbsp; &nbsp; invite<br>
&gt; &nbsp; &nbsp; on the trunk number, e.g. in Germany 0xxxxx9. However I have an<br>
&gt; &nbsp; &nbsp; extension block of 0xxxxx90 to 0xxxxx999.<br>
&gt; &nbsp; &nbsp; In the dialplan I checked the condition field=&quot;destination_number&quot; but<br>
&gt; &nbsp; &nbsp; this compares to the number of the trunk 0xxxxx9, so I do not get the<br>
&gt; &nbsp; &nbsp; direct inward dialling extensions.<br>
&gt;<br>
&gt; &nbsp; &nbsp; The SIP to-header contains the direct inward dialling number<br>
&gt; &nbsp; &nbsp; 0xxxxx90 to<br>
&gt; &nbsp; &nbsp; 0xxxxx999 but I have no success in accessing it in the dialplan.<br>
&gt;<br>
&gt; &nbsp; &nbsp; I tried sip_to_user, sip_to_uri, sip_req_user, sip_req_uri, but no<br>
&gt; &nbsp; &nbsp; success. They are all empty.<br>
&gt;<br>
&gt; &nbsp; &nbsp; Any idea which variable to parse?<br>
&gt;<br>
&gt; &nbsp; &nbsp; Best regards<br>
&gt; &nbsp; &nbsp; Peter<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; _______________________________________________<br>
&gt; &nbsp; &nbsp; Freeswitch-users mailing list<br>
&gt; &nbsp; &nbsp; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>&gt;<br>
&gt; &nbsp; &nbsp; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &nbsp; &nbsp; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &nbsp; &nbsp; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Anthony Minessale II<br>
&gt;<br>
&gt; FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
&gt; ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
&gt;<br>
&gt; AIM: anthm<br>
&gt; <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
&gt; &lt;mailto:<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>&gt;<br>
&gt; GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
&gt; &lt;mailto:<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a>&gt;<br>
&gt; IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> &lt;<a href="http://irc.freenode.net" target="_blank">http://irc.freenode.net</a>&gt; #freeswitch<br>
&gt;<br>
&gt; FreeSWITCH Developer Conference<br>
&gt; <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
&gt; &lt;mailto:<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>&gt;<br>
&gt; <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
&gt; &lt;<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">http://iax:guest@conference.freeswitch.org/888</a>&gt;<br>
&gt; <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
&gt; &lt;mailto:<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a>&gt;<br>
&gt; pstn:213-799-1400<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Freeswitch-users mailing list<br>
&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>