Hi,
Interesting problem I have; a vm system sends out NOTIFY but the PBX
I'm using attached via SER & Sip requires a INVITE to a pilot light to
turn off the VM for a specific extension?
Any way todo this?
I want to rewrite the NOTIFY to be a INVITE
And possibly change some of the content of the message?
Sean
Sorry about a stupid question but I'm pretty new to linux and ser.
When I access the serweb I get this error:
Warning: fopen(/tmp/ser_fifo): failed to open stream: Permission denied in /usr/local/apache2/htdocs/serweb/functions.php on line 206
Howto fix it?
thanks
Rosario
Hi!
using ser 0.8.14@gentoo + serweb for several months.
want to enable accounting to mysql so i can see transactions in serweb.
i can see the INVITE / BYE - logging in log-file:
Feb 10 10:32:41 [/usr/sbin/ser] ACC: transaction answered:
call_id=20007e1d3f0e277f, totag=ezzzyno2cs,
from=XXXXXXX<sip:XX@XXXXXXXX.XXX>;tag=bb025f6b, i-uri=sip:XXXXXX@XXXXXX.XXX,
method=INVITE, o-uri=sip:XX@XXXXXXXX.XXX:10003;line=7lr13il5,
fromtag=bb025f6b, code=200, to=<sip:XX@XXXXXXXX.XXX>;tag=ezzzyno2cs,
uid=n/a, userpart=mtreiber_
Feb 10 10:32:49 [/usr/sbin/ser] ACC: transaction answered:
call_id=20007e1d3f0e277f, totag=ezzzyno2cs,
from="YYY"<sip:XX@XXXXXXXX.XXX>;tag=bb025f6b,
i-uri=sip:XXXXX@XXXXXXXXXX:10003;line=7lr13il5, method=BYE,
o-uri=sip:XXXXX@XXXXXXXXXX:10003;line=7lr13il5, fromtag=bb025f6b,
code=200, to=<sip:XXXXXXX@XXXXX.XXX>;tag=ezzzyno2cs, uid=n/a,
userpart=mtreiber_
BUT SER is NOT logging to MySQL.. :(
theres no attempt from ser to write accounting-data to mysql.
all other mysql-request (register,userlookups, etc.. ) are ok.
i set "DEFS+=-DSQL_ACC" in acc-module@compile.
modules are loaded:
accounting-loadmodule "/usr/lib/ser/modules/mysql.so"
loadmodule "/usr/lib/ser/modules/sl.so"
loadmodule "/usr/lib/ser/modules/tm.so"
loadmodule "/usr/lib/ser/modules/rr.so"
loadmodule "/usr/lib/ser/modules/maxfwd.so"
loadmodule "/usr/lib/ser/modules/usrloc.so"
loadmodule "/usr/lib/ser/modules/registrar.so"
loadmodule "/usr/lib/ser/modules/auth.so"
loadmodule "/usr/lib/ser/modules/auth_db.so"
loadmodule "/usr/lib/ser/modules/acc.so"
loadmodule "/usr/lib/ser/modules/exec.so"
loadmodule "/usr/lib/ser/modules/group.so"
loadmodule "/usr/lib/ser/modules/print.so"
loadmodule "/usr/lib/ser/modules/textops.so"
loadmodule "/usr/lib/ser/modules/uri.so"
modparam are set:
modparam("acc", "log_missed_flag", 3)
modparam("acc", "log_level", 1)
modparam("acc", "log_flag", 1)
modparam("acc", "db_url", "sql://ser:heslo@localhost/ser")
modparam("acc", "report_cancels", 0)
modparam("acc", "report_ack", 0)
modparam("acc", "log_fmt", "cdfimorstup")
modparam("acc", "failed_transactions", 1)
flags are set correct:
if(method=="INVITE" || (method=="ACK") || method=="BYE" ){
setflag(1);
};
if you have ANY idea please let me know...
regards,
Michael.
Hi, SERusers...
I have a question: in case i want to access and write into mySQL ser
database tables from an external script I call by using exec_msg(), will
this data remain there permanently? Will SER overwrite it?
Thanks in advance... :)
Esteban
I added the following global declaration to my script and the warning
goes away. Use the same db_url you use for usrloc or the domain module.
fifo_db_url="mysql://account:password@1.2.3.4/ser"
-----Original Message-----
From: Jan Janak [mailto:jan@iptel.org]
Sent: Tuesday, October 26, 2004 5:45 PM
To: Emilio Panighetti
Cc: SER Users
Subject: Re: [Serusers] fifo_db_url
It's just a warning, it is related to new code that can provide database
access over fifo.
Jan.
On 25-10 23:56, Emilio Panighetti wrote:
> Hello
>
> Why am I getting this error with the latest version on CVS?
>
> Oct 25 23:54:37 is1 ser[16888]: WARNING: no fifo_db_url given - fifo
DB
> commands disabled!
>
> Is there a config parameter I need to add?
>
> Thanks,
> E.
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
Hello everybody
I am new to the ser Proxy and to Linux does some have a ser step by step
manual on how to instal and configure
Will greatly appreciate
Thanks
Ernesto Lucero Valadez
Btel Comunicación
elucero(a)btel.com.mx <mailto:elucero@btel.com.mx>
Tel. 635-63-00 ext 6383
Hello !
Does anybody know any pre-paid and post-paid billing system that works
with SER. An open source one will be better, but also a commercial
version will do.
Thank you !
Hello.
I think there is a problen with your configuration file.
You have :
if (method=="INVITE") || (method=="CANCEL") {
# Uncomment this if you want to use digest authentication
if (!radius_www_authorize("")) {
www_challenge("", "0");
break;
};
record_route();
rewritehostport("cisco_sip_gw_ip:5060");
if (!t_relay()) {
sl_reply_error();
};
break;
};
so you're not relaying all the SIP messages, maybe this can work :
if (method=="INVITE") || (method=="CANCEL") {
# Uncomment this if you want to use digest authentication
if (!radius_www_authorize("")) {
www_challenge("", "0");
break;
};
};
record_route();
rewritehostport("cisco_sip_gw_ip:5060");
if (!t_relay()) {
sl_reply_error();
break;
};
Hope this work.
Good luck.!!
Ricardo Martinez.-
-----Mensaje original-----
De: Todor [mailto:todorakis@gmail.com]
Enviado el: Jueves, 10 de Febrero de 2005 8:15
Para: serusers(a)lists.iptel.org
Asunto: [Serusers] bad call flow
Hi All,
I have a serious problem with SIP call flow over SER.
My SER don't retransmit ACK first and after that don't retransmit BYE
message, too.
Can any one advice me? what can be a reason?
Here are call flow and ser.cfg.
SIPPHONE------------------------SER--------------------------CISCO SIP GW
|-------------INVITE------------>| |
|<----------TRying---------------| |
| |-----------INVITE-------------->|
| |<----------TRying---------------|
| |<------------183----------------|
|<------------183----------------| |
| |<-------------OK----------------|
|---------------ther is two way RTP channel ----------------------|
|<-------------OK----------------| |
|--------------ACK-------------->| |
| |<-------------OK----------------|
|<-------------OK----------------| |
|--------------ACK-------------->| |
| |<-------------OK----------------|
|<-------------OK----------------| |
|--------------ACK-------------->| |
| |<-------------OK----------------|
|<-------------OK----------------| |
|--------------ACK-------------->| SER don't retransmit ACK |
| | and Cisco timedout after 19sec |
| |<-------------BYE---------------|
| |<-------------BYE---------------|
| |<-------------BYE---------------|
| SER don't retransmit BYE |<-------------BYE---------------|
| |<-------------BYE---------------|
#
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei Exp $
# ----------- global configuration parameters ------------------------
debug=8
fork=yes
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 ----------------------------------
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"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
# ----------------- setting module-specific parameters ---------------
modparam("usrloc", "db_mode", 0)
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
route{
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;
};
# authenticate register message using radius
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!radius_www_authorize("")) {
www_challenge("", "0");
break;
};
save("location");
break;
};
# route (proxy) invite message to gateway
if (method=="INVITE") || (method=="CANCEL") {
# Uncomment this if you want to use digest authentication
if (!radius_www_authorize("")) {
www_challenge("", "0");
break;
};
record_route();
rewritehostport("cisco_sip_gw_ip:5060");
if (!t_relay()) {
sl_reply_error();
};
break;
};
}
10x Ricardo
it is working now
----- Original Message -----
From: Ricardo Martinez
To: 'Todor' ; serusers(a)lists.iptel.org
Sent: Thursday, February 10, 2005 3:27 PM
Subject: RE: [Serusers] bad call flow
Hello.
I think there is a problen with your configuration file.
You have :
if (method=="INVITE") || (method=="CANCEL") {
# Uncomment this if you want to use digest authentication
if (!radius_www_authorize("")) {
www_challenge("", "0");
break;
};
record_route();
rewritehostport("cisco_sip_gw_ip:5060");
if (!t_relay()) {
sl_reply_error();
};
break;
};
so you're not relaying all the SIP messages, maybe this can work :
if (method=="INVITE") || (method=="CANCEL") {
# Uncomment this if you want to use digest authentication
if (!radius_www_authorize("")) {
www_challenge("", "0");
break;
};
};
record_route();
rewritehostport("cisco_sip_gw_ip:5060");
if (!t_relay()) {
sl_reply_error();
break;
};
Hope this work.
Good luck.!!
Ricardo Martinez.-
-----Mensaje original-----
De: Todor [mailto:todorakis@gmail.com]
Enviado el: Jueves, 10 de Febrero de 2005 8:15
Para: serusers(a)lists.iptel.org
Asunto: [Serusers] bad call flow
Hi All,
I have a serious problem with SIP call flow over SER.
My SER don't retransmit ACK first and after that don't retransmit BYE message, too.
Can any one advice me? what can be a reason?
Here are call flow and ser.cfg.
SIPPHONE------------------------SER--------------------------CISCO SIP GW
|-------------INVITE------------>| |
|<----------TRying---------------| |
| |-----------INVITE-------------->|
| |<----------TRying---------------|
| |<------------183----------------|
|<------------183----------------| |
| |<-------------OK----------------|
|---------------ther is two way RTP channel ----------------------|
|<-------------OK----------------| |
|--------------ACK-------------->| |
| |<-------------OK----------------|
|<-------------OK----------------| |
|--------------ACK-------------->| |
| |<-------------OK----------------|
|<-------------OK----------------| |
|--------------ACK-------------->| |
| |<-------------OK----------------|
|<-------------OK----------------| |
|--------------ACK-------------->| SER don't retransmit ACK |
| | and Cisco timedout after 19sec |
| |<-------------BYE---------------|
| |<-------------BYE---------------|
| |<-------------BYE---------------|
| SER don't retransmit BYE |<-------------BYE---------------|
| |<-------------BYE---------------|
#
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei Exp $
# ----------- global configuration parameters ------------------------
debug=8
fork=yes
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 ----------------------------------
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"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
# ----------------- setting module-specific parameters ---------------
modparam("usrloc", "db_mode", 0)
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
route{
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;
};
# authenticate register message using radius
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!radius_www_authorize("")) {
www_challenge("", "0");
break;
};
save("location");
break;
};
# route (proxy) invite message to gateway
if (method=="INVITE") || (method=="CANCEL") {
# Uncomment this if you want to use digest authentication
if (!radius_www_authorize("")) {
www_challenge("", "0");
break;
};
record_route();
rewritehostport("cisco_sip_gw_ip:5060");
if (!t_relay()) {
sl_reply_error();
};
break;
};
}