[OpenSIPS-Users] string comparison
Liviu Chircu
liviu at opensips.org
Fri Apr 24 10:57:11 EST 2020
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200424/a05568f5/attachment.html>
More information about the Users
mailing list