Hi, I am trying the SIP trunk from kamailio with following configurations -
cfg_get.pstn.gw_ip="10.0.x.y
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; }
I am able to see kamailio sending INVITE to SIP Provider but no response back. Any other, configuration is required which I'm missing.
I have attached the tcpdump snapshot of the above scenario.
Thanks,
Arish
No other configuration is needed. Specially if you see the cal going out. Talk to your provider, they may have to whitelist your IP in their firewall. Also check your firewall.
On Tue, 14 May 2019 at 07:23, arish haque arish.haq@gmail.com wrote:
Hi, I am trying the SIP trunk from kamailio with following configurations -
cfg_get.pstn.gw_ip="10.0.x.y
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; }
I am able to see kamailio sending INVITE to SIP Provider but no response back. Any other, configuration is required which I'm missing.
I have attached the tcpdump snapshot of the above scenario.
Thanks,
Arish
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users