[OpenSIPS-Users] Dialplan dp_translate error

Alexander Mustafin mustafin.aleksandr at gmail.com
Tue Nov 19 04:36:08 CET 2013


Thanks, Liviu!

My bad - the rule is wrong. And in the debug I’ve seen error:

Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: DBG:dialplan:build_rule: Compiling ^\d{3,6}\%23\d*$ expression with flag: 0
Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: DBG:dialplan:build_rule: building subst rule
Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: DBG:dialplan:build_rule: references:0 , max:2
Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: ERROR:dialplan:build_rule: repl_exp uses a non existing subexpression
Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: WARNING:dialplan:dp_load_db:  failed to build rule -> skipping
Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: DBG:core:db_free_rows: freeing 3 rows

Previously, dp_reload don’t put anything in debug. And I don’t check log. :))

Best regards,
Alexander Mustafin
mustafin.aleksandr at gmail.com




18 нояб. 2013 г., в 20:47, Liviu Chircu <liviu at opensips.org> написал(а):

> Hello again,
> 
> 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.
> 
> Could you check if the DPID: 3 rules actually appear listed in that very verbose dump?
> 
> Best regards,
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
> On 11/18/2013 01:54 PM, Alexander Mustafin wrote:
>> Hi.
>> 
>> I’m using some translation rules for various purposes.
>> 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:
>> 
>> Nov 18 11:38:28 ops /usr/sbin/opensips[31844]: DBG:dialplan:dp_get_ivalue: searching 4
>> Nov 18 11:38:28 ops /usr/sbin/opensips[31844]: DBG:dialplan:dp_translate_f: dpid is 3
>> Nov 18 11:38:28 ops /usr/sbin/opensips[31844]: DBG:dialplan:dp_get_svalue: searching 19
>> Nov 18 11:38:28 ops /usr/sbin/opensips[31844]: DBG:dialplan:dp_translate_f: input is 1001%2377777777777
>> Nov 18 11:38:28 ops /usr/sbin/opensips[31844]: DBG:dialplan:dp_translate_f: no information available for dpid 3
>> 
>> Rule in database:
>> 3 3 0 1 ^\d{3,6}\%23\d*$ 0 ^\d{3,6}\%23\d*$ \2 0 
>> 
>> I was tried dp_reload and restart server - but unsuccessfully. If I use same rule with dpid=1 - all works fine ((
>> 
>> Best regards,
>> Alexander Mustafin
>> mustafin.aleksandr at gmail.com
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> _______________________________________________
> 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/20131119/69327760/attachment.htm>


More information about the Users mailing list