You&#39;ve cut out a fair amount of data, but I think I see at least one issue:<div><br></div><div><meta charset="utf-8">&lt;condition field=&quot;${variable_sip_gateway}&quot; expression=&quot;sofia/gateway/sip69250&quot;&gt;</div>
<div><br></div><div>Do you have a channel variable that is named &quot;variable_sip_gateway&quot;? More likely you have a channel variable named &quot;sip_gateway&quot;. Try rewriting the above line like this:</div><div><br>
</div><div><meta charset="utf-8">&lt;condition field=&quot;${sip_gateway}&quot; expression=&quot;sip69250$&quot;&gt;</div><div><br></div><div>The only thing I&#39;m not sure about is whether or not &quot;sip_gateway&quot; is populated at the time the dialplan is parsed. Without seeing the info dump I can&#39;t offer any other suggestions.</div>
<div><br></div><div>-MC<br><br><div class="gmail_quote">On Wed, Mar 2, 2011 at 12:46 PM, Andreas Tuerpe <span dir="ltr">&lt;<a href="mailto:andreas@tuerpe-net.de">andreas@tuerpe-net.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hallo Michael, Johannes and Meftah<br>
<br>
here is...<br>
-------------------------------<br>
--- start trace log extract ---<br>
<br>
INVITE sip:gw+sip69250@188.246.xxx.xxx:5080;transport=udp SIP/2.0<br>
Via: SIP/2.0/UDP 82.139.xxx.x:5060;branch=z9hG4bK2fa2cd41;rport<br>
From: &quot;+491758301234&quot; &lt;sip:+491758301234@82.139.xxx.x&gt;;tag=as20cd750d<br>
To: &lt;sip:gw+sip69250@188.246.xxx.xxx:5080;transport=udp&gt;<br>
Contact: &lt;sip:+491758301234@82.139.xxx.x&gt;<br>
Call-ID: 2637b63a2411697f7af5f089732a68eb@82.139.xxx.x<br>
CSeq: 102 INVITE<br>
User-Agent: PTY SIPPort<br>
<br>
...<br>
<br>
# the only advice to the inbound channel<br>
# -&gt; &#39;sip69250&#39; is the 2. gateway name<br>
[INFO] mod_dialplan_xml.c:252 Processing +491758301234-&gt;sip69250 in<br>
context public<br>
<br>
<br>
Dialplan: sofia/external/+491758301234@82.139.xxx.x parsing<br>
[public-&gt;unloop] continue=false<br>
...<br>
# &#39;public_extensions&#39; is the 1. extension name in public context<br>
Dialplan: sofia/external/+<a href="mailto:491758302577@82.139.223.1">491758302577@82.139.223.1</a> parsing<br>
[public-&gt;public_extensions] continue=false<br>
# my test of condition assignment with ${variable_sip_gateway} fails<br>
Dialplan: ... ... Regex (FAIL) [public_extensions]<br>
${variable_sip_gateway}() =~ /sofia/gateway/sip69250/ break=on-false<br>
...<br>
# &#39;4932229982781&#39; is the 2. extension name in public context<br>
Dialplan: sofia/external/+491758301234@82.139.xxx.x parsing<br>
[public-&gt;4932229982781] continue=false<br>
# empty condition assignment run&#39;s without any errors<br>
Dialplan: sofia/external/+491758301234@82.139.xxx.x Regex (PASS)<br>
[4932229982781] () =~ // break=on-false<br>
Dialplan: sofia/external/+491758301234@82.139.xxx.x Action transfer(1001<br>
XML default)<br>
...<br>
#all others run&#39;s without any errors<br>
...<br>
---- end trace log extract ----<br>
-------------------------------<br>
<br>
<br>
# code of first extension name<br>
&lt;extension name=&quot;public_extensions&quot;&gt;<br>
    &lt;condition field=&quot;${variable_sip_gateway}&quot;<br>
expression=&quot;sofia/gateway/sip69250&quot;&gt;<br>
        &lt;action application=&quot;transfer&quot; data=&quot;1004 XML default&quot;/&gt;<br>
    &lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
# code of second extension name<br>
&lt;extension name=&quot;4932229982781&quot;&gt;<br>
    &lt;condition field=&quot;&quot; expression=&quot;&quot;&gt;<br>
        &lt;action application=&quot;transfer&quot; data=&quot;1001 XML default&quot;/&gt;<br>
    &lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
<br>
I&#39;m unsure with syntax of condition variable esp. expression=&quot;?&quot;<br>
<br>
Thanks<br>
    Andreas<br>
<br>
<br>
<br>
Am 02.03.2011 00:07, schrieb Michael Collins:<br>
&gt; The FS on pfSense is pretty old, but if all you are working on is a<br>
&gt; simple routing issue your best bet is to add the &quot;info&quot; app in the<br>
&gt; public context. Somewhere near the top of public.xml just add this:<br>
&gt;<br>
&gt; &lt;extension name=&quot;quick info dump&quot; continue=&quot;true&quot;&gt;<br>
&gt; &lt;condition&gt;<br>
&gt; &lt;action application=&quot;info&quot;/&gt;<br>
&gt; &lt;/condition&gt;<br>
&gt; &lt;/extension&gt;<br>
&gt;<br>
&gt; Save that, press F6 (or do reloadxml) and then make a test inbound call.<br>
&gt; Watch the console - you&#39;ll see a TON of information. Look through the<br>
&gt; pieces of data that are displayed. You should be able to find something<br>
&gt; to key off of. Once you&#39;ve done that then go read up on creating your<br>
&gt; dialplan here:<br>
&gt;<br>
&gt; <a href="http://wiki.freeswitch.org/wiki/Dialplan_XML#Condition" target="_blank">http://wiki.freeswitch.org/wiki/Dialplan_XML#Condition</a><br>
&gt;<br>
&gt; In fact, that whole page is important in understanding the XML dialplan.<br>
&gt; I would read it more than once.<br>
&gt;<br>
&gt; -MC<br>
&gt;<br>
&gt; On Tue, Mar 1, 2011 at 11:16 AM, Andreas Tuerpe &lt;<a href="mailto:andreas@tuerpe-net.de">andreas@tuerpe-net.de</a><br>
&gt; &lt;mailto:<a href="mailto:andreas@tuerpe-net.de">andreas@tuerpe-net.de</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hallo FreeSWITCH Users,<br>
&gt;<br>
&gt;     I use FS V.0.9.6 on pfSense<br>
&gt;     see on -&gt; [<a href="http://doc.pfsense.org/index.php/FreeSWITCH" target="_blank">http://doc.pfsense.org/index.php/FreeSWITCH</a>]<br>
&gt;<br>
&gt;     Symptom:<br>
&gt;     German ISP &quot;Portunity&quot; forward inbound calls without any<br>
&gt;     destination_number.<br>
&gt;<br>
&gt;<br>
&gt;     ISP solution tip:<br>
&gt;     FS to register over a second sip account to the provider twice.<br>
&gt;     Any account has a separate number.<br>
&gt;     Based on the channel over which the call come in, I have to decide which<br>
&gt;     number is called.<br>
&gt;<br>
&gt;     So I need help, which condition assignment must use - howto ???<br>
&gt;     - which fields can I use?<br>
&gt;     - which syntax I have to use?<br>
&gt;<br>
&gt;<br>
&gt;     &lt;!--  here my intention ... ???<br>
&gt;<br>
&gt;     &lt;extension name=&quot;test_did&quot;&gt;<br>
&gt;     &lt;condition field=&quot;channel over which the call come in&quot;<br>
&gt;     expression=&quot;sip-account-1&quot;&gt;<br>
&gt;     &lt;action application=&quot;set&quot; data=&quot;called_number=111111&quot;/&gt;<br>
&gt;     &lt;action application=&quot;transfer&quot; data=&quot;1001 XML default&quot;/&gt;<br>
&gt;     &lt;condition field=&quot;channel over which the call come in&quot;<br>
&gt;     expression=&quot;sip-account-2&quot;&gt;<br>
&gt;     &lt;action application=&quot;set&quot; data=&quot;called_number=222222&quot;/&gt;<br>
&gt;     &lt;action application=&quot;transfer&quot; data=&quot;1002 XML default&quot;/&gt;<br>
&gt;     &lt;/condition&gt;<br>
&gt;     &lt;/extension&gt;<br>
&gt;<br>
&gt;     ??? --&gt;<br>
&gt;<br>
&gt;     thanks in advance<br>
&gt;        tuerpean<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;     &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<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>
&gt;<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>
<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></div>