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:

<extension name="quick info dump" continue="true">
  <condition>
    <action application="info"/>
  </condition>
</extension>

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:

http://wiki.freeswitch.org/wiki/Dialplan_XML#Condition

In fact, that whole page is important in understanding the XML dialplan. I would read it more than once.

-MC

On Tue, Mar 1, 2011 at 11:16 AM, Andreas Tuerpe <andreas@tuerpe-net.de> wrote:
Hallo FreeSWITCH Users,

I use FS V.0.9.6 on pfSense
see on -> [http://doc.pfsense.org/index.php/FreeSWITCH]

Symptom:
German ISP "Portunity" forward inbound calls without any destination_number.


ISP solution tip:
FS to register over a second sip account to the provider twice.
Any account has a separate number.
Based on the channel over which the call come in, I have to decide which
number is called.

So I need help, which condition assignment must use - howto ???
- which fields can I use?
- which syntax I have to use?


<!--  here my intention ... ???

  <extension name="test_did">
    <condition field="channel over which the call come in"
expression="sip-account-1">
      <action application="set" data="called_number=111111"/>
      <action application="transfer" data="1001 XML default"/>
    <condition field="channel over which the call come in"
expression="sip-account-2">
      <action application="set" data="called_number=222222"/>
      <action application="transfer" data="1002 XML default"/>
    </condition>
  </extension>

??? -->

thanks in advance
  tuerpean


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org