[SR-Users] Topos: contact header is not updated avec RE-INVITE

Sergey Basov sergey.v.basov at gmail.com
Fri Jun 16 06:10:03 CEST 2017


You are welcome.

--
WBR
Sergey Basov

15 июня 2017 г. 10:13 PM пользователь "Abdoul Osséni" <
abdoul.osseni at gmail.com> написал:

> Hello, yes, you were right.
>
> There was something wrong in my routing config.
> See below, I remove the bad config.
>
> Thank you very much
>
> route[WITHINDLG] {
>
> ……
>
> ….
>
>       if (loose_route()) {
>
>                 route(DLGURI);
>
>                 if (is_method("BYE")) {
>
>                         setflag(FLT_ACC); # do accounting ...
>
>                         setflag(FLT_ACCFAILED); # ... even if the
> transaction fails
>
>                 } else if ( is_method("ACK") ) {
>
>                         # ACK is forwarded statelessy
>
>                         route(NATMANAGE);
>
>                 } else if ( is_method("NOTIFY") ) {
>
>                         # Add Record-Route for in-dialog NOTIFY as per RFC
> 6665.
>
>                         record_route();
>
>                 }
>
>                      else if ( is_method("INVITE") ) {
>
>                           # even if in most of the cases is useless, do RR
> for
>
>                   # re-INVITEs alos, as some buggy clients do change route
> set
>
>                   # during the dialog.
>
>                   xlog("Route with in Dialog: loose route $rU -> $fU\n");
>
>                   record_route();
>
>                 }
>
>                 route(RELAY);
>
>                 exit;
>
>         }
>
> ……
>
> ….
>
> }
>
>
> Regards
>
>
> 2017-06-15 16:27 GMT+02:00 Sergey Basov <sergey.v.basov at gmail.com>:
>
>> Do you only change topoh to topos in your config?
>>
>> You can find my dump attached. There is duplicate packets this is issue
>> of my capture architecture..
>>
>> --
>> WBR
>> Sergey Basov
>>
>> 15 июня 2017 г. 5:20 PM пользователь "Sergey Basov" <
>> sergey.v.basov at gmail.com> написал:
>>
>> Its very strange...
>> I have record routes from 1 side and from another side, they are stripped
>> and restored normaly.
>>
>> On reinvite you have incorrect contact restored.
>>
>> I will look at my config.
>>
>> --
>> WBR
>> Sergey Basov
>>
>> 15 июня 2017 г. 5:09 PM пользователь "Abdoul Osséni" <
>> abdoul.osseni at gmail.com> написал:
>>
>> The record route is missing with topos module. Maybe it is that the
>>> problem?
>>> Regards.
>>>
>>> 2017-06-15 16:04 GMT+02:00 Abdoul Osséni <abdoul.osseni at gmail.com>:
>>>
>>>>
>>>> I tried with an another uac (without +sip.instance="<urn:uuid:14d62
>>>> d4f-8426-486b-88ee-077b9ff1fae2>" in contact).  Same issue.
>>>>
>>>> I checked my routing logic in Kamailio. Same configs describe ici :
>>>> http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asteri
>>>> sk-11.3.0-astdb?s[]=asterisk.
>>>>
>>>>
>>>> [image: Images intégrées 1]
>>>>
>>>> Regards
>>>>
>>>> Abdoul.
>>>>
>>>> 2017-06-15 14:34 GMT+02:00 Sergey Basov <sergey.v.basov at gmail.com>:
>>>>
>>>>> I checked in my environment all ok.
>>>>> Can you try without +sip.instance="<urn:uuid:14d62
>>>>> d4f-8426-486b-88ee-077b9ff1fae2>" in contact?
>>>>>
>>>>> --
>>>>> Best regards,
>>>>> Sergey Basov                     e-mail: sergey.v.basov at gmail.com
>>>>>
>>>>> 2017-06-15 12:52 GMT+03:00 Abdoul Osséni <abdoul.osseni at gmail.com>:
>>>>>
>>>>>>
>>>>>> Please find in attachment.
>>>>>>
>>>>>>    - topos module is disabled
>>>>>>    - topoh module is enabled
>>>>>>
>>>>>> I have no issue -- the contact header is updated.
>>>>>>
>>>>>> I have only this issue when topos module is enabled but I will check
>>>>>> again my routing logic in kamailio.
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> 2017-06-15 11:39 GMT+02:00 Sergey Basov <sergey.v.basov at gmail.com>:
>>>>>>
>>>>>>> I think you may have some error in your routing logic in kamailio...
>>>>>>>
>>>>>>> Can you try to disable topos module and try with topoh to see does
>>>>>>> it handles contact modification properly?
>>>>>>>
>>>>>>> --
>>>>>>> Best regards,
>>>>>>> Sergey Basov                     e-mail: sergey.v.basov at gmail.com
>>>>>>>
>>>>>>> 2017-06-15 12:07 GMT+03:00 Abdoul Osséni <abdoul.osseni at gmail.com>:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Please find in attachment the pcap file.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>>
>>>>>>>> Abdoul
>>>>>>>>
>>>>>>>> 2017-06-15 9:43 GMT+02:00 Sergey Basov <sergey.v.basov at gmail.com>:
>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> Can you send dump of the both side of call.
>>>>>>>>> I using this module into production I have a lot of Re-Invites and
>>>>>>>>> does not have this problem.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Best regards,
>>>>>>>>> Sergey Basov                     e-mail: sergey.v.basov at gmail.com
>>>>>>>>>
>>>>>>>>> 2017-06-15 10:18 GMT+03:00 Abdoul Osséni <abdoul.osseni at gmail.com>
>>>>>>>>> :
>>>>>>>>>
>>>>>>>>>> Hello,
>>>>>>>>>>
>>>>>>>>>> I have an issue when loading topos module on Kamailio 5.0.2
>>>>>>>>>> version.
>>>>>>>>>>
>>>>>>>>>> root at proxy:/home/tcpdump# kamailio -V
>>>>>>>>>> version: kamailio 5.0.2 (x86_64/linux)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> The call flow is: uac --> kamailio --> Asterisk
>>>>>>>>>>
>>>>>>>>>> 1) Invite from uac
>>>>>>>>>> 2) Kamailio forward the invite to asterisk
>>>>>>>>>> 3) asterisk send 200 OK to kamailio
>>>>>>>>>> 4) kamailio send 200 OK to uac -> in the conctact header, i can
>>>>>>>>>> see the IP address of kamailio
>>>>>>>>>> 5) uac send ACK to kamailio and kamailio forward the ACK to
>>>>>>>>>> Asterisk
>>>>>>>>>> 6) uac send re-invite: "media change" to kamailio.
>>>>>>>>>> 7) kamailio forward the re-invite to asterisk and asterisk send
>>>>>>>>>> 200 OK to kamailio
>>>>>>>>>> 8) kamailio send 200 ok to uac --> but the contact header
>>>>>>>>>> contains IP of Asterisk and not kamailio: is it normal?
>>>>>>>>>>
>>>>>>>>>> Thank for you help.
>>>>>>>>>>
>>>>>>>>>> Regards
>>>>>>>>>> --
>>>>>>>>>> Abdoul OSSENI
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Kamailio (SER) - Users Mailing List
>>>>>>>>>> sr-users at lists.kamailio.org
>>>>>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Kamailio (SER) - Users Mailing List
>>>>>>>>> sr-users at lists.kamailio.org
>>>>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Abdoul OSSENI
>>>>>> Ingénieur Réseaux et systèmes chez THALES
>>>>>> Co-Fondateur de ON SERVICES
>>>>>> Tél : +33 601 135 167
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Abdoul OSSENI
>>>> Ingénieur Réseaux et systèmes chez THALES
>>>> Co-Fondateur de ON SERVICES
>>>> Tél : +33 601 135 167
>>>>
>>>
>>>
>>>
>>> --
>>> Abdoul OSSENI
>>> Ingénieur Réseaux et systèmes chez THALES
>>> Co-Fondateur de ON SERVICES
>>> Tél : +33 601 135 167
>>>
>>
>>
>
>
> --
> Abdoul OSSENI
> Ingénieur Réseaux et systèmes chez THALES
> Co-Fondateur de ON SERVICES
> Tél : +33 601 135 167
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170616/3f1a62e2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 103298 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170616/3f1a62e2/attachment.png>


More information about the sr-users mailing list