[SR-Users] SIP proxy changing Contact header of presence server requests

Daniel-Constantin Mierla miconda at gmail.com
Thu Dec 13 12:02:47 CET 2012


Hello,

yes, skipping the nat processing actions for requests coming from 
presence server is good solution.

Cheers,
Daniel

On 12/12/12 9:36 PM, Owen Lynch wrote:
> Hi,
>
> we have 2 separate instances of kamailio running as a SIP proxy and 
> presence server. The proxy uses the nathelper module to correctly 
> change the Contact headers of client requests. However it also does 
> the same for notify requests from the presence server, which results 
> in incorrect RURI from subsequent client subscribes. The NATDETECT 
> route is shown below, I plan to leave the existing nat_uac_test but 
> also explicitly skip the fix_nated...() calls for requests from the 
> presence server. Does this seem reasonable?
>
> # Caller NAT detection route
> route[NATDETECT] {
> #!ifdef WITH_NAT
>         force_rport();
>         if (nat_uac_test("19")) {
>                 if (is_method("REGISTER")) {
>                         fix_nated_register();
>                 } else {
>                         fix_nated_contact();
>                 }
>                 setflag(FLT_NATS);
>         }
> #!endif
>         return;
> }
>
> Thanks,
> Owen Lynch
>
>
> _______________________________________________
> 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://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121213/49c4ef88/attachment.htm>


More information about the sr-users mailing list