Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Help with Socket event again

Goto page 1, 2  Next
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
max.bridgewater at gma...
Guest





PostPosted: Fri Jun 19, 2009 10:18 am    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

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 (242424@192.168.1.62).

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

Any idea,

Max.
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Jun 19, 2009 10:44 am    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

Can you turn on debugging (FCool 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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (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 (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

Back to top
max.bridgewater at gma...
Guest





PostPosted: Fri Jun 19, 2009 1:00 pm    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

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 (msc@freeswitch.org)> wrote:
Quote:
Can you turn on debugging (FCool 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 (max.bridgewater@gmail.com)> wrote:


Quote:

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 (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 (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 (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

Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Jun 19, 2009 1:11 pm    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
Can you turn on debugging (FCool 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 (max.bridgewater@gmail.com)> wrote:


Quote:

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 (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 (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 (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 (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

Back to top
max.bridgewater at gma...
Guest





PostPosted: Fri Jun 19, 2009 1:22 pm    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

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 (msc@freeswitch.org)> wrote:
Quote:
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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
Can you turn on debugging (FCool 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 (max.bridgewater@gmail.com)> wrote:


Quote:

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 (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 (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 (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 (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 (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

Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Jun 19, 2009 3:56 pm    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
Can you turn on debugging (FCool 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 (max.bridgewater@gmail.com)> wrote:


Quote:

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 (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 (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 (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 (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 (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 (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

Back to top
max.bridgewater at gma...
Guest





PostPosted: Fri Jun 19, 2009 4:24 pm    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

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 (msc@freeswitch.org)> wrote:
Quote:
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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
Can you turn on debugging (FCool 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 (max.bridgewater@gmail.com)> wrote:


Quote:

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 (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 (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 (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 (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 (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 (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 (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

Back to top
brian at freeswitch.org
Guest





PostPosted: Mon Jun 22, 2009 11:08 am    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

originate {origination_caller_id_number=120003}sofia/internal/242424@192.168.50.67 ([email]{origination_caller_id_number=120003}sofia/internal/242424@192.168.50.67[/email]) &socket(192.168.50.67:10000 full)

/b

On Jun 22, 2009, at 11:57 AM, Max Bridgewater wrote:
Quote:
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 (242424@192.168.50.67) & park()"
"{origination_caller_id_number=120003}sofia/internal/242424@192.168.50.67 (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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
Can you turn on debugging (FCool 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 (max.bridgewater@gmail.com)> wrote:


Quote:

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 (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 (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 (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 (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 (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 (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 (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 (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 (brian@freeswitch.org)



-- Meet us at ClueCon! http://www.cluecon.com
Back to top
max.bridgewater at gma...
Guest





PostPosted: Mon Jun 22, 2009 11:10 am    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

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 (242424@192.168.50.67) & park()"
"{origination_caller_id_number=120003}sofia/internal/242424@192.168.50.67 (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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
Can you turn on debugging (FCool 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 (max.bridgewater@gmail.com)> wrote:


Quote:

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 (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 (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 (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 (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 (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 (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 (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





Back to top
max.bridgewater at gma...
Guest





PostPosted: Mon Jun 22, 2009 12:11 pm    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

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 (brian@freeswitch.org)> wrote:
Quote:
originate {origination_caller_id_number=120003}sofia/internal/242424@192.168.50.67 ([email]%7Borigination_caller_id_number=120003%7Dsofia/internal/242424@192.168.50.67[/email]) &socket(192.168.50.67:10000 full)

/b


On Jun 22, 2009, at 11:57 AM, Max Bridgewater wrote:

Quote:
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 (242424@192.168.50.67) & park()"
"{origination_caller_id_number=120003}sofia/internal/242424@192.168.50.67 (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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
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 (max.bridgewater@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:
Can you turn on debugging (FCool 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 (max.bridgewater@gmail.com)> wrote:


Quote:

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 (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 (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 (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 (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 (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 (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 (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 (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 (brian@freeswitch.org)



-- Meet us at ClueCon!  http://www.cluecon.com











_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
brian at freeswitch.org
Guest





PostPosted: Mon Jun 22, 2009 12:19 pm    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

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:
Quote:
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 (brian@freeswitch.org)



-- Meet us at ClueCon! http://www.cluecon.com
Back to top
max.bridgewater at gma...
Guest





PostPosted: Mon Jun 22, 2009 1:03 pm    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

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 (brian@freeswitch.org)> wrote:
Quote:
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:

Quote:
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 (brian@freeswitch.org)



-- Meet us at ClueCon!  http://www.cluecon.com












_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
msc at freeswitch.org
Guest





PostPosted: Mon Jun 22, 2009 3:45 pm    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

On Mon, Jun 22, 2009 at 1:01 PM, Max Bridgewater <max.bridgewater@gmail.com (max.bridgewater@gmail.com)> wrote:
Quote:
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 (242424@192.168.50.67) &socket(192.168.50.67:10000 full)

Is 242424@192.168.50.67 (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



Quote:

Max.


On Mon, Jun 22, 2009 at 1:18 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:


Quote:

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:

Quote:
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 (brian@freeswitch.org)



-- Meet us at ClueCon!  http://www.cluecon.com














_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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

Back to top
max.bridgewater at gma...
Guest





PostPosted: Tue Jun 23, 2009 9:20 am    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

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?

Max.
Back to top
msc at freeswitch.org
Guest





PostPosted: Tue Jun 23, 2009 9:47 am    Post subject: [Freeswitch-users] Help with Socket event again Reply with quote

On Jun 23, 2009, at 7:04 AM, Max Bridgewater
<max.bridgewater@gmail.com> wrote:

Quote:

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

Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services