<div dir="ltr">Satish,<div><br></div><div>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.</div><div><br></div><div><br></div><div>- Jeff</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 19, 2015 at 12:08 PM, Satish Patel <span dir="ltr"><<a href="mailto:satish.txt@gmail.com" target="_blank">satish.txt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am using opensips 1.11 but i have seen wired issue, How i can check auth before process INVITE packet? <div><br></div><div>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?</div><div><br></div><div><div># To FreeSWITCH</div><div> if (is_method("INVITE")) {</div><div> if ( uri=~"^sip:[1-9][0-9]{10,15}@.*") {</div><div> xlog("call with X-customer: $Au ===> Freeswitch\n");</div><div> append_hf("X-customer: $Au\r\n");</div><div> append_hf("X-SRIPP: $si:$sp\r\n");</div><div> route("to_dispatcher");</div><div> exit;</div><div> };</div><div> }</div></div><div><br></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>