[SR-Users] PSTN call

michel freiha michofr at gmail.com
Mon Oct 25 15:49:24 CEST 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20101025/eeae5259/attachment.htm>


More information about the sr-users mailing list