Hello,
Ranganath B wrote:
Hi,
After reading through the "SEMS-mini Howto on how to configure SER and
SEMS to work together", I could successfully register 2 Xlite Softphones
and now I found that the INVITE message is being sent from SER to SEMS.
After receiving INVITE message from SER, SEMS gives the error message
"ERROR: startSessionUAS (AmSessionContainer.cpp:257): startSession:
Unknown Application" and responds with "500 I'm terribly sorry, server
error occurred (1/SL)" and "500 Unknown Application". Please help me in
resolving this issue, working conf files ser.cfg and sems.conf would
also be of great help.
Now I am running SEMS and only one instance of SER at port 5060.
if you only want to use sems with one application, e.g. conference, you
can use second parameter of t_write_unix:
if (method=="INVITE"){
if(!t_write_unix("/tmp/sems_sock","conference")){
log("could not contact sems\n");
t_reply("500","could not contact media server");
}
I have attached the modified ser-sems.cfg.
Btw if you try sems trunk version, or a more recent snapshot (see eg
here: http://ftp.iptel.org/pub/sems/testing/) you will find that this
has become much easier now: for one, you can set application=conference
in sems.conf, or define an application mapping regexp->application
(see 'aplication' parameter explaoined in
http://svn.berlios.de/wsvn/sems/trunk/core/etc/sems.conf.sample and
example here
http://svn.berlios.de/wsvn/sems/trunk/core/etc/app_mapping.conf), and
second, sems has now an optional internal sip stack, so you don't need
ser for it any more.
Stefan
I have attached the sems.conf and ser-sems.conf for your reference.
Thanks in advance,
Ranganath B
On Thu, Apr 10, 2008 at 9:50 AM, Ranganath B <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi,
I am new to SEMS but I have been using SER from a long time, so
thought of installing SEMS to test different options and features
supported by SEMS. I have installed the sems-0.10.0 bundle
<ftp://ftp.iptel.org/pub/sems/sems-0.10.0-bundle.tar.gz> (bundled
with SER for easy installation) and then followed all the steps
mentioned. Now I am running the following:
1) SEMS using the comamnd /usr/local/sbin/sems -D 3 -E - Which gives
the following error messages:
ERROR: onLoad (RegistrationAgent.cpp:69): Account for registration
not correctly configured.
ERROR: onLoad (RegistrationAgent.cpp:70): RegistrationAgent will not
register any accounts.
2) SER stack for SEMS at port 5070 using the command:
/opt/ser/sbin/ser -f /opt/ser/etc/ser/ser.cfg
3) SER (0.9.7) with mysql support at port 5060.
Currently I am facing 2 issues, first one being the error messages
that I get when I run SEMS and second one being with the calls. When
I placed call between 2 Xlite SIP Softphones registered with SER at
port 5060 I observed that the media negotiation is between peer
i.e., between 2 Xlites. So the RTP packets are actually exchanged
between 2 Xlites peer-to-peer and not through the SEMS. Please
provide me help on how to place calls through SEMS, so that I can
continue with other features such as voicemail etc?
Regards,
Ranga
------------------------------------------------------------------------
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems
--
Stefan Sayer
VoIP Services
[EMAIL PROTECTED]
www.iptego.com
iptego GmbH
Am Borsigturm 40
13507 Berlin
Germany
Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
#
# simple Ser config script to start using Sems.
#
# ----------- global configuration parameters ------------------------
#debug=3 # debug level (cmd line: -dddddddddd)
#fork=yes
#log_stderror=no # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
debug=255
fork=yes
log_stderror=yes
*/
check_via=yes # (cmd. line: -v)
syn_branch=no
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
port=5060
listen=192.168.1.5
children=4
# Configure Ser to create a FIFO server
fifo = "/tmp/ser_fifo"
fifo_mode = 0777
unix_sock="/tmp/ser_fifo"
# Configure FIFO DB
fifo_db_url="mysql://ser:[EMAIL PROTECTED]/ser"
#
# ------------------ module loading ----------------------------------
# either dbtext or mysql
# loadmodule "modules/dbtext/dbtext.so"
#
# if installed via make install, modules are in /usr/ser-sems/lib/ser/modules/
# (e.g. loadmodule "/usr/ser-sems/lib/ser/modules/mysql.so")
loadmodule "/opt/ser-sems/lib/ser/modules/mysql.so"
loadmodule "/opt/ser-sems/lib/ser/modules/sl.so"
loadmodule "/opt/ser-sems/lib/ser/modules/tm.so"
loadmodule "/opt/ser-sems/lib/ser/modules/rr.so"
loadmodule "/opt/ser-sems/lib/ser/modules/maxfwd.so"
loadmodule "/opt/ser-sems/lib/ser/modules/usrloc.so"
loadmodule "/opt/ser-sems/lib/ser/modules/registrar.so"
loadmodule "/opt/ser-sems/lib/ser/modules/textops.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/opt/ser-sems/lib/ser/modules/auth.so"
loadmodule "/opt/ser-sems/lib/ser/modules/auth_db.so"
# we want provisional replies in SEMS
modparam("tm", "pass_provisional_replies", 1)
# passes "P-App-Name" and
# "P-App-Param" headers with the INVITE
modparam("tm", "tw_append",
"app_headers:hdr[P-App-Name];hdr[P-App-Param]")
# for DTMF in SIP INFO we need content-length, -type
# and body
modparam( "tm", "tw_append",
"dtmf_info:hdr[Content-Length];hdr[Content-Type];msg[body]")
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
#modparam("usrloc", "db_mode", 2)
# -- registrar params --
modparam("registrar", "max_expires", 30)
# -- auth params --
# Uncomment if you are using auth module
#
modparam("auth_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
modparam("auth_db", "password_column", "password")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if ( msg:len > max_len ) {
sl_send_reply("513", "Message too big");
break;
};
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
record_route();
# loose-route processing
if (loose_route()) {
t_relay();
break;
};
if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("ser.iptel.org", "subscriber")) {
www_challenge("ser.iptel.org", "0");
break;
};
save("location");
break;
};
# switch to statefull mode:
if (!t_newtran()){
sl_send_reply("500","could not create transaction");
break;
};
if (method=="ACK"){
# absorb ACKs
break;
};
# prevent timeout on the other side:
t_reply("100","Trying - just wait a minute !");
if (method=="INVITE"){
if(!t_write_unix("/tmp/sems_sock","conference")){
log("could not contact sems\n");
t_reply("500","could not contact media server");
}
} else if (method=="INFO") {
if(!t_write_unix("/tmp/sems_sock","sems/dtmf_info")){
log("could not contact sems\n");
t_reply("500","could not contact media server");
}
} else { # no need for special appends
if(!t_write_unix("/tmp/sems_sock","sems")){
log("could not contact sems\n");
t_reply("500","could not contact media server");
}
}
if (method=="BYE" || method=="CANCEL") {
# Sems should already know which plug-in is handling that
# call. "bye" is no plug-in name. It is a reserved name which
# tells Sems to terminate the call.
if(!t_write_unix("/tmp/sems_sock","bye")) {
t_reply("500","error contacting sems");
};
};
};
# forward to current uri now; use stateful forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems