[SR-Users] Incorrect Contact address

Olle E. Johansson oej at edvina.net
Wed Mar 5 19:34:54 CET 2014


On 05 Mar 2014, at 18:30, Marc Soda <msoda at coredial.com> wrote:

> I have Kamailio setup as a proxy in front of a backend server (Asterisk).  When I make a call through the proxy, the Contact header in the 200 OK that is returned to the client has the IP of the backend server in it.  Thus, the client is sending it's ACK directly to the backend server.
> 
> Is there a special method to rewrite the Contact header to be Kamailio's IP?
Check record_route() in the default configuration script. You need to add a route set by using record_route() in the initial transaction.

Cheers,
/O
> 
> Where is a good place in the config to do this?  (my config is loosely based on this:  http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb)
> 
> Thanks!
> Marc
> 
> _______________________________________________
> 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

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


More information about the sr-users mailing list