Discussion:
[SR-Users] Handling 407 reply
Yuriy Gorlichenko
2014-08-14 22:24:26 UTC
Permalink
Hello I use UAC module to register trunks to my providers. I've try to call
to my provider. I send INVITE to my porvider and then It recieve me 407
reply "proxy authentication required".
Offcourse I can handle this reply manualy (by adding headers throuch
header_add) and add md5 summ, but I think it`s not write and harder for
Kamailio.
I find module or function at some module that helps me send write INVITE
with auth parameters as a reply ar 407 response of provider.

Thanks for help.
Daniel-Constantin Mierla
2014-08-15 14:19:58 UTC
Permalink
Hello,
Post by Yuriy Gorlichenko
Hello I use UAC module to register trunks to my providers. I've try to
call to my provider. I send INVITE to my porvider and then It recieve
me 407 reply "proxy authentication required".
Offcourse I can handle this reply manualy (by adding headers throuch
header_add) and add md5 summ, but I think it`s not write and harder
for Kamailio.
I find module or function at some module that helps me send write
INVITE with auth parameters as a reply ar 407 response of provider.
look at uac_auth() from same uac module -- read the readme, because
there are limitations regarding the compliance with CSeq requirements in C.

Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
Yuriy Gorlichenko
2014-08-15 18:49:26 UTC
Permalink
Ok. I try to include uac_auth() at my routes ( I include

modparam("uac","credential","username:domain:password")
modparam("uac","auth_realm_avp","$avp(i:10)")
modparam("uac","auth_username_avp","$avp(i:11)")
modparam("uac","auth_password_avp","$avp(i:12)")

).

As I read this function must be at failure_route but my server indicates
response with 401|407 status at onreply_route and never sends to failure
route. How say to Kamailio to indicate response 401|407 as a failure?
Post by Daniel-Constantin Mierla
Hello,
Post by Yuriy Gorlichenko
Hello I use UAC module to register trunks to my providers. I've try to
call to my provider. I send INVITE to my porvider and then It recieve me
407 reply "proxy authentication required".
Offcourse I can handle this reply manualy (by adding headers throuch
header_add) and add md5 summ, but I think it`s not write and harder for
Kamailio.
I find module or function at some module that helps me send write INVITE
with auth parameters as a reply ar 407 response of provider.
look at uac_auth() from same uac module -- read the readme, because there
are limitations regarding the compliance with CSeq requirements in C.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Loading...