[OpenSIPS-Users] string comparison

volga629 volga629 at networklab.ca
Sun Apr 26 13:35:43 EST 2020


Hello Liviu,

I restructured config file to better see what was evaluated and I see in 
debug right now clearly that opensips is not evaluate properly.

Oh I don't see something.

Debug:


https://pastebin.com/GHmbb0Uf

Config


https://pastebin.com/P60Bh9En


volga629


On 4/24/20 7:57 AM, Liviu Chircu wrote:
> On 24.04.2020 13:22, volga629 wrote:
>> if($var(tls-frompbx)==$var(usr_check_tls)) {
>>                 $var(transport) = "tls";
>>                 if(!codec_exists("opus")) {
>>                     $var(codec_flag_frompbx_tls) = "transcode-opus";
>>                 }
>>                 rtpengine_offer("replace-origin 
>> replace-session-connection $var(codec_flag_frompbx_tls) RTP/SAVP 
>> ICE=remove $var(dir)");
>>             }
>
> Please add an "else" to this "if" block exactly as follows, run it and 
> provide the output:
>
>             if($var(tls-frompbx)==$var(usr_check_tls)) {
>                 $var(transport) = "tls";
>                 if(!codec_exists("opus")) {
>                     $var(codec_flag_frompbx_tls) = "transcode-opus";
>                 }
>                 rtpengine_offer("replace-origin 
> replace-session-connection $var(codec_flag_frompbx_tls) RTP/SAVP 
> ICE=remove $var(dir)");
>             } else {
>                 xlog("L_INFO", "DBG: TLS strings differ: 
> '$var(tls-frompbx)'/'$var(usr_check_tls)', 
> '$(var(tls-frompbx){s.len})'/'$(var(usr_check_tls){s.len})', 
> '$(var(tls-frompbx){s.md5})'/'$(var(usr_check_tls){s.md5})'\n");
>             }
>
> Also, what is the output of "opensips -V"?
>
> Best regards,
>
> -- 
> Liviu Chircu
> www.twitter.com/liviuchircu  |www.opensips-solutions.com
>
> OpenSIPS Summit, Amsterdam, Fall 2020
>    www.opensips.org/events
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list