[Freeswitch-users] FreeSWITCH version: 1.0.head, sofia.c:6033 Reinvite Codec Error!

Eric Masson emss.mail at gmail.com
Wed Feb 15 23:36:07 MSK 2012


Le 15/02/2012 20:29, Michael Collins a écrit :

Hello Michael,

> show codec shows the codecs that FreeSWITCH can handle, but it does
> *not* show specific codecs your SIP profile is using.

Ok, thanks.

> Look in your SIP profile (internal.xml or external.xml or whatever)
> and check out the codec_prefs.

I've checked in freeswitch.xml.fsxml for profiles external, 
internal-ipv6 & internal and PCMA/PCMU codecs seem to be enabled (see 
profiles section at the end, I can provide the full file if necessary).

> The reason Anthony knew you only had GSM is because of the "audio codec
> compare" lines in the log:
>
>  > 2012-02-15 11:34:52.894480 [DEBUG] sofia_glue.c:4801 Audio Codec
> Compare [PCMA:8:8000:20:64000]/[GSM:3:
> 8000:20:13200]
>  > 2012-02-15 11:34:52.894480 [DEBUG] sofia_glue.c:4801 Audio Codec
> Compare [PCMU:0:8000:20:64000]/[GSM:3:8000:20:13200]
>  > 2012-02-15 11:34:52.894480 [DEBUG] sofia_glue.c:4801 Audio Codec
> Compare [telephone-event:101:8000:20:0]/[GSM:3:8000:20:13200]
>
> Note that the only codec that FS tries to match against is GSM. If other
> codecs were set in your inbound codec prefs then you'd see those being
> listed in "Audio Codec Compare" as well.

Ok, understood.

Kind Regards

Éric Masson

>   <profiles>
> <profile name="external">
>   <gateways>
>   <gateway name="keyyo.net">
>     <param name="username" value="myusername"/>
>     <param name="password" value="mypassword"/>
>     <param name="realm" value="keyyo.net"/>
>     <param name="proxy" value="keyyo.net"/>
>     <param name="register-proxy" value="keyyo.net"/>
>     <param name="register" value="true"/>
>     <param name="ping" value="5"/>
>     <param name="ping-max" value="10"/>
>     <param name="ping-min" value="3"/>
>     <param name="retry-seconds" value="5"/>
>   </gateway>
>   </gateways>
>
>   <aliases>
>   </aliases>
>
>   <domains>
>     <domain name="all" alias="false" parse="true"/>
>   </domains>
>
>   <settings>
>     <param name="debug" value="0"/>
>     <param name="sip-trace" value="no"/>
>     <param name="sip-capture" value="no"/>
>     <param name="rfc2833-pt" value="101"/>
>     <param name="sip-port" value="5080"/>
>     <param name="dialplan" value="XML"/>
>     <param name="context" value="public"/>
>     <param name="dtmf-duration" value="2000"/>
>     <param name="inbound-codec-prefs" value="G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM,H263"/>
>     <param name="outbound-codec-prefs" value="PCMU,PCMA,GSM"/>
>     <param name="hold-music" value="local_stream://moh"/>
>     <param name="rtp-timer-name" value="soft"/>
>     <param name="local-network-acl" value="localnet.auto"/>
>     <param name="manage-presence" value="false"/>
>     <param name="inbound-codec-negotiation" value="generous"/>
>     <param name="nonce-ttl" value="60"/>
>     <param name="auth-calls" value="false"/>
>     <param name="rtp-ip" value="192.168.85.1"/>
>     <param name="sip-ip" value="192.168.85.1"/>
>     <param name="ext-rtp-ip" value="auto-nat"/>
>     <param name="ext-sip-ip" value="auto-nat"/>
>     <param name="rtp-timeout-sec" value="300"/>
>     <param name="rtp-hold-timeout-sec" value="1800"/>
>     <param name="tls" value="false"/>
>     <param name="tls-only" value="false"/>
>     <param name="tls-bind-params" value="transport=tls"/>
>     <param name="tls-sip-port" value="5081"/>
>     <param name="tls-cert-dir" value="/opt/freeswitch/conf/ssl"/>
>     <param name="tls-passphrase" value=""/>
>     <param name="tls-verify-date" value="true"/>
>     <param name="tls-verify-policy" value="none"/>
>     <param name="tls-verify-depth" value="2"/>
>     <param name="tls-verify-in-subjects" value=""/>
>     <param name="tls-version" value="tlsv1"/>
>   </settings>
> </profile>
> <profile name="internal-ipv6">
>   <settings>
>     <param name="debug" value="0"/>
>     <param name="sip-trace" value="no"/>
>     <param name="context" value="public"/>
>     <param name="rfc2833-pt" value="101"/>
>     <param name="sip-port" value="5060"/>
>     <param name="dialplan" value="XML"/>
>     <param name="dtmf-duration" value="2000"/>
>     <param name="inbound-codec-prefs" value="G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM,H263"/>
>     <param name="outbound-codec-prefs" value="G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM,H263"/>
>     <param name="use-rtp-timer" value="true"/>
>     <param name="rtp-timer-name" value="soft"/>
>     <param name="rtp-ip" value="2a01:240:fe6a::1"/>
>     <param name="sip-ip" value="2a01:240:fe6a::1"/>
>     <param name="hold-music" value="local_stream://moh"/>
>     <param name="apply-inbound-acl" value="domains"/>
>     <param name="record-template" value="/opt/freeswitch/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
>     <param name="manage-presence" value="true"/>
>     <param name="inbound-codec-negotiation" value="generous"/>
>     <param name="tls" value="false"/>
>     <param name="tls-bind-params" value="transport=tls"/>
>     <param name="tls-sip-port" value="5061"/>
>     <param name="tls-cert-dir" value="/opt/freeswitch/conf/ssl"/>
>     <param name="tls-version" value="tlsv1"/>
>     <param name="nonce-ttl" value="60"/>
>     <param name="auth-calls" value="true"/>
>     <param name="auth-all-packets" value="false"/>
>     <param name="rtp-timeout-sec" value="300"/>
>     <param name="rtp-hold-timeout-sec" value="1800"/>
>     <param name="force-register-domain" value="srvbsdfenssv"/>
>     <param name="force-register-db-domain" value="srvbsdfenssv"/>
>   </settings>
> </profile>
> <profile name="internal">
>   <aliases>
>   </aliases>
>   <gateways>
>   </gateways>
>
>   <domains>
>     <domain name="all" alias="true" parse="false"/>
>   </domains>
>
>   <settings>
>     <param name="debug" value="0"/>
>     <param name="sip-trace" value="no"/>
>     <param name="sip-capture" value="no"/>
>     <param name="watchdog-enabled" value="no"/>
>     <param name="watchdog-step-timeout" value="30000"/>
>     <param name="watchdog-event-timeout" value="30000"/>
>     <param name="log-auth-failures" value="false"/>
>     <param name="forward-unsolicited-mwi-notify" value="false"/>
>     <param name="context" value="public"/>
>     <param name="rfc2833-pt" value="101"/>
>     <param name="sip-port" value="5060"/>
>     <param name="dialplan" value="XML"/>
>     <param name="dtmf-duration" value="2000"/>
>     <param name="inbound-codec-prefs" value="G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM,H263"/>
>     <param name="outbound-codec-prefs" value="G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM,H263"/>
>     <param name="rtp-timer-name" value="soft"/>
>     <param name="rtp-ip" value="192.168.85.1"/>
>     <param name="sip-ip" value="192.168.85.1"/>
>     <param name="hold-music" value="local_stream://moh"/>
>     <param name="apply-nat-acl" value="nat.auto"/>
>     <param name="apply-inbound-acl" value="domains"/>
>     <param name="local-network-acl" value="localnet.auto"/>
>     <param name="record-path" value="/opt/freeswitch/recordings"/>
>     <param name="record-template" value="${caller_id_number}.${target_domain}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
>     <param name="manage-presence" value="true"/>
>     <param name="presence-hosts" value="srvbsdfenssv,192.168.85.1"/>
>     <param name="presence-privacy" value="false"/>
>     <param name="inbound-codec-negotiation" value="generous"/>
>     <param name="tls" value="false"/>
>     <param name="tls-only" value="false"/>
>     <param name="tls-bind-params" value="transport=tls"/>
>     <param name="tls-sip-port" value="5061"/>
>     <param name="tls-cert-dir" value="/opt/freeswitch/conf/ssl"/>
>     <param name="tls-passphrase" value=""/>
>     <param name="tls-verify-date" value="true"/>
>     <param name="tls-verify-policy" value="none"/>
>     <param name="tls-verify-depth" value="2"/>
>     <param name="tls-verify-in-subjects" value=""/>
>     <param name="tls-version" value="tlsv1"/>
>     <param name="nonce-ttl" value="60"/>
>     <param name="auth-calls" value="true"/>
>     <param name="inbound-reg-force-matching-username" value="true"/>
>     <param name="auth-all-packets" value="false"/>
>     <param name="ext-rtp-ip" value="auto-nat"/>
>     <param name="ext-sip-ip" value="auto-nat"/>
>     <param name="rtp-timeout-sec" value="300"/>
>     <param name="rtp-hold-timeout-sec" value="1800"/>
>     <param name="force-register-domain" value="srvbsdfenssv"/>
>     <param name="force-subscription-domain" value="srvbsdfenssv"/>
>     <param name="force-register-db-domain" value="srvbsdfenssv"/>
>     <param name="challenge-realm" value="auto_from"/>
>   </settings>
> </profile>
>
>   </profiles>




Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list