Thanks for the info Yuri!
I tried several scenarios but without success. My sip proxy has ipv4
and ipv6 address. The other nodes use ipv4. When there is a request
for a ipv6 UAC/customer comming to the proxy the rtpengine/sipwise is
rewriting the sdp with the correct ipv6 address of the proxy. So I am
trying to get the ipv6 address of the proxy from the sdp (which is
always the same ipv6 address) and the port (which is always
different).
I've enabled
modparam("rtpengine", "write_sdp_pv", "$avp(sdp)")
And I have in request section:
rtpengine_manage($avp(rtpproxy_offer_flags));
set_body("$avp(sdp)", "application/sdp");
xlog("L_INFO", "Request SDP $avp(sdp))\n");
And the problem is that I am always getting the ipv4 address and port but
not the rewritten by the proxy ipv6 address and port.
Any idea?
Regards,
Pavel
Thank's david
in my kamailio configuration I am using *listen=udp:192.168.131.69:5060
<http://192.168.131.69:5060/> advertise 221.20.20.12:5060
<http://221.20.20.12:5060/>* (as mentioned by you)
and when the kamailio sends an invite to sip-gateway I am seeing this
sip-gateway ip is *192.168.132.67 * and this gateway don't have any
public-ip assigned ..
Via: *SIP/2.0/UDP 221.20.20.12:5060 <http://221.20.20.12:5060/>;*
branch=z9hG4bKaa6a.14c65f5675077ae7b0df70b02516979b.0
Via: SIP/2.0/UDP 192.168.113.112 :50386;received= 192.168.113.112
;branch=z9hG4bK-d87543-550b984016109617-1--d87543-;rport=50386
I want private ip instead of public ip in the first via
--
Thanks and regards
Vinod.M.N
Hi ,
I have a cloud server, when I make call from a sip phone (registered with
kamailio),
in the INVITE header I am seeing the via header with public IP, is there
any way that I can modify via header to send only the private IP.
Please let me know, is it possible to replace.
[image: image.png]
the via headers that kamailio is sending to sip-gateway is
sip-phone ip:192.168.113.112
Via: SIP/2.0/UDP *221.20.20.12:5060 <http://221.20.20.12:5060>*
;branch=z9hG4bKaa6a.14c65f5675077ae7b0df70b02516979b.0
Via: SIP/2.0/UDP 192.168.113.112 :50386;received= 192.168.113.112
;branch=z9hG4bK-d87543-550b984016109617-1--d87543-;rport=50386
how to modify the first via header to have private-IP instead of public-IP..
I tried all the replace functions but it is not working.
--
Thanks and regards
Vinod.M.N
Greetings,
I have a client that sends me two P-Asserted-Identity headers, one with SIP
URI and one with tel URI.
The pseudo variable $ai returns the topmost P-Asserted-Identity header and
I only need the one with the SIP URI.
How should i proceed ? Is there a way to delete the one with tel URI? the
header removal functions i find only work with header name.
I could also work with something different than $ai for this scenario.
Best Regards,
Hi everyone,
I have asterisk farm and kamailio which located front of asterisks farm as a proxy.
When someone send a invite from outside to my kamailio (without record route), i forward it to my Asterisk farm. Then My one of Asterisk reply it as 200 ok. Then my kamailio forward this 200 ok to remote side with record route. But in my 200 ok message, contact header contains my Asterisk IP address. That is why remote side tries to send ACK to Asterisk.
How to rewrite my contact header as my kamailio (SBC) address ?
Actually I tried fixed nated contact and advertise ip but I couldn't make it worked. I am really new on that. Kamailio cfg file is attached.
Please help!
Egemen
Get Outlook for Android<https://aka.ms/ghei36>
Hello All,
Kamailio newbie here,
I'm trying to set up TLS on Kamailio and having some issues, Kamailio Running on Debian 10.
This what I get when trying to install TLS
apt-get install -y kamailio-tls-modules
The following packages have unmet dependencies:
kamailio-tls-modules : Depends: libcurl3 (>= 7.16.2) but it is not installable
E: Unable to correct problems, you have held broken packages.
Can I install the TLS package with libcurl4? If not, any other workaround?
Thanks, In advance
Himala
Hello,
I'm using Kamailio as sip redirect server where SBC forwards the calls to Kamailio which sends the routing back to SBC in 3xx response.
Now, I need to handle CANCEL requests sent from SBC to Kamailio. Here is the scenario:
the client sends CANCEL request to SBC which responds with 200 OK and 487 Request Terminated and then sends CANCEL request to Kamailio.
I'm not sure how Kamailio should handle the CANCEL request here, should it send only 200 OK back to SBC or also should send 487 request terminated?
Regards,
Ali Taher
Hello,
I need to get the value of first tgrp param in this string :
$var(x) = <sip:xxxxxxxxx;tgrp=0001000;trunk-context=xx.xx.xx.xx@xx.xx.xx.xx:5060;transport=UDP;user=phone;tgrp=237>
I'm trying $var(y) = $(var(x){param.value,tgrp}); but it's getting the last value of tgrp which is "237>".
Noting that first tgrp is not always in the second index , some other parameters can be added to the string.
How to get the value of first occurrence of tgrp param ?
Regards,
Ali Taher