In this case, it means the function has to report something more than -1....like: -1 no MF hdr, -2 missing body, -3 missing TO, etc...

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 02/26/2013 03:32 PM, Nick Altmann wrote:
Bogdan,

I'm second time deal with problem when I receive "-1" from script and to understand what is not okay I should compare message with source code. :-) Of course I receive and interpret this codes, but "-1" is not fully informative sometimes. Especially when sdp length is not okay. :-)

--
Nick


2013/2/26 Bogdan-Andrei Iancu <[email protected] <mailto:[email protected]>>

    Hi Nick,

    Such a change may induce a self-spaming effect on your logs :). I
    would rather interpret the return code from script and let the
    script writer the decision if he wants to log that or
    not...(depending on the failed check, maybe if local subscriber or
    not, etc).

    At least these are my 2 cents on the matter :)

    Regards,

    Bogdan-Andrei Iancu
    OpenSIPS Founder and Developer
    http://www.opensips-solutions.com


    On 02/26/2013 01:01 PM, Nick Altmann wrote:
    Hello!

    What about to change DBG messages in sip_msg_validate() to ERR or
    INFO? It will help to understand the reason of reject. Especially
    for -1 return (the message is not RFC3261 compliant).

    --
    Nick


    _______________________________________________
    Users mailing list
    [email protected]  <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to