[OpenSIPS-Devel] mf_process_maxfwd_header is possibly broken in latest master

Maxim Sobolev sobomax at sippysoft.com
Tue Apr 16 13:22:03 EDT 2019


Hi,

I noticed that our voiptests suite fails in the last few days with
opensips/master. The culprit seems to be mf_process_maxfwd_header(), looks
like some semantics has changed:

Error code seen:

Apr 16 13:59:27 [22582] INFO:textops:mod_init: initializing...
Apr 16 13:59:27 [22582] ERROR:core:fix_cmd: Param [1] expected to be an
integer or variable
Apr 16 13:59:27 [22582] ERROR:core:fix_actions: Failed to fix command
<mf_process_maxfwd_header>
Apr 16 13:59:27 [22582] ERROR:core:fix_actions: fixing failed (code=-6) at
opensips.cfg:24
Apr 16 13:59:27 [22582] CRITICAL:core:fix_expr: fix_actions error
Apr 16 13:59:27 [22582] ERROR:core:main: failed to fix configuration with
err code -6
Apr 16 13:59:27 [22582] INFO:core:cleanup: cleanup
Apr 16 13:59:27 [22582] NOTICE:core:main: Exiting....

Configuration file in question:

    20 route {
    21     xlog("OpenSIPS received a request $rm from $si\n");
    22     ## initial sanity checks -- messages with
    23     ## max_forwards==0, or excessively long requests
    24     if (!mf_process_maxfwd_header("10")) {
    25         sl_send_reply("483","Too Many Hops");
    26         exit;
    27     };

Full log can be seen here:

https://travis-ci.org/sippy/voiptests/jobs/520516533

Thanks and sorry if it's a false positive.

-Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20190416/cc13745a/attachment-0001.html>


More information about the Devel mailing list