[SR-Users] sip trunk with kamailio
arish haque
arish.haq at gmail.com
Mon May 13 12:48:01 CEST 2019
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190513/de517e17/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio-pstn.png
Type: image/png
Size: 160537 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190513/de517e17/attachment.png>
More information about the sr-users
mailing list