Caught by other stuff, I didn't have time to analyze it. On my way right now...

Cheers,
Daniel

On 10/06/14 16:22, Muhammad Shahzad wrote:
Any update? Do you need any additional info?

Thank you.




On Fri, Jun 6, 2014 at 11:29 PM, Muhammad Shahzad <shaherya...@gmail.com <mailto:shaherya...@gmail.com>> wrote:

    I have sent you logs to your private email separately, did you get
    them?

    Thank you.




    On Fri, Jun 6, 2014 at 3:48 PM, Muhammad Shahzad
    <shaherya...@gmail.com <mailto:shaherya...@gmail.com>> wrote:

        OK sure. I will provide it tonight.

        Thank you.




        On Fri, Jun 6, 2014 at 2:48 PM, Daniel-Constantin Mierla
        <mico...@gmail.com <mailto:mico...@gmail.com>> wrote:

            In the code I couldn't spot what can be wrong at a quick look.

            Can you send the log messages with debug=3 in kamailio.cfg?

            Cheers,
            Daniel


            On 06/06/14 11:55, Muhammad Shahzad wrote:
            Nope, just WS handshake message,

            INFO: <script>: WS handshake successful for '/' from
            'x.x.x.x:49509' to null.

            No warning or error before this for last 100 lines of logs.

            Thank you.




            On Fri, Jun 6, 2014 at 11:01 AM, Daniel-Constantin Mierla
            <mico...@gmail.com <mailto:mico...@gmail.com>> wrote:

                Hello,

                is there any other error message before the one from
                auth module?

                Cheers,
                Daniel


                On 06/06/14 10:50, Muhammad Shahzad wrote:
                Hi,

                I am trying to authentication MSRP connection using
                the example code of msrp event route in module
                documentation here,

                
http://kamailio.org/docs/modules/4.1.x/modules/msrp.html#idp119248

                --
                ...
                  }else if ($msrp(method)=="AUTH") {
                ...
                        if (!pv_www_authenticate("WEBRTC_SIP_REALM",
                "$var(passwd)", "0", "$msrp(method)"))
                        {
                  if (auth_get_www_authenticate("WEBRTC_SIP_REALM",
                "0", "$var(wauth)"))
                  {
                xlog("L_INFO", "Generated www authenticate header
                for MSRP is [$var(wauth)] \n");
                msrp_reply("401", "Unauthorized", "$var(wauth)");
                  } else {
                msrp_reply("500", "Internal Server Error");
                  };
                  exit;
                };
                ...
                --

                However i see in logs following error message and
                authentication fails,

                --
                ERROR: auth [auth_mod.c:690]:
                pv_www_authenticate2(): failed to get method value
                --

                Which is indicates that value of $msrp(method) is
                null. However, as you can see in example code in URL
                provided above we have an IF condition which
                explicitly checks $msrp(method) == "AUTH".

                For the sake of testing i even replaced the variable
                with actual string value, and still get the same
                error. So i am guessing it is a bug.

                What do you guys suggest?

                Kamailio: v4.1.3 (i386/linux) 236326
                MSRP Lib: Crocodile MSRP - v1.0.0

                Thank you.




                _______________________________________________
                SIP Express Router (SER) and Kamailio (OpenSER) - sr-users 
mailing list
                sr-users@lists.sip-router.org  
<mailto:sr-users@lists.sip-router.org>
                http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- Daniel-Constantin Mierla -http://www.asipto.com
                http://twitter.com/#!/miconda  
<http://twitter.com/#%21/miconda>  -http://www.linkedin.com/in/miconda


                _______________________________________________
                SIP Express Router (SER) and Kamailio (OpenSER) -
                sr-users mailing list
                sr-users@lists.sip-router.org
                <mailto:sr-users@lists.sip-router.org>
                http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



-- Daniel-Constantin Mierla -http://www.asipto.com
            http://twitter.com/#!/miconda  <http://twitter.com/#%21/miconda>  
-http://www.linkedin.com/in/miconda





--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to