Hi to all!
I'm a new seruser, and I have a problem with SER and a PSTN gw what I can't solve.
I have got 2 UAs, 1 SER server, 1 Cisco PSTN gw (by the side of the voip provider).
All of them have public IP.
Phone1 -------+
|
SER --- PSTN gw
|
Phone2 -------+
When I call from Phone1 to Phone2 directly, it is working properly.
But:
If I call from Phone1 to Phone2 via the PSTN gw, then it's ringing out,
and when I pick up Phone2 I hear the voice of Phone1, but in Phone1 I
can't hear the voice of Phone2.
If I call from Phone1 to other telephone numbers, I have the same problem.
I would like to proxy the media on the server.
I'm useing SER 0.8.14. ser.cfg attached
Thank you very much for your effort, and sorry for my poor English...
Regards,
KutiJoe
Alternatively u could do a 'touch /var/run/ser.pid ' before doing
serctl start
-----Original Message-----
From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org] On
Behalf Of Gary Reuter
Sent: Friday, July 29, 2005 10:21 PM
To: Colin Jordan
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] ser.pif file not found
If you're using serctl to start ser, it should be setting the pid
location properly... but the init.d ser script does not make ser create
the pid file. The solution I used was to add
OPTIONS="-P /var/run/ser.pid"
after the RETVAL line in the init.d/ser script.
On 7/29/05, Colin Jordan <cjordan(a)econetwireless.com> wrote:
>
> I cannot control SER via serctl stop/start due to the fact that when
> it runs via this command it is not finding a ser.pid. I have searched
> for ser.pid on my system and it is not there (was just making sure
> that serctl was not looking in the wrong spot for the PID file). Any
> suggestions??
>
>
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
The problem is solved. Already post a reply earlier on with the solution. It was becos the function don't seem to like my syntax.
Anyway, thanks for the response!
-----Original Message-----
From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Thomas Britis
Sent: Friday, July 29, 2005 8:10 PM
To: serusers(a)lists.iptel.org
Subject: Re: [Serusers] exec_msg problem
Do you run ser as root ?
$ l /var/log/syslog
-rw-r----- 1 root root 115568 2005-07-28 18:50 /var/log/syslog
If you're not root, so you can't write to /var/log/syslog.
Sam Lee wrote:
> Tried. It didn't work. :<
> Still getting the same error. The result still came out, its just that it is followed by the error message.
>
> 101 INVITE : 3902 <sip:3902@x.x.x.x>;tag=5086b56866af3edo0 to
> <sip:967258002@x.x.x.x> Jul 29 16:26:16 abc
> /usr/local/sbin/ser[10577]: ERROR: exec_msg: cmd echo "$SIP_HF_CSEQ :
> $SIP_HF_FROM to $SIP_HF_ TO" >> /var/log/syslog failed.
> exit_status=-1, errno=32: Broken pipe
>
>
>
> -----Original Message-----
> From: Xavier TRENTIN [mailto:xtrentin@softiphone.net]
> Sent: Friday, July 29, 2005 4:11 PM
> To: Sam Lee
> Subject: Re: [Serusers] exec_msg problem
>
> Try to quote the expression you want to echo like this:
>
> exec_msg('echo "$SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO">>
> /var/log/syslog');
>
>
> Xavier.
>
> Sam Lee a écrit:
>
>
>>***********************
>>Pas de virus detecté dans l'attachement no filename Pas de virus
>>detecté dans l'attachement no filename Pas de virus detecté dans
>>l'attachement no filename
>>
>>Votre Mail a été vérifié par InterScan.
>>***********-***********
>>
>>
>>
>>
>>----------------------------------------------------------------------
>>--
>>
>>Sujet:
>>[Serusers] exec_msg problem
>>Expéditeur:
>>"Sam Lee" <sam.lee(a)super.net.sg>
>>Date:
>>Fri, 29 Jul 2005 11:35:53 +0800
>>Destinataire:
>><serusers(a)lists.iptel.org>
>>
>>
>>Hi,
>>
>>Have anyone seen this kind of error message before :
>>
>>ERROR: exec_msg: cmd echo $SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO >>
>>/var/log/syslog failed. exit_status=-1, errno=32: Broken pipe
>>
>>This command is actually in my ser.cfg where i capture this few
>>environmental variables and push them into my /var/log/syslog. It
>>effectively went in, but i still see this error message.
>>Here is the original code in ser.cfg :
>>exec_msg("echo $SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO >>
>>/var/log/syslog");
>>
>>Please help!
>>
>>Regards,
>>Sam
>>
>>----------------------------------------------------------------------
>>--
>>
>>_______________________________________________
>>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
>
>
--
Thomas Storino Britis
TCNet Inf e Telecom LTDA
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
Hello Dave.
If i'm not wrong, there is a shell script included in the last SER
version to create all the DB tables related to SER. I think there is in :
/sip_router/scripts/ and is called "ser_mysql.sh"
You can try that!.
Regards,
Ricardo Martinez
> -----Mensaje original-----
> De: Dave [mailto:ddx66@yahoo.com]
> Enviado el: Viernes, 29 de Julio de 2005 11:16
> Para: serusers(a)lists.iptel.org
> Asunto: [Serusers] LCR on onsip.org - No DB tables created?
>
>
> Hi, I downloaded and installed the ser-0.9.3 from
> onsip.org with the intention of using LCR. Although,
> the LCR module was complied, I do not see the tables
> lcr, gw in the DB? How do I create them?
> Thanks
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
Hi, I downloaded and installed the ser-0.9.3 from
onsip.org with the intention of using LCR. Although,
the LCR module was complied, I do not see the tables
lcr, gw in the DB? How do I create them?
Thanks
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
I cannot control SER via serctl stop/start due to the fact that when it runs
via this command it is not finding a ser.pid. I have searched for ser.pid on
my system and it is
not there (was just making sure that serctl was not looking in the wrong
spot for the PID file). Any suggestions??
DISCLAIMER: The information in this message is confidential and is legally
privileged. It is intended solely for the addressee. Access to this message by
anyone else is unauthorized.If receiving in error please accept our apologies
and notify the sender immediately. You must also delete the original
message from your machine. If you are not the intended recipient, any use,
disclosure, copying, distribution or action taken in reliance of it, is prohibited
and maybe
unlawful.
Hi,
Thanks for your fast response!
I read this readme file, but I'm stucked with it.
Which file or files do I need for dbtext authentication? Is there a special name necessary?
When I'm right I give the name in the ser.cfg with the following line
if (!www_authorize("domain.com", "subscriber")) {
In my case "subscriber".
And the directory where to find the file with the following line
modparam("auth_db", "db_url","dbtext:///var/dbtext/ser")
in my case /var/dbtext/ser
How can I use not plain password but encrypted ones and finally are three "x" enough for ha1 and ha1b
or do I need to hash some values and write them down here?
Why does ser give me the reply "table not loaded", when these entries are correct meaning written after the README.
How can I fill the "subscriber" file with users and passwords? Texteditor I think, because serctl is only for mysql.
Thanks
Thorsten Mueller
mt> -----Ursprüngliche Nachricht-----
mt> Von: Daniel-Constantin Mierla [mailto:daniel@voice-system.ro]
mt> Gesendet: Freitag, 29. Juli 2005 10:55
mt> An: Müller Thorsten
mt> Cc: serusers(a)lists.iptel.org
mt> Betreff: Re: [Serusers] dbtext: table not loaded. example desired
mt>
mt>
mt> Hello,
mt>
mt> On 07/29/05 11:16, Müller Thorsten wrote:
mt>
mt> > Hi all,
mt> >
mt> > I try to set up ser with dbtext as authentication basis.
mt> I run in some
mt> > problems because the database is not found:
mt> > DBT:db_query: table not loaded.
mt> >
mt> > After some googling a found that Cesc
mt> [cesc.santa(a)gmail.com] had also
mt> > done some work with dbtext and mailed that to "serusers"
mt> or "serdev"
mt> > mailinglists
mt> >
mt> > In a mail from May and June 05 he told that he has
mt> written a "serctl"
mt> > for dbtext and a script to produce the necessary files.
mt> >
mt> > Has somebody got these things and can mail me these
mt> files! I could not
mt> > found them in the mailing history.
mt> >
mt> > Has somebody also dealed with dbtext and can give me some example
mt> > files for ser.cfg and dbtext files for
mt> "authentication/subscriber" and
mt> > "location".
mt> >
mt> rhe readme file of dbtext module has some examples of table
mt> structures
mt> as well as a simple config file.
mt>
mt> http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/mod
mt> ules/dbtext/README?rev=HEAD&content-type=text/vnd.viewcvs-markup
mt>
mt> Daniel
mt>
mt> > Thanks in advance
mt> >
mt> > Thorsten Mueller
mt> >
mt> > ser 0.8.14 cross-compiled for arm
mt> > My ser.cfg:
mt> > ####################################################
mt> > ...
mt> > # Added by mt for authentication with dbtext
mt> > loadmodule "/usr/local/lib/ser/modules/auth.so"
mt> > loadmodule "/usr/local/lib/ser/modules/auth_db.so"
mt> > loadmodule "/usr/local/lib/ser/modules/dbtext.so"
mt> >
mt> > modparam("auth_db", "db_url","dbtext:///var/dbtext/ser")
mt> >
mt> > # -- auth params --
mt> > modparam("auth_db", "calculate_ha1", 1)
mt> > modparam("auth_db", "password_column", "password")
mt> > modparam("auth_db", "user_column", "username")
mt> > modparam("auth_db", "domain_column", "domain")
mt> > ...
mt> >
mt> > if (uri==myself) {
mt> >
mt> > if (method=="REGISTER") {
mt> >
mt> > if (!www_authorize("domain.com", "subscriber")) {
mt> > www_challenge("domain.com", "0");
mt> > break;
mt> > };
mt> > save("location");
mt> > break;
mt> > }
mt> > ...
mt> > #####################################################
mt> >
mt> > I have a file in /var/dbtext/ser which is called "subscriber":
mt> > #####################################################
mt> > username(str) password(str) ha1(str) domain(str) ha1b(str)
mt> > suser:supasswd:xxx:domain.com:xxx
mt> > #####################################################
mt> >
mt> >-----------------------------------------------------------
mt> -------------
mt> >
mt> >_______________________________________________
mt> >Serusers mailing list
mt> >serusers(a)lists.iptel.org
mt> >http://lists.iptel.org/mailman/listinfo/serusers
mt> >
mt> >
mt>
Tried. It didn't work. :<
Still getting the same error. The result still came out, its just that it is followed by the error message.
101 INVITE : 3902 <sip:3902@x.x.x.x>;tag=5086b56866af3edo0 to <sip:967258002@x.x.x.x>
Jul 29 16:26:16 abc /usr/local/sbin/ser[10577]: ERROR: exec_msg: cmd echo "$SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_
TO" >> /var/log/syslog failed. exit_status=-1, errno=32: Broken pipe
-----Original Message-----
From: Xavier TRENTIN [mailto:xtrentin@softiphone.net]
Sent: Friday, July 29, 2005 4:11 PM
To: Sam Lee
Subject: Re: [Serusers] exec_msg problem
Try to quote the expression you want to echo like this:
exec_msg('echo "$SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO">> /var/log/syslog');
Xavier.
Sam Lee a écrit:
>***********************
>Pas de virus detecté dans l'attachement no filename
>Pas de virus detecté dans l'attachement no filename
>Pas de virus detecté dans l'attachement no filename
>
>Votre Mail a été vérifié par InterScan.
>***********-***********
>
>
>
>
> ------------------------------------------------------------------------
>
> Sujet:
> [Serusers] exec_msg problem
> Expéditeur:
> "Sam Lee" <sam.lee(a)super.net.sg>
> Date:
> Fri, 29 Jul 2005 11:35:53 +0800
> Destinataire:
> <serusers(a)lists.iptel.org>
>
>
> Hi,
>
> Have anyone seen this kind of error message before :
>
> ERROR: exec_msg: cmd echo $SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO >>
> /var/log/syslog failed. exit_status=-1, errno=32: Broken pipe
>
> This command is actually in my ser.cfg where i capture this few
> environmental variables and push them into my /var/log/syslog. It
> effectively went in, but i still see this error message.
> Here is the original code in ser.cfg :
> exec_msg("echo $SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO >>
> /var/log/syslog");
>
> Please help!
>
> Regards,
> Sam
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Serusers mailing list
>serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>
Hi all,
I try to set up ser with dbtext as authentication basis. I run in some problems because the database is not found:
DBT:db_query: table not loaded.
After some googling a found that Cesc [cesc.santa(a)gmail.com] had also done some work with dbtext and mailed that to "serusers" or "serdev" mailinglists
In a mail from May and June 05 he told that he has written a "serctl" for dbtext and a script to produce the necessary files.
Has somebody got these things and can mail me these files! I could not found them in the mailing history.
Has somebody also dealed with dbtext and can give me some example files for ser.cfg and dbtext files for "authentication/subscriber" and "location".
Thanks in advance
Thorsten Mueller
ser 0.8.14 cross-compiled for arm
My ser.cfg:
####################################################
...
# Added by mt for authentication with dbtext
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/dbtext.so"
modparam("auth_db", "db_url","dbtext:///var/dbtext/ser")
# -- auth params --
modparam("auth_db", "calculate_ha1", 1)
modparam("auth_db", "password_column", "password")
modparam("auth_db", "user_column", "username")
modparam("auth_db", "domain_column", "domain")
...
if (uri==myself) {
if (method=="REGISTER") {
if (!www_authorize("domain.com", "subscriber")) {
www_challenge("domain.com", "0");
break;
};
save("location");
break;
}
...
#####################################################
I have a file in /var/dbtext/ser which is called "subscriber":
#####################################################
username(str) password(str) ha1(str) domain(str) ha1b(str)
suser:supasswd:xxx:domain.com:xxx
#####################################################
Solved IT!
Stupid error.
Old : exec_msg("echo $SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO>> /var/log/syslog");
New : exec_msg("(echo $SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO)>> /var/log/syslog);
That solves it! It seems like the exec_msg is not happy about the syntax that I gave it. :>
Thank for all the help!
Regards,
Sam
-----Original Message-----
From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Sam Lee
Sent: Friday, July 29, 2005 4:30 PM
To: Xavier TRENTIN; serusers(a)lists.iptel.org
Subject: RE: [Serusers] exec_msg problem
Tried. It didn't work. :<
Still getting the same error. The result still came out, its just that it is followed by the error message.
101 INVITE : 3902 <sip:3902@x.x.x.x>;tag=5086b56866af3edo0 to <sip:967258002@x.x.x.x> Jul 29 16:26:16 abc /usr/local/sbin/ser[10577]: ERROR: exec_msg: cmd echo "$SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_ TO" >> /var/log/syslog failed. exit_status=-1, errno=32: Broken pipe
-----Original Message-----
From: Xavier TRENTIN [mailto:xtrentin@softiphone.net]
Sent: Friday, July 29, 2005 4:11 PM
To: Sam Lee
Subject: Re: [Serusers] exec_msg problem
Try to quote the expression you want to echo like this:
exec_msg('echo "$SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO">> /var/log/syslog');
Xavier.
Sam Lee a écrit:
>***********************
>Pas de virus detecté dans l'attachement no filename Pas de virus
>detecté dans l'attachement no filename Pas de virus detecté dans
>l'attachement no filename
>
>Votre Mail a été vérifié par InterScan.
>***********-***********
>
>
>
>
> ----------------------------------------------------------------------
> --
>
> Sujet:
> [Serusers] exec_msg problem
> Expéditeur:
> "Sam Lee" <sam.lee(a)super.net.sg>
> Date:
> Fri, 29 Jul 2005 11:35:53 +0800
> Destinataire:
> <serusers(a)lists.iptel.org>
>
>
> Hi,
>
> Have anyone seen this kind of error message before :
>
> ERROR: exec_msg: cmd echo $SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO >>
> /var/log/syslog failed. exit_status=-1, errno=32: Broken pipe
>
> This command is actually in my ser.cfg where i capture this few
> environmental variables and push them into my /var/log/syslog. It
> effectively went in, but i still see this error message.
> Here is the original code in ser.cfg :
> exec_msg("echo $SIP_HF_CSEQ : $SIP_HF_FROM to $SIP_HF_TO >>
> /var/log/syslog");
>
> Please help!
>
> Regards,
> Sam
>
>-----------------------------------------------------------------------
>-
>
>_______________________________________________
>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