At kamailio world 2017, Jan Lorenz of Pascom explained how they use kamailio in a semi-stateless manner and encode the asterisk's IP into the contact header on the way out so that it can be decoded and used to route properly on the way back without Record-Routing. I would like to create such a setup.
I'm looking for pointers if there is a particular module/method that would be ideal to to use for this. Any other gotcha's to consider in such a setup. My plan is to keep the transaction on the same kamailio by not altering the VIA but allow the subsequent in-dialog transactions to potentially hit another kamailio by changing the contact to a shared SRV record (and encoding the freeswitch box's IP into it for later retrieval.)
Thanks in advance.
Daniel Greenwald
Hello,
I do not remember exactly what was that presentation about, but maybe topoh module is something that can help you if you need the contact to be hidden.
Cheers, Daniel
On 26.11.19 05:42, Daniel Greenwald wrote:
At kamailio world 2017, Jan Lorenz of Pascom explained how they use kamailio in a semi-stateless manner and encode the asterisk's IP into the contact header on the way out so that it can be decoded and used to route properly on the way back without Record-Routing. I would like to create such a setup.
I'm looking for pointers if there is a particular module/method that would be ideal to to use for this. Any other gotcha's to consider in such a setup. My plan is to keep the transaction on the same kamailio by not altering the VIA but allow the subsequent in-dialog transactions to potentially hit another kamailio by changing the contact to a shared SRV record (and encoding the freeswitch box's IP into it for later retrieval.)
Thanks in advance.
Daniel Greenwald
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Yes I've played with topoh but I need more than hiding, I need to store data (freeswitch's ip) in the contact header.
On Tue, Nov 26, 2019 at 5:01 AM Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
I do not remember exactly what was that presentation about, but maybe topoh module is something that can help you if you need the contact to be hidden.
Cheers, Daniel On 26.11.19 05:42, Daniel Greenwald wrote:
At kamailio world 2017, Jan Lorenz of Pascom explained how they use kamailio in a semi-stateless manner and encode the asterisk's IP into the contact header on the way out so that it can be decoded and used to route properly on the way back without Record-Routing. I would like to create such a setup.
I'm looking for pointers if there is a particular module/method that would be ideal to to use for this. Any other gotcha's to consider in such a setup. My plan is to keep the transaction on the same kamailio by not altering the VIA but allow the subsequent in-dialog transactions to potentially hit another kamailio by changing the contact to a shared SRV record (and encoding the freeswitch box's IP into it for later retrieval.)
Thanks in advance.
Daniel Greenwald
Kamailio (SER) - Users Mailing Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com
On Tue, Nov 26, 2019 at 10:57:57AM -0500, Daniel Greenwald wrote:
Yes I've played with topoh but I need more than hiding, I need to store data (freeswitch's ip) in the contact header.
That can be done with set_contact_alias / handle_ruri_alias from the nathelper module. But I guess you are aware of those, so maybe I just don't understand what you are trying to accomplish and what parts you have control over.
Just a tip for old times. I had problems with a broken provider and I had to put this snipt of code in my script:
xlog ("$shv(log_debug)"," [$ci] Fixing Contact header to sip:$var(contact_user)@IP_PUBLICA:5062.\n"); remove_hf("Contact"); append_hf("Contact: sip:$var(contact_user)@IP_PUBLICA:5062\r\n");
It worked very well for me. The only problem is that you should forge all the Contact from zero.
I hope this can help you.
César Pinto Voice Service Administrator t: +34 91 787 23 00 alhambra-eidos.com
-----Mensaje original----- De: sr-users [mailto:sr-users-bounces@lists.kamailio.org] En nombre de Daniel Tryba Enviado el: martes, 26 de noviembre de 2019 17:40 Para: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Asunto: Re: [SR-Users] Encode host ip in Contact header for semi-stateless setup
On Tue, Nov 26, 2019 at 10:57:57AM -0500, Daniel Greenwald wrote:
Yes I've played with topoh but I need more than hiding, I need to store data (freeswitch's ip) in the contact header.
That can be done with set_contact_alias / handle_ruri_alias from the nathelper module. But I guess you are aware of those, so maybe I just don't understand what you are trying to accomplish and what parts you have control over.
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users