[OpenSIPS-Users] need help on dialplan module

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Jan 22 17:55:17 CET 2010


Hi Ha,

The modules user PERL like substitution. A fast google gives some docs 
on this:
    http://www.anaesthetist.com/mnm/perl/Findex.htm#regex.htm

Regards,
Bogdan

ha do wrote:
> Hi all
>
> could you please need me to understand the translation on dialplan module;
> mysql> select * from dialplan;
> +----+------+----+----------+-----------+-----------+------------+----------+-------+
> | id | dpid | pr | match_op | match_exp | match_len | subst_exp  | 
> repl_exp | attrs |
> +----+------+----+----------+-----------+-----------+------------+----------+-------+
> | 73 |   15 |  0 |        1 | ^000      |         0 | ^(0)(.+)   | 
> \2       |       |
> | 78 |   16 |  0 |        1 | 000       |         0 | (000)(.+)  | 
> 8\2      |       |
> | 76 |   14 |  0 |        1 | ^000      |         0 | ^(000)(.+) | 
> 8\2      |       |
> | 75 |   15 |  0 |        1 | ^55       |         0 | ^(55)(.+)  | 
> \2       |       |
> +----+------+----+----------+-----------+-----------+------------+----------+-------+
>
> [root at localhost ~]# opensipsctl fifo dp_translate 14 00055980007
> Output:: 855980007
> [root at localhost ~]# opensipsctl fifo dp_translate 15 0007
> Output:: 007
> [root at localhost ~]# opensipsctl fifo dp_translate 15 55980007
> Output:: 980007
> [root at localhost ~]# opensipsctl fifo dp_translate 16 55980007
> Output:: 87
>
> repl_exp : sometimes has value \2 or \1 - what does it mean?? does it 
> have other value?
> what does the ^ mean??
> is there more special character??
>
> where do i find more docs for translation rule
>
> Thank you
> Ha`
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


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




More information about the Users mailing list