xml_curl endpoint register
Hello all, i'm new in freeswitch we are migrating our software form yate to freeswitch. I'm writing a registration php script using xml_curl module, the registration was good but some endpoint don't use 5060 as sip port and when i register it, i can't find the endpoint port in curl post, because of then when i dial to an endpoint that isn't listen in sip port 5060 the call fail. Some one know how can i fix it? when i register the endpoint i insert in a mysql db time, ip, and when some one dial to this user i read my db for know the user's ip. but i need insert the endpoint sip's port too for it work. Best Regards. Gustavo Espeche www.easyipcall.com
Welcome to FreeSWITCH! I think you'll find a lot of helpful folks around here. Also, don't forget to join the IRC channel: #freeswitch on irc.freenode.net where you can discuss things in realtime. I'm having trouble visualizing what you are doing. Can you expand your description of what you are doing? You might want to put some logs into pastebin.freeswitch.org and link to those logs in this thread. Thanks, MC On Wed, Jun 2, 2010 at 6:50 AM, Gustavo Espeche < gustavo.espeche@upper-soft.com> wrote:
Hello all, i'm new in freeswitch we are migrating our software form yate to freeswitch. I'm writing a registration php script using xml_curl module, the registration was good but some endpoint don't use 5060 as sip port and when i register it, i can't find the endpoint port in curl post, because of then when i dial to an endpoint that isn't listen in sip port 5060 the call fail. Some one know how can i fix it? when i register the endpoint i insert in a mysql db time, ip, and when some one dial to this user i read my db for know the user's ip. but i need insert the endpoint sip's port too for it work.
Best Regards.
Gustavo Espeche www.easyipcall.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
Hi Michael thank for your quick answer, well i develop a littel php script that register and endpoint with FS through xml_curl module, but some endpoint like xlite or pangolin(open port 8731 ) don't open the port 5060 for receive sip calls. Follow the row post that i receive when and enpoint try to register with fs Post hostname=server2§ion=directory&tag_name=domain&key_name=name&key_value=10.0.0.101&Event-Name=REQUEST_PARAMS&Core-UUID=41841292-6d8d-11df-b413-6bc960363dcb&Free SWITCH-Hostname=server2&FreeSWITCH-IPv4=10.0.0.101&FreeSWITCH-IPv6=%3A% 3A1&Event-Date-Local=2010-06-01%2011%3A56%3A55&Event-Date-GMT=Tue,%2001% 20Jun%202010%2014%3A56%3A 55% 20GMT&Event-Date-Timestamp=1275404215713110&Event-Calling-File=sofia_reg.c&Event-Calling-Function=sofia_reg_parse_auth&Event-Calling-Line-Number=1804&action=sip_auth &sip_profile=internal&sip_user_agent=PortGo%20v6.0,%20Build% 2005202010&sip_auth_username=gustavo2&sip_auth_realm=10.0.0.101&sip_auth_nonce=eba2ee24-6d8d-11df-b425-6bc96 0363dcb&sip_auth_uri=sip% 3A10.0.0.101&sip_contact_user=gustavo2&sip_contact_host=10.0.0.15&sip_to_user=gustavo2&sip_to_host=10.0.0.101&sip_from_user=gustavo2&sip_from_h ost=10.0.0.101&sip_request_host=10.0.0.101&sip_auth_qop=auth&sip_auth_cnonce=454c337c7d03b616fb964334cc72e260&sip_auth_nc=00000001&sip_auth_response=a436fcd15330a644adc 7d07f44684b55&sip_auth_method=REGISTER&key=id&user=gustavo2&domain=10.0.0.101&ip=10.0.0.15 in this post i can't find the endpoint sip port, and i can't register in my db what is the sip port of this endpoint.I have a php routing script too, and when some endpoint try to call to one endpoint that don't use 5060 as sip port, i haven't the information in my database to give the right sofia bridge route. this is my routing script answer when someone dial gustavo2 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="dialplan" description="Regex/XML Dialplan"> <context name="public"> <extension name="external"> <condition field="destination_number" expression="^gustavo2$"> <action application="set" data="continue_on_fail=true"/> <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="progress_timeout=10"/> <action application="bridge" data="sofia/external/gustavo2@10.0.0.15"/> </condition> </extension> </context> </section> </document> the right answer is the ip of the endpoint:port but in registration i don't have the local sip port of the endpoint <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="dialplan" description="Regex/XML Dialplan"> <context name="public"> <extension name="external"> <condition field="destination_number" expression="^gustavo2$"> <action application="set" data="continue_on_fail=true"/> <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="progress_timeout=10"/> <action application="bridge" data="sofia/external/gustavo2@10.0.0.15:8731"/> </condition> </extension> </context> </section> </document> maybe i'm using a wrong way to dial between endpoint in FS, i using this way because our system is oriented to wholesale market and the most of route are external gw, and we try to have the same routing script for register endpoint and gw not register Best Regard On Wed, 2010-06-02 at 11:40 -0700, Michael Collins wrote:
Welcome to FreeSWITCH!8057
I think you'll find a lot of helpful folks around here. Also, don't forget to join the IRC channel: #freeswitch on irc.freenode.net where you can discuss things in realtime.
I'm having trouble visualizing what you are doing. Can you expand your description of what you are doing? You might want to put some logs into pastebin.freeswitch.org and link to those logs in this thread.
Thanks, MC
On Wed, Jun 2, 2010 at 6:50 AM, Gustavo Espeche <gustavo.espeche@upper-soft.com> wrote: Hello all, i'm new in freeswitch we are migrating our software form yate to freeswitch. I'm writing a registration php script using xml_curl module, the registration was good but some endpoint don't use 5060 as sip port and when i register it, i can't find the endpoint port in curl post, because of then when i dial to an endpoint that isn't listen in sip port 5060 the call fail. Some one know how can i fix it? when i register the endpoint i insert in a mysql db time, ip, and when some one dial to this user i read my db for know the user's ip. but i need insert the endpoint sip's port too for it work.
Best Regards.
Gustavo Espeche www.easyipcall.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
participants (2)
-
Gustavo Espeche
-
Michael Collins