It's neither To for From. It's examined against the Request-URI value which in most cases the same as To.<div><br></div><div>Regards,</div><div>Ali Pey</div><div><br><br><div class="gmail_quote">On Mon, Aug 27, 2012 at 5:46 AM, Engineer voip <span dir="ltr"><<a href="mailto:forvoip4@gmail.com" target="_blank">forvoip4@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">yes i mean "prefix" of dr_rules tables<br><br><span lang="en"><span>** I want to redirect</span> <b><span>emergency calls</span></b> <span>to</span> <span>asterisk</span> <span>but I</span> <span>don't know if</span> <span>the</span> <span>prefix</span> <span>is used</span> <span>to controling "To" or "From" headers.</span><span></span></span><br>
<br>** for example if an user calls the <b>15</b> number then opensips redirect it to my asterisk server declared in dr_gateways table<br><br>thanks<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">2012/8/27 Max Mühlbronner <span dir="ltr"><<a href="mailto:mm@42com.com" target="_blank">mm@42com.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi,<br>
<br>
"pri_prefix" is related to dr_gateways table, it is like a
"tech"prefix used by the carrier/gw. It is not matched, but added
to the request uri when sending out the call to the Gateway. <br>
<br>
Did you mean "prefix" of dr_rules table? These prefixes are used
to match based on the request uri, but not based on from/to
header.<br>
<br>
<br>
<br>
Best Regards<br>
<br>
Max M.<div><div><br>
<br>
On 08/27/2012 11:28 AM, Engineer voip wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div>Hello All,<br>
<br>
someone can tell me if the PRI_PREFIX fields of the dr_rules
table is used to matching the "To" o "From" fields.<br>
<br>
Thank you.<br>
<br>
<fieldset></fieldset>
<br>
</div></div><div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</div></blockquote>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">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><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>