The FS on pfSense is pretty old, but if all you are working on is a simple routing issue your best bet is to add the "info" app in the public context. Somewhere near the top of public.xml just add this:<div><br></div>
<div><extension name="quick info dump" continue="true"></div><div> <condition></div><div> <action application="info"/></div><div> </condition></div><div></extension></div>
<div><br></div><div>Save that, press F6 (or do reloadxml) and then make a test inbound call. Watch the console - you'll see a TON of information. Look through the pieces of data that are displayed. You should be able to find something to key off of. Once you've done that then go read up on creating your dialplan here:</div>
<div><br></div><div><a href="http://wiki.freeswitch.org/wiki/Dialplan_XML#Condition">http://wiki.freeswitch.org/wiki/Dialplan_XML#Condition</a></div><div><br></div><div>In fact, that whole page is important in understanding the XML dialplan. I would read it more than once.</div>
<div><br></div><div>-MC<br><br><div class="gmail_quote">On Tue, Mar 1, 2011 at 11:16 AM, Andreas Tuerpe <span dir="ltr"><<a href="mailto:andreas@tuerpe-net.de" target="_blank">andreas@tuerpe-net.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hallo FreeSWITCH Users,<br>
<br>
I use FS V.0.9.6 on pfSense<br>
see on -> [<a href="http://doc.pfsense.org/index.php/FreeSWITCH" target="_blank">http://doc.pfsense.org/index.php/FreeSWITCH</a>]<br>
<br>
Symptom:<br>
German ISP "Portunity" forward inbound calls without any destination_number.<br>
<br>
<br>
ISP solution tip:<br>
FS to register over a second sip account to the provider twice.<br>
Any account has a separate number.<br>
Based on the channel over which the call come in, I have to decide which<br>
number is called.<br>
<br>
So I need help, which condition assignment must use - howto ???<br>
- which fields can I use?<br>
- which syntax I have to use?<br>
<br>
<br>
<!-- here my intention ... ???<br>
<br>
<extension name="test_did"><br>
<condition field="channel over which the call come in"<br>
expression="sip-account-1"><br>
<action application="set" data="called_number=111111"/><br>
<action application="transfer" data="1001 XML default"/><br>
<condition field="channel over which the call come in"<br>
expression="sip-account-2"><br>
<action application="set" data="called_number=222222"/><br>
<action application="transfer" data="1002 XML default"/><br>
</condition><br>
</extension><br>
<br>
??? --><br>
<br>
thanks in advance<br>
tuerpean<br>
<br>
<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" 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>