Dear All,
Can someone help me to connect my kamilio in order to make a PSTN call by
rewriting host tp PSTN gateway? I changed my config in a manner to do
that...The line is ringing but as soon as I open the line on other side the
call will hangup...Please find the piece of code
# RTPProxy control
route[RTPPROXY] {
#!ifdef WITH_NAT
if (is_method("BYE")) {
unforce_rtp_proxy();
} else if (is_method("INVITE")){
rewritehost("XX.XX.XX.XX");
force_rtp_proxy();
}
if (!has_totag()) add_rr_param(";nat=yes");
#!endif
return;
}
Regards