Hmm thamks. I tried it and it doesn't work out of the box. Here are my logs: http://pastebin.freeswitch.org/9454 Thanks, Max. On Mon, Jun 22, 2009 at 12:06 PM, Brian West <brian@freeswitch.org> wrote:
originate {origination_caller_id_number=120003}sofia/internal/242424@192.168.50.67<%7Borigination_caller_id_number=120003%7Dsofia/internal/242424@192.168.50.67>&socket( 192.168.50.67:10000 full) /b
On Jun 22, 2009, at 11:57 AM, Max Bridgewater wrote:
Hi Mike,
Unfortunately this doesn't seem to solve my problem. Here is my extension again:
<extension name="mysocket"> <condition field="destination_number" expression="^242.*" > <action application="socket" data="192.168.50.67:10000 full" /> </condition> </extension>
I've copied it now under:
/user/local/freeswitch/conf/dialplan/default /user/local/freeswitch/conf/dialplan/public
The different dial strings i tried:
"{origination_caller_id_number=120003}sofia/internal/242424@192.168.50.67& park()" "{origination_caller_id_number=120003}sofia/internal/242424@192.168.50.67" "{origination_caller_id_number=120003}sofia/internal/242424" "{origination_caller_id_number=120003}sofia/internal/242424%192.168.50.62"
My goal: have the call captured by the above extension and redirected to a server socket running at 192.168.50.67:10000.
Any thought?
Max.
On Fri, Jun 19, 2009 at 5:22 PM, Max Bridgewater < max.bridgewater@gmail.com> wrote:
I don't have my settings to try it right now. Still i have a question. If it's the way you describe it, why wouldn't sofia/extenal/foo@bar solve the problem? I think i even copied the extension both to the default directory. But i will confirm and let you know.
Max.
On Fri, Jun 19, 2009 at 4:55 PM, Michael Collins <msc@freeswitch.org>wrote:
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@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@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@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@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@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@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@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@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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Brian West brian@freeswitch.org
-- Meet us at ClueCon! http://www.cluecon.com
_______________________________________________ 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