[Freeswitch-users] Help with Socket event again

Michael Collins msc at freeswitch.org
Fri Jun 19 08:43:10 PDT 2009


Can you turn on debugging (F8) and capture all the output after your
originate? Put it into a pastebin. (pastebin.freeswitch.org)
-MC

On Fri, Jun 19, 2009 at 10:14 AM, Max Bridgewater <max.bridgewater at gmail.com
> wrote:

> 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.
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090619/28c973c5/attachment-0002.html 


More information about the FreeSWITCH-users mailing list