My name is Travis and I currently trying to deploy OpenSer. Out of the box
OpenSer works just fine but since I have configured it to work with
mediaproxy OpenSer will not longer start. Below you will find the errors
that I am recieving. I have been working on this for days trying to get it
resolved but no luck. Please advise.
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/mysql.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/sl.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/tm.so
Mar 11 22:36:20 [3449] DBG:core:register_module: register_pv: tm
Mar 11 22:36:20 [3449] DBG:core:pv_add_extra: extra items list is not
initialized
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/rr.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/maxfwd.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/usrloc.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/registrar.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/textops.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/mi_fifo.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/uri_db.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/uri.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/xlog.so
Mar 11 22:36:20 [3449] DBG:core:register_module: register_pv: xlog
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/acc.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/nathelper.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/mediaproxy.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/domain.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/auth.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/auth_db.so
Mar 11 22:36:20 [3449] DBG:core:yyparse: loading module
/usr/lib/openser/modules/alias_db.so
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: mi_fifo matches module
mi_fifo
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <fifo_name> in
module mi_fifo [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: rr matches module rr
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <enable_full_lr>
in module rr [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: rr matches module rr
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <append_fromtag>
in module rr [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: registrar matches
module registrar
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found
<method_filtering> in module registrar [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: registrar matches
module registrar
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <append_branches>
in module registrar [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: registrar matches
module registrar
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <max_contacts> in
module registrar [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: uri_db matches module
uri_db
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <use_uri_table>
in module uri_db [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: uri_db matches module
uri_db
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <db_url> in
module uri_db [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: acc matches module acc
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <early_media> in
module acc [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: acc matches module acc
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <report_ack> in
module acc [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: acc matches module acc
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <report_cancels>
in module acc [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: acc matches module acc
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found
<detect_direction> in module acc [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: acc matches module acc
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found
<failed_transaction_flag> in module acc [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: acc matches module acc
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <log_flag> in
module acc [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: acc matches module acc
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <log_missed_flag>
in module acc [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: acc matches module acc
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <db_flag> in
module acc [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: acc matches module acc
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <db_missed_flag>
in module acc [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: usrloc matches module
usrloc
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <db_mode> in
module usrloc [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: usrloc matches module
usrloc
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <db_mode> in
module usrloc [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] CRITICAL:core:yyerror: parse error in config file,
line 159, column 1-9: syntax error
Mar 11 22:36:20 [3449] CRITICAL:core:yyerror: parse error in config file,
line 159, column 1-9: Invalid arguments
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: auth_db matches module
auth_db
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <calculate_ha1>
in module auth_db [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: auth_db matches module
auth_db
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <password_column>
in module auth_db [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] CRITICAL:core:yyerror: parse error in config file,
line 163, column 1-9: syntax error
Mar 11 22:36:20 [3449] CRITICAL:core:yyerror: parse error in config file,
line 163, column 1-9: Invalid arguments
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: auth_db matches module
auth_db
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found
<load_credentials> in module auth_db [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] CRITICAL:core:yyerror: parse error in config file,
line 176, column 1-9: syntax error
Mar 11 22:36:20 [3449] CRITICAL:core:yyerror: parse error in config file,
line 176, column 1-9: Invalid arguments
Mar 11 22:36:20 [3449] CRITICAL:core:yyerror: parse error in config file,
line 178, column 1-9: syntax error
Mar 11 22:36:20 [3449] CRITICAL:core:yyerror: parse error in config file,
line 178, column 1-9: Invalid arguments
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: domain matches module
domain
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <db_mode> in
module domain [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex:
alias_db|auth_db|usrloc|uri_db matches module alias_db
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <use_domain> in
module alias_db [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex:
alias_db|auth_db|usrloc|uri_db matches module auth_db
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <use_domain> in
module auth_db [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex:
alias_db|auth_db|usrloc|uri_db matches module uri_db
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <use_domain> in
module uri_db [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex:
alias_db|auth_db|usrloc|uri_db matches module usrloc
Mar 11 22:36:20 [3449] DBG:core:set_mod_param_regex: found <use_domain> in
module usrloc [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] CRITICAL:core:yyerror: parse error in config file,
line 191, column 1-9: syntax error
Mar 11 22:36:20 [3449] CRITICAL:core:yyerror: parse error in config file,
line 191, column 1-9: Invalid arguments
Mar 11 22:36:20 [3449] ERROR:core:set_mod_param_regex: no module matching
presence_xml found
|Mar 11 22:36:20 [3449] CRITICAL:core:yyerror: parse error in config file,
line 191, column 19-20: Can't set module parameter
Mar 11 22:36:20 [3449] ERROR:core:set_mod_param_regex: no module matching
presence found
|Mar 11 22:36:20 [3449] CRITICAL:core:yyerror: parse error in config file,
line 192, column 20-21: Can't set module parameter
Mar 11 22:36:20 [3449] DBG:core:find_cmd_export_t: found
<use_media_proxy>(0) in module mediaproxy [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:find_cmd_export_t: found <t_on_reply>(1) in
module tm [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:find_cmd_export_t: found
<end_media_session>(0) in module mediaproxy [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:find_cmd_export_t: found <t_relay>(0) in
module tm [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:find_cmd_export_t: found <sl_reply_error>(0)
in module sl [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:find_cmd_export_t: found
<use_media_proxy>(0) in module mediaproxy [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] DBG:core:find_cmd_export_t: found
<end_media_session>(0) in module mediaproxy [/usr/lib/openser/modules/]
Mar 11 22:36:20 [3449] ERROR:core:main: bad config file (12 errors)
Mar 11 22:36:20 [3449] DBG:xlog:destroy: destroy module...
Mar 11 22:36:20 [3449] DBG:tm:tm_shutdown: tm_shutdown : start
Mar 11 22:36:20 [3449] DBG:tm:tm_shutdown: emptying hash table
Mar 11 22:36:20 [3449] DBG:tm:tm_shutdown: releasing timers
Mar 11 22:36:20 [3449] DBG:tm:tm_shutdown: removing semaphores
Mar 11 22:36:20 [3449] DBG:tm:tm_shutdown: destroying callback lists
Mar 11 22:36:20 [3449] DBG:tm:tm_shutdown: tm_shutdown : done
Mar 11 22:36:20 [3449] DBG:core:shm_mem_destroy:
--
"You can educate them but you can't make them smart."
~Unknown~
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
during setup of permissions module I found that module parameters
"default_allow_file" and "default_deny_file" doesn't seem to work as
expected.
No mater what filename I configured permissions.so always checks for
"permissions.allow" resp. "permissions.deny" files in openser's main
config directory.
Here is openser's level 3 console output:
Mar 11 16:25:49 [3235] WARNING:core:main: no fork mode
Mar 11 16:25:49 [3235] INFO:core:init_tcp: using epoll_lt as the TCP io
watch method (auto detected)
Mar 11 16:25:49 [3235] NOTICE:core:main: version: openser
1.4.0dev0-notls (x86_64/linux)
Mar 11 16:25:49 [3235] INFO:core:main: using 32 Mb shared memory
Mar 11 16:25:49 [3235] INFO:core:main: using 1 Mb private memory per process
Mar 11 16:25:49 [3235] INFO:xlog:mod_init: initializing...
Mar 11 16:25:49 [3235] INFO:sl:mod_init: Initializing StateLess engine
Mar 11 16:25:49 [3235] INFO:tm:mod_init: TM - initializing...
Mar 11 16:25:49 [3235] INFO:maxfwd:mod_init: initializing...
Mar 11 16:25:49 [3235] INFO:usrloc:ul_init_locks: locks array size 512
Mar 11 16:25:49 [3235] INFO:registrar:mod_init: initializing...
Mar 11 16:25:49 [3235] INFO:textops:mod_init: initializing...
Mar 11 16:25:49 [3235] INFO:auth:mod_init: initializing...
Mar 11 16:25:49 [3235] INFO:auth_db:mod_init: initializing...
Mar 11 16:25:49 [3235] INFO:avpops:avpops_init: initializing...
Mar 11 16:25:49 [3235] WARNING:permissions:parse_config_file: file not
found: etc/openser/permissions.allow
Mar 11 16:25:49 [3235] WARNING:permissions:mod_init: default allow file
(etc/openser/permissions.allow) not found => empty rule set
Mar 11 16:25:49 [3235] WARNING:permissions:parse_config_file: file not
found: etc/openser/permissions.deny
Mar 11 16:25:49 [3235] WARNING:permissions:mod_init: default deny file
(etc/openser/permissions.deny) not found => empty rule set
And here is my permissions config:
# -- permissions --
loadmodule "permissions.so"
modparam("permissions", "default_allow_file", "permissionddds.allow")
modparam("permissions", "default_deny_file",
"/opt/app/voip/openser/etc/permissionddds.deny")
modparam("permissions", "check_all_branches", 1)
modparam("permissions", "allow_suffix", ".allow")
modparam("permissions", "deny_suffix", ".deny")
modparam("permissions", "address_table", "address")
modparam("permissions", "grp_col", "grp")
modparam("permissions", "ip_addr_col", "ip_addr")
modparam("permissions", "mask_col", "mask")
modparam("permissions", "port_col", "port")
modparam("permissions", "db_mode", 0)
modparam("permissions", "trusted_table", "trusted")
modparam("permissions", "source_col", "src_ip")
modparam("permissions", "proto_col", "proto")
modparam("permissions", "from_col", "from_pattern")
modparam("permissions", "tag_col", "tag")
modparam("permissions", "peer_tag_avp", "")
I use openser 1.4 build 3384
regards
helmut
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD4DBQFH1qUP4tZeNddg3dwRAmPbAJiQAKWUzSoUVJx2iPjJEzT+PpKvAJ9Cwgqh
Q5z67Xb1/Oze+QK4aqHPNA==
=fjgt
-----END PGP SIGNATURE-----
Hi,
I get the error below each time I log in to serweb:
sorry -- reply fifo opening error
Below is my directory permissions for the serweb folder and ser_fifo:
prw-rw-rw- 1 root root 0 2008-03-11 19:43 ser_fifo
drwxr-xr-x 2 www-data www-data 4096 2008-03-11 19:43 serweb
Here is my fifo mode in ser.cfg
fifo="/tmp/ser_fifo"
fifo_mode = 0666
How can I fix this problem, should I change owner of ser_fifo to
www_data also? I have gone through the archive but couldn't find a
definite solution.
Yours,
Michael
Hi,
I get the error below each time I log in to serweb:
sorry -- reply fifo opening error
Below is my directory permissions for the serweb folder and ser_fifo:
prw-rw-rw- 1 root root 0 2008-03-11 19:43 ser_fifo
drwxr-xr-x 2 www-data www-data 4096 2008-03-11 19:43 serweb
How can I fix this problem, should I change owner of ser_fifo to
www_data also? I have gone through the archive but couldn't find a
definite solution.
Yours,
MIchael
Hi all,
We have built an SIPALG and using openser server as outbound proxy
for testing,
When call is made,
Ack message contains the route for openser,
After receiving the message he is forwarding to next route, but not
making it has record-route.
Is this behavior is right?
Other servers will add record-route after forwarding to next route.
So please suggest for this?
Thanks,
Vikas C.G.
Hello,
I have this problem, I have a pstn gw that accept only 1 ip address, this to
security, I setup that my gw accept only ip of openser. So when I try make a
call from example my notebook with x-lite, openser redirect my call to pstn
gateway but with my ip... example sip:xxxxxxx@notebook-ip.... so my pstn gw
don't accept call.
How I can doing to send call to pstn gw with ip of openser ???
Thank you
Matteo
Hi list,
I'm currently playing around with the dialog module. Current config:
> loadmodule "dialog.so"
> modparam("dialog", "enable_stats", 1)
> modparam("dialog", "hash_size", 4096)
> modparam("dialog", "rr_param", "rdlg")
> modparam("dialog", "dlg_flag", FLAG_DIALOG)
> modparam("dialog", "dlg_match_mode", 1)
> modparam("dialog", "db_url", "mysql://DB_USER:DB_PASS@DB_HOST/DB_NAME")
> modparam("dialog", "db_mode", 1)
I had to comment out the following ones, as 1.3 (SVN rev 3864) doesn't
like them (as af http://www.openser.org/docs/modules/1.3.x/dialog.html
thy should work):
> #modparam("dialog", "default_timeout", "7200")
> #modparam("dialog", "db_update_period", "60")
However: if I end a dialog with (example):
> openserctl fifo dlg_end_dlg 162 1311477520
syslog is telling me:
> ... CRITICAL:dialog:next_state_dlg: bogus event 7 in state 5
Both BYE's are sent out correctly, and both clients answer them (OK).
Is this "CRITICAL" thingy the normal behaviour? Or may there something
be wrong with my config? I'm currently running
> setflag(FLAG_DIALOG);
for each INVITE request - DB entries are created / modified correctly.
Mediaproxy sessions are not terminated, they time out after idling
around for a while:
> ... session 7bf33c00a5793790@<ip.address>: ended (did timeout).
Is there a way to cleanly stop them too?
Kind regards,
Thomas Gelf
Hi everybody,
OpenSER 1.3.1, the first patch release from the 1.3 seria, is out - it
is a minor release, including only bug fixes - no new features or
functionalities.
V1.3.1 brings some important fixes in critical modules (like TM and
USRLOC), so update is recommended.
To read more about this release, see
http://www.openser.org/mos/view/News/NewsItem/OpenSER-1.3.1-is-released/
Best regards,
Bogdan