<div dir="ltr">Yep, tried to play with it, same idea, on external profile call - only g722. Which is not even in outbound codec list. And, according to manual, FS should offer all codecs in list to next endpoint, which is not happens.<div>That’s my main confusion…</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-07 0:05 GMT+02:00 Sergey Okhapkin <span dir="ltr"><<a href="mailto:sos@sokhapkin.dyndns.org" target="_blank">sos@sokhapkin.dyndns.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><param name="inbound-late-negotiation" value="true"/><br>
<br>
?<br>
<span class=""><br>
On Sunday 06 March 2016 23:51:53 Igor Olhovskiy wrote:<br>
> Hi!<br>
> Thanks, but transcoding is also working with option absolute_codec_string.<br>
> What I’m trying to understand - what I’ve missed and why with profile<br>
> settings, external profile totally ignores outbound-codec-prefs and takes<br>
> ONLY FIRST from incoming call to internal profile.<br>
><br>
> 2016-03-06 22:45 GMT+02:00 Volodymyr Fedorov <<a href="mailto:lexxua@gmail.com">lexxua@gmail.com</a>>:<br>
> > Hi Igor,<br>
</span>> > If you want to do transcoding try to set*<br>
> > media_mix_inbound_outbound_codecs=true.* This is described in detail here<br>
<div class="HOEnZb"><div class="h5">> ><br>
> > <a href="https://freeswitch.org/confluence/plugins/servlet/mobile#content/view/2883" rel="noreferrer" target="_blank">https://freeswitch.org/confluence/plugins/servlet/mobile#content/view/2883</a><br>
> > 752 .<br>
> ><br>
> > On Mar 6, 2016 11:28 AM, "Igor Olhovskiy" <<a href="mailto:igorolhovskiy@gmail.com">igorolhovskiy@gmail.com</a>> wrote:<br>
> >> Working only when I’m setting<br>
> >> export nolocal:absolute_codec_string=${outbound_codec_prefs}<br>
> >><br>
> >> 2016-03-06 11:47 GMT+02:00 Igor Olhovskiy <<a href="mailto:igorolhovskiy@gmail.com">igorolhovskiy@gmail.com</a>>:<br>
> >>> Main question - why it’s ignores outbound-codec-prefs on external<br>
> >>> profile and use G722 as a first avail codec in list?<br>
> >>><br>
> >>> 2016-03-06 9:51 GMT+02:00 Igor Olhovskiy <<a href="mailto:igorolhovskiy@gmail.com">igorolhovskiy@gmail.com</a>>:<br>
> >>>> Hi!<br>
> >>>> I’m getting really strange things, or I’m just missed something.<br>
> >>>> My phone is dials to freeswitch with this this line in log<br>
> >>>><br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] sofia.c:6770 Remote SDP:<br>
> >>>> v=0<br>
> >>>> o=root 1697549695 1697549695 IN IP4 <EXTERNAL IP HERE><br>
> >>>> s=call<br>
> >>>> c=IN IP4 <EXTERNAL IP HERE><br>
> >>>> t=0 0<br>
> >>>> m=audio 26894 RTP/AVP 9 0 8<br>
> >>>> a=rtpmap:9 G722/8000<br>
> >>>> a=rtpmap:0 PCMU/8000<br>
> >>>> a=rtpmap:8 PCMA/8000<br>
> >>>> a=ptime:20<br>
> >>>> a=nortpproxy:yes<br>
> >>>><br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] switch_core_media.c:4161 Audio Codec<br>
> >>>> Compare [G722:9:8000:20:64000:1]/[G722:9:8000:20:64000:1]<br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] switch_core_media.c:4216 Audio Codec<br>
> >>>> Compare [G722:9:8000:20:64000:1] ++++ is saved as a match<br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] switch_core_media.c:4161 Audio Codec<br>
> >>>> Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]<br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] switch_core_media.c:4161 Audio Codec<br>
> >>>> Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]<br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] switch_core_media.c:4161 Audio Codec<br>
> >>>> Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1]<br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] switch_core_media.c:4161 Audio Codec<br>
> >>>> Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]<br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] switch_core_media.c:4216 Audio Codec<br>
> >>>> Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match<br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] switch_core_media.c:4161 Audio Codec<br>
> >>>> Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]<br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] switch_core_media.c:4161 Audio Codec<br>
> >>>> Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1]<br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] switch_core_media.c:4161 Audio Codec<br>
> >>>> Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]<br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] switch_core_media.c:4161 Audio Codec<br>
> >>>> Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]<br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] switch_core_media.c:4216 Audio Codec<br>
> >>>> Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match<br>
> >>>> 2016-03-06 08:31:56.681036 [DEBUG] switch_core_media.c:2906 Set Codec<br>
> >>>> sofia/internal/<a href="mailto:10@consertis.securenetvox.net">10@consertis.securenetvox.net</a> G722/8000 20 ms 160<br>
> >>>> samples 64000 bits 1 channels<br>
> >>>><br>
> >>>> And when switches to external profile, I see<br>
> >>>><br>
> >>>> 2016-03-06 08:31:56.721010 [DEBUG] sofia_glue.c:1257 sofia/external/<br>
> >>>> 00972543279009 sending invite version: 1.6.6 git d2d0b32 2016-01-11<br>
> >>>> 20:16:12Z 64bit<br>
> >>>> Local SDP:<br>
> >>>> v=0<br>
> >>>> o=FreeSWITCH 1457219712 1457219713 IN IP4 10.0.20.71<br>
> >>>> s=FreeSWITCH<br>
> >>>> c=IN IP4 10.0.20.71<br>
> >>>> t=0 0<br>
> >>>> m=audio 29804 RTP/AVP 9 101 13<br>
> >>>> a=rtpmap:9 G722/8000<br>
> >>>> a=rtpmap:101 telephone-event/8000<br>
> >>>> a=fmtp:101 0-16<br>
> >>>> a=rtpmap:13 CN/8000<br>
> >>>> a=ptime:20<br>
> >>>> a=sendrecv<br>
> >>>><br>
> >>>><br>
> >>>> The question is - why only G722 left?<br>
> >>>> Across dialplan there is no things like inherit_codec, bypass media or<br>
> >>>> other codec-related stuff<br>
> >>>><br>
> >>>> Profiles<br>
> >>>> external<br>
> >>>> ext-sip-ip [10.0.20.71]<br>
> >>>> rtp-timeout-sec [300]<br>
> >>>> rtp-hold-timeout-sec [1800]<br>
> >>>> tls [false]<br>
> >>>> tls-only [false]<br>
> >>>> tls-bind-params [transport=tls]<br>
> >>>> tls-sip-port [5081]<br>
> >>>> tls-cert-dir [/usr/local/freeswitch/conf/ssl]<br>
> >>>> tls-passphrase []<br>
> >>>> tls-verify-date [true]<br>
> >>>> tls-verify-depth [2]<br>
> >>>> tls-verify-in-subjects []<br>
> >>>> tls-version [tlsv1]<br>
> >>>> tls-verify-policy [all]<br>
> >>>> odbc-dsn [pgsql://hostaddr=127.0.0.1 port=5432 dbname=freeswitch<br>
> >>>> user=fusionpbx password=pass options='' application_name='freeswitch']<br>
> >>>> track-calls [true]<br>
> >>>> inbound-codec-negotiation [greedy]<br>
> >>>> debug [0]<br>
> >>>> user-agent-string [FreeSWITCH]<br>
> >>>> sip-trace [no]<br>
> >>>> sip-capture [no]<br>
> >>>> rfc2833-pt [101]<br>
> >>>> sip-port [5080]<br>
> >>>> dialplan [XML]<br>
> >>>> context [public]<br>
> >>>> dtmf-duration [2000]<br>
> >>>> inbound-codec-prefs [G7221@32000h,G7221@16000h<br>
> >>>> ,G722,PCMU,PCMA,OPUS,SILK]<br>
> >>>> outbound-codec-prefs [PCMU,PCMA,GSM]<br>
> >>>> hold-music [local_stream://default]<br>
> >>>> zrtp-passthru [true]<br>
> >>>> rtp-timer-name [soft]<br>
> >>>> local-network-acl [localnet.auto]<br>
> >>>> manage-presence [false]<br>
> >>>> nonce-ttl [60]<br>
> >>>> auth-calls [false]<br>
> >>>> rtp-ip [10.0.20.71]<br>
> >>>> sip-ip [10.0.20.71]<br>
> >>>> ext-rtp-ip [10.0.20.71]<br>
> >>>><br>
> >>>> internal<br>
> >>>> tls-cert-dir [/usr/local/freeswitch/conf/ssl]<br>
> >>>> tls-passphrase []<br>
> >>>> tls-verify-date [true]<br>
> >>>> tls-verify-depth [2]<br>
> >>>> tls-verify-in-subjects []<br>
> >>>> tls-version [tlsv1]<br>
> >>>> nonce-ttl [60]<br>
> >>>> auth-calls [true]<br>
> >>>> inbound-reg-force-matching-username [true]<br>
> >>>> auth-all-packets [false]<br>
> >>>> ext-rtp-ip [10.0.20.71]<br>
> >>>> ext-sip-ip [10.0.20.71]<br>
> >>>> rtp-timeout-sec [300]<br>
> >>>> rtp-hold-timeout-sec [1800]<br>
> >>>> tls-verify-policy [all]<br>
> >>>> multiple-registrations [contact]<br>
> >>>> enable-timer [false]<br>
> >>>> dbname [share_presence]<br>
> >>>> send-presence-on-register [true]<br>
> >>>> inbound-codec-negotiation [greedy]<br>
> >>>> NDLB-force-rport [safe]<br>
> >>>> challenge-realm [auto_to]<br>
> >>>> outbound-proxy [10.0.20.70]<br>
> >>>> track-calls [true]<br>
> >>>> odbc-dsn [pgsql://hostaddr=127.0.0.1 port=5432 dbname=freeswitch<br>
> >>>> user=fusionpbx password=btgJek49 options=''<br>
> >>>> application_name='freeswitch']<br>
> >>>> nat-options-ping [true]<br>
> >>>> liberal-dtmf [true]<br>
> >>>> all-reg-options-ping [true]<br>
> >>>> force-publish-expires [true]<br>
> >>>> unregister-on-options-fail [true]<br>
> >>>> user-agent-string [FreeSWITCH]<br>
> >>>> debug [0]<br>
> >>>> sip-trace [no]<br>
> >>>> sip-capture [no]<br>
> >>>> watchdog-enabled [no]<br>
> >>>> watchdog-step-timeout [30000]<br>
> >>>> watchdog-event-timeout [30000]<br>
> >>>> log-auth-failures [true]<br>
> >>>> forward-unsolicited-mwi-notify [false]<br>
> >>>> context [public]<br>
> >>>> rfc2833-pt [101]<br>
> >>>> sip-port [5060]<br>
> >>>> dialplan [XML]<br>
> >>>> dtmf-duration [2000]<br>
> >>>> inbound-codec-prefs [G7221@32000h,G7221@16000h<br>
> >>>> ,G722,PCMU,PCMA,OPUS,SILK]<br>
> >>>> outbound-codec-prefs [G7221@32000h,G7221@16000h<br>
> >>>> ,G722,PCMU,PCMA,OPUS,SILK]<br>
> >>>> rtp-timer-name [soft]<br>
> >>>> rtp-ip [10.0.20.71]<br>
> >>>> sip-ip [10.0.20.71]<br>
> >>>> hold-music [local_stream://default]<br>
> >>>> apply-nat-acl [nat.auto]<br>
> >>>> aggressive-nat-detection [true]<br>
> >>>> apply-inbound-acl [domains]<br>
> >>>> local-network-acl [localnet.auto]<br>
> >>>> record-path [/usr/local/freeswitch/recordings]<br>
> >>>> record-template<br>
> >>>> [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}<br>
> >>>> /${uuid}.${record_ext}] manage-presence [true]<br>
> >>>> presence-probe-on-register [true]<br>
> >>>> manage-shared-appearance [true]<br>
> >>>> tls [false]<br>
> >>>> tls-only [false]<br>
> >>>> tls-bind-params [transport=tls]<br>
> >>>> tls-sip-port [5061]<br>
> >>>><br>
> >>>> Tried with indbound-late-negotiation=false, also not helps…<br>
> >>>> Can you please, point, what is missing? Thanks<br>
> >>>><br>
> >>>> --<br>
> >>>> Best regards,<br>
> >>>> Igor<br>
> >>><br>
> >>> --<br>
> >>> Best regards,<br>
> >>> Igor<br>
> >><br>
> >> --<br>
> >> Best regards,<br>
> >> Igor<br>
> >><br>
> >> _________________________________________________________________________<br>
> >> Professional FreeSWITCH Consulting Services:<br>
> >> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> >> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
> >><br>
> >> Official FreeSWITCH Sites<br>
> >> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> >> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
> >> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
> >><br>
> >> FreeSWITCH-users mailing list<br>
> >> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> >> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> >> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> ><br>
> > _________________________________________________________________________<br>
> > Professional FreeSWITCH Consulting Services:<br>
> > <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> > <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
> ><br>
> > Official FreeSWITCH Sites<br>
> > <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> > <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
> > <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
> ><br>
> > FreeSWITCH-users mailing list<br>
> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Best regards,<div>Igor</div></div></div>
</div>