[OpenSIPS-Users] uac_auth beahviour !!!!

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Feb 17 07:34:31 EST 2017


Hi,

There is something fishy there :)

So, you changed the AVP names in the uac_auth modparams and I guess also 
in failure route...using 10,11,12 works, but with realm, uname, passw 
doesn't ??

Regards,

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

On 02/17/2017 11:00 AM, Stefan Carlsson wrote:
>
> Hi !
>
> Just found the problem.
>
> Changed the:
>
> modparam("uac_auth","auth_realm_avp","$avp(realm)")
>
> modparam("uac_auth","auth_username_avp","$avp(uname)")
>
> modparam("uac_auth","auth_password_avp","$avp(passw)")
>
> to:
>
> modparam("uac_auth","auth_realm_avp","$avp(10)")
>
> modparam("uac_auth","auth_username_avp","$avp(11)")
>
> modparam("uac_auth","auth_password_avp","$avp(12)")
>
> eg. the avp names.  Now it works as expected.
>
> Is that hardcoded !!!!
>
> Kind Regards / Vänligen …
>
> Stefan Carlsson
>
> ---------------------------------------------------------------------------
> SVAB Logotype 70mm
>
> Stefan Carlsson
> Systemdesign Tele/Data
> Tele dir. +46 (0)504 697601 Tele off +46 (0)504 697600
> Mob. +46 (0)708 267 213
> stefan.carlsson at vaxeltjanst.se <mailto:stefan.carlsson at vaxeltjanst.se> 
> www.vaxeltjanst.se <http://www.vaxeltjanst.se/>
>
> *From:*Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
> *Sent:* den 17 februari 2017 09:56
> *To:* users at lists.opensips.org; Stefan Carlsson 
> <stefan.carlsson at vaxeltjanst.se>
> *Subject:* Re: [OpenSIPS-Users] uac_auth beahviour !!!!
>
> Hi Stefan,
>
> Please post your exact content of the failure route and all the 
> parameters you set for uac_auth module ?
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
> On 02/16/2017 12:07 PM, Stefan Carlsson wrote:
>
>     Hi !
>
>     I can’t get the proxy auth. work to our sip trunk provider.  See
>     attached log snap.
>
>     Feb 16 10:54:54 siprouter /usr/sbin/opensips[2336]:
>     DBG:uac:uac_auth: picked reply is 0x7f64a2fd37c0, code 407
>
>     Feb 16 10:54:54 siprouter /usr/sbin/opensips[2336]:
>     DBG:core:parse_authenticate_body: <realm>="sip-corp1.se" state=2
>
>     Feb 16 10:54:54 siprouter /usr/sbin/opensips[2336]:
>     DBG:core:parse_authenticate_body:
>     <nonce>="WKV4Glildu6ed43MaV2CRk15poD2iuekTGl3NoA=" state=3
>
>     Feb 16 10:54:54 siprouter /usr/sbin/opensips[2336]:
>     DBG:uac:uac_auth: no credential for realm "sip-corp1.se"
>
>     Feb 16 10:54:54 siprouter /usr/sbin/opensips[2336]:
>     DBG:tm:update_cloned_msg_from_msg: new_uri must be copied old=39,
>     new=39
>
>     What does the “no credential for realm”  mean if the realm string
>     stored in is exactly the same.
>
>     And what does the modparam have for meaning:
>
>     modparam("uac_auth","credential","username:domain:password")
>
>     if I did the below:
>
>     modparam("uac_auth","auth_realm_avp","$avp(realm)")
>
>     modparam("uac_auth","auth_username_avp","$avp(uname)")
>
>     modparam("uac_auth","auth_password_avp","$avp(passw)")
>
>     code snap …..
>
>     in my error reply route:
>
>             $avp(realm) = "sip-corp1.se";
>
>             $avp(username) = "secret";
>
>             $avp(passw) = "J3bX_SUTg";
>
>     uac_auth();
>
>     t_relay();
>
>     Kind Regards / Vänligen …
>
>     Stefan Carlsson
>
>
>
>
>     _______________________________________________
>
>     Users mailing list
>
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170217/fc225a49/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 3208 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20170217/fc225a49/attachment-0001.jpe>


More information about the Users mailing list