[OpenSIPS-Users] Sending call to Gateway

Jagadish Thoutam jaganthoutam at gmail.com
Thu Apr 4 01:46:19 CEST 2013


Hi All,

i having issue with URI routing , when i am trying with the Voip Provider
IP its Not Going Through, i have IP authentication with Provider

here is the my script

if (is_method("INVITE")) {
setflag(1);

if (uri=~"sip:[0-9]{10,11}@192.168.XX.XX")  # Asterisk server
{
xlog("*********CALL WILL GO HERE VOIP PROVIDER********");
xlog("*****************GOING TO ROUTE @6****************");
route(6);
}

}

route[6] {

rewritehostport("64.XX.XX.XX:5060"); # VOIP Provider IP Address
xlog("*********CALL WILL GO TO VOIP GATEWAY @@@@@@OUT********");
t_relay();
exit;
}


Thanks
Jagan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130403/d1349348/attachment.htm>


More information about the Users mailing list