Hello everyone! Please help...
I've started testing openser 1.2.1 few weeks ago (on freebsd 6.2, I've got it from freebsd port collection) and I simple can not make LCR work at all. I spent last few hours reading almost all the posts on this mailing list and I can see it is working but I can not figure it out why mine configuration is not...
For simple start - I want all calls where destination number starts with 9 to be routed to PSTN GW.
So I made these entries in LCR tables:
[root@santos /var/log]# openserctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 10 | 9 | % | 1 | 1 | +----+--------+----------+--------+----------+ lcr gateway groups +--------+----------+ | grp_id | grp_name | +--------+----------+ | 1 | comutel | +--------+----------+ lcr gateways +---------+---------------+------+------------+-----------+--------+-------+--------+ | gw_name | ip_addr | port | uri_scheme | transport | grp_id | strip | prefix | +---------+---------------+------+------------+-----------+--------+-------+--------+ | c2811 | 192.168.253.1 | 5060 | 1 | 1 | 1 | 0 | | +---------+---------------+------+------------+-----------+--------+-------+--------+
For openser.cfg itself I've started with sip:wizard configuration template (SIP Proxy/Registrar with Offnet-Termination and Accounting) then I made some necessary changes (I do not have Mediaproxy or RTPproxy and added domain and populated trusted table).
But when I dial 93016576 I always have this error message in xlog output:
Jul 19 18:50:24 santos /usr/local/sbin/openser[1412]: No PSTN gateways available - M=INVITE RURI=sip:93016576@192.168.253.205:5060 F=sip:lvs1@192.168.253.205:5060 T=sip:93016576@192.168.253.205:5060 IP=192.168.253.202 ID=676c7a05-4bcd2745@192.168.253.202
Here is part of openser.cfg where next_gw() fails:
route[10] { if(isflagset(20)) {
xlog("L_INFO", "Call to foreign domain - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); route(6); exit; }
route(12); if(!isflagset(23)) { # don't allow calls relaying from PSTN to PSTN, if not explicitely forwarded if(uri =~ "^sip:[0-9]+@") { # only route numeric users to PSTN if(!load_gws()) {
xlog("L_ERR", "Error loading PSTN gateways - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); sl_send_reply("503", "PSTN Termination Currently Unavailable"); exit; } if(!next_gw()) {
xlog("L_ERR", "No PSTN gateways available - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); sl_send_reply("503", "PSTN Termination Currently Unavailable"); exit; } setflag(21);
t_on_failure("1"); route(6); } }
xlog("L_INFO", "Call to unknown user - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); route(3); sl_send_reply("404", "User Not Found"); exit; }
I believe that I've made some errors in LCR routes entries, but documentation is really sparse on this issue...
Please note - I've tried replacing "%" with empty string in from_uri column in routes table but then openser was not able to startup:
[root@santos /var/log]# openserctl lcr rmroute 9 % 1 1 MySql password for user 'openser@localhost': 200 OK
[root@santos /var/log]# openserctl lcr addroute 9 '' 1 1 MySql password for user 'openser@localhost': 200 OK
[root@santos /var/log]# openserctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 11 | 9 | | 1 | 1 | +----+--------+----------+--------+----------+ lcr gateway groups +--------+----------+ | grp_id | grp_name | +--------+----------+ | 1 | comutel | +--------+----------+ lcr gateways +---------+---------------+------+------------+-----------+--------+-------+--------+ | gw_name | ip_addr | port | uri_scheme | transport | grp_id | strip | prefix | +---------+---------------+------+------------+-----------+--------+-------+--------+ | c2811 | 192.168.253.1 | 5060 | 1 | 1 | 1 | 0 | | +---------+---------------+------+------------+-----------+--------+-------+--------+
[root@santos /var/log]# openserctl restart
Stopping OpenSER : \E[37;33mINFO: stopped
Starting OpenSER : \E[37;31mERROR: PID file /var/run/openser.pid does not exist -- OpenSER start failed
And here is relevant part from openser log output:
Jul 21 21:30:26 santos /usr/local/sbin/openser[10216]: ERROR:lcr:load_regex: bad from_uri re Jul 21 21:30:26 santos /usr/local/sbin/openser[10216]: ERROR: lcr:mod_init(): failed to reload gateways and routes Jul 21 21:30:26 santos /usr/local/sbin/openser[10216]: init_mod(): Error while initializing module lcr
Please can someone help and point me in the right direction?
BR, Miodrag
Hi Miodrag.
May be you could try using and specific prefix for the Regular Expression defining the User Part in From Uri:
From the example you have pasted, you could use:
lvs[0-9]
Try that.
Another thing you can try to improve your debugging is to start up your mysql with log enabled; use mysqld_safe --log at start up, and check the log files located at your data dir at calling time.
As a tip, remember you do not need to restart Openser after performing changes on LCR tables; you just need to execute openserctl fifo lcr_reload command.
Kind regards.
Sergio Gutiérrez EPM Telecomunicaciones S.A. Medellín, Colombia
On 7/21/07, Miodrag Radulovic mradulovic@comutel.co.yu wrote:
Hello everyone! Please help...
I've started testing openser 1.2.1 few weeks ago (on freebsd 6.2, I've got it from freebsd port collection) and I simple can not make LCR work at all. I spent last few hours reading almost all the posts on this mailing list and I can see it is working but I can not figure it out why mine configuration is not...
For simple start - I want all calls where destination number starts with 9 to be routed to PSTN GW.
So I made these entries in LCR tables:
[root@santos /var/log]# openserctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 10 | 9 | % | 1 | 1 | +----+--------+----------+--------+----------+ lcr gateway groups +--------+----------+ | grp_id | grp_name | +--------+----------+ | 1 | comutel | +--------+----------+ lcr gateways
+---------+---------------+------+------------+-----------+--------+-------+--------+ | gw_name | ip_addr | port | uri_scheme | transport | grp_id | strip | prefix |
+---------+---------------+------+------------+-----------+--------+-------+--------+ | c2811 | 192.168.253.1 | 5060 | 1 | 1 | 1 | 0 | |
+---------+---------------+------+------------+-----------+--------+-------+--------+
For openser.cfg itself I've started with sip:wizard configuration template (SIP Proxy/Registrar with Offnet-Termination and Accounting) then I made some necessary changes (I do not have Mediaproxy or RTPproxy and added domain and populated trusted table).
But when I dial 93016576 I always have this error message in xlog output:
Jul 19 18:50:24 santos /usr/local/sbin/openser[1412]: No PSTN gateways available - M=INVITE RURI=sip:93016576@192.168.253.205:5060 F= sip:lvs1@192.168.253.205:5060 T=sip:93016576@192.168.253.205:5060 IP= 192.168.253.202 ID=676c7a05-4bcd2745@192.168.253.202
Here is part of openser.cfg where next_gw() fails:
route[10] { if(isflagset(20)) {
xlog("L_INFO", "Call to foreign domain - M=$rm RURI=$ru
F=$fu T=$tu IP=$si ID=$ci\n"); route(6); exit; }
route(12); if(!isflagset(23)) { # don't allow calls relaying from PSTN to PSTN, if not
explicitely forwarded if(uri =~ "^sip:[0-9]+@") { # only route numeric users to PSTN if(!load_gws()) {
xlog("L_ERR", "Error loading PSTN gateways
- M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); sl_send_reply("503", "PSTN Termination
Currently Unavailable"); exit; } if(!next_gw()) {
xlog("L_ERR", "No PSTN gateways available -
M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); sl_send_reply("503", "PSTN Termination Currently Unavailable"); exit; } setflag(21);
t_on_failure("1"); route(6); } } xlog("L_INFO", "Call to unknown user - M=$rm RURI=$ru F=$fu T=$tu
IP=$si ID=$ci\n"); route(3); sl_send_reply("404", "User Not Found"); exit; }
I believe that I've made some errors in LCR routes entries, but documentation is really sparse on this issue...
Please note - I've tried replacing "%" with empty string in from_uri column in routes table but then openser was not able to startup:
[root@santos /var/log]# openserctl lcr rmroute 9 % 1 1 MySql password for user 'openser@localhost': 200 OK
[root@santos /var/log]# openserctl lcr addroute 9 '' 1 1 MySql password for user 'openser@localhost': 200 OK
[root@santos /var/log]# openserctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 11 | 9 | | 1 | 1 | +----+--------+----------+--------+----------+ lcr gateway groups +--------+----------+ | grp_id | grp_name | +--------+----------+ | 1 | comutel | +--------+----------+ lcr gateways
+---------+---------------+------+------------+-----------+--------+-------+--------+ | gw_name | ip_addr | port | uri_scheme | transport | grp_id | strip | prefix |
+---------+---------------+------+------------+-----------+--------+-------+--------+ | c2811 | 192.168.253.1 | 5060 | 1 | 1 | 1 | 0 | |
+---------+---------------+------+------------+-----------+--------+-------+--------+
[root@santos /var/log]# openserctl restart
Stopping OpenSER : \E[37;33mINFO: stopped
Starting OpenSER : \E[37;31mERROR: PID file /var/run/openser.pid does not exist -- OpenSER start failed
And here is relevant part from openser log output:
Jul 21 21:30:26 santos /usr/local/sbin/openser[10216]: ERROR:lcr:load_regex: bad from_uri re Jul 21 21:30:26 santos /usr/local/sbin/openser[10216]: ERROR: lcr:mod_init(): failed to reload gateways and routes Jul 21 21:30:26 santos /usr/local/sbin/openser[10216]: init_mod(): Error while initializing module lcr
Please can someone help and point me in the right direction?
BR, Miodrag
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
YES - it works! Thanks a million Sergio, you saved my day!
So, there is a problem with wildcard syntax in from_uri column.... but running mysqld_safe did not revealed any bad sql query:
/usr/local/libexec/mysqld, Version: 5.0.41-log (FreeBSD port: mysql-server-5.0.41). started with: Tcp port: 0 Unix socket: (null) Time Id Command Argument 070722 0:14:40 1 Connect openser@localhost on openser 1 Query select @@version_comment limit 1 1 Query delete from lcr where prefix='9' AND from_uri='lvs[0-9]' AND grp_id=1 AND priority=1 1 Quit 070722 0:14:54 2 Connect openser@localhost on openser 2 Query select @@version_comment limit 1 2 Query insert into lcr (prefix, from_uri, grp_id, priority) VALUES ('9', '', 1, 1) 2 Quit 070722 0:15:00 3 Connect openserro@localhost on openser 3 Query select @@version_comment limit 1 3 Query select * FROM lcr ORDER BY prefix 3 Quit 4 Connect openserro@localhost on openser 4 Query select @@version_comment limit 1 4 Query select * FROM gw_grp ORDER BY grp_id 4 Quit 5 Connect openserro@localhost on openser 5 Query select @@version_comment limit 1 5 Query select gw_name, ip_addr,port, uri_scheme, transport,grp_id, strip, prefix FROM gw ORDER BY grp_id 5 Quit 070722 0:15:20 6 Connect openser@localhost on openser 6 Query select table_version from version where table_name='domain' 6 Query select domain from domain 6 Quit 7 Connect openser@localhost on openser 7 Query select table_version from version where table_name='subscriber' 7 Quit 8 Connect openser@localhost on openser 8 Query select table_version from version where table_name='trusted' 8 Query select src_ip,proto,from_pattern,tag from trusted 8 Quit 9 Connect openser@localhost on openser 9 Query select table_version from version where table_name='address' 9 Query select grp,ip_addr,mask,port from address 9 Quit 10 Connect openser@localhost on openser 10 Query select table_version from version where table_name='gw' 10 Quit 11 Connect openser@localhost on openser 11 Query select table_version from version where table_name='lcr' 11 Quit 12 Connect openser@localhost on openser 12 Query select ip_addr,port,uri_scheme,transport,strip,prefix,grp_id from gw 12 Query select prefix,from_uri,grp_id,priority from lcr 12 Quit
And then openser stops its startup with following errors in openser log:
Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: new_connection: Opening MySQL connection: mysql://openser:openserrw@localhost/openser Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: new_connection: Connection type is Localhost via UNIX socket Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: new_connection: Protocol version is 10 Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: new_connection: Server version is 5.0.41-log Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: pool_remove: Removing connection from the pool Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: ERROR:lcr:load_regex: bad from_uri re Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: ERROR: lcr:mod_init(): failed to reload gateways and routes Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: init_mod(): Error while initializing module lcr Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: INFO:mi_fifo:mi_destroy: process hasn't been created -> nothing to kill Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: XLOG: destroy module ... Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: tm_shutdown : start Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: unlink_timer_lists : emptying DELETE list Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: tm_shutdown : emptying hash table Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: tm_shutdown : releasing timers Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: tm_shutdown : removing semaphores Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: tm_shutdown : destroying tmcb lists Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: tm_shutdown : done Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: shm_mem_destroy Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: destroying the shared memory lock
I'm running openser-1.2.1 with mysql-server-5.0.41 on freebsd 6.2P5.
Miodrag
Can you post your configuration and current table contents now that it is working? I had some trouble with this also!
Thanks!
-Jonathan
Miodrag Radulovic wrote:
YES - it works! Thanks a million Sergio, you saved my day!
So, there is a problem with wildcard syntax in from_uri column.... but running mysqld_safe did not revealed any bad sql query:
/usr/local/libexec/mysqld, Version: 5.0.41-log (FreeBSD port: mysql-server-5.0.41). started with: Tcp port: 0 Unix socket: (null) Time Id Command Argument 070722 0:14:40 1 Connect openser@localhost on openser 1 Query select @@version_comment limit 1 1 Query delete from lcr where prefix='9' AND from_uri='lvs[0-9]' AND grp_id=1 AND priority=1 1 Quit 070722 0:14:54 2 Connect openser@localhost on openser 2 Query select @@version_comment limit 1 2 Query insert into lcr (prefix, from_uri, grp_id, priority) VALUES ('9', '', 1, 1) 2 Quit 070722 0:15:00 3 Connect openserro@localhost on openser 3 Query select @@version_comment limit 1 3 Query select * FROM lcr ORDER BY prefix 3 Quit 4 Connect openserro@localhost on openser 4 Query select @@version_comment limit 1 4 Query select * FROM gw_grp ORDER BY grp_id 4 Quit 5 Connect openserro@localhost on openser 5 Query select @@version_comment limit 1 5 Query select gw_name, ip_addr,port, uri_scheme, transport,grp_id, strip, prefix FROM gw ORDER BY grp_id 5 Quit 070722 0:15:20 6 Connect openser@localhost on openser 6 Query select table_version from version where table_name='domain' 6 Query select domain from domain 6 Quit 7 Connect openser@localhost on openser 7 Query select table_version from version where table_name='subscriber' 7 Quit 8 Connect openser@localhost on openser 8 Query select table_version from version where table_name='trusted' 8 Query select src_ip,proto,from_pattern,tag from trusted 8 Quit 9 Connect openser@localhost on openser 9 Query select table_version from version where table_name='address' 9 Query select grp,ip_addr,mask,port from address 9 Quit 10 Connect openser@localhost on openser 10 Query select table_version from version where table_name='gw' 10 Quit 11 Connect openser@localhost on openser 11 Query select table_version from version where table_name='lcr' 11 Quit 12 Connect openser@localhost on openser 12 Query select ip_addr,port,uri_scheme,transport,strip,prefix,grp_id from gw 12 Query select prefix,from_uri,grp_id,priority from lcr 12 Quit
And then openser stops its startup with following errors in openser log:
Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: new_connection: Opening MySQL connection: mysql://openser:openserrw@localhost/openser Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: new_connection: Connection type is Localhost via UNIX socket Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: new_connection: Protocol version is 10 Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: new_connection: Server version is 5.0.41-log Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: pool_remove: Removing connection from the pool Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: ERROR:lcr:load_regex: bad from_uri re Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: ERROR: lcr:mod_init(): failed to reload gateways and routes Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: init_mod(): Error while initializing module lcr Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: INFO:mi_fifo:mi_destroy: process hasn't been created -> nothing to kill Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: XLOG: destroy module ... Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: tm_shutdown : start Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: unlink_timer_lists : emptying DELETE list Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: tm_shutdown : emptying hash table Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: tm_shutdown : releasing timers Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: tm_shutdown : removing semaphores Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: tm_shutdown : destroying tmcb lists Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: DEBUG: tm_shutdown : done Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: shm_mem_destroy Jul 22 00:15:20 santos /usr/local/sbin/openser[10983]: destroying the shared memory lock
I'm running openser-1.2.1 with mysql-server-5.0.41 on freebsd 6.2P5.
Miodrag
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi Miodrag,
Please check the lcr documentation for openser 1.2. The '%' is no longer valid. Use an empty string instead.
From the 'Overview':
Table lcr contains prefix of user part of Request-URI, From URI, gateway group id, and priority. From URI is a regular expression. Empty From URI pattern matches any From URI. Smaller priority value means higher priority (highest priority value being 0).
Regards, Ovidiu Sas
On 7/21/07, Miodrag Radulovic mradulovic@comutel.co.yu wrote:
Hello everyone! Please help...
I've started testing openser 1.2.1 few weeks ago (on freebsd 6.2, I've got it from freebsd port collection) and I simple can not make LCR work at all. I spent last few hours reading almost all the posts on this mailing list and I can see it is working but I can not figure it out why mine configuration is not...
For simple start - I want all calls where destination number starts with 9 to be routed to PSTN GW.
So I made these entries in LCR tables:
[root@santos /var/log]# openserctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 10 | 9 | % | 1 | 1 | +----+--------+----------+--------+----------+ lcr gateway groups +--------+----------+ | grp_id | grp_name | +--------+----------+ | 1 | comutel | +--------+----------+ lcr gateways +---------+---------------+------+------------+-----------+--------+-------+--------+ | gw_name | ip_addr | port | uri_scheme | transport | grp_id | strip | prefix | +---------+---------------+------+------------+-----------+--------+-------+--------+ | c2811 | 192.168.253.1 | 5060 | 1 | 1 | 1 | 0 | | +---------+---------------+------+------------+-----------+--------+-------+--------+
For openser.cfg itself I've started with sip:wizard configuration template (SIP Proxy/Registrar with Offnet-Termination and Accounting) then I made some necessary changes (I do not have Mediaproxy or RTPproxy and added domain and populated trusted table).
But when I dial 93016576 I always have this error message in xlog output:
Jul 19 18:50:24 santos /usr/local/sbin/openser[1412]: No PSTN gateways available - M=INVITE RURI=sip:93016576@192.168.253.205:5060 F=sip:lvs1@192.168.253.205:5060 T=sip:93016576@192.168.253.205:5060 IP=192.168.253.202 ID=676c7a05-4bcd2745@192.168.253.202
Here is part of openser.cfg where next_gw() fails:
route[10] { if(isflagset(20)) {
xlog("L_INFO", "Call to foreign domain - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); route(6); exit; } route(12); if(!isflagset(23)) { # don't allow calls relaying from PSTN to PSTN, if not explicitely forwarded if(uri =~ "^sip:[0-9]+@") { # only route numeric users to PSTN if(!load_gws()) { xlog("L_ERR", "Error loading PSTN gateways - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); sl_send_reply("503", "PSTN Termination Currently Unavailable"); exit; } if(!next_gw()) { xlog("L_ERR", "No PSTN gateways available - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); sl_send_reply("503", "PSTN Termination Currently Unavailable"); exit; } setflag(21); t_on_failure("1"); route(6); } } xlog("L_INFO", "Call to unknown user - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); route(3); sl_send_reply("404", "User Not Found"); exit;
}
I believe that I've made some errors in LCR routes entries, but documentation is really sparse on this issue...
Please note - I've tried replacing "%" with empty string in from_uri column in routes table but then openser was not able to startup:
[root@santos /var/log]# openserctl lcr rmroute 9 % 1 1 MySql password for user 'openser@localhost': 200 OK
[root@santos /var/log]# openserctl lcr addroute 9 '' 1 1 MySql password for user 'openser@localhost': 200 OK
[root@santos /var/log]# openserctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 11 | 9 | | 1 | 1 | +----+--------+----------+--------+----------+ lcr gateway groups +--------+----------+ | grp_id | grp_name | +--------+----------+ | 1 | comutel | +--------+----------+ lcr gateways +---------+---------------+------+------------+-----------+--------+-------+--------+ | gw_name | ip_addr | port | uri_scheme | transport | grp_id | strip | prefix | +---------+---------------+------+------------+-----------+--------+-------+--------+ | c2811 | 192.168.253.1 | 5060 | 1 | 1 | 1 | 0 | | +---------+---------------+------+------------+-----------+--------+-------+--------+
[root@santos /var/log]# openserctl restart
Stopping OpenSER : \E[37;33mINFO: stopped
Starting OpenSER : \E[37;31mERROR: PID file /var/run/openser.pid does not exist -- OpenSER start failed
And here is relevant part from openser log output:
Jul 21 21:30:26 santos /usr/local/sbin/openser[10216]: ERROR:lcr:load_regex: bad from_uri re Jul 21 21:30:26 santos /usr/local/sbin/openser[10216]: ERROR: lcr:mod_init(): failed to reload gateways and routes Jul 21 21:30:26 santos /usr/local/sbin/openser[10216]: init_mod(): Error while initializing module lcr
Please can someone help and point me in the right direction?
BR, Miodrag
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hello Ovidiu, thanks for your suggestion, I've noticed that but I was getting error during openser startup:
[root@santos /var/log]# openserctl lcr addroute 9 '' 1 1 MySql password for user 'openser@localhost': 200 OK
[root@santos /var/log]# openserctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 11 | 9 | | 1 | 1 | +----+--------+----------+--------+----------+ lcr gateway groups +--------+----------+ | grp_id | grp_name | +--------+----------+ | 1 | comutel | +--------+----------+ lcr gateways
+---------+---------------+------+------------+-----------+--------+-------+ --------+
| gw_name | ip_addr | port | uri_scheme | transport | grp_id | strip
| prefix |
+---------+---------------+------+------------+-----------+--------+-------+ --------+
| c2811 | 192.168.253.1 | 5060 | 1 | 1 | 1 | 0
| |
+---------+---------------+------+------------+-----------+--------+-------+ --------+
[root@santos /var/log]# openserctl restart
Stopping OpenSER : \E[37;33mINFO: stopped
Starting OpenSER : \E[37;31mERROR: PID file /var/run/openser.pid does not exist -- OpenSER start failed
And here is relevant part from openser log output:
Jul 21 21:30:26 santos /usr/local/sbin/openser[10216]: ERROR:lcr:load_regex: bad from_uri re Jul 21 21:30:26 santos /usr/local/sbin/openser[10216]: ERROR: lcr:mod_init(): failed to reload gateways and routes Jul 21 21:30:26 santos /usr/local/sbin/openser[10216]: init_mod(): Error while initializing module lcr
Is there an error somewhere in LCR module?
BR, miodrag