[OpenSIPS-Users] Wrong Contact in location table
Răzvan Crainea
razvan at opensips.org
Thu Oct 26 03:36:08 EDT 2017
Hi, Dragomir!
Again, I really doubt fix_nated_register() is executed , since I am not
seeing the Received: part in the "ul show" output.
Can you post the output of the script_trace() function for that REGISTER
message? You can find here[1] a tutorial on how to use this function.
[1] https://blog.opensips.org/2017/09/20/troubleshooting-opensips-script/
Best regards,
Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com
On 10/24/2017 12:41 AM, Dragomir Haralambiev wrote:
> Hi,
>
> I made setup like this help:
>
> https://blog.opensips.org/2016/12/13/how-to-proxy-sip-registrations/
>
>
> fix_nated_register() is executed.
>
> If you like I can send my full script in privet email.
>
> Best regards,
> Dragomir
>
>
>
>
> 2017-10-23 10:55 GMT+03:00 Răzvan Crainea <razvan at opensips.org
> <mailto:razvan at opensips.org>>:
>
> Hi, Dragomir!
>
> Are you sure the code gets to that save() function? You are also
> using fix_nated_register(), but I don't see any register field in
> the location table either, so I presume you are not hitting that
> code at all.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Developer
> www.opensips-solutions.com <http://www.opensips-solutions.com>
>
> On 10/21/2017 01:40 AM, Dragomir Haralambiev wrote:
>> Hello,
>>
>>
>> I have follow line in my script:
>> if (is_method("REGISTER")) {
>> fix_nated_register();
>> fix_nated_contact();
>> ....
>> save("location","c1", "$fu");
>> }
>> Opensips receive REGISTER with
>>
>> "Contact: <sip:516203 at 192.168.2.203:5060
>> <http://sip:516203@192.168.2.203:5060>>"
>>
>>
>> I try to see location table
>> opensipsctl ul show
>>
>> AOR:: 516203
>> Contact:: sip:516203 at 192.168.2.203:5060
>> <http://sip:516203@192.168.2.203:5060> Q=
>> ContactID:: 926418920300655256
>> Expires:: 270
>> Callid:: 509678716 at 192.168.2.203
>> <mailto:509678716 at 192.168.2.203>
>> Cseq:: 2
>> User-agent:: Yealink SIP-T19P 31.72.0.75
>> State:: CS_SYNC
>> Flags:: 0
>> Cflags:: NAT_BFLAG
>> Socket:: udp:1.2.3.4:5566
>> <http://1.2.3.4:5566>
>> Methods:: 16383
>>
>> Why after save("location") Contact address in location table is
>> not fix?
>> How setup Opensips to write into location table fixed Contact?
>>
>> Best regards,
>> Dragomir
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20171026/03c88830/attachment.html>
More information about the Users
mailing list