sunkara wrote:
use this function " t_write_unix("/tmp/sems_sock "
the t_write_reg is not there in OpenSER,
in global configuration ... describer openser_sock
in the sems.conf ... mention the openser_sock
i hope this help u
I use unix function and change openser.cfg and edit sems.conf
openser-1.2.1
sems-0.10.0-rc2
This is my openser.cfg
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no # (cmd line: -E)
children=4
port=5060
unix_sock="/tmp/openser_sock"
mpath="/usr/local/lib/openser/modules/"
loadmodule "mysql.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "mi_fifo.so"
loadmodule "avpops.so"
loadmodule "exec.so"
modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")
modparam("usrloc", "db_mode", 0)
modparam("tm", "fr_inv_timer", 15000)
modparam("tm", "pass_provisional_replies", 1)
modparam("rr", "enable_full_lr", 1)
modparam("avpops", "avp_url",
"mysql://ser:heslo@localhost/ser")
modparam("avpops", "avp_table", "subscriber")
#modparam("avpops", "uuid_cloumn", "id")
#modparam("avpops", "username_cloumn", "username")
modparam("avpops", "db_scheme",
"email_scheme:table=subscriber;value_col=email_address;value_type=string")
modparam("tm", "tw_append", "voicemail_headers:
UA=$hdr(User-Agent);P-Email-Address=$avp(s:email)")
route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
};
if (msg:len >= 2048 ) {
sl_send_reply("513", "Message too big");
exit;
};
if (!method=="REGISTER")
record_route();
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
};
if (!uri==myself) {
append_hf("P-hint: outbound\r\n");
route(1);
};
if (uri==myself) {
if (method=="REGISTER") {
save("location");
exit;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
};
if (!lookup("location")) {
if (!t_newtran()){
sl_send_reply("500", "could not create new transaction");
exit;
};
avp_db_load("$ru/username", "$avp(s:email)/$email_scheme");
if (!t_write_unix("/tmp/sems_sock", "voicemail/voicemail_headers")){
t_reply("500", "aaaaa");
exit;
};
};
append_hf("P-hint: usrloc applied\r\n");
};
route(1);
}
route[1] {
if (!t_relay()) {
sl_reply_error();
};
exit;
}
This is my sems.conf
plugin_config_path=/usr/local/etc/sems/etc/
fork=yes
stderr=no
loglevel=2
socket_name=/tmp/sems_sock
reply_socket_name=/tmp/sems_reply_sock
ser_socket_name=/tmp/openser_sock
send_method=socket
plugin_path=/usr/local/lib/sems/plug-in
smtp_server=localhost
smtp_port=25
rtp_low_port=10000
rtp_high_port=60000
media_processor_threads=1
But error msssgae is server error occurred(1/SL)
error log is
Jun 8 15:58:10 host /usr/local/sbin/openser[1462]:
ERROR:tm:t_forward_nonack: no branch for forwarding
Jun 8 15:58:10 host /usr/local/sbin/openser[1462]: ERROR:tm:w_t_relay:
t_forward_nonack faile
I can not find problem What is error with my configuration?
Thank you for your reply.
Chungyu
Show replies by date