[SR-Users] Custom info in Contact header
Igor Olhovskiy
igorolhovskiy at gmail.com
Mon Nov 22 22:29:56 CET 2021
All,
Thanks, yes, Header Parameters are not surviving fix_nated_register(),
but URI - are.
Regards,
Igor
On 21.11.2021 22:38, Sergiu Pojoga wrote:
> Right... as always, the devil's in the details.
>
> Contact:
> <sip:90002 at 192.168.0.26:48579;transport=TLS*;some_id=90002-21080*>
>
> On Sun, Nov 21, 2021 at 3:14 PM Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
> Hello,
>
> you are confusing what are Contact header parameters and Contact
> URI parameters.
>
> If you want to be preserved in location and used later in R-URI,
> you have to give it as Contact URI parameter (like transport), but
> some_id is given as Contact header parameter.
>
> Cheers,
> Daniel
>
> On 21.11.21 20:30, Sergiu Pojoga wrote:
>> I don't think the specifics matter that much, but the general
>> idea of preserving the Contact URI parameter for subsequent
>> messages is reasonable and I've seen it work like that with other
>> non-Kamailio registrars.
>>
>> I wonder if this also happens without fix_nated_register before
>> save().
>>
>> On Sun., Nov. 21, 2021, 1:49 p.m. David Villasmil,
>> <david.villasmil.work at gmail.com
>> <mailto:david.villasmil.work at gmail.com>> wrote:
>>
>> Any specific reason to insert that parameter in the contact
>> as opposed to just adding a custom header?
>>
>> On Sun, 21 Nov 2021 at 17:53, Igor Olhovskiy
>> <igorolhovskiy at gmail.com <mailto:igorolhovskiy at gmail.com>> wrote:
>>
>> Hello!
>>
>> On REGISTER I have a Contact header like
>> Contact:
>> <sip:90002 at 192.168.0.26:48579;transport=TLS>;some_id=90002-21080
>> But on callingfix_nated_register() ->save(), param
>> some_id is lost from info, so, on INVITE to this account,
>> some_id not appears in RURI.
>> Is this a bug or a feature and I do need to find some
>> workaround?
>>
>>
>> --
>> Best regards,
>> Igor
>> __________________________________________________________
>> Kamailio - Users Mailing List - Non Commercial Discussions
>> * sr-users at lists.kamailio.org
>> <mailto:sr-users at lists.kamailio.org>
>> Important: keep the mailing list in the recipients, do
>> not reply only to the sender!
>> Edit mailing list options or unsubscribe:
>> *
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
>>
>> --
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.work at gmail.com
>> <mailto:david.villasmil.work at gmail.com>
>> phone: +34669448337
>> __________________________________________________________
>> Kamailio - Users Mailing List - Non Commercial Discussions
>> * sr-users at lists.kamailio.org
>> <mailto:sr-users at lists.kamailio.org>
>> Important: keep the mailing list in the recipients, do not
>> reply only to the sender!
>> Edit mailing list options or unsubscribe:
>> *
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
>>
>>
>> __________________________________________________________
>> Kamailio - Users Mailing List - Non Commercial Discussions
>> *sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>> Important: keep the mailing list in the recipients, do not reply only to the sender!
>> Edit mailing list options or unsubscribe:
>> *https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
>
> --
> Daniel-Constantin Mierla --www.asipto.com <http://www.asipto.com>
> www.twitter.com/miconda <http://www.twitter.com/miconda> --www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
> Kamailio Advanced Training - Online
> Feb 21-24, 2022 (America Timezone)
> *https://www.asipto.com/sw/kamailio-advanced-training-online/ <https://www.asipto.com/sw/kamailio-advanced-training-online/>
>
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
> * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20211122/76b2cd8d/attachment.htm>
More information about the sr-users
mailing list