[Freeswitch-users] ERROR: sofia.c:2491 Error Creating SIP UA for profile: internal
Tiago N. Sampaio
tnsampaio at bsd.com.br
Wed Sep 19 18:48:13 MSD 2012
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...
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list