[OpenSIPS-Users] Dialplan module is not connecting to Database

Richard Robson rrobson at greenlightcrm.com
Tue Mar 22 13:28:15 CET 2016


Hi,

I'm trying to use the dialplan module, but every time I get a "400 Wrong
db connection para"

the connection is the same for all other modules, which are working fine
and I can connect via opensipsCP, mysql and phpmyadmin.

I'm using version 2.1

Mar 22 12:22:13 gl-sip-01 opensips: ERROR:dialplan:mi_translate: Unable
to get connection
Mar 22 12:22:13 gl-sip-01 opensips: DBG:mi_datagram:mi_datagram_server:
command process (dp_translate)succeded
Mar 22 12:22:13 gl-sip-01 opensips: DBG:mi_datagram:mi_datagram_server:
the response: 400 Wrong db connection para#012 has been sent in 29 octets

Dialplan table:

+----+------+------+----------+------------------+-------------+-----------+----------+---------+----------+-------+
| id | dpid | pr   | match_op | match_exp        | match_flags |
subst_exp | repl_exp | timerec | disabled | attrs |
+----+------+------+----------+------------------+-------------+-----------+----------+---------+----------+-------+
|  1 |   10 |    1 |        1 | "^0[1-9][0-9]+$" |           0 |
"^0(.*)$" | "44\0"   |         |        0 |       |
+----+------+------+----------+------------------+-------------+-----------+----------+---------+----------+-------+


#### Dialplan ####
loadmodule "dialplan.so"
modparam("dialplan", "db_url",
        "mysql://root:opensips@127.0.0.1:3306/opensips")

I also tried with the same results:
modparam("dialplan", "partition", "   default : table_name = dialplan ;
db_url = mysql://root:opensips@127.0.0.1:3306/opensips")

does anyone know why this is happening for this module only

Regards,

-- 
Richard Robson
Greenlight Support
01382 843843
support at greenlightcrm.com




More information about the Users mailing list