[SR-Users] sip trunk with kamailio

David Villasmil david.villasmil.work at gmail.com
Tue May 14 12:38:42 CEST 2019


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 at 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 at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-- 
Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190514/dc8813d4/attachment.html>


More information about the sr-users mailing list