HI,all
I need sems plug-in : ivr ,so I install sems (with cvs) and ser (with cvs
unstable version).
And they can work together.
But my serweb (with cvs) appear error : 400 ul_add: flags expected ,when I
want to add new user by web.
I try to reinstall ser ( with cvs stable version ),serweb can work without
any error.
But my sems can't work with ser (with cvs stable version)
could anyone can tell me which version with them ( sems needed ivr plug-in
+ser+serweb ) can work together?
thanks.
I am trying to make somthing like a clall cenet and i am stuck in one of the cases..
USing
SIP Express Server from the CVS and SEMS from CVS
wont to create outgoing call and start an IVR script
Somthing to create call (A) | --> SER -->SEMS--> called person (B)
Ideia is to make a call and start an IVR to Person B
i know that SER cant do that
but what about SEMS or SIPUMS or asterisk or ok i can make a some SIP client in back ground and told to him to make a call but how to start an IVR to client B not to client A.
Hello all,
I have done some test with the mediaproxy module.
My config is based upon the sample code supplied with mediaproxy.
This code sends all calls through the mediaproxy independent of if the user is NATed.
I have made some changed to the ser.cfg by adding some client_nat_test options on INVITE.
This works OK when the originating user is behind NAT -> mediaproxy is used.
But if the originating user is public and calls a user behind NAT -> audio problem.
I have searched the web + lists on how I can test if the uri is behind a NAT en thus use mediaproxy / Nathelper.
I have also looked at config files for nathelper but it seems to have the same limitations.
How should the ser.cfg be changed to enable mediaproxy / nathelper use based on URI ?
Any ideas are welcome.
thanks,
Arne.
As a followup to my previous message on ser compilation troubles under
FreeBSD 4.10 / mysql 4.0.18, if you try to compile mysql module
statically using
gmake CC=gcc32 static_modules=mysql all
(I even did ln -s /usr/local/include/mysql /usr/include/mysql)
The following error occurs:
Making static module
gmake[1]: Entering directory `/usr/home/vahan/sip_router2/modules/mysql'
gmake[1]: Nothing to be done for `static'.
gmake[1]: Leaving directory `/usr/home/vahan/sip_router2/modules/mysql'
gcc32 -Wl,-O2 -Wl,-E action.o crc.o data_lump.o data_lump_rpl.o
dprint.o dset.o error.o fifo_server.o flags.o forward.o hash_func.o
ip_addr.o main.o md5.o md5utils.o modparam.o msg_translator.o pass_fd.o
proxy.o re.o receive.o resolve.o route.o route_struct.o script_cb.o
sr_module.o stats.o tcp_main.o tcp_read.o timer.o udp_server.o usr_avp.o
mem/f_malloc.o mem/mem.o mem/memtest.o mem/q_malloc.o mem/shm_mem.o
mem/vq_malloc.o parser/hf.o parser/msg_parser.o parser/parse_content.o
parser/parse_cseq.o parser/parse_disposition.o parser/parse_event.o
parser/parse_expires.o parser/parse_fline.o parser/parse_from.o
parser/parse_hname2.o parser/parse_hostport.o parser/parse_nameaddr.o
parser/parse_param.o parser/parse_rr.o parser/parse_to.o
parser/parse_uri.o parser/parse_via.o parser/parser_f.o
parser/digest/digest.o parser/digest/digest_parser.o
parser/digest/param_parser.o parser/contact/contact.o
parser/contact/parse_contact.o db/db.o lex.yy.o cfg.tab.o
modules/mysql/db_con.o modules/mysql/db_mod.o modules/mysql/db_res.o
modules/mysql/db_row.o modules/mysql/db_utils.o modules/mysql/db_val.o
modules/mysql/dbase.o modules/mysql/utils.o -lfl -o ser
modules/mysql/db_res.o: In function `convert_result':
/usr/home/vahan/sip_router2/modules/mysql/db_res.c:53: undefined
reference to `mysql_field_count'
/usr/home/vahan/sip_router2/modules/mysql/db_res.c:74: undefined
reference to `mysql_fetch_fields'
/usr/home/vahan/sip_router2/modules/mysql/db_res.c:147: undefined
reference to `mysql_num_rows'
/usr/home/vahan/sip_router2/modules/mysql/db_res.c:160: undefined
reference to `mysql_fetch_row'
/usr/home/vahan/sip_router2/modules/mysql/db_res.c:162: undefined
reference to `mysql_error'
/usr/home/vahan/sip_router2/modules/mysql/db_res.c:126: undefined
reference to `mysql_error'
modules/mysql/db_row.o: In function `convert_row':
/usr/home/vahan/sip_router2/modules/mysql/db_row.c:62: undefined
reference to `mysql_fetch_lengths'
modules/mysql/db_val.o: In function `val2str':
/usr/home/vahan/sip_router2/modules/mysql/db_val.c:274: undefined
reference to `mysql_real_escape_string'
/usr/home/vahan/sip_router2/modules/mysql/db_val.c:315: undefined
reference to `mysql_real_escape_string'
modules/mysql/dbase.o: In function `db_init':
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:96: undefined
reference to `mysql_error'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:98: undefined
reference to `mysql_init'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:99: undefined
reference to `mysql_real_connect'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:100: undefined
reference to `mysql_error'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:101: undefined
reference to `mysql_close'
modules/mysql/dbase.o: In function `db_close':
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:128: undefined
reference to `mysql_close'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:320: undefined
reference to `mysql_free_result'
modules/mysql/dbase.o: In function `get_result':
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:347: undefined
reference to `mysql_store_result'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:349: undefined
reference to `mysql_field_count'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:353: undefined
reference to `mysql_error'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:354: undefined
reference to `mysql_error'
modules/mysql/dbase.o: In function `db_free_query':
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:392: undefined
reference to `mysql_free_result'
modules/mysql/dbase.o: In function `db_query':
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:151: undefined
reference to `mysql_error'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:152: undefined
reference to `mysql_query'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:153: undefined
reference to `mysql_error'
modules/mysql/dbase.o: In function `db_raw_query':
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:141: undefined
reference to `mysql_error'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:152: undefined
reference to `mysql_query'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:153: undefined
reference to `mysql_error'
modules/mysql/dbase.o: In function `db_insert':
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:151: undefined
reference to `mysql_error'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:152: undefined
reference to `mysql_query'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:153: undefined
reference to `mysql_error'
modules/mysql/dbase.o: In function `db_delete':
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:151: undefined
reference to `mysql_error'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:152: undefined
reference to `mysql_query'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:153: undefined
reference to `mysql_error'
modules/mysql/dbase.o: In function `db_update':
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:151: undefined
reference to `mysql_error'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:152: undefined
reference to `mysql_query'
/usr/home/vahan/sip_router2/modules/mysql/dbase.c:153: undefined
reference to `mysql_error'
collect2: ld returned 1 exit status
gmake: *** [ser] Error 1
Please help me compile the beast :)
--
With best regards,
Vahan Yerkanian
ARMINCO Global Telecom
Hi,
I would like to atach to ser the media proxy.I want to know if you please
where the mediaproxy.so module is located because I can't find it anywhere
in the ser-0.8.12.tar.gz archive or in the mediaproxy-1.2.0.tar.gz
archive..Thanks
On Mon, 30 Aug 2004, Razvan Nemesiu wrote:
> Hi,
> I would like to atach to ser the media proxy.I want to know if you please
> where the mediaproxy.so module is located because I can't find it anywhere
> in the ser-0.8.12.tar.gz archive or in the mediaproxy-1.2.0.tar.gz
> archive..Thanks
Just in case I understand what you are talking about, the media proxy you
might need in this case is the rtp proxy. You can (w)get the partone
rtpproxy from http://www.portaone.com/~sobomax/rtpproxy.tar. Simply unpack
the software,move the rtpproxy binary file to the ..../sbin/ dir and run
rtpproxy.
Regards,
Cathie.
Hello
I need to run ser dev version (from cvs head) in order to run dev version of sems with mp3 recording support and other features... I re-compiled ser and change some parameters like this:
loadmodule "/usr/local/lib/ser/modules/uri_db.so" ##needed in cvs head version
modparam("group", "db_url", "mysql://ser:heslo@localhost/ser") # "mysql" instead of "sql" in cvs head vs.
modparam("uri_db", "db_url", "mysql://ser:heslo@localhost/ser") # instead of "uri"
please see errors below... any idea?
0(0) group module - initializing
0(0) find_mod_export: found <db_use_table> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_init> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_close> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_query> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_raw_query> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_free_result> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_insert> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_delete> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_update> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(0) get_connection(): Connection not found in the pool
[root@gkproxy01 sip_router]# 0(0) submit_query(): Unknown column 'table_version' in 'field list'
0(0) submit_query(): Error while submitting query
0(0) table_version(): Error in db_query
0(0) release_connection(): Removing connection from the pool
0(0) group:mod_init(): Error while querying table version
0(0) init_mod(): Error while initializing module group
ERROR: error while initializing modules
0(0) DEBUG: tm_shutdown : start
0(0) DEBUG: unlink_timer_lists : empting DELETE list
0(0) DEBUG: tm_shutdown : empting hash table
0(0) DEBUG: tm_shutdown : releasing timers
0(0) DEBUG: tm_shutdown : removing semaphores
0(0) DEBUG: tm_shutdown : destroing tmcb lists
0(0) DEBUG: tm_shutdown : done
0(4380) shm_mem_destroy
0(4380) destroying the shared memory lock
---------------------------------
Do You Yahoo!?
Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo.
Visíta Yahoo! Noticias.
Hi,
I recently installed sems from cvs on FreeBSD 4.10 Stable to add
voicemail to an existing setup. I'm running ser 0.8.14 (also from cvs)
with mysql and nathelper (and rtpproxy).
I'm seeing this error when I start sems:
Aug 30 09:43:44 node Sems[35492]: Error: Could not determine proper
local address for media advertising !
I cannot find anyway to tell sems what the IP address is that should be
used.
Has anyone else seen this?
The system has 3 physical interfaces and ser is configured to listen on
all 3. mhomed=yes is also set. One IP is public, the other 2 are
private.
Thanks,
MikeC
Jerry always copy to thje serusers.
Personally idon't have an answer to that at the moment.
-----Original Message-----
From: jerry [mailto:jerryws@sohu.com]
Sent: Monday, August 30, 2004 4:34 PM
To: Wilson Abigaba
Subject: Re: RE: [Serusers] serweb login problem
Wilson Abigaba,
Thank you very much.I got it.
I have another question now.I am using sems_2004-07-27 and
ser-0.8.14.My main aim is to play the announcement and send an email to
called if the called who is offline.I don't know what's wrong with it.
ser.cfg:
#
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
debug=7 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
debug=7
fork=no
log_stderror=yes
*/
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
port=5060
#children=4
fifo="/tmp/ser_fifo"
# ------------------ module loading ----------------------------------
#added by yzg 20040820
#reply_to_via=no
#uid="nobody"
#gid="nobody"
# Uncomment this if you want to use SQL database
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
#added by yzg 20040820
loadmodule "/usr/local/lib/ser/modules/vm.so"
#loadmodule "/usr/local/lib/ser/modules/acc.so"
#loadmodule "/usr/local/lib/ser/modules/exec.so"
#loadmodule "/usr/local/lib/ser/modules/group.so"
#loadmodule "/usr/local/lib/ser/modules/print.so"
#loadmodule "/usr/local/lib/ser/modules/textops.so"
#loadmodule "/usr/local/lib/ser/modules/uri.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
# ----------------- 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) #added by yzg 20040825
#modparam("usrloc", "db_url", "sql://ser:<heslo>@localhost/ser")
#added by yzg 20040820
#modparam("usrloc","timer_interval",10)
#modparam("voicemail", "db_url","/usr/local/lib/ser/modles")
# -- 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 the request is for other domain use UsrLoc
# (in case, it does not work, use the following command
# with proper names and addresses in it)
if (uri==myself) {
if (method=="REGISTER") {
save("location");
break;
};
#added by yzg 20040830
if(method=="INVITE" ||
method=="ACK" ||
method=="BYE" ||
method=="CANCEL"){
if (!t_newtran())
{
sl_send_reply("500","could not create
transaction");
break;
};
t_reply("100","Trying - just wait a minute !");
if (method=="INVITE")
{
log("in to the invite");
if(!vm("/tmp/am_fifo","announcement"))
{
log("could not contact
announcement server");
t_reply("500","error contacting
sems");
};
break;
}
else if (method=="BYE" ||
method=="CANCEL")
{
if(!vm("/tmp/am_fifo","bye"))
{
t_reply("500","error contacting
sems");
};
break;
};
};
# native SIP destinations are handled using our USRLOC
DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
# 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.conf:
# optional parameter: fork={yes|no}
#
# - specifies if sems should run in daemon mode (background)
# (fork=no is the same as -E)
fork=yes
# optional parameter: stderr={yes|no}
#
# - debug mode: do not fork and log to stderr
# (stderr=yes is the same as -E)
stderr=no
# optional parameter: loglevel={0|1|2|3}
#
# - sets log level (error=0, warning=1, info=2, debug=3)
# (same as -D)
loglevel=1
# optional parameter: fifo_name=<filename>
#
# - path and file name of our fifo file (same as -i)
fifo_name=/tmp/am_fifo ser_fifo_name=/tmp/ser_fifo
send_method=fifo
# optional parameter: plugin_path=<path>
#
# - sets the path to the plug-ins
# - may be absolute or relative to CWD
plugin_path=/usr/local/lib/sems/plug-in/
# optional parameter: smtp_server=<hostname>
#
# - sets address of smtp server
smtp_server=localhost
# optional parameter: smtp_port=<port>
#
# - sets port of smtp server
smtp_port=25
config.voicemail=inline
rec_file_extension=wav
announce_path=/usr/local/lib/sems/audio/
# parameter: default_announce=<filename>
#
# - sets the name of the default announce WAV file
default_announce=default_en.wav
# parameter: max_record_time=<seconds>
#
# - maximum record time
max_record_time=30
# parameter: accept_delay=<x>
#
# - delays accepting of the call for x seconds
# - default value is 0
accept_delay=0
# parameter: email_template_path=<filename>
#
# - email templates path
#
# See the README file in <sems-src>/plug-in/voicemail
# for more information on the syntax used.
#
email_template_path=/usr/local/etc/sems/
# end of configuration section for voicemail module config.voicemail=end
# sample announcement configuration (inline) config.announcement=inline
# optional parameter: announce_path=<path>
#
# - sets the path where announce files are searched for
announce_path=/usr/local/lib/sems/audio/
default_announce=default_en.wav
# end of configuration section for announcement module
config.announcement=end
# sample isdngw module configuration (external file)
# config.isdngw=/etc/isdngw.conf
# sample ivr module configuration (inline)
config.ivr=inline
ivr_script_path=/etc/ivr/
# default script file: this will be executed if <user>.py does not
exist.
#
ivr_script_file=ivr.py
tts_caching=y
# parameter : tts_cache_path
# path to cache waves
# path must exist!
tts_cache_path=/tmp/wavs
# end of configuration section for ivr module
config.ivr=end
# sample conference configuration (inline) config.conference=inline
# parameter: default_announce=<filename>
#
# - sets the full pathed name of the default announce WAV file.
# Will be played to lonely users.
default_announce=/usr/local/lib/sems/audio/first_participant.wav
# end of configuration section for conference module
config.conference=end
# example configuration for number reader config.number_reader=inline
number_path=/usr/local/lib/sems/audio/
prolog_file=welcome_to_number_reader.wav
epilog_file=thanks_calling_number_reader.wav
# end of number_reader configuration
config.number_reader=end
>Yes i did
>
>The login details are
>Username: admin
>Password: heslo
>That's according to the defaults
>
>THEN!!!
>The URL of serweb should be the name of the sip server.
>I think that's very important coz i have a virtual host (of a different
>name) but refuses to work! I'm always thrown out.
>Thirdly..make sure that register_globals in turned on in the right file
>(php.ini which apache uses)
>
>That's what i think was bringing confusion..
>I wish you the best SER.
>:)>
>:)> Wilson Abigaba,
>:)>
>:)> The serweb login question is what I want to ask
>:)> too.Would you tell me what shoulde I do if you figure it out?
>:)> Thanks.
>:)>
>:)> ======= 2004-08-27 12:24:00 =======
>:)>
>:)> >Hello,
>:)> >I recently installed ser (with mysql support) with all the
>:)> defaults, so
>:)> >far so good. And when i proceeded to add serweb, it's also
>:)> successfully
>:)> >installed but i can't login!
>:)> >I'm just redirected to each page on every attempt.
>:)> >I'm using the details
>:)> >Username: ser (but serrno and admin have also refused)
>:)> >Password: heslo
>:)> >
>:)> >I've turned on register globals, and also searched the
>:)> archives but no
>:)> >success. When i try to login from the user interface, with users i
>:)> >created using serctl, the error is
>:)> >Sorry, '1234' is not a registered username! Please try again.
>:)> >whereas i can login and call other phones as 1234.
>:)> >
>:)> >I also try to register from the userinterface, but no mail
>:)> is recieved!
>:)> >
>:)> >Please help..
>:)> >Regards,
>:)> >Wilson
>:)> >---
>:)> >
>:)> >Checked by AVG anti-virus system (http://www.grisoft.com).
>:)> >Version: 6.0.282 / Virus Database: 150 - Release Date: 9/25/2001
>:)> >
>:)> >
>:)> >_______________________________________________
>:)> >Serusers mailing list
>:)> >serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
>:)>
>:)> = = = = = = = = = = = = = = = = = = = =
>:)>
>:)>
>:)>
>:)>
>:)> jerry
>:)> jerryws(a)sohu.com
>:)> 2004-08-27
>:)>
>:)>
>:)>
>---
>
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.282 / Virus Database: 150 - Release Date: 9/25/2001
= = = = = = = = = = = = = = = = = = = =
jerry
jerryws(a)sohu.com
2004-08-30
---
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 9/25/2001
---
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 9/25/2001
Hi,
I have a problem using Ser to Pstn.When i dial a Pstn number from my Sip
client the call goes thorugh and we are able to talk to the Pstn
party.But,the call gets automatically disconnected exactly after 32
seconds.Is there any disconnect parametere or anything which needs to be set
up in SER....?
Plz let us know at your earliest convenience,if there is any change i have
to make in SER.
Your help will be greatly appreciated.
Regards,
Vishal
_________________________________________________________________
Claim your Citibank Ready Cash today. http://go.msnserver.com/IN/54177.asp
Its fast, easy and affordable.