<div><div dir="auto">No other configuration is needed. Specially if you see the cal going out. </div></div><div dir="auto">Talk to your provider, they may have to whitelist your IP in their firewall. Also check your firewall.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 14 May 2019 at 07:23, arish haque <<a href="mailto:arish.haq@gmail.com">arish.haq@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><div>I am trying the SIP trunk from kamailio with following configurations -</div><div><pre style="color:rgb(0,0,0);white-space:pre-wrap"><pre style="white-space:pre-wrap">cfg_get.pstn.gw_ip="10.0.x.y</pre></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap">route[PSTN] {
#!ifdef WITH_PSTN
        # check if PSTN GW IP is defined
        if (strempty($sel(cfg_get.pstn.gw_ip))) {
                xlog("SCRIPT: PSTN rotuing enabled but pstn.gw_ip not defined\n");
                return;
        }
        if(!($rU=~"^(\+|00)918884978235"))
                return;
        # only local users allowed to call
        if(from_uri!=myself) {
                sl_send_reply("403", "Not Allowed");
                exit;
        }
        $ru = "sip:" + $rU + "@" + $sel(cfg_get.pstn.gw_ip);

        route(RELAY);
        exit;
#!endif

        return;
}</pre><pre style="color:rgb(0,0,0);white-space:pre-wrap">I am able to see kamailio sending INVITE to SIP Provider but no response back. Any other, configuration is required which I'm missing.</pre><pre style="color:rgb(0,0,0);white-space:pre-wrap">I have attached the tcpdump snapshot of the above scenario.</pre><pre style="color:rgb(0,0,0);white-space:pre-wrap">Thanks,<br></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap">Arish</pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><br></pre></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>