Dear friends, I am working on a program on Kamailio and rtpengine proxy. I am wondering whether can I set Kamailio and rtpengine daemon on different physical machines. For example, I set Kamailio on a machine with IP address:10.109.247.80, and launch rtpengine daemon on another machine with interface parameter as 10.109.247.90 and ng port 7723. I set parameter in Kamailio.cfg with modparam(“rtpengine”, “rtpengine_sock”, “udp:10.109.247.90:7723”).
Unfortunately I got debug message like this:
ERROR: rtpengine [rtpengine.c:1710]: send_rtpp_command(): can't send command to a RTP proxy
ERROR: rtpengine [rtpengine.c:1746]: send_rtpp_command(): proxy udp:10.109.247.90:7723 does not respond, disable it
ERROR: rtpengine [rtpengine.c:1616]: rtpp_test(): proxy did not respond to ping
And, I also tried to set Kamailio and rtpengine daemon in a same machine,and use modparam(“rtpengine”, “rtpengine_sock”, “udp:localhost:7723”). And Kamailio can work functionally under this situation. rtpengine daemon can receive ping message from Kamailio and rtpengine daemon can work as suspected. So for the later case, is it supposed that Kamailio be in the same machine with same localhost address? Otherwise, what’s the reason for my ERROR?
------------------------------------ 北京邮电大学网络技术研究院 网络与交换技术国家重点实验室 田军 +86 18810315790 mozillafire@bupt.edu.cn ------------------------------------
Yes, you can certainly run rtpengine on a different host than the Kamailio host.
Is it possible there are firewall rules on the remote rtpengine host that are blocking UDP connections from your Kamailio box to port 7723? That would be my first thought.
-- Alex
Hi Zodiac,
1. Can you see your configured rtp node on: "kamctl fifo nh_show_rtpp all" ? 2. Can you ngrep the commands being sent by kamailio to rtpengine?(on both kamailio and rtpengine machine) 3. Do you have some firewalling rules that may block that 7723 port?
Stefan
On 21.12.2015 17:45, Zodiac wrote:
Dear friends, I am working on a program on Kamailio and rtpengine proxy. I am wondering whether can I set Kamailio and rtpengine daemon on different physical machines. For example, I set Kamailio on a machine with IP address:10.109.247.80, and launch rtpengine daemon on another machine with interface parameter as 10.109.247.90 and ng port 7723. I set parameter in Kamailio.cfg with modparam(“rtpengine”, “rtpengine_sock”, “udp:10.109.247.90:7723”).
Unfortunately I got debug message like this:
ERROR: rtpengine [rtpengine.c:1710]: send_rtpp_command(): can't send command to a RTP proxy
ERROR: rtpengine [rtpengine.c:1746]: send_rtpp_command(): proxy udp:10.109.247.90:7723 does not respond, disable it
ERROR: rtpengine [rtpengine.c:1616]: rtpp_test(): proxy did not respond to ping
And, I also tried to set Kamailio and rtpengine daemon in a same machine,and use modparam(“rtpengine”, “rtpengine_sock”, “udp:localhost:7723”). And Kamailio can work functionally under this situation. rtpengine daemon can receive ping message from Kamailio and rtpengine daemon can work as suspected. So for the later case, is it supposed that Kamailio be in the same machine with same localhost address? Otherwise, what’s the reason for my ERROR?
北京邮电大学网络技术研究院 网络与交换技术国家重点实验室 田军 +86 18810315790 mozillafire@bupt.edu.cn mailto:mozillafire@bupt.edu.cn
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi, I am very glad that you can answer me for that.
I’ve already set modparam("rtpengine", "force_send_interface", “10.109.247.80”) in my kamailio.cfg from the very beginning.
The port 7723 on 10.109.247.90 which rtpengine daemon runs is not blocked by firewall.
There is nothing prompt out on command “kamctl fifo nh_show_rtpp all”
There is nothing captured on "ngerp -W byline -d em1 port 5095” on Kamilio machine.
There is an prompt “404 rtpproxy not found” on command “kamctl fifo nh_enable_rtpp ump:10.109.247.90:7723 1”
What other reasons can there be for my case?
Furthermore, 10.109.247.80(Kamailio) and 10.109.247.90(rtpengine daemon) are both private IP address, not public address. Dose this affect?
This is the kamailio.cfg portion:
This is the rtpengine daemon startup config:
在 2015年12月21日,23:53,smititelu stefan.mititelu@1and1.ro 写道:
Hi Zodiac,
- Can you see your configured rtp node on: "kamctl fifo nh_show_rtpp all" ?
- Can you ngrep the commands being sent by kamailio to rtpengine?(on both kamailio and rtpengine machine)
- Do you have some firewalling rules that may block that 7723 port?
Stefan
On 21.12.2015 17:45, Zodiac wrote:
Dear friends, I am working on a program on Kamailio and rtpengine proxy. I am wondering whether can I set Kamailio and rtpengine daemon on different physical machines. For example, I set Kamailio on a machine with IP address:10.109.247.80, and launch rtpengine daemon on another machine with interface parameter as 10.109.247.90 and ng port 7723. I set parameter in Kamailio.cfg with modparam(“rtpengine”, “rtpengine_sock”, “udp:10.109.247.90:7723”).
Unfortunately I got debug message like this:
ERROR: rtpengine [rtpengine.c:1710]: send_rtpp_command(): can't send command to a RTP proxy
ERROR: rtpengine [rtpengine.c:1746]: send_rtpp_command(): proxy udp:10.109.247.90:7723 does not respond, disable it
ERROR: rtpengine [rtpengine.c:1616]: rtpp_test(): proxy did not respond to ping
And, I also tried to set Kamailio and rtpengine daemon in a same machine,and use modparam(“rtpengine”, “rtpengine_sock”, “udp:localhost:7723”). And Kamailio can work functionally under this situation. rtpengine daemon can receive ping message from Kamailio and rtpengine daemon can work as suspected. So for the later case, is it supposed that Kamailio be in the same machine with same localhost address? Otherwise, what’s the reason for my ERROR?
北京邮电大学网络技术研究院 网络与交换技术国家重点实验室 田军 +86 18810315790 mozillafire@bupt.edu.cn mailto:mozillafire@bupt.edu.cn
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
------------------------------------ 北京邮电大学网络技术研究院 网络与交换技术国家重点实验室 田军 +86 18810315790 mozillafire@bupt.edu.cn ------------------------------------
I solved this problem by changing the 127.0.0.1 in rtpengine startup config into 10.109.247.90 which is the eth0 address of the rtpengine machine.
Now Kamailio successfully connect to the rtpengine daemon.
在 2015年12月22日,17:38,Zodiac mozillafire@bupt.edu.cn 写道:
Hi, I am very glad that you can answer me for that.
I’ve already set modparam("rtpengine", "force_send_interface", “10.109.247.80”) in my kamailio.cfg from the very beginning.
The port 7723 on 10.109.247.90 which rtpengine daemon runs is not blocked by firewall.
There is nothing prompt out on command “kamctl fifo nh_show_rtpp all”
There is nothing captured on "ngerp -W byline -d em1 port 5095” on Kamilio machine.
There is an prompt “404 rtpproxy not found” on command “kamctl fifo nh_enable_rtpp ump:10.109.247.90:7723 1”
What other reasons can there be for my case?
Furthermore, 10.109.247.80(Kamailio) and 10.109.247.90(rtpengine daemon) are both private IP address, not public address. Dose this affect?
This is the kamailio.cfg portion: <PastedGraphic-1.png>
This is the rtpengine daemon startup config: <PastedGraphic-2.png>
在 2015年12月21日,23:53,smititelu <stefan.mititelu@1and1.ro mailto:stefan.mititelu@1and1.ro> 写道:
Hi Zodiac,
- Can you see your configured rtp node on: "kamctl fifo nh_show_rtpp all" ?
- Can you ngrep the commands being sent by kamailio to rtpengine?(on both kamailio and rtpengine machine)
- Do you have some firewalling rules that may block that 7723 port?
Stefan
On 21.12.2015 17:45, Zodiac wrote:
Dear friends, I am working on a program on Kamailio and rtpengine proxy. I am wondering whether can I set Kamailio and rtpengine daemon on different physical machines. For example, I set Kamailio on a machine with IP address:10.109.247.80, and launch rtpengine daemon on another machine with interface parameter as 10.109.247.90 and ng port 7723. I set parameter in Kamailio.cfg with modparam(“rtpengine”, “rtpengine_sock”, “udp:10.109.247.90:7723”).
Unfortunately I got debug message like this:
ERROR: rtpengine [rtpengine.c:1710]: send_rtpp_command(): can't send command to a RTP proxy
ERROR: rtpengine [rtpengine.c:1746]: send_rtpp_command(): proxy udp:10.109.247.90:7723 does not respond, disable it
ERROR: rtpengine [rtpengine.c:1616]: rtpp_test(): proxy did not respond to ping
And, I also tried to set Kamailio and rtpengine daemon in a same machine,and use modparam(“rtpengine”, “rtpengine_sock”, “udp:localhost:7723”). And Kamailio can work functionally under this situation. rtpengine daemon can receive ping message from Kamailio and rtpengine daemon can work as suspected. So for the later case, is it supposed that Kamailio be in the same machine with same localhost address? Otherwise, what’s the reason for my ERROR?
北京邮电大学网络技术研究院 网络与交换技术国家重点实验室 田军 +86 18810315790 mozillafire@bupt.edu.cn mailto:mozillafire@bupt.edu.cn
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
北京邮电大学网络技术研究院 网络与交换技术国家重点实验室 田军 +86 18810315790 mozillafire@bupt.edu.cn mailto:mozillafire@bupt.edu.cn
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
------------------------------------ 北京邮电大学网络技术研究院 网络与交换技术国家重点实验室 田军 +86 18810315790 mozillafire@bupt.edu.cn ------------------------------------
Hi All, I am troubling with rtpengine and kamailio services on cent os core7 os, as these service are not getting started, and when i try to start the services its says. Kamaili error: ERROR: rtpengine [rtpengine.c:2296]: send_rtpp_command(): can't send command "ping" to RTP....1:5066>and
http://sip-router.1086192.n5.nabble.com/file/t7819/rtpengine.jpg http://sip-router.1086192.n5.nabble.com/file/t7819/kamalio_error.jpg
Please refer the attached screen shots for further understanding.
Kindly assist on this how to fix this issue
-- Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html
The answer is actually right there, on your RTPengine startup screenshot (“invalid interface specification”).
And if RTPengine fails to start because of that error, Kamailio cannot ping it, so the Kamailio side of it makes complete sense.
— Sent from mobile, with due apologies for brevity and errors.
On Jan 3, 2020, at 3:53 AM, Ratanraj Singh ratanraj.singh2@gmail.com wrote:
Hi All, I am troubling with rtpengine and kamailio services on cent os core7 os, as these service are not getting started, and when i try to start the services its says. Kamaili error: ERROR: rtpengine [rtpengine.c:2296]: send_rtpp_command(): can't send command "ping" to RTP....1:5066>and
http://sip-router.1086192.n5.nabble.com/file/t7819/rtpengine.jpg http://sip-router.1086192.n5.nabble.com/file/t7819/kamalio_error.jpg
Please refer the attached screen shots for further understanding.
Kindly assist on this how to fix this issue
-- Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Basically check the configuration on both side in terms of how they will “talk”. When you bring up rtp engine make sure it’s listening on the right ip:port/socket and make sure kamailio is configured to connect to that port/socket.
On Fri, 3 Jan 2020 at 13:28, Alex Balashov abalashov@evaristesys.com wrote:
The answer is actually right there, on your RTPengine startup screenshot (“invalid interface specification”).
And if RTPengine fails to start because of that error, Kamailio cannot ping it, so the Kamailio side of it makes complete sense.
— Sent from mobile, with due apologies for brevity and errors.
On Jan 3, 2020, at 3:53 AM, Ratanraj Singh ratanraj.singh2@gmail.com
wrote:
Hi All, I am troubling with rtpengine and kamailio services on cent os core7 os,
as
these service are not getting started, and when i try to start the
services
its says. Kamaili error: ERROR: rtpengine [rtpengine.c:2296]: send_rtpp_command(): can't send command "ping" to RTP....1:5066>and
http://sip-router.1086192.n5.nabble.com/file/t7819/rtpengine.jpg http://sip-router.1086192.n5.nabble.com/file/t7819/kamalio_error.jpg
Please refer the attached screen shots for further understanding.
Kindly assist on this how to fix this issue
-- Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
I’ve already set modparam("rtpengine", "force_send_interface", “10.109.247.80”) in my kamailio.cfg from the very beginning.
Can you try force ping from kamailio machine (.80) to rtpengine machine (.90), on 10.109.247.80 interface? (it should work)
There is nothing prompt out on command “kamctl fifo nh_show_rtpp all”
If there is nothing shown it means that kamailio sees no rtpengine nodes. What kamailio/rtpengine version are you using? (are they both latest upstream?!). The sock line should be fine: modparam("rtpengine", "rtpengine_sock", "udp:10.109.247.90:7723")
Can you increase the log level(debug=3) and send some debug info on what's happening right after you restart kamailio?(for rtpengine module)
There is nothing captured on "ngerp -W byline -d em1 port 5095” on Kamilio machine.
Wehn eventually you see something for the show ctl command, you should try capturing for dst port 7723, on kamailio machine, to see the commands sent to rtpengine.
And, I also tried to set Kamailio and rtpengine daemon in a same machine,and use modparam(“rtpengine”, “rtpengine_sock”, “udp:localhost:7723”). And Kamailio can work functionally under this situation. rtpengine daemon can receive ping message from Kamailio and rtpengine daemon can work as suspected. So for the later case, is it supposed that Kamailio be in the same machine with same localhost address? Otherwise, what’s the reason for my ERROR?
You can try make use of the below parameter:
# Which local interface/IP should be used for the control channel modparam("rtpengine", "force_send_interface", "X.X.X.X")
Thanks, Stefan