[OpenSIPS-Users] URGENT - Check auth before INVITE
Jeff Pyle
jpyle at fidelityvoice.com
Thu Feb 19 19:29:07 CET 2015
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.txt at 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 at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150219/caf078d1/attachment.htm>
More information about the Users
mailing list