[Freeswitch-users] Help with Socket event again

Max Bridgewater max.bridgewater at gmail.com
Fri Jun 19 08:14:58 PDT 2009


Any help our there?

I'm still trying to get this piece working. Essentially what i wan to do is,
when a call comes in (from registered devices as well as unregistered
devices), notify the my server socket. Somehow it's not working. The change
i made compared to the standard Freeswitch settings are the following:

1)  Added following extension that  in
/usr/local/freeswitch/conf/dialplan/public/mysocket.xml:


<include>
       <extension name="mysocket">
         <condition field="destination_number" expression="^242.*$" >
            <action application="socket" data="192.168.50.67:10000 full" />
        </condition>
    </extension>
</include>

2) Changed file:
/usr/local/freeswitch/conf/autoload_configs/event_socket.conf to:

<configuration name="event_socket.conf" description="Socket Client">
  <settings>
    <param name="nat-map" value="false"/>
    <param name="listen-ip" value="0.0.0.0"/>
    <param name="listen-port" value="8021"/>
    <param name="password" value="1234"/>
    <!--<param name="apply-inbound-acl" value="lan"/>-->
  </settings>
</configuration>


I noticed that with this extension, all calls received from external
providers  (e.g. Les.net, Gafachi, etc.) are indeed forwarded to my socket.
But calls from registered devices and initiated using the socket interface
are not forwarded. Is there something that need to be changed in the
profiles?

or is something wrong with my dial string?
{origination_caller_id_number=12000}sofia/internal/242424 at 192.168.1.62.

In the logs, i cannot see that that my extension is being matched.

Any idea,

Max.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090619/b1ac05b3/attachment-0002.html 


More information about the FreeSWITCH-users mailing list