ERROR: sofia.c:2491 Error Creating SIP UA for profile: internal
Hi All! Im writing an application to manage FS via mod_xml_curl. Im generating sofia.conf just generating default configuration joining ../sip_profiles/* on my xml. Its an example: <?xml version="1.0" encoding="UTF8"?> <document type="freeswitch/xml"> <section name="configuration"> <configuration name="sofia.conf" description="Sessao de configuracao sofia.conf"> <global_settings> <log-level value="0"/> <debug-presence value="0"/> </global_settings> <profiles> <profile name="external"> <gateways> </gateways> <aliases/> <domains> <domain name="all" alias="false" parse="true"/> </domains> <settings> <param debug="0"/> <param sip-trace="no"/> <param sip-capture="no"/> <param rfc2833-pt="101"/> <param sip-port="5080"/> <param dialplan="XML"/> <param context="public"/> <param dtmf-duration="2000"/> <param inbound-codec-prefs="$${global_codec_prefs}"/> <param outbound-codec-prefs="$${outbound_codec_prefs}"/> <param hold-music="$${hold_music}"/> <param rtp-timer-name="soft"/> <param local-network-acl="localnet.auto"/> <param manage-presence="auto"/> <param inbound-codec-negotiation="generous"/> <param nonce-ttl="60"/> <param auth-calls="false"/> <param rtp-ip="$${local_ip_v4}"/> <param sip-ip="$${local_ip_v4}"/> <param ext-rtp-ip="auto-nat"/> <param ext-sip-ip="auto-nat"/> <param rtp-timeout-sec="300"/> <param rtp-hold-timeout-sec="1800"/> <param tls="$${external_ssl_enable}"/> <param tls-bind-params="transport=tls"/> <param tls-sip-port="$${external_tls_port}"/> <param tls-cert-dir="$${external_ssl_dir}"/> <param tls-version="$${sip_tls_version}"/> </settings> </profile> <profile name="internal"> <aliases/> <domains> <domain name="all" alias="true" parse="false"/> </domains> <settings> <param debug="0"/> <param sip-trace="no"/> <param sip-capture="no"/> <param watchdog-enabled="no"/> <param watchdog-step-timeout="30000"/> <param watchdog-event-timeout="30000"/> <param log-auth-failures="true"/> <param forward-unsolicited-mwi-notify="true"/> <param context="padrao"/> <param sip-port="$${internal_sip_port}"/> <param dialplan="XML"/> <param dtmf-duration="2000"/> <param inbound-codec-prefs="$${global_codec_prefs}"/> <param outbound-codec-prefs="$${outbound_codec_prefs}"/> <param hold-music="$${hold_music}"/> <param rtp-timer-name="soft"/> <param rtp-ip="$${local_ip_v4}"/> <param sip-ip="$${local_ip_v4}"/> <param apply-nat-acl="nat.auto"/> <param apply-inbound-acl="domain"/> <param local-network-acl="localnet.auto"/> <param presence-hosts="$${domain},$${local_ip_v4}"/> <param presence-privacy="$${presence_privacy}"/> <param inbound-codec-negotiation="generous"/> <param tls="$${internal_ssl_enable}"/> <param tls-bind-params="transport=tls"/> <param tls-sip-port="$${internal_tls_port}"/> <param tls-cert-dir="$${external_ssl_dir}"/> <param tls-version="$${sip_tls_version}"/> <param tls-verify-date="true"/> <param tls-verify-policy="none"/> <param tls-verify-depth="2"/> <param tls-verify-in-subjects=""/> <param inbound-late-negotiation="true"/> <param inbound-zrtp-passthru="true"/> <param nonce-ttl="60"/> <param auth-calls="$${internal_auth_calls}"/> <param inbound-reg-force-matching-username="true"/> <param auth-all-packets="false"/> <param ext-rtp-ip="auto-nat"/> <param ext-sip-ip="auto-nat"/> <param rtp-timeout-sec="300"/> <param rtp-hold-timeout-sec="1800"/> <param force-register-domain="$${domain}"/> <param force-subscription-domain="$${domain}"/> <param force-register-db-domain="$${domain}"/> <param challenge-realm="auto_from"/> </settings> </profile> </profiles> </configuration> </section> </document> but when i do reload mod_sofia i got this: 2012-09-19 11:42:52.548225 [CONSOLE] sofia.c:1620 MSG Thread Ended 2012-09-19 11:42:52.548225 [CONSOLE] switch_loadable_module.c:1814 mod_sofia unloaded. 2012-09-19 11:42:53.268217 [CONSOLE] mod_xml_curl.c:318 XML response is in /tmp/41a9f34a-6802-e211-9d5d-ced1711242b1.tmp.xml 2012-09-19 11:42:53.348238 [CONSOLE] mod_xml_curl.c:318 XML response is in /tmp/c8a3004b-6802-e211-9d5d-ced1711242b1.tmp.xml 2012-09-19 11:42:53.348238 [INFO] mod_enum.c:871 ENUM Reloaded 2012-09-19 11:42:53.428240 [INFO] mod_sofia.c:5652 Starting initial message thread. 2012-09-19 11:42:53.428240 [CONSOLE] sofia.c:1602 MSG Thread 0 Started 2012-09-19 11:42:53.488212 [CONSOLE] mod_xml_curl.c:318 XML response is in /tmp/7fbd0d4b-6802-e211-9d5d-ced1711242b1.tmp.xml 2012-09-19 11:42:53.488212 [INFO] switch_time.c:1163 Timezone reloaded 530 definitions 2012-09-19 11:42:53.568343 [CONSOLE] mod_xml_curl.c:318 XML response is in /tmp/b333194b-6802-e211-9d5d-ced1711242b1.tmp.xml 2012-09-19 11:42:53.588215 [INFO] sofia.c:5281 Setting nonce TTL to 60 seconds 2012-09-19 11:42:53.588215 [NOTICE] sofia.c:5358 Started Profile external [sofia_reg_external] 2012-09-19 11:42:53.668232 [CONSOLE] mod_xml_curl.c:318 XML response is in /tmp/42f5314b-6802-e211-9d5d-ced1711242b1.tmp.xml 2012-09-19 11:42:53.668232 [NOTICE] sofia_reg.c:2954 Added gateway 'OTIMA' to profile 'external' 2012-09-19 11:42:53.768237 [CONSOLE] mod_xml_curl.c:318 XML response is in /tmp/8d68404b-6802-e211-9d5d-ced1711242b1.tmp.xml 2012-09-19 11:42:53.768237 [INFO] sofia.c:5281 Setting nonce TTL to 60 seconds 2012-09-19 11:42:53.768237 [NOTICE] sofia.c:5358 Started Profile internal [sofia_reg_internal] 2012-09-19 11:42:53.768237 [ERR] sofia.c:2491 Error Creating SIP UA for profile: internal 2012-09-19 11:42:54.768518 [NOTICE] sofia_reg.c:415 Registering OTIMA 2012-09-19 11:42:55.288223 [CONSOLE] switch_loadable_module.c:1328 Successfully Loaded [mod_sofia] 2012-09-19 11:42:55.288223 [NOTICE] switch_loadable_module.c:146 Adding Endpoint 'sofia' 2012-09-19 11:42:55.288223 [NOTICE] switch_loadable_module.c:254 Adding Application 'sofia_sla' 2012-09-19 11:42:55.308234 [NOTICE] switch_loadable_module.c:298 Adding API Function 'sofia' 2012-09-19 11:42:55.308234 [NOTICE] switch_loadable_module.c:298 Adding API Function 'sofia_gateway_data' 2012-09-19 11:42:55.308234 [NOTICE] switch_loadable_module.c:298 Adding API Function 'sofia_username_of' 2012-09-19 11:42:55.308234 [NOTICE] switch_loadable_module.c:298 Adding API Function 'sofia_contact' 2012-09-19 11:42:55.308234 [NOTICE] switch_loadable_module.c:298 Adding API Function 'sofia_count_reg' 2012-09-19 11:42:55.308234 [NOTICE] switch_loadable_module.c:298 Adding API Function 'sofia_dig' 2012-09-19 11:42:55.308234 [NOTICE] switch_loadable_module.c:403 Adding Chat interface 'sip' 2012-09-19 11:42:55.308234 [NOTICE] switch_loadable_module.c:447 Adding Management interface 'mod_sofia' OID[.1.3.6.1.4.1.27880.1001] I searched a lot to get help, but cant find...
2012-09-19 11:42:53.768237 [ERR] sofia.c:2491 Error Creating SIP UA for profile: internal
This is frequently a case of something else already using port 5060. Check out this page for tips on finding out what is using that port: http://wiki.freeswitch.org/wiki/Sofia-SIP#What_if_these_commands_don.27t_wor... -MC
Yes, you're correct. Now, when i disable profile internal, external profile is listening only on port 5060.. and if you look my xml you will see <param sip-port="5060"> its completly wrong... So when it loads external profile and didnt match any valid parameter, it start listening on port 5060... when i change xml params to : <param name="sip-port" value="5060"> it started to work... But FS must show a better error msg like: "cant listen to port XXXX" so message will be much more easy to understand! Thx for your help.... Em 19/09/2012 13:46, Michael Collins escreveu:
2012-09-19 11:42:53.768237 [ERR] sofia.c:2491 Error Creating SIP UA for profile: internal
This is frequently a case of something else already using port 5060. Check out this page for tips on finding out what is using that port: http://wiki.freeswitch.org/wiki/Sofia-SIP#What_if_these_commands_don.27t_wor...
-MC
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org 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
Commit was already pushed this morning to spell it out better. On Wed, Sep 19, 2012 at 12:36 PM, Tiago N. Sampaio <tnsampaio@bsd.com.br>wrote:
Yes, you're correct. Now, when i disable profile internal, external profile is listening only on port 5060.. and if you look my xml you will see <param sip-port="5060"> its completly wrong... So when it loads external profile and didnt match any valid parameter, it start listening on port 5060... when i change xml params to : <param name="sip-port" value="5060"> it started to work...
But FS must show a better error msg like: "cant listen to port XXXX" so message will be much more easy to understand!
Thx for your help....
Em 19/09/2012 13:46, Michael Collins escreveu:
2012-09-19 11:42:53.768237 [ERR] sofia.c:2491 Error Creating SIP UA for
profile: internal
This is frequently a case of something else already using port 5060. Check out this page for tips on finding out what is using that port:
http://wiki.freeswitch.org/wiki/Sofia-SIP#What_if_these_commands_don.27t_wor...
-MC
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
participants (3)
-
Anthony Minessale
-
Michael Collins
-
Tiago N. Sampaio