[OpenSIPS-Users] Configure OpenSIPS to use USER based gateway

sagar malam sagarmalam at gmail.com
Mon Apr 3 04:26:54 EDT 2017


Hello,

I am trying to configure OpenSIPS to support Username-password based
authentication Gateway.

Hence i am using uac_auth function to generated Authorization header before
relaying INVITE packet to gateway.

I am facing issue in removing old Authorization header and append new
Authorization header in Failure route before trying next gateway.

OpenSIPs is not detecting old Authorization headers but when i see sip
trace ,headers are present.


Script flow is something like this :
request_route{
   select_gateway
  relay_route
}
relay_route{
t_relay
}

failure_route{
Remove old Authirization header
 on,407 or 401,Add Authorization header using uac_auth
select_next gateway
relay_route
}

In Users mailing list i read that headers added in request route cannot be
removed later,hence i need to add headers during branch route but uac_auth
function works only in failure route.

Please help me on this.

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170403/cb651f8d/attachment.html>


More information about the Users mailing list