If you look at the debug you can see all the condition matching and variable expansion.  Is it not matching or is $0 not expanding?  Maybe try to use $1 instead.  Regardless, the debug of the dialplan should point to exactly what is not matching.

On Jan 26, 2010, at 4:10 PM, juan camilo ospina quintero <camilin2212@hotmail.com> wrote:

hi to all

im already do the integration with. Freeswitch sends invite messages to sailfin, in sailfin there is a sip
servlet that acts as a proxy, this means it receives the invite from extension1000 and send the invite back
to freeswitch at extension 1001, but i get the freeswitch messages go to sailfin, but i dont get freeswitch
to understand sailfin messages.

there is my configuration for sending messages and for receiving messages

In /freeswitch/conf/dialplan/default.xml

    <extension name="redirect">
      <condition field="network_addr" expression="^192\.168\.2\.9$"/>   
      <condition field="destination_number" expression="^1(\d+)$">
          <action application="bridge" data="sofia/external/$0@127.0.0.1:5070"/>
      </condition>
    </extension>

this works fine, it redirects the messages to sailfin in 127.0.0.1


In /freeswitch/conf/dialplan/public.xml

    <extension name="receive">
      <condition field="network_addr" expression="^127\.0\.0\.1$"/>   
      <condition field="destination_number" expression="^1(\d+)$">
          <action application="bridge" data="sofia/internal/$0@192.168.2.9:5060"/>
      </condition>
    </extension>

this doesnt work, i also use <action application="transfer" data="$1001 XML default/> instead <action application="bridge" data="sofia/internal/$0@192.168.2.9:5060"/>

but still doesnt work, the invite that sailfin sends appears in the freeswitch console, but the 1001 extension doesnt get it


Keep your friends updated— even when you’re not signed in.
_______________________________________________
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