[OpenSIPS-Users] my problems getting dialplan to work

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Jan 18 15:13:04 CET 2010


Hi Wesley,

if you set debug = 4, you will get a all the debug messages from the 
module. It will give you some hints if at least is matching any rule.

But what I found strange is that tat the replt_exp field is empty -> 
that is the part to be returned .

Regards,
Bogdan

Wesley Volcov wrote:
> Hello Bogdan,
>
> I made the exemple you wrote above.
>
> My script:
>  		$var(x) = "sip:061111";
>                 dp_translate("1", "$var(x)/$var(tmp)");
>                 xlog("-------------$var(tmp)\n");
>
> My database:
> mysql> select * from dialplan;
> +----+------+----+----------+------------+-----------+------------+-------------------------------+-------+
> | id | dpid | pr | match_op | match_exp  | match_len | subst_exp  | repl_exp      
> | attrs |
> +----+------+----+----------+------------+-----------+------------+-------------------------------+-------+
> |  1 |    1 |  0 |        1 | (sip:06.+) |         0 | (sip:06.+) |
> wesley at voicetechnology.com.br | 0     | 
> +----+------+----+----------+------------+-----------+------------+-------------------------------+-------+
> 1 row in set (0.00 sec)
>
> My log file:
> Jan 15 15:30:11 localhost opensips[22981]: -------------0 
>
> I have no log of dialplan module. Is there some configuration to active this
> module debug ?
>
> Regards,
>
> Wesley.
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list