[OpenSIPS-Users] Wrong Contact in location table

Răzvan Crainea razvan at opensips.org
Fri Nov 3 05:45:45 EDT 2017


Unfortunately I just realised that you cannot change the Contact header 
for this scenario.
And to be honest I don't really understand why you are trying to change 
it - if you need the real IP and port, you can take them from the 
received field.

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/02/2017 11:43 PM, Dragomir Haralambiev wrote:
> Hi,
>
> Here is part of my script:
> ....
> modparam("registrar", "mcontact_avp", "$avp(register)")
> .....
>
>     if (t_check_status("2[0-9][0-9]"))  {
> $log_level = 5;
> script_trace( 1, "$rm from $si, ruri=$ru, ct=$ct.fields(uri) 
> avp(register)=$avp(register)", "me");
> route(save_location);
>                        .......
>     }
>
> You can see log here:
> https://pastebin.com/WWQ9Mmh4
>
> Here is the replacement contact:
>
> DBG:registrar:build_contact: created Contact HF: Contact: 
> <sip:55595009 at 192.168.22.138:5062 
> <http://sip:55595009@192.168.22.138:5062>>;expires=360
> DBG:registrar:save: replacing contact uri 
> [sip:55595009 at 188.23.232.10:1043 
> <http://sip:55595009@188.23.232.10:1043>] with 
> [sip:55595009 at 192.168.22.138:5062 
> <http://sip:55595009@192.168.22.138:5062>]
>
> How to stop replacing contact from 188.23.232.10:1043 
> <http://188.23.232.10:1043> to 192.168.22.138:5062 
> <http://192.168.22.138:5062> ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20171103/667e9fc6/attachment.html>


More information about the Users mailing list