I added these lines to my REGISTER section
Code: |
if (nat_uac_test("31")) {
if (method=="REGISTER") {
fix_nated_register();
} else {
fix_nated_contact();
};
|
now it looks like this:
Code: |
if (is_method("REGISTER"))
{
# authenticate the REGISTER requests (uncomment to enable auth)
if (!www_authorize("", "subscriber"))
{
www_challenge("", "0");
exit;
}
if (!save("location"))
sl_reply_error();
exit;
if (nat_uac_test("31")) {
if (method=="REGISTER") {
fix_nated_register();
} else {
fix_nated_contact();
};
};
} |
but still have one way audio, the reason is that for the ext registered
in my house KAMAILIO does not change the private ip for the public one,
however for the ext registered from my office it does it.
also, I saw these messages in the var/log/messages file:
Code: |
Oct 29 22:41:17 sp1094a /usr/local/sbin/kamailio[16180]: ERROR:nathelper:send_rtpp_command: can't send command to a RTP proxy
Oct 29 22:41:17 sp1094a /usr/local/sbin/kamailio[16180]:
ERROR:nathelper:send_rtpp_command: proxy <udp:localhost:8899>
does not respond, disable it
Oct 29 22:41:17 sp1094a /usr/local/sbin/kamailio[16180]: ERROR:nathelper:force_rtp_proxy2_f: no available proxies
Oct 29 22:41:56 sp1094a /usr/local/sbin/kamailio[16185]: ERROR:nathelper:send_rtpp_command: can't send command to a RTP proxy
Oct 29 22:41:56 sp1094a /usr/local/sbin/kamailio[16185]:
ERROR:nathelper:send_rtpp_command: proxy <udp:localhost:8899>
does not respond, disable it
Oct 29 22:41:56 sp1094a /usr/local/sbin/kamailio[16185]: ERROR:nathelper:force_rtp_proxy2_f: no available proxies
Oct 29 22:42:12 sp1094a /usr/local/sbin/kamailio[16180]: ERROR:nathelper:force_rtp_proxy2_f: no available proxies
Oct 29 22:42:38 sp1094a /usr/local/sbin/kamailio[16180]: ERROR:nathelper:send_rtpp_command: can't send command to a RTP proxy
Oct 29 22:42:38 sp1094a /usr/local/sbin/kamailio[16180]:
ERROR:nathelper:send_rtpp_command: proxy <udp:localhost:8899>
does not respond, disable it
Oct 29 22:42:38 sp1094a /usr/local/sbin/kamailio[16180]: ERROR:nathelper:force_rtp_proxy2_f: no available proxies
Oct 29 22:47:22 sp1094a /usr/local/sbin/kamailio[16182]: ERROR:nathelper:send_rtpp_command: can't send command to a RTP proxy
Oct 29 22:47:22 sp1094a /usr/local/sbin/kamailio[16182]:
ERROR:nathelper:send_rtpp_command: proxy <udp:localhost:8899>
does not respond, disable it
Oct 29 22:47:22 sp1094a /usr/local/sbin/kamailio[16182]: ERROR:nathelper:force_rtp_proxy2_f: no available proxies
Oct 29 22:48:29 sp1094a /usr/local/sbin/kamailio[16185]: ERROR:nathelper:send_rtpp_command: can't send command to a RTP proxy
Oct 29 22:48:29 sp1094a /usr/local/sbin/kamailio[16185]:
ERROR:nathelper:send_rtpp_command: proxy <udp:localhost:8899>
does not respond, disable it
Oct 29 22:48:29 sp1094a /usr/local/sbin/kamailio[16185]: ERROR:nathelper:force_rtp_proxy2_f: no available proxies
|
I tried restarting kamailio and rtpproxy but with no luck.
Has anyone been able to config kamailio 1.4 with rtpproxy?
thank you all in advance
Fabian