[Freeswitch-users] Help with Socket event again
Michael Collins
msc at freeswitch.org
Fri Jun 19 13:55:04 PDT 2009
Now I feel stupid because I didn't read your original post closely enough.
You've defined your "mysocket" extension in the "public" context but when
you do an origination with sofia/internal/foo at bar it will use the "default"
context. I think the quickest way to handle this is to create a copy of your
mysocket.xml file and put it in conf/dialplan/default/ and be done with it.
-MC
On Fri, Jun 19, 2009 at 1:19 PM, Max Bridgewater
<max.bridgewater at gmail.com>wrote:
> Mike,
>
> Here we go: http://pastebin.freeswitch.org/9447. Doesn't look very XML to
> me though.
>
> Max.
>
>
> On Fri, Jun 19, 2009 at 2:10 PM, Michael Collins <msc at freeswitch.org>wrote:
>
>> Max,
>> that pastebin failed miserably as none of the xml shows up. can you try
>> again or use our pastebin.freeswitch.org site?
>> -MC
>>
>>
>> On Fri, Jun 19, 2009 at 12:58 PM, Max Bridgewater <
>> max.bridgewater at gmail.com> wrote:
>>
>>> Hi Mike,
>>>
>>> It's pasted here: http://pastebin.ca/1466521
>>>
>>> Thanks,
>>> Max.
>>>
>>>
>>>
>>>
>>> On Fri, Jun 19, 2009 at 11:43 AM, Michael Collins <msc at freeswitch.org>wrote:
>>>
>>>> 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:10000full" />
>>>>> </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
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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/84e3ac62/attachment-0002.html
More information about the FreeSWITCH-users
mailing list