[SR-Users] how to get value of next hop

2023-08-09 Thread Sergey Safarov
I receiving INVITE with two Route header (no to tag). First Route header is my Kamailio host. Second Route header is next hop after Kamailio. I need to get value of next hop. I tried to use "$route_uri" after "loose_route" but his deos works. "$route_uri" always use top Route header. But in the

[SR-Users] Re: Modify To URI in Multiple Choices

2023-08-09 Thread Ali Taher
I used append_to_reply function to rebuild the To header, but the problem is that the old To header stays there even if I use remove_hf method to remove it. What I’m doing wrong here? My logic is set inside a route block. Regards, Sent from my iPhone On Aug 9, 2023, at 2:55 PM, Ali Taher

[SR-Users] Kamailio-asterisk BYE

2023-08-09 Thread Dr . Barabás Péter
Hello, we work on a mobile softphone which connects to asterisk through kamailio. Almost everything is fine except one thing. Asterisk allows only one registration to an AOR. In mobile environment network can change, register/unregister can be called frequently in foreground/background cases.

[SR-Users] Htable question

2023-08-09 Thread Stefan-Cristian Mititelu
Hello, Can one kama process iterate a htable using sht_iterator_start(), sht_iterator_next(), sht_iterator_rm(), sht_iterator_end() while some other kama process call sht_rm(htable, item) ? I've looked into code and to me it looks like slots are locked ok. The entire linked list(specific to a

[SR-Users] Modify To URI in Multiple Choices

2023-08-09 Thread Ali Taher
Hello, I'm using Kamailio as SIP redirect where SBC sends INVITE packet to kamailio and "302","Multiple Choices" is sent back to SBC. What I want is to modify the URI part in the To header of the Multiple Choices packet sent from kamailio. I tried to use

[SR-Users] problem relay re-INVITE

2023-08-09 Thread beer Ll
Hi I have a kamailio 5.7.1 running as TLS gateway for PBXs in private LAN network: UAC-WAN(sip-tls) <--> kamailio-WAN(sip-tls) - kamailio-LAN(sip) <--> PBX-LAN(sip) 80.0.0.1 <--> 80.0.0.2 - 10.0.0.1 <--> 10.0.0.2 All communications tested works well except for re-INVITE like when UAC put

[SR-Users] Re: Unable to get avp value in response

2023-08-09 Thread Henning Westerholt
Hello, You might look into that before, but you've created a transaction for the SIP message? And you also used a named onreply_route that you set with t_on_reply(..)? Cheers, Henning -- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://gilawa.com > -Original