[OpenSIPS-Users] Dialplan module not working
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Tue Oct 13 16:07:03 CEST 2009
Hi Nehru,
the rule matching regexp (match_exp ) expects to receive a string
starting with "67", but you pass a string with "sip:" in front.
Regards,
Bogdan
Indiver wrote:
> HI Everyone,
>
> I want to implement the dialplan module. But i was confused little bit in
> the configuration part. my database table of dialplan module is
>
> +----+------+----+----------+-----------+-----------+-----------+------------------+-------+
> | id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp
> | attrs |
> +----+------+----+----------+-----------+-----------+-----------+------------------+-------+
> | 1 | 1 | 1 | 1 | (^67.+) | 0 | (^67.+) | [hidden
> email] | |
> +----+------+----+----------+-----------+-----------+-----------+------------------+-------+
>
> and my opensips.cfg configuration is:
>
> modparam("dialplan", "db_url",
> "mysql://opensips:opensipsrw@localhost/opensips")
>
> route[14]
> {
> $var(x) = "sip:678";
> dp_translate("1", "$var(x)/$var(tmp)");
> xlog("-------------$var(tmp)\n");
> }.
>
> My actual intention is when the client dials the number 678... a prefix 1
> should add to that numbers. Is the above configuration correct for my
> architecture?.
>
> Thanks,
> Nehru.
>
More information about the Users
mailing list