[SR-Users] uac module configuration

Daniel-Constantin Mierla miconda at gmail.com
Mon Feb 15 09:57:03 CET 2016


Hello,

can you set the debug=4 and then also use debugger module with cfg trace
enabled (see the readme of the debugger module), then run a test, look
at syslog messages to see what happens. Log emssages should be in
/var/log/syslog or /var/log/messages.

Cheers,
Daniel

On 12/02/16 10:20, Andrew Tan wrote:
> Hello,
>
> Submit a ticket in GitHub apologize about that I should have sent my
> question here. 
> I would like some help in configuring the uac module to route to an
> gateway without specifically setting the URI-domain from the UAC. I
> would like to set change it in the Kamailio side.
>
> Currently I use uac_auth on failure route. All is working if I set the
> URI from on the client to xxx at gatewayaddress.com
> <mailto:xxx at gatewayaddress.com>. But if I just dial just the number as
> is which translate to xxx at kamailioserver.com
> <mailto:xxx at kamailioserver.com> the invite doesnt go anywhere. 
>
>
> My failure route is like so
>
> failure_route[MANAGE_FAILURE] {
>
>    xlog("DEBUG: MANAGE FAILURE ROUTE: ");
>
>    if ($T_reply_code == "407")  # there's also 401
>     {
>
>         $avp(arealm) = GATEWAY;
>         $avp(auser) = USERNAME;
>         $avp(apass) = PASSWORD;
>      
>
>         #$ru = "sip:" + $rU + "@" + $sel(cfg_get.pstn.gw_ip) + ":" +
> $sel(cfg_get.pstn.gw_port);
>         #rewritehost("sip.ca.didlogic.net <http://sip.ca.didlogic.net>");
>
>         uac_auth();
>         
>         rtpengine_offer("force trust-address replace-origin
> replace-session-connection ICE=remove RTP/AVP");
>         route(NATMANAGE);
>         route(RELAY);
>         exit;
>     }
> }
>
> Thank you
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160215/22bbaf0b/attachment.html>


More information about the sr-users mailing list