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@192.168.1.62. In the logs, i cannot see that that my extension is being matched. Any idea, Max.
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: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@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
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: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@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
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: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@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
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
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
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
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
originate {origination_caller_id_number=120003}sofia/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: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@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
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
what is 242424? If its a locally registered user you should be using a % instead of an @ /b On Jun 22, 2009, at 1:08 PM, Max Bridgewater wrote:
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.
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
It's nothing. There is no extension like that. Shouldn't this nonetheless be caught by a regex such as the following? field="destination_number" expression="^242.*" The issue i have here is that it seems that the extensions aren't even processed. Usually, the log would show the list of processed extensions, each prefixed with the result "PASS", "FAIL". Max. On Mon, Jun 22, 2009 at 1:18 PM, Brian West <brian@freeswitch.org> wrote:
what is 242424? If its a locally registered user you should be using a % instead of an @ /b
On Jun 22, 2009, at 1:08 PM, Max Bridgewater wrote:
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.
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
On Mon, Jun 22, 2009 at 1:01 PM, Max Bridgewater <max.bridgewater@gmail.com>wrote:
It's nothing. There is no extension like that. Shouldn't this nonetheless be caught by a regex such as the following?
field="destination_number" expression="^242.*"
The issue i have here is that it seems that the extensions aren't even processed. Usually, the log would show the list of processed extensions, each prefixed with the result "PASS", "FAIL".
Max, if your originate line already has the sofia dialstring then there's really no reason to send the call through the dialplan - it already knows where to go. If you want to force the call through the dialplan then use loopback. However, you need some sort of endpoint for that to work. In your example you have this originate line: originate {origination_caller_id_number=120003}sofia/internal/ 242424@192.168.50.67 &socket(192.168.50.67:10000 full) Is 242424@192.168.50.67 a locally registered user? If so you could just do this: originate {origination_caller_id_number=120003} loopback/242424 &socket( 192.168.50.67:10000 full) This would run the A leg through the dialplan to look for destination number "242424" and then handle appropriately. If I understand your scenario I believe you are trying to get one leg of the call established and then the other leg handled by the event socket. What is the endpoint you want handled? A SIP phone that is registered locally? Or something else? In any case, you can CAN loop it through the dialplan but you aren't forced to do so. Assuming 1000 is locally registered: originate {origination_caller_id_number=120003} sofia/internal/1000%192.168.50.67 &socket(192.168.50.67:10000 full) originate {origination_caller_id_number=120003} user/1000 &socket( 192.168.50.67:10000 full) originate {origination_caller_id_number=120003} loopback/1000 &socket( 192.168.50.67:10000 full) NOTE: the first two do not use the dialplan but the third example does. This means you MUST handle destination_number="1000" in your dialplan (which the default config does). Hope this helps. -MC
Max.
On Mon, Jun 22, 2009 at 1:18 PM, Brian West <brian@freeswitch.org> wrote:
what is 242424? If its a locally registered user you should be using a % instead of an @ /b
On Jun 22, 2009, at 1:08 PM, Max Bridgewater wrote:
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.
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
_______________________________________________ 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
On Jun 23, 2009, at 7:04 AM, Max Bridgewater <max.bridgewater@gmail.com> wrote:
Hi Michael,
Using loopback solves my problem. Thanks a lot. There is a strange thing i observed though. I need to paste my extension in the default.xml file. Having them in the default directory isn't enough. Is that normal?
No it isn't. What is the name of the file that has your extension and what subdir is it in? Can you pb the contents? -MC
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
The file is located under /usr/local/freeswitch/conf/dialplan/default/. The name is: mysocket.xml. The content is: <include> <extension name="mysocket"> <condition field="destination_number" expression="^242.*" break="on-true"> <action application="socket" data="192.168.50.66:10000 full" /> </condition> </extension> </include> Max. On Tue, Jun 23, 2009 at 10:44 AM, Michael S Collins <msc@freeswitch.org>wrote:
On Jun 23, 2009, at 7:04 AM, Max Bridgewater <max.bridgewater@gmail.com> wrote:
Hi Michael,
Using loopback solves my problem. Thanks a lot. There is a strange thing i observed though. I need to paste my extension in the default.xml file. Having them in the default directory isn't enough. Is that normal?
No it isn't. What is the name of the file that has your extension and what subdir is it in? Can you pb the contents? -MC
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
Hi, I've got some news on this. When i move my extension to a different directory (/usr/local/freeswitch/conf/dialplan/sockets/) and add an include element at the very sample place where the default is included, things work just as expected. That is, my default.xml now include following: <X-PRE-PROCESS cmd="include" data="sockets/*.xml"/> <X-PRE-PROCESS cmd="include" data="default/*.xml"/> Cheers, Max.
I love it when users figure it out AND report back what they did to solve the issue! Nice work. -MC On Tue, Jun 23, 2009 at 12:11 PM, Max Bridgewater <max.bridgewater@gmail.com
wrote:
Hi,
I've got some news on this. When i move my extension to a different directory (/usr/local/freeswitch/conf/dialplan/sockets/) and add an include element at the very sample place where the default is included, things work just as expected. That is, my default.xml now include following:
<X-PRE-PROCESS cmd="include" data="sockets/*.xml"/> <X-PRE-PROCESS cmd="include" data="default/*.xml"/>
Cheers, 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
participants (4)
-
Brian West
-
Max Bridgewater
-
Michael Collins
-
Michael S Collins