<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1251"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Thanks, Liviu!<div><br></div><div>My bad - the rule is wrong. And in the debug I’ve seen error:</div><div><br></div><div><div>Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: DBG:dialplan:build_rule: Compiling ^\d{3,6}\%23\d*$ expression with flag: 0</div><div>Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: DBG:dialplan:build_rule: building subst rule</div><div>Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: DBG:dialplan:build_rule: references:0 , max:2</div><div>Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: ERROR:dialplan:build_rule: repl_exp uses a non existing subexpression</div><div>Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: WARNING:dialplan:dp_load_db: failed to build rule -> skipping</div><div>Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: DBG:core:db_free_rows: freeing 3 rows</div></div><div><br></div><div>Previously, dp_reload don’t put anything in debug. And I don’t check log. :))</div><div><br></div><div><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Best regards,</div><div>Alexander Mustafin</div><div><a href="mailto:mustafin.aleksandr@gmail.com">mustafin.aleksandr@gmail.com</a></div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>18 íîÿá. 2013 ã., â 20:47, Liviu Chircu <<a href="mailto:liviu@opensips.org">liviu@opensips.org</a>> íàïèñàë(à):</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<div bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello again,<br>
<br>
On second thoughts, I can tell you're running a post 1.9 version
of OpenSIPS. Now in debug mode you should see all the rules being
dumped in the logs with every "reload" operation, either at
startup or through MI.<br>
<br>
Could you check if the DPID: 3 rules actually appear listed in
that very verbose dump?<br>
<br>
Best regards,<br>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a></pre>
On 11/18/2013 01:54 PM, Alexander Mustafin wrote:<br>
</div>
<blockquote cite="mid:3C3240CB-A0AE-416D-AA89-097E9DF9A836@gmail.com" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hi.
<div><br>
</div>
<div>I’m using some translation rules for various purposes.</div>
<div>I’ve got dial plan rule with dpid=3, but when I try to do
dp_translate(«3»…) - I see next message in the log:</div>
<div><br>
</div>
<div>
<div>Nov 18 11:38:28 ops /usr/sbin/opensips[31844]:
DBG:dialplan:dp_get_ivalue: searching 4</div>
<div>Nov 18 11:38:28 ops /usr/sbin/opensips[31844]:
DBG:dialplan:dp_translate_f: dpid is 3</div>
<div>Nov 18 11:38:28 ops /usr/sbin/opensips[31844]:
DBG:dialplan:dp_get_svalue: searching 19</div>
<div>Nov 18 11:38:28 ops /usr/sbin/opensips[31844]:
DBG:dialplan:dp_translate_f: input is 1001%2377777777777</div>
<div>Nov 18 11:38:28 ops /usr/sbin/opensips[31844]:
DBG:dialplan:dp_translate_f: no information available for dpid
3</div>
</div>
<div><br>
</div>
<div>Rule in database:</div>
<div>3<span class="Apple-tab-span" style="white-space:pre"> </span>3<span class="Apple-tab-span" style="white-space:pre"> </span>0<span class="Apple-tab-span" style="white-space:pre"> </span>1<span class="Apple-tab-span" style="white-space:pre"> </span>^\d{3,6}\%23\d*$<span class="Apple-tab-span" style="white-space:pre"> </span>0<span class="Apple-tab-span" style="white-space:pre"> </span>^\d{3,6}\%23\d*$<span class="Apple-tab-span" style="white-space:pre"> </span>\2<span class="Apple-tab-span" style="white-space:pre"> </span>0<span class="Apple-tab-span" style="white-space:pre"> </span></div>
<div>
<div apple-content-edited="true">
<div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div><br>
</div>
<div>I was tried dp_reload and restart server - but
unsuccessfully. If I use same rule with dpid=1 - all works
fine ((</div>
<div><br>
</div>
<div>Be<span style="text-align: -webkit-auto;">st regards,</span></div>
<div>Alexander Mustafin</div>
<div><a moz-do-not-send="true" href="mailto:mustafin.aleksandr@gmail.com">mustafin.aleksandr@gmail.com</a></div>
<div><br>
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></blockquote></div><br></div></body></html>