Hi Looking for advise if anyone could point out where im going wrong. My setup is Kamailio Ver 5.6.0 running in azure , rtpengine Version: git-master-dc395d5, behind kamailio I have asterisk ver 18.12.1
Kamailio conf I have interface set as below listen=udp:10.3.1.6:5060 advertise WANIP:5060
and rtpengine.conf set as below interface = eth0/10.3.1.5
but when I can make a call I don't get any audio, rtpengine.log extract below shows that rtp is going to the private IP rather that the Public IP of the phone that initiated the call, do I need to set rtpengine_manage() to fix this?
Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Confirmed peer address as 10.3.1.5:12890 Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Kernelizing media stream: 10.3.1.5:12890 -> 10.3.1.6:30278 | 10.3.1.6:30298 -> 192.168.0.123:40042 Oct 7 09:39:00 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30279]: [core] Confirmed peer address as 10.3.1.5:12891
Kind regards
gerry
Gerry Kernan | Technical Director
Mobile: +353(0)86-170 9790
[Graphical user interface, website Description automatically generated]https://www.infinityit.ie/ [A picture containing text, clipart Description automatically generated,Icon Description automatically generated]
Hello,
you might need to set the advertised address for rtpengine as well: https://github.com/sipwise/rtpengine/blob/master/etc/rtpengine.conf
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Gerry Kernan Sent: Friday, October 7, 2022 10:49 AM To: sr-users@lists.kamailio.org Subject: [SR-Users] kamailio & rtpengine question
Hi Looking for advise if anyone could point out where im going wrong. My setup is Kamailio Ver 5.6.0 running in azure , rtpengine Version: git-master-dc395d5, behind kamailio I have asterisk ver 18.12.1
Kamailio conf I have interface set as below listen=udp:10.3.1.6:5060 advertise WANIP:5060
and rtpengine.conf set as below interface = eth0/10.3.1.5
but when I can make a call I don’t get any audio, rtpengine.log extract below shows that rtp is going to the private IP rather that the Public IP of the phone that initiated the call, do I need to set rtpengine_manage() to fix this?
Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Confirmed peer address as 10.3.1.5:12890 Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Kernelizing media stream: 10.3.1.5:12890 -> 10.3.1.6:30278 | 10.3.1.6:30298 -> 192.168.0.123:40042 Oct 7 09:39:00 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30279]: [core] Confirmed peer address as 10.3.1.5:12891
Kind regards
gerry
Gerry Kernan | Technical Director
Mobile: +353(0)86-170 9790
[Graphical user interface, website Description automatically generated]https://www.infinityit.ie/ [A picture containing text, clipart Description automatically generated,Icon Description automatically generated]
Ive tried setting below in rtpengine.conf , but i get the same behaviour interface=10.3.1.6!XX.XX.XX.XX
Best Regards
Gerry
From: Henning Westerholt hw@gilawa.com Sent: Saturday 8 October 2022 08:32 To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: Gerry Kernan gerry@infinityit.ie Subject: RE: [SR-Users] kamailio & rtpengine question
Hello, you might need to set the advertised address for rtpengine as well: https://github.com/sipwise/rtpengine/blob/mas%CD%8F%E2%80%8B%E2%80%8B%EF%BB%... [Caution: External Email]https://summary.uk.defend.egress.com/v3/summary?ref=email&crId=634127871b54efae5dd47538 [Caution: First Time Sender]https://summary.uk.defend.egress.com/v3/summary?ref=email&crId=634127871b54efae5dd47538
Hello,
you might need to set the advertised address for rtpengine as well: https://github.com/sipwise/rtpengine/blob/master/etc/rtpengine.conf
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of Gerry Kernan Sent: Friday, October 7, 2022 10:49 AM To: sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Subject: [SR-Users] kamailio & rtpengine question
Hi Looking for advise if anyone could point out where im going wrong. My setup is Kamailio Ver 5.6.0 running in azure , rtpengine Version: git-master-dc395d5, behind kamailio I have asterisk ver 18.12.1
Kamailio conf I have interface set as below listen=udp:10.3.1.6:5060 advertise WANIP:5060
and rtpengine.conf set as below interface = eth0/10.3.1.5
but when I can make a call I don’t get any audio, rtpengine.log extract below shows that rtp is going to the private IP rather that the Public IP of the phone that initiated the call, do I need to set rtpengine_manage() to fix this?
Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Confirmed peer address as 10.3.1.5:12890 Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Kernelizing media stream: 10.3.1.5:12890 -> 10.3.1.6:30278 | 10.3.1.6:30298 -> 192.168.0.123:40042 Oct 7 09:39:00 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30279]: [core] Confirmed peer address as 10.3.1.5:12891
Kind regards
gerry
Gerry Kernan | Technical Director
Mobile: +353(0)86-170 9790
[Graphical user interface, website Description automatically generated]https://www.infinityit.ie/ [A picture containing text, clipart Description automatically generated,Icon Description automatically generated]
Hi Im using rtpengine_offer as below rtpengine_offer("trust-address replace-origin replace-session-connection ICE=remove") is there another flag I need to set to change c=in to the WAN alias?
rtpeengine.conf interface as set as below ### for different advertised address: interface = 10.3.1.6!20.82.X.X
But the SDP send to client c=IN contains the private IP of the kamailio server
v=0 o=root 321199167 321199167 IN IP4 10.3.1.5 s=Asterisk PBX 18.12.1 c=IN IP4 10.3.1.6 t=0 0 m=audio 32080 RTP/AVP 0 8 103 a=maxptime:150 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:103 telephone-event/8000 a=fmtp:103 0-16 a=sendrecv a=rtcp:32081 a=ptime:20 m=video 0 RTP/AVP 34
Best Regards
Gerry
From: Gerry Kernan Sent: Saturday 8 October 2022 11:21 To: Henning Westerholt hw@gilawa.com; Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: RE: [SR-Users] kamailio & rtpengine question
Ive tried setting below in rtpengine.conf , but i get the same behaviour interface=10.3.1.6!XX.XX.XX.XX
Best Regards
Gerry
From: Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com> Sent: Saturday 8 October 2022 08:32 To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Cc: Gerry Kernan <gerry@infinityit.iemailto:gerry@infinityit.ie> Subject: RE: [SR-Users] kamailio & rtpengine question
Hello, you might need to set the advertised address for rtpengine as well: https://github.com/sipwise/rtpengine/blob/mas%CD%8F%E2%80%8B%E2%80%8B%EF%BB%... [Caution: External Email]https://summary.uk.defend.egress.com/v3/summary?ref=email&crId=634127871b54efae5dd47538 [Caution: First Time Sender]https://summary.uk.defend.egress.com/v3/summary?ref=email&crId=634127871b54efae5dd47538
Hello,
you might need to set the advertised address for rtpengine as well: https://github.com/sipwise/rtpengine/blob/master/etc/rtpengine.conf
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of Gerry Kernan Sent: Friday, October 7, 2022 10:49 AM To: sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Subject: [SR-Users] kamailio & rtpengine question
Hi Looking for advise if anyone could point out where im going wrong. My setup is Kamailio Ver 5.6.0 running in azure , rtpengine Version: git-master-dc395d5, behind kamailio I have asterisk ver 18.12.1
Kamailio conf I have interface set as below listen=udp:10.3.1.6:5060 advertise WANIP:5060
and rtpengine.conf set as below interface = eth0/10.3.1.5
but when I can make a call I don’t get any audio, rtpengine.log extract below shows that rtp is going to the private IP rather that the Public IP of the phone that initiated the call, do I need to set rtpengine_manage() to fix this?
Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Confirmed peer address as 10.3.1.5:12890 Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Kernelizing media stream: 10.3.1.5:12890 -> 10.3.1.6:30278 | 10.3.1.6:30298 -> 192.168.0.123:40042 Oct 7 09:39:00 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30279]: [core] Confirmed peer address as 10.3.1.5:12891
Kind regards
gerry
Gerry Kernan | Technical Director
Mobile: +353(0)86-170 9790
[Graphical user interface, website Description automatically generated]https://www.infinityit.ie/ [A picture containing text, clipart Description automatically generated,Icon Description automatically generated]
Hello,
from the module readme:
„trust-address - flags that IP address in SDP should be trusted. Starting with rtpengine 3.8, this is the default behaviour. In older versions, without this flag the RTP proxy ignores the address in the SDP and uses source address of the SIP message as media address which is passed to the RTP proxy”
You probably want to change this to SIP-source-address. Refer e.g. to the kamailio default cfg.
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Gerry Kernan Sent: Monday, October 10, 2022 2:58 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] kamailio & rtpengine question
Hi Im using rtpengine_offer as below rtpengine_offer("trust-address replace-origin replace-session-connection ICE=remove") is there another flag I need to set to change c=in to the WAN alias?
rtpeengine.conf interface as set as below ### for different advertised address: interface = 10.3.1.6!20.82.X.X
But the SDP send to client c=IN contains the private IP of the kamailio server
v=0 o=root 321199167 321199167 IN IP4 10.3.1.5 s=Asterisk PBX 18.12.1 c=IN IP4 10.3.1.6 t=0 0 m=audio 32080 RTP/AVP 0 8 103 a=maxptime:150 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:103 telephone-event/8000 a=fmtp:103 0-16 a=sendrecv a=rtcp:32081 a=ptime:20 m=video 0 RTP/AVP 34
Best Regards
Gerry
From: Gerry Kernan Sent: Saturday 8 October 2022 11:21 To: Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Subject: RE: [SR-Users] kamailio & rtpengine question
Ive tried setting below in rtpengine.conf , but i get the same behaviour interface=10.3.1.6!XX.XX.XX.XX
Best Regards
Gerry
From: Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com> Sent: Saturday 8 October 2022 08:32 To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Cc: Gerry Kernan <gerry@infinityit.iemailto:gerry@infinityit.ie> Subject: RE: [SR-Users] kamailio & rtpengine question
Hello,
you might need to set the advertised address for rtpengine as well: https://github.com/sipwise/rtpengine/blob/master/etc/rtpengine.conf
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of Gerry Kernan Sent: Friday, October 7, 2022 10:49 AM To: sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Subject: [SR-Users] kamailio & rtpengine question
Hi Looking for advise if anyone could point out where im going wrong. My setup is Kamailio Ver 5.6.0 running in azure , rtpengine Version: git-master-dc395d5, behind kamailio I have asterisk ver 18.12.1
Kamailio conf I have interface set as below listen=udp:10.3.1.6:5060 advertise WANIP:5060
and rtpengine.conf set as below interface = eth0/10.3.1.5
but when I can make a call I don’t get any audio, rtpengine.log extract below shows that rtp is going to the private IP rather that the Public IP of the phone that initiated the call, do I need to set rtpengine_manage() to fix this?
Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Confirmed peer address as 10.3.1.5:12890 Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Kernelizing media stream: 10.3.1.5:12890 -> 10.3.1.6:30278 | 10.3.1.6:30298 -> 192.168.0.123:40042 Oct 7 09:39:00 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30279]: [core] Confirmed peer address as 10.3.1.5:12891
Kind regards
gerry
Gerry Kernan | Technical Director
Mobile: +353(0)86-170 9790
[Graphical user interface, website Description automatically generated]https://www.infinityit.ie/ [A picture containing text, clipart Description automatically generated,Icon Description automatically generated]
Hi Henning
Issue could be that I’m trying to do something that’s not possible . We have an asterisk server behind kamailio . kamailio and asterisk are on the same subnet 10.3.1.0/24 . kamailo/rtpeengine are configured to advertise its WAN IP . would this mess up SIP/RTP from kamailio to the asterisk server.
Best Regards
Gerry
From: Henning Westerholt hw@gilawa.com Sent: Tuesday 11 October 2022 07:28 To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: Gerry Kernan gerry@infinityit.ie Subject: RE: [SR-Users] kamailio & rtpengine question
Hello, from the module readme: „trust-address- flags that IP address in SDP should be trusted. Starting with rtpengine 3͏͏ [Caution: External Email]https://summary.uk.defend.egress.com/v3/summary?ref=email&crId=63450ce5b676acf415c65b2b
Hello,
from the module readme:
„trust-address - flags that IP address in SDP should be trusted. Starting with rtpengine 3.8, this is the default behaviour. In older versions, without this flag the RTP proxy ignores the address in the SDP and uses source address of the SIP message as media address which is passed to the RTP proxy”
You probably want to change this to SIP-source-address. Refer e.g. to the kamailio default cfg.
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of Gerry Kernan Sent: Monday, October 10, 2022 2:58 PM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] kamailio & rtpengine question
Hi Im using rtpengine_offer as below rtpengine_offer("trust-address replace-origin replace-session-connection ICE=remove") is there another flag I need to set to change c=in to the WAN alias?
rtpeengine.conf interface as set as below ### for different advertised address: interface = 10.3.1.6!20.82.X.X
But the SDP send to client c=IN contains the private IP of the kamailio server
v=0 o=root 321199167 321199167 IN IP4 10.3.1.5 s=Asterisk PBX 18.12.1 c=IN IP4 10.3.1.6 t=0 0 m=audio 32080 RTP/AVP 0 8 103 a=maxptime:150 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:103 telephone-event/8000 a=fmtp:103 0-16 a=sendrecv a=rtcp:32081 a=ptime:20 m=video 0 RTP/AVP 34
Best Regards
Gerry
From: Gerry Kernan Sent: Saturday 8 October 2022 11:21 To: Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Subject: RE: [SR-Users] kamailio & rtpengine question
Ive tried setting below in rtpengine.conf , but i get the same behaviour interface=10.3.1.6!XX.XX.XX.XX
Best Regards
Gerry
From: Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com> Sent: Saturday 8 October 2022 08:32 To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Cc: Gerry Kernan <gerry@infinityit.iemailto:gerry@infinityit.ie> Subject: RE: [SR-Users] kamailio & rtpengine question
Hello,
you might need to set the advertised address for rtpengine as well: https://github.com/sipwise/rtpengine/blob/master/etc/rtpengine.conf
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of Gerry Kernan Sent: Friday, October 7, 2022 10:49 AM To: sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Subject: [SR-Users] kamailio & rtpengine question
Hi Looking for advise if anyone could point out where im going wrong. My setup is Kamailio Ver 5.6.0 running in azure , rtpengine Version: git-master-dc395d5, behind kamailio I have asterisk ver 18.12.1
Kamailio conf I have interface set as below listen=udp:10.3.1.6:5060 advertise WANIP:5060
and rtpengine.conf set as below interface = eth0/10.3.1.5
but when I can make a call I don’t get any audio, rtpengine.log extract below shows that rtp is going to the private IP rather that the Public IP of the phone that initiated the call, do I need to set rtpengine_manage() to fix this?
Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Confirmed peer address as 10.3.1.5:12890 Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Kernelizing media stream: 10.3.1.5:12890 -> 10.3.1.6:30278 | 10.3.1.6:30298 -> 192.168.0.123:40042 Oct 7 09:39:00 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30279]: [core] Confirmed peer address as 10.3.1.5:12891
Kind regards
gerry
Gerry Kernan | Technical Director
Mobile: +353(0)86-170 9790
[Graphical user interface, website Description automatically generated]https://www.infinityit.ie/ [A picture containing text, clipart Description automatically generated,Icon Description automatically generated]
Hello,
there is no inherent problem regarding SDP handling when Kamailio, rtpengine and e.g., Asterisk are on the same subnet. We are running it in some setup on an single machine.
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: Gerry Kernan gerry@infinityit.ie Sent: Friday, October 14, 2022 1:23 PM To: Henning Westerholt hw@gilawa.com; Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: RE: [SR-Users] kamailio & rtpengine question
Hi Henning
Issue could be that I’m trying to do something that’s not possible . We have an asterisk server behind kamailio . kamailio and asterisk are on the same subnet 10.3.1.0/24 . kamailo/rtpeengine are configured to advertise its WAN IP . would this mess up SIP/RTP from kamailio to the asterisk server.
Best Regards
Gerry
From: Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com> Sent: Tuesday 11 October 2022 07:28 To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Cc: Gerry Kernan <gerry@infinityit.iemailto:gerry@infinityit.ie> Subject: RE: [SR-Users] kamailio & rtpengine question
Hello,
from the module readme:
„trust-address - flags that IP address in SDP should be trusted. Starting with rtpengine 3.8, this is the default behaviour. In older versions, without this flag the RTP proxy ignores the address in the SDP and uses source address of the SIP message as media address which is passed to the RTP proxy”
You probably want to change this to SIP-source-address. Refer e.g. to the kamailio default cfg.
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of Gerry Kernan Sent: Monday, October 10, 2022 2:58 PM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] kamailio & rtpengine question
Hi Im using rtpengine_offer as below rtpengine_offer("trust-address replace-origin replace-session-connection ICE=remove") is there another flag I need to set to change c=in to the WAN alias?
rtpeengine.conf interface as set as below ### for different advertised address: interface = 10.3.1.6!20.82.X.X
But the SDP send to client c=IN contains the private IP of the kamailio server
v=0 o=root 321199167 321199167 IN IP4 10.3.1.5 s=Asterisk PBX 18.12.1 c=IN IP4 10.3.1.6 t=0 0 m=audio 32080 RTP/AVP 0 8 103 a=maxptime:150 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:103 telephone-event/8000 a=fmtp:103 0-16 a=sendrecv a=rtcp:32081 a=ptime:20 m=video 0 RTP/AVP 34
Best Regards
Gerry
From: Gerry Kernan Sent: Saturday 8 October 2022 11:21 To: Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Subject: RE: [SR-Users] kamailio & rtpengine question
Ive tried setting below in rtpengine.conf , but i get the same behaviour interface=10.3.1.6!XX.XX.XX.XX
Best Regards
Gerry
From: Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com> Sent: Saturday 8 October 2022 08:32 To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Cc: Gerry Kernan <gerry@infinityit.iemailto:gerry@infinityit.ie> Subject: RE: [SR-Users] kamailio & rtpengine question
Hello,
you might need to set the advertised address for rtpengine as well: https://github.com/sipwise/rtpengine/blob/master/etc/rtpengine.conf
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of Gerry Kernan Sent: Friday, October 7, 2022 10:49 AM To: sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Subject: [SR-Users] kamailio & rtpengine question
Hi Looking for advise if anyone could point out where im going wrong. My setup is Kamailio Ver 5.6.0 running in azure , rtpengine Version: git-master-dc395d5, behind kamailio I have asterisk ver 18.12.1
Kamailio conf I have interface set as below listen=udp:10.3.1.6:5060 advertise WANIP:5060
and rtpengine.conf set as below interface = eth0/10.3.1.5
but when I can make a call I don’t get any audio, rtpengine.log extract below shows that rtp is going to the private IP rather that the Public IP of the phone that initiated the call, do I need to set rtpengine_manage() to fix this?
Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Confirmed peer address as 10.3.1.5:12890 Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Kernelizing media stream: 10.3.1.5:12890 -> 10.3.1.6:30278 | 10.3.1.6:30298 -> 192.168.0.123:40042 Oct 7 09:39:00 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30279]: [core] Confirmed peer address as 10.3.1.5:12891
Kind regards
gerry
Gerry Kernan | Technical Director
Mobile: +353(0)86-170 9790
[Graphical user interface, website Description automatically generated]https://www.infinityit.ie/ [A picture containing text, clipart Description automatically generated,Icon Description automatically generated]
On 14/10/2022 07.22, [EXT] Gerry Kernan wrote:
Hi Henning
Issue could be that I’m trying to do something that’s not possible .
We have an asterisk server behind kamailio . kamailio and asterisk are on the same subnet 10.3.1.0/24 . kamailo/rtpeengine are configured to advertise its WAN IP . would this mess up SIP/RTP from kamailio to the asterisk server.
Yes.
To make this work, you either need a WAN/NAT setup that is able to reflect traffic back into the internal network, or (much better) configure rtpengine with two network interfaces, one with and one without the advertised address, and then tell rtpengine as part of the signalling coming from Kamailio which direction the message is flowing. Use two `direction=` options in the offer with the respective interface names, and then SDPs going to Asterisk will have the internal address, and SDPs going outside will have the WAN address.
Cheers
On 10/10/2022 08.58, [EXT] Gerry Kernan wrote:
Hi
Im using rtpengine_offer as below
rtpengine_offer("trust-address replace-origin replace-session-connection ICE=remove")
is there another flag I need to set to change c=in to the WAN alias?
rtpeengine.conf
interface as set as below
### for different advertised address:
interface = 10.3.1.6!20.82.X.X
...
c=IN IP4 10.3.1.6
t=0 0
m=audio 32080 RTP/AVP 0 8 103...
If you have an advertised address configured in rtpengine.conf with the `!` notation, then this address should be in the outgoing SDP. Double check that this configuration is actually active and that rtpengine is actually being engaged for the call.
Cheers