Satish, There are many documented examples of how/when to authorize calls in OpenSIPS. Take a look at the pstn.cfg file included in the examples directory of the source. You'll see the proxy_authorize() function around line 96. That, with some module and database configuration, will get on the right path.
- Jeff On Thu, Feb 19, 2015 at 12:08 PM, Satish Patel <satish....@gmail.com> wrote: > I am using opensips 1.11 but i have seen wired issue, How i can check auth > before process INVITE packet? > > I have following code, I have seen if i send only INVITE packet using SIPP > it is processing that call, I want it check AUTH before processing INVITE > packet how can we do that? > > # To FreeSWITCH > if (is_method("INVITE")) { > if ( uri=~"^sip:[1-9][0-9]{10,15}@.*") { > xlog("call with X-customer: $Au ===> Freeswitch\n"); > append_hf("X-customer: $Au\r\n"); > append_hf("X-SRIPP: $si:$sp\r\n"); > route("to_dispatcher"); > exit; > }; > } > > > _______________________________________________ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users