[OpenSIPS-Users] Dialplan problem ?

Marcio Veloso Antunes mveloso at tecnologiaip.com.br
Wed Oct 13 22:19:30 CEST 2010


Hi guys,

  Sorry to bother you, but i can't find the problem why this is not working:

Actual dialplan:
root at perseu:/etc/opensips# opensipsctl dialplan show
dialplan tables
 id | dpid | pr | match_op |       match_exp       | match_len |        subst_exp        | repl_exp | attrs 
----+------+----+----------+-----------------------+-----------+-------------------------+----------+-------
 18 |    1 |  0 |        1 | ^00[1-9][0-9]+        |         0 | ^0(0[1-9][0-9]+)        | \1       | 
 19 |    1 |  1 |        1 | ^00[1-9][1-9][0-9]{8} |         0 | ^0(0[1-9][1-9][0-9]{8}) | \1       | 
(2 rows)

String being tested: '002185392949'

Server startup log:
Oct 13 17:05:47 perseu opensips: DBG:core:yyparse: loading module /lib/opensips/modules/dialplan.so 
Oct 13 17:05:47 perseu opensips: DBG:core:set_mod_param_regex: dialplan matches module dialplan 
Oct 13 17:05:47 perseu opensips: DBG:core:set_mod_param_regex: found <attrs_pvar> in module dialplan 
[/lib/opensips/modules/] 
Oct 13 17:05:47 perseu opensips: DBG:core:set_mod_param_regex: dialplan matches module dialplan 
Oct 13 17:05:47 perseu opensips: DBG:core:set_mod_param_regex: found <fetch_rows> in module dialplan 
[/lib/opensips/modules/] 
Oct 13 17:05:47 perseu opensips: DBG:core:set_mod_param_regex: acc|alias_db|avpops|auth_db|carrierroute|closeddial|
dialplan|group|domain|permissions|uri|usrloc matches module closeddial
Oct 13 17:05:47 perseu opensips: DBG:core:find_cmd_export_t: found <dp_translate>(2) in module dialplan 
[/lib/opensips/modules/] 
Oct 13 17:05:47 perseu opensips: DBG:core:find_cmd_export_t: found <dp_translate>(2) in module dialplan 
[/lib/opensips/modules/] 
Oct 13 17:05:47 perseu opensips: DBG:core:find_cmd_export_t: found <dp_translate>(2) in module dialplan 
[/lib/opensips/modules/] 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:core:init_mod: initializing module dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:mod_init: 
db_url=postgres://opensips:PASSWORD@db01/opensips/42/0x82d3290 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:init_data: trying to initialize data from db 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:db_postgres:db_postgres_submit_query: 0x81c0ed4 PQsendQuery(select 
table_version from version where table_name='dialplan') 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:dp_load_db: init 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:db_postgres:db_postgres_submit_query: 0x81c0ed4 PQsendQuery(select 
dpid,pr,match_op,match_exp,match_len,subst_exp,repl_exp,attrs from dialplan  order by pr) 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:build_rule: building subst rule 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:build_rule: references:1 , max:1 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:destroy_rule: destroying rule with priority 0 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:build_rule: building subst rule 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:build_rule: references:1 , max:1 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:destroy_rule: destroying rule with priority 1 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:core:init_mod: register MI for dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:dp_trans_fixup: param_no is 1 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:dp_trans_fixup: param_no is 2 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:dp_trans_fixup: param_no is 1 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:dp_trans_fixup: param_no is 2 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:dp_trans_fixup: param_no is 1 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:dp_trans_fixup: param_no is 2 
Oct 13 17:05:47 perseu /sbin/opensips[13081]: DBG:core:init_mod_child: type=CHILD, rank=3, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13080]: DBG:core:init_mod_child: type=CHILD, rank=2, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13083]: DBG:core:init_mod_child: type=CHILD, rank=5, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13082]: DBG:core:init_mod_child: type=CHILD, rank=4, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13084]: DBG:core:init_mod_child: type=CHILD, rank=6, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13094]: DBG:core:init_mod_child: type=PROC_MODULE, rank=-2, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13085]: DBG:core:init_mod_child: type=CHILD, rank=7, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13086]: DBG:core:init_mod_child: type=CHILD, rank=8, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13102]: DBG:core:init_mod_child: type=PROC_TCP_MAIN, rank=-4, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13088]: DBG:core:init_mod_child: type=CHILD, rank=10, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13089]: DBG:core:init_mod_child: type=CHILD, rank=11, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13087]: DBG:core:init_mod_child: type=CHILD, rank=9, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13092]: DBG:core:init_mod_child: type=PROC_TIMER, rank=-1, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13093]: DBG:core:init_mod_child: type=PROC_TIMER, rank=-1, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13096]: DBG:core:init_mod_child: type=CHILD, rank=13, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13090]: DBG:core:init_mod_child: type=CHILD, rank=12, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:core:init_mod_child: type=PROC_MAIN, rank=0, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13097]: DBG:core:init_mod_child: type=CHILD, rank=14, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13101]: DBG:core:init_mod_child: type=CHILD, rank=18, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13099]: DBG:core:init_mod_child: type=CHILD, rank=16, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13098]: DBG:core:init_mod_child: type=CHILD, rank=15, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13100]: DBG:core:init_mod_child: type=CHILD, rank=17, module=dialplan 
Oct 13 17:05:47 perseu /sbin/opensips[13079]: DBG:core:init_mod_child: type=CHILD, rank=1, module=dialplan 


Dialpan translation failed
Oct 13 17:08:20 perseu /sbin/opensips[13081]: DBG:dialplan:dp_get_ivalue: integer value 
Oct 13 17:08:20 perseu /sbin/opensips[13081]: DBG:dialplan:dp_translate_f: dpid is 1 
Oct 13 17:08:20 perseu /sbin/opensips[13081]: DBG:dialplan:dp_get_svalue: searching 78  
Oct 13 17:08:20 perseu /sbin/opensips[13081]: DBG:dialplan:dp_translate_f: input is 002185392949 
Oct 13 17:08:20 perseu /sbin/opensips[13081]: DBG:dialplan:dp_translate_f: no information available for dpid 1 
Oct 13 17:08:20 perseu /sbin/opensips[13082]: DBG:dialplan:dp_get_ivalue: integer value 
Oct 13 17:08:20 perseu /sbin/opensips[13082]: DBG:dialplan:dp_translate_f: dpid is 1 
Oct 13 17:08:20 perseu /sbin/opensips[13082]: DBG:dialplan:dp_get_svalue: searching 78  
Oct 13 17:08:20 perseu /sbin/opensips[13082]: DBG:dialplan:dp_translate_f: input is 002185392949 
Oct 13 17:08:20 perseu /sbin/opensips[13082]: DBG:dialplan:dp_translate_f: no information available for dpid 1 
Oct 13 17:08:20 perseu /sbin/opensips[13082]: TRACE:[R10] Tradução via dialplan
Oct 13 17:08:20 perseu /sbin/opensips[13082]: DBG:dialplan:dp_get_ivalue: integer value 
Oct 13 17:08:20 perseu /sbin/opensips[13082]: DBG:dialplan:dp_translate_f: dpid is 1 
Oct 13 17:08:20 perseu /sbin/opensips[13082]: DBG:dialplan:dp_get_svalue: searching 15  
Oct 13 17:08:20 perseu /sbin/opensips[13082]: DBG:dialplan:dp_translate_f: input is 002185392949 
Oct 13 17:08:20 perseu /sbin/opensips[13082]: DBG:dialplan:dp_translate_f: no information available for dpid 1
Oct 13 17:08:20 perseu /sbin/opensips[13082]: TRACE:[R10] Tradução Falhou

Thanks in advance,
Marcio

-- 
Marcio Veloso Antunes
Tecnologia IP Ltda
+55.21.3005.3004 ext. 106
+55.11.3588.0802 ext. 106
+55.21.8539.2949 (mobile)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20101013/33e5a4bb/attachment-0001.htm 


More information about the Users mailing list