At 10:05 PM 4/2/2003, Dan Austin wrote:
>Calls to the PSTN work for me as well, but I've run into a small
>snag using the IM functions.
>
>Messenger claims I can added multiple parties to the IM session,
>but the menu option is not available. Am I running into a
>Messenger issue, or a SER limitation?
Maybe it is just a .net option? It seems unlikely to me SER is guilty.
-jiri
Hi
I'm using SER from fresh (today) CVS on linux-router with two NIC's, one
with public IP, and other with private, and when trying to call from
private LAN to public SIP-gateway, on remote side I see that packets
have incorrect source address:
17:36:45.131465 172.20.0.202.5060 > xxx.xxx.xxx.147.5060: udp 561 (DF)
17:36:45.156165 xxx.xxx.xxx.147.5060 > 172.20.0.202.5060: udp 311
17:36:48.456464 xxx.xxx.xxx.147.5060 > 172.20.0.202.5060: udp 637
How can I fix this?
--
Michael Vasilenko
Friends,
please, can you help me and share with me privately which SIP2PSTN
gateways you are using in your networks? I'ld like to get a better
feeling of what devices today have reputation of being usable and
with which of them SER has been tested. I'm interested in all-grade
devices, from single FXO to SS7 gateways. I'll keep it for myself.
Thank you a lot,
-Jiri
--
Jiri Kuthan http://iptel.org/~jiri/
Calls to the PSTN work for me as well, but I've run into a small
snag using the IM functions.
Messenger claims I can added multiple parties to the IM session,
but the menu option is not available. Am I running into a
Messenger issue, or a SER limitation?
Dan
-----Original Message-----
From: Tomas Björklund [mailto:tomas@webservices.se]
Sent: Wednesday, April 02, 2003 11:51 AM
To: Bo
Cc: serusers(a)lists.iptel.org
Subject: [Serusers] Re: windows messenger
I've used version 4.6 and yes I have called from messenger->ser->pstn-gw
/ Tomas
On Wed, 2 Apr 2003, Bo wrote:
> Thanks Tomas. Which version of Messenger are you using? Did you use it
> to make voice calls through a pstn-gateway?
>
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
To avoid confusions like we have had in past days, we now
documented few suggestion on CVS usage and bug reporting.
They are available at
http://www.iptel.org/ser/cvs/http://www.iptel.org/ser/bugs/
The most essential change is we are now asking developers
to use a new development mailing list for their discussion.
That should avoid burdening the user community with emails
about development.
-Jiri
--
Jiri Kuthan http://iptel.org/~jiri/
Hi,
Sorry for the offtopic, but I hope you could help me.
I'm looking for a reliable sip-h323 gateway, I would like to connect it to SER.
I have been testing the Vovida's siph323csgw for some weeks with many troubles.
So it seems not to be working properly to me. I only require the signalling
translation, but lots of produt offer much more for high prices.
Has anyone experinece in sip-h323 gateways?
Thanks,
--
---------------------------------------------------------------------------
Miklos Tirpak
Computer and Automation Research Institute e-mail : mtirpak(a)sztaki.hu
of the Hungarian Academy of Sciences phone : (361) 279-6011
H-1132. Budapest, Victor Hugo u 18-22 fax : (361) 279-6021
Hello:
I'm just getting started with my implementation of
SER on FreeBSD 4.7-RELEASE. I've read the
documentation, installed Apache and mySQL and
would like to add users for my domain.
I've tried adding an administrative user using serctl
however this script fails for reason I cannot explain.
Here is what I did:
serctl add user1 password1 email1(a)mydomain.com
read: Illegal option -s
read: Illegal option -s
Enter password: < I entered the default admin account password>
ERROR 1045: Access denied for user: 'ser@localhost' (Using password:
YES)
introducing a new user to the database failed
Thanks,Steve
Hi,
if we try to compile the CVS-Snapshot on a Solaris 8 machine, we get the
following error:
# make
gcc -g -O9 -funroll-loops -Wall -mcpu=ultrasparc -mtune=ultrasparc -m32
-DNAME='"ser"' -DVERSION='"0.8.11pre9-new_opts"' -DARCH='"sparc64"' -DOS='
"solaris"' -DCOMPILER='"gcc
3.2"' -D__CPU_sparc64 -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_M
EM -DSHM_MMAP -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DDNS_IP_HACK -DUS
E_IPV6 -DUSE_TCP -DDISABLE_NAGLE -DDIGEST_DOMAIN -DDBG_QM_MALLOC -DFAST_LOC
K -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -c
lex.yy.c -o lex.yy.o
gcc -g -O9 -funroll-loops -Wall -mcpu=ultrasparc -mtune=ultrasparc -m32
-DNAME='"ser"' -DVERSION='"0.8.11pre9-new_opts"' -DARCH='"sparc64"' -DOS='
"solaris"' -DCOMPILER='"gcc
3.2"' -D__CPU_sparc64 -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_M
EM -DSHM_MMAP -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DDNS_IP_HACK -DUS
E_IPV6 -DUSE_TCP -DDISABLE_NAGLE -DDIGEST_DOMAIN -DDBG_QM_MALLOC -DFAST_LOC
K -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -c
cfg.tab.c -o cfg.tab.o
/usr/ccs/bin/yaccpar:5: warning: ignoring #pragma ident
/usr/ccs/bin/yaccpar: In function `yyparse':
/usr/ccs/bin/yaccpar:374: warning: label `yyerrlab' defined but not used
/usr/ccs/bin/yaccpar:164: warning: label `yynewstate' defined but not used
Extra objs:
gcc -O2 lex.yy.o
cfg.tab.o -lfl -ldl -lresolv -L/usr/local/lib -lfl -lxnet -lrt -lnsl -o
ser
Undefined first referenced
symbol in file
dont_fork cfg.tab.o
mk_net_bitlen cfg.tab.o
append_action cfg.tab.o
port_no cfg.tab.o
syn_branch cfg.tab.o
dprint lex.yy.o
memlog cfg.tab.o
aliases cfg.tab.o
mhomed cfg.tab.o
server_signature cfg.tab.o
push cfg.tab.o
...
...
...
sock_no cfg.tab.o
qm_free lex.yy.o
debug lex.yy.o
ld: fatal: Symbol referencing errors. No output written to ser
collect2: ld returned 1 exit status
make: *** [ser] Error 1
We do not know, how to fix this problem.
Bjoern
Hi,
I am using the latest cvs code (although the follwoing occurs since a few
days) -- I first thought it is some file "under development" and that is
why I have updated from CVS frequently, but I am not convinced of this
anymore, as you are usually good in fixing things up quickly.
Maybe you could interpret this for me? (the lines referring to polserver
connector are our own module, but that seems to be fine here).
many thanks,
Stephan
------------
LOG below.
------------
Apr 2 10:54:22 d254196 ser: Listening on
Apr 2 10:54:22 d254196 ser: 127.0.0.1 [127.0.0.1]::5060
Apr 2 10:54:22 d254196 ser: 139.153.254.196
[139.153.254.196]::5060Apr 2 10:54:22 d254196 ser: Aliases: localhost:5060
localhost.localdomain:5060 d254196.cs.stir.ac.uk:*Apr 2 10:54:22 d254196 ser: ser startup succeeded
Apr 2 10:54:22 d254196 ser: INFO: signal 13 received
Apr 2 10:54:22 d254196 ser: INFO: signal 13 received
Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: mod_init(): Database
connection opened successfulyApr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: pol server connector -
initializingApr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: pol server connector -
initializing: doneApr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: INFO: udp_init:
SO_RCVBUF is initially 65535Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: INFO: udp_init:
SO_RCVBUF is finally 131070Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: INFO: udp_init:
SO_RCVBUF is initially 65535Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: INFO: udp_init:
SO_RCVBUF is finally 131070Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8752]: INFO: fifo process
starting: 8752Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8752]: SER: open_uac_fifo:
fifo server up at /tmp/ser_fifo...Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: INFO: SIGCHLD received:
we do not worry about grand-childrenApr 2 10:54:22 d254196 /usr/local/sbin/ser[8764]: BUG: tcp_main_loop:
dead child 11Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8764]: BUG: tcp_main_loop:
dead child 12Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8764]: BUG: tcp_main_loop:
dead child 13Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8764]: BUG: tcp_main_loop:
dead child 14Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: child process 8763
exited by a signal 11Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: core was not generated
Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: child process 8762
exited by a signal 11Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: core was not generated
Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: child process 8761
exited by a signal 11Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: core was not generated
Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: child process 8760
exited by a signal 11Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: core was not generated
Apr 2 10:54:22 d254196 /usr/local/sbin/ser[8739]: INFO: terminating due
to SIGCHLDApr 2 10:54:23 d254196 /usr/local/sbin/ser[8741]: INFO: signal 15 received
Apr 2 10:54:23 d254196 /usr/local/sbin/ser[8742]: INFO: signal 15 received
Apr 2 10:54:23 d254196 /usr/local/sbin/ser[8743]: INFO: signal 15 received
Apr 2 10:54:23 d254196 /usr/local/sbin/ser[8744]: INFO: signal 15 received
Apr 2 10:54:23 d254196 /usr/local/sbin/ser[8745]: INFO: signal 15 received
Apr 2 10:54:23 d254196 /usr/local/sbin/ser[8746]: INFO: signal 15 received
Apr 2 10:54:23 d254196 /usr/local/sbin/ser[8750]: INFO: signal 15 received
Apr 2 10:54:23 d254196 /usr/local/sbin/ser[8751]: INFO: signal 15 received
Apr 2 10:54:23 d254196 /usr/local/sbin/ser[8759]: INFO: signal 15 received
Apr 2 10:54:23 d254196 /usr/local/sbin/ser[8764]: INFO: signal 15 received
Apr 2 10:54:23 d254196 /usr/local/sbin/ser[8752]: INFO: signal 15 received
--
The University of Stirling is a university established in Scotland by
charter at Stirling, FK9 4LA. Privileged/Confidential Information may
be contained in this message. If you are not the addressee indicated
in this message (or responsible for delivery of the message to such
person), you may not disclose, copy or deliver this message to anyone
and any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. In such case, you should destroy this
message and kindly notify the sender by reply email. Please advise
immediately if you or your employer do not consent to Internet email
for messages of this kind. Opinions, conclusions and other
information in this message that do not relate to the official
business of the University of Stirling shall be understood as neither
given nor endorsed by it.
Valery,
I really don't know why your web server's PHP does not send emails.
When the subscription is completed, a "thank you for registering"
webpage should show up -- you can play with serweb in action at
iptel.org. Let me know when you learn what the problem was.
-jiri
At 12:38 PM 4/2/2003, Valery Shampal wrote:
>Dear Jiri,
>
>We have a good progress in establishing our VoIP Test/Demo Lab.
>But we still have a problem with registration via Web.
>One more time, I am not sure we will use it but I definitely want it
>to work - just in case...
>
>Following a situation:
>
>1. sendmail command works well from the Linux command line. It sends
> mail to our Exchange server (for example, valery(a)nsi.co.il)
>2. After filling the subscribe web form, an empty form returns on screen.
> We have no message on screen that registration has been started, but
> we are not sure something like this must be :-)
>3. We do not see any mail on Linux mail queue
>4. Mail is not being sent to Exchange server
>5. We saw sendmail command in one of your scripts, so it must work
>6. We checked and did all you have suggested in your mail:
>
>PHP sends to SMTP daemon at localhost.
>Try looking at the place where your web and email servers stores
>their logs. If PHP or your web server are misconfigured, that's where
>you will best learn it.
>
> We did or best but did not see any problem. May be we do not know where
> and what to search for or to look at :-(
>7. So, it still does not want to work.
>
>Regards,
>
> Valery
>
>
>
>
>-----Original Message-----
>From: Jiri Kuthan [<mailto:jiri@iptel.org>mailto:jiri@iptel.org]
>Sent: Tuesday, April 01, 2003 11:31 AM
>To: Valery Shampal; 'jan(a)iptel.org'; Valery Shampal
>Cc: Igor Vinokur; Mihai Teodorescu
>Subject: RE: SIP Proxy instalation - NO big problems any more :-) :-) :-) meanwhile
>
>At 10:18 AM 4/1/2003, Valery Shampal wrote:
>
>>Jan,
>>
>>Great. You are absolutely right in what you wrote in the
>>last topic. Any way, we did not suppose to define users via Web interface. We supposed to define users (there might be hundreds of them for DEmo and Testing
>
>>
>>purpose) by means of a script directly into database.
>
>In which case you are probably best server through the sercrtl utility.
>
>>We just like to use all the options, including this cute Web interface.
>>
>>Regarding the mail. MTA is running on our Linux.
>>
>>We just wanted to understand what and where must be defined
>>in order a mail will be really sent.
>
>PHP sends to SMTP daemon at localhost.
>
>>As I understood, a user defined via Web interface was not defined in DB only because (for some reason) a mail has not been sent. A reason we wanted to know what log files and where to look into was to understand what kind of error we have.
>
>-Jiri
--
Jiri Kuthan http://iptel.org/~jiri/
Hi,
all the changes are on CVS. Feel free to download and test.
Thanks for the feedback,
Bogdan
-------- Original Message --------
Subject: Re: [Serusers] SMS gateway using a mobile phone
Date: Tue, 01 Apr 2003 18:30:18 +0200
From: Bogdan-Andrei IANCU <iancu(a)fokus.fraunhofer.de>
Reply-To: iancu(a)fokus.fraunhofer.de
To: "LeeCC, Kenny" <Kenny.LeeCC(a)hp.com>
CC: serusers(a)lists.iptel.org
References:
<6A52901B8F7E2A42B2C169B7AC932DDE02820E71(a)msaexc01.asiapacific.cpqcorp.net>
Hi Kenny,
First, I want to say that our SMS module is base on the same library as
Stefan Frings's "SMS Server Tools", so , if you succeeded it in sending
a SMS with this tool, you can do it also with the SMS GW.
The log you sent actually says the SMS GW is trying (using AT+CREG
command) to find out if the modem is registered on the GSM network (if
you have signal on your phone). But, if your phone doesn't support
AT+CREG command (as you said), the GW will remain blocked there until it
will figure out the modem status regarding registration on the network.
You said you were able to use the "SMS Server Tools" which actually does
to same - first checks if the modem is registered on GSM network. My
opinion is you specified to "putsms" the '-m' parameter (the PDU mod) to
"DIGICOM" - this is the only way haw to skip the registration check.
Please tell me if I right or not. If yes, you can find a similar setting
for the SMS GW - in "modem" section switch the 'm' param from '"new" to
"digicom".
Now, regarding the SMS center number. I guess you are right. I will turn
this parameter to "optional" - to be more flexible- and I will move it
from "network" section to the "modem" one. As soon as I will finish the
changing, I will let you know.
Yes, indeed, there is no support for 57600 baud rate - I will added asap.
In order to be able to help you more, if it's possible, please send me
exactly the parameters you used with "putsms" (from "SMS Server Tools").
Best regards,
Bogdan
LeeCC, Kenny wrote:
>Hi,
>
>Am trying to get SER to send SMS messages out via my SER server serial/comm port connected to a Motorola Timeport P7382 mobile phone but am having trouble because of SER "sms.so" module keep trying to register the SMS center number; syslog snippet.
>
>
>Apr 1 18:32:28 gits /usr/sbin/ser[18276]: INFO:initmodem: Checking if Modem is registered to the network
>Apr 1 18:32:30 gits /usr/sbin/ser[18266]: NOTICE:initmodem: Waiting 2 sec. before retrying
>
>
>The mobile phone already register to the SMS center number thus re-registering is not required. "sms.so" module doesn't seems to pick up the message that the mobile phone have already registered to the SMS center number and I have to amend and recompile "libsms_modem.c" because the mobile phone do not recognise AT+CREG command but AT+CSCA command.
>
>To test whether the mobile phone is able to send SMS messages out via the serial/comm port, I used Stefan Frings "SMS Server Tools" by commenting the config file from registering the SMS center number and it managed to send out sms messages. However on SER "sms.so" modules, I have no idea how to stop it from registering the SMS center number. From the "../sms/README" file, it did mention that "c=SMS_center" is mandatory. That looks like not registering to the SMS center is a no-no. :-( Other than changing some words here and there of the source code via gut feel, I don't have any experience in C thus am yelping for help here.
>
>Btw, the modem baud rate on "sms.c" only supports up to 38400 and that won't work with my mobile phone, thus have to add a line for 57600 baud rate. Maybe is already added in the latest CVS. Am using the stable version source. Below is my "ser.cfg".
>
>Thanks & rgds,
>kenny.leecc
>-------------------------------------------
>
>#
># $Id: ser.cfg,v 1.12 2002/10/21 02:40:06 jiri Exp $
>#
># simple quick-start config script
>#
>
># ----------- global configuration parameters ------------------------
>
>debug=9 # debug level (cmd line: -dddddddddd)
>fork=yes
>log_stderror=no # (cmd line: -E)
>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 ----------------------------------
>
># Uncomment this if you want to use SQL database
>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/sms.so"
>loadmodule "//usr/lib/ser/modules/im.so"
>loadmodule "//usr/lib/ser/modules/textops.so"
>loadmodule "//usr/lib/ser/modules/usrloc.so"
>loadmodule "//usr/lib/ser/modules/registrar.so"
>loadmodule "//usr/lib/ser/modules/pike.so"
>
># Uncomment this if you want digest authentication
># mysql.so must be loaded !
>loadmodule "//usr/lib/ser/modules/auth.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)
>
># -- auth params --
># Uncomment if you are using auth module
>#
>modparam("auth", "secret", "alsdkhglaksdhfkloiwr")
>modparam("auth", "calculate_ha1", yes)
>#
># If you set "calculate_ha1" parameter to yes (which true in this config),
># uncomment also the following parameter)
>#
>modparam("auth", "password_column", "password")
>
># -- SMS params --
>modparam("sms","modems","Motorola [d=/dev/ttyS0;b=57600;m=new;l=20;r=2]")
>modparam("sms","networks","Maxis[c=60120000015;m=10]")
>modparam("sms","links","Motorola [Maxis]")
>modparam("sms","domain","gits.msasip.net")
>modparam("sms","max_sms_parts",3)
>modparam("sms","use_contact",1)
>
># -- tm params --
>modparam("tm", "fr_timer", 10 )
>modparam("tm", "fr_inv_timer", 10 )
>modparam("tm", "wt_timer", 10 )
>
># -- pike params --
># no more than minimum 5 or maximum 5*3 msg per 10 secs - only for sms
>modparam("pike","sampling_time_unit",60)
>modparam("pike","reqs_density_per_unit",5)
>modparam("pike","removel_latency",30)
>
># ------------------------- request routing logic -------------------
>
># main routing logic
>
>alias="my.domain"
>
>route{
>
> # initial sanity checks -- messages with
> # max_forwars==0, or excessively long requests
> # filter too old messages
> if (!mf_process_maxfwd_header("10")) {
> log("LOG: Too many hops\n");
> sl_send_reply("483","Too Many Hops");
> break;
> };
>
> # messages too large are denied
> if (len_gt( max_len )) {
> sl_send_reply("513", "Message too big");
> break;
> };
>
> # accept only req coming from my.domain
> if (!src_ip==192.168.1.1 |
> !( uri=~"my.domain" | uri=~"192\.168\.1\.0" ))
> {
> sl_send_reply("403","Forbidden");
> log("SER:Forbidden request: wrong src_ip or req_uri\n");
> break;
> };
>
> # we are not interested in non-MESSAGE requests
> if (!method=="MESSAGE")
> {
> sl_send_reply("501","Not Implemented");
> break;
> };
>
> # error occured ...
> if (! t_newtran())
> {
> sl_reply_error();
> break;
> };
>
> ### ------ SMS GATEWAY --------
> # let's block ips that send a lot of request!!
> if (!pike_check_req() )
> {
> break;
> };
> # SMS expects only the numbers as follows +
> #if (!(uri=~"sip:+[^0][0-9]{3}"))
> if (!(uri=="sip:0121234567"))
> {
> log("SER: invalid number format!!\n");
> if (!t_reply("502","Bad gateway - invalid number"))
> {
> # if replying failed, retry statelessly
> sl_reply_error();
> };
> break;
> };
> if (sms_send_msg_to_net("Maxis"))
> {
> # for sending replies, we won't use the statefull
> # function because it is not able to add the Contact
> # header (in fact to add any rpl_lump :-( )
> # things went well, send ok upstream
> if (!t_reply("202", "yes sir, SMS sent over"))
> {
> # if replying failed, retry statelessly
> sl_reply_error();
> };
> } else {
> if (!t_reply("502", "Bad gateway - SMS error"))
> {
> # if replying failed, retry statelessly
> sl_reply_error();
> };
> break;
> };
>
> # Do strict routing if pre-loaded route headers present
> rewriteFromRoute();
>
> # forward or handoff to PSTN
> if (uri=~"^sip:9[0-9]*@192.168.1.66") {
> strip(1);
> log("Forwarding to PSTN\n");
> rewritehostport("192.168.1.50:5060");
> };
>
> lookup("aliases");
> # 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") {
>
># Uncomment this if you want to use digest authentication
> if (!www_authorize("my.domain", "subscriber")) {
> www_challenge("my.domain", "0");
> break;
> };
>
>
> save("location");
> 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
> if (!t_relay()) {
> sl_reply_error();
> };
>
>}
>_______________________________________________
>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
We´re trying to install the ser, and eventually we hope it will work with
our jabberserver aswell. Now though we have some problem that we can't
solve.
version: ser 0.8.11pre8-mem (i386/linux)
When starting the ser ( ./ser -f etc/ser.cfg)
we get the following error message:
0(10388) set_mod_param_regex: auth matches module auth
0(10388) set_mod_param_regex: parameter <calculate_ha1> not found in module
<auth>
0(10388) qm_free(0x80a1a40, 0x80a8a60), called from modparam.c:
set_mod_param_regex(130)
0(10388) qm_free: freeing block alloc'ed from modparam.c:
set_mod_param_regex(85)
0(10388) parse error (82,39-40): Can't set module parameter
.
.
.
.
0(10388) set_mod_param_regex: auth matches module auth
0(10388) set_mod_param_regex: parameter <password_column> not found in
module <auth>
0(10388) qm_free(0x80a1a40, 0x80a8b14), called from modparam.c:
set_mod_param_regex(130)
0(10388) qm_free: freeing block alloc'ed from modparam.c:
set_mod_param_regex(85)
0(10388) parse error (83,47-48): Can't set module parameter
The ser.cfg file looks like this:
modparam("usrloc", "db_mode", 2)
modparam("auth", "calculate_ha1", true)
modparam("auth", "password_column", "password")
Please, help us on this since we can't move forward as long as we have this
problem. Let us know if you need more info.
Magnus
_________________________________________________________________
Hitta rätt köpare på MSN Köp & Sälj http://www.msn.se/koposalj
Hi,
I have tested cisco ATA186 (private IP) with SER under different circumstances. With Linksys and D-link router, there were no problem. But with Lioncom ADSL router, a strange thing happened. In this case, the ATA is having a private IP 192.168.5.2 and the SIP port number is the default 5060. The public IP of the ADSL connection was 195.226.252.124. The following is the traces from ngrep. As you can see, the Lioncom router forwarded (NAT) the SIP REGISTER with port 30150 while SER sent the response back to port 5060. So the ATA couldn't receive the response at all. What maybe the problem?
#
U 195.226.252.124:30150 -> 192.168.3.29:5060
REGISTER sip:sip.abc.com SIP/2.0..Via: SIP/2.0/UDP 192.168.5.2:5060..From: <sip:6701892@si
p.abc.com;user=phone>..To: <sip:6701892@sip.abc.com;user=phone>..Call-ID: 1781909739@1
92.168.5.2..CSeq: 1 REGISTER..Contact: *..Expires: 0..User-Agent: Cisco ATA v2.15 ata18x (0209
27a)..Content-Length: 0....
#
U 192.168.3.29:5060 -> 195.226.252.124:5060
SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP 192.168.5.2:5060;received=195.226.252.124..From: <s
ip:6701892@sip.abc.com;user=phone>..To: <sip:6701892@sip.abc.com;user=phone>;tag=d907c
037823644515dfe0ede38ca9976.9b53..Call-ID: 1781909739@192.168.5.2..CSeq: 1 REGISTER..WWW-Authen
ticate: Digest realm="sip.abc.com", nonce="3e89f40b00000000e3fd8eedb58e5662ca62981749bb0006
", algorithm=MD5..Server: Sip EXpress router (0.8.10 (i386/linux))..Content-Length: 0..Warning:
392 192.168.3.29:5060 "Noisy feedback tells: pid=10613 req_src_ip=195.226.252.124 in_uri=sip:s
ip.bmx-inc.comout_uri=sip:sip.abc.com via_cnt==1"....
Thanks,
Bo
Hi,
Am trying to get SER to send SMS messages out via my SER server serial/comm port connected to a Motorola Timeport P7382 mobile phone but am having trouble because of SER "sms.so" module keep trying to register the SMS center number; syslog snippet.
<snip>
Apr 1 18:32:28 gits /usr/sbin/ser[18276]: INFO:initmodem: Checking if Modem is registered to the network
Apr 1 18:32:30 gits /usr/sbin/ser[18266]: NOTICE:initmodem: Waiting 2 sec. before retrying
<snip>
The mobile phone already register to the SMS center number thus re-registering is not required. "sms.so" module doesn't seems to pick up the message that the mobile phone have already registered to the SMS center number and I have to amend and recompile "libsms_modem.c" because the mobile phone do not recognise AT+CREG command but AT+CSCA command.
To test whether the mobile phone is able to send SMS messages out via the serial/comm port, I used Stefan Frings "SMS Server Tools" by commenting the config file from registering the SMS center number and it managed to send out sms messages. However on SER "sms.so" modules, I have no idea how to stop it from registering the SMS center number. From the "../sms/README" file, it did mention that "c=SMS_center" is mandatory. That looks like not registering to the SMS center is a no-no. :-( Other than changing some words here and there of the source code via gut feel, I don't have any experience in C thus am yelping for help here.
Btw, the modem baud rate on "sms.c" only supports up to 38400 and that won't work with my mobile phone, thus have to add a line for 57600 baud rate. Maybe is already added in the latest CVS. Am using the stable version source. Below is my "ser.cfg".
Thanks & rgds,
kenny.leecc
-------------------------------------------
#
# $Id: ser.cfg,v 1.12 2002/10/21 02:40:06 jiri Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
debug=9 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no # (cmd line: -E)
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 ----------------------------------
# Uncomment this if you want to use SQL database
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/sms.so"
loadmodule "//usr/lib/ser/modules/im.so"
loadmodule "//usr/lib/ser/modules/textops.so"
loadmodule "//usr/lib/ser/modules/usrloc.so"
loadmodule "//usr/lib/ser/modules/registrar.so"
loadmodule "//usr/lib/ser/modules/pike.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "//usr/lib/ser/modules/auth.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)
# -- auth params --
# Uncomment if you are using auth module
#
modparam("auth", "secret", "alsdkhglaksdhfkloiwr")
modparam("auth", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
modparam("auth", "password_column", "password")
# -- SMS params --
modparam("sms","modems","Motorola [d=/dev/ttyS0;b=57600;m=new;l=20;r=2]")
modparam("sms","networks","Maxis[c=60120000015;m=10]")
modparam("sms","links","Motorola [Maxis]")
modparam("sms","domain","gits.msasip.net")
modparam("sms","max_sms_parts",3)
modparam("sms","use_contact",1)
# -- tm params --
modparam("tm", "fr_timer", 10 )
modparam("tm", "fr_inv_timer", 10 )
modparam("tm", "wt_timer", 10 )
# -- pike params --
# no more than minimum 5 or maximum 5*3 msg per 10 secs - only for sms
modparam("pike","sampling_time_unit",60)
modparam("pike","reqs_density_per_unit",5)
modparam("pike","removel_latency",30)
# ------------------------- request routing logic -------------------
# main routing logic
alias="my.domain"
route{
# initial sanity checks -- messages with
# max_forwars==0, or excessively long requests
# filter too old messages
if (!mf_process_maxfwd_header("10")) {
log("LOG: Too many hops\n");
sl_send_reply("483","Too Many Hops");
break;
};
# messages too large are denied
if (len_gt( max_len )) {
sl_send_reply("513", "Message too big");
break;
};
# accept only req coming from my.domain
if (!src_ip==192.168.1.1 |
!( uri=~"my.domain" | uri=~"192\.168\.1\.0" ))
{
sl_send_reply("403","Forbidden");
log("SER:Forbidden request: wrong src_ip or req_uri\n");
break;
};
# we are not interested in non-MESSAGE requests
if (!method=="MESSAGE")
{
sl_send_reply("501","Not Implemented");
break;
};
# error occured ...
if (! t_newtran())
{
sl_reply_error();
break;
};
### ------ SMS GATEWAY --------
# let's block ips that send a lot of request!!
if (!pike_check_req() )
{
break;
};
# SMS expects only the numbers as follows +<int> <area> <nr>
#if (!(uri=~"sip:+[^0][0-9]{3}"))
if (!(uri=="sip:0121234567"))
{
log("SER: invalid number format!!\n");
if (!t_reply("502","Bad gateway - invalid number"))
{
# if replying failed, retry statelessly
sl_reply_error();
};
break;
};
if (sms_send_msg_to_net("Maxis"))
{
# for sending replies, we won't use the statefull
# function because it is not able to add the Contact
# header (in fact to add any rpl_lump :-( )
# things went well, send ok upstream
if (!t_reply("202", "yes sir, SMS sent over"))
{
# if replying failed, retry statelessly
sl_reply_error();
};
} else {
if (!t_reply("502", "Bad gateway - SMS error"))
{
# if replying failed, retry statelessly
sl_reply_error();
};
break;
};
# Do strict routing if pre-loaded route headers present
rewriteFromRoute();
# forward or handoff to PSTN
if (uri=~"^sip:9[0-9]*@192.168.1.66") {
strip(1);
log("Forwarding to PSTN\n");
rewritehostport("192.168.1.50:5060");
};
lookup("aliases");
# 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") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("my.domain", "subscriber")) {
www_challenge("my.domain", "0");
break;
};
save("location");
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
if (!t_relay()) {
sl_reply_error();
};
}
For the last couple of days the Transaction Statistics show "10 Waiting". Even when there is no traffic. What exactly does it represent? and how can it stay stuck?
Thanks,
Ricardo
[cycle #: 18173; if constant make sure server lives and fifo is on]
Server: Sip EXpress router (0.8.10 (i386/linux))
Now: Tue Apr 1 10:53:20 2003
Up Since: Mon Mar 24 17:30:57 2003
Up time: 667343 [sec]
Transaction Statistics
Current: 0 (10 waiting) Total: 609 (0 local)
Replied localy: 394
Completion status 6xx: 4, 5xx: 0, 4xx: 219, 3xx: 0,2xx: 518
Stateless Server Statistics
200: 922 202: 0 2xx: 0
300: 0 301: 0 302: 0 3xx: 0
400: 0 401: 995 403: 0 404: 11227 407: 0 408: 0 483: 8 4xx: 1901
500: 0 5xx: 0
6xx: 0
xxx: 0
failures: 4
UsrLoc Stats
Domain Registered Expired
'location' 2 35
'aliases' 13 0
hi Jan.
tried what u have said.i am still getting the same error.
sunithi
-----Original Message-----
From: Jan Janak [mailto:jan@iptel.org]
Sent: Tuesday, April 01, 2003 6:42 PM
To: Sunithi JP
Cc: 'serusers(a)lists.iptel.org'
Subject: Re: [Serusers] how do i add an alias?
Hello,
it should look like this:
sc alias add test2 sip:test@indts.com
Jan.
On 01-04 18:27, Sunithi JP wrote:
> hi all,
> i am running SER (ver 0.8.10) with MySql support.
>
> i made an entry in the database for a user "test" using the command :
> - serctl add test test test(a)indts.com <mailto:test@indts.com>
>
> now, i want to add an alias for the user "test". so when i type :
> - serctl alias add test(a)indts.com <mailto:test@indts.com>
> sip:test2@indts.com <mailto:sip:test2@indts.com>
>
> i get the following error
>
> sip:test2@indts.com <mailto:sip:test2@indts.com>
> 400 ul_add: contact expected
>
> what is happening? pls help
>
> thx,
> sunithi
>
>
>
Hello,
When the user registeres/authorizes with ser, no update is done to sers
userlocate database. The 200 reply is sent to user (and from
documentation save("location"); sends it), and in mysql log I see a
query for authirization. But no update to is issued to mysql location
table, and serctl ul show doesnt show the user. Sometimes the user does
show up in the userlocate database but I was not able to point down when
this happens.
I`m running the march 19/ 6pm cvs version as was recommended.
here is the ser.cfg :
----------
#
# $Id: ser.cfg,v 1.12 2002/10/21 02:40:06 jiri Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
debug=9 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no # (cmd line: -E)
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
port=5060
children=1
fifo="/tmp/ser_fifo"
sip_warning=yes
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
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/vm_mod.so"
loadmodule "/usr/lib/ser/modules/pa.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/lib/ser/modules/auth.so"
loadmodule "/usr/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)
modparam("usrloc", "timer_interval", 30)
# modparam("usrloc", "db_url", "sql://serro:47serro11@localhost/ser")
# -- auth params --
# Uncomment if you are using auth module
#
# modparam("auth", "secret", "12036dabde659847dd9e")
modparam("auth_db", "calculate_ha1", true)
#
# If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
modparam("auth_db", "password_column", "password")
# modparam("auth_db", "db_url", "sql://ser:heslo@localhost/ser")
# modparam("registrar", "default_expires", 3600)
# ------------------------- request routing logic -------------------
# main routing logic
alias="dg"
alias="phila.dg"
route{
# initial sanity checks -- messages with
# max_forwars==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (len_gt( max_len )) {
sl_send_reply("513", "Message too big");
break;
};
# Do strict routing if pre-loaded route headers present
#rewriteFromRoute();
strict_route();
# 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") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("dg", "subscriber")) {
www_challenge("dg", "0");
break;
};
save("location");
log(1,"REGISTER - User registered\n");
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
if (!t_relay()) {
sl_reply_error();
};
}
----------
--
Anton Yurchenko<phila(a)dg.net.ua>
Digital Generation
At 03:19 PM 4/1/2003, Stephan Reiff-Marganiec wrote:
>Hi,
>
>are there functions in ser (or one of its modules) that can be used within
>another module to add or replace headers or message bodies?
>
>I am thinking of something like:
>
>add_header(&msg, header)
textops/append_hf
>replace_header(&msg, oldheader, newheader)
textopts/replace is the closest hit.
-Jiri
Hi,
are there functions in ser (or one of its modules) that can be used within
another module to add or replace headers or message bodies?
I am thinking of something like:
add_header(&msg, header)
replace_header(&msg, oldheader, newheader)
and
add_body(&msg, body)
replace_body(&msg, oldbody, newbody)
If not, then is the best way to achieve this the use of the textops
functions from modules/text?
thanks,
Stephan
--
Stephan Reiff-Marganiec
Research Fellow
Department of Computing Science; University of Stirling
email: srm(a)cs.stir.ac.uk tel: 01786 46 7448
--
The University of Stirling is a university established in Scotland by
charter at Stirling, FK9 4LA. Privileged/Confidential Information may
be contained in this message. If you are not the addressee indicated
in this message (or responsible for delivery of the message to such
person), you may not disclose, copy or deliver this message to anyone
and any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. In such case, you should destroy this
message and kindly notify the sender by reply email. Please advise
immediately if you or your employer do not consent to Internet email
for messages of this kind. Opinions, conclusions and other
information in this message that do not relate to the official
business of the University of Stirling shall be understood as neither
given nor endorsed by it.
hi all,
i am running SER (ver 0.8.10) with MySql support.
i made an entry in the database for a user "test" using the command :
- serctl add test test test(a)indts.com <mailto:test@indts.com>
now, i want to add an alias for the user "test". so when i type :
- serctl alias add test(a)indts.com <mailto:test@indts.com>
sip:test2@indts.com <mailto:sip:test2@indts.com>
i get the following error
sip:test2@indts.com <mailto:sip:test2@indts.com>
400 ul_add: contact expected
what is happening? pls help
thx,
sunithi
Hello,
see dbtext for that. But notice that the module has not been thoroughly
tested. It is not included in v0.8.10 so you have to use a CVS snapshot
which is quite unstable these days due to lots of changes. If you want
to use it before the new release of ser is out you might get weird
situations, but you can provide us some help with testing ... It is your
choice ...
-.-
Best regards,
Daniel
David Beckemeyer wrote:
>I'm trying to get SER up and I need auth. I'm not a Mysql user
>and, frankly, I'd rather not need to learn it, just to get
>authentication support. I wish there were a middle-ground
>between no-auth at all and a full-blown Mysql installation.
>
>I tried the Cookbook approach, using Dan Austin's HOWTO for
>setting up Mysql for SER, but the commands do not work as shown
>so I'm left with learning Mysql through and through to debug
>why those cookbook commands don't work.
>
>I'm very familiar with SIP and I want to test SER, not a new Sql
>server DB engine. It seems like Mysql is a distraction to that
>effort.
>
>Is anyone working on something like a flat-file module to
>replace Mysql? Any pointers for the best place to start on
>developing such a module (i.e. shortcuts)?
>
>Thanks,
>
> - david
>
>_______________________________________________
>Serusers mailing list
>serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>
>
Hi Michael,
This is exactly what I would like to achieve.
I understand the meaning of your pseudo code below, but alas I have not enough
knowledge and skills to transform your pseudo code below into a working
script.
Could you please provide a real example ?
Lasse
Michael_Graff(a)isc.org wrote:
> Nils Ohlmeier <nils(a)ohlmeier.de> writes:
> > A proxy can challenge Invites and Byes, but should not do this with
> > external Invites to your local user. Otherwise your your user
> > wouldn't be reachable from outside.
>
> I implemented something much like this:
>
> if (to me):
> if register
>
> www_authorize or fail if not a valid register
>
> done
>
> if claiming to be "From" one of the domains I accept
> registrations for
>
> proxy_authorize
>
> done
>
> if not to me (I'm relaying for a local phone to an external address)
>
> proxy_authorize (once again, based on from address)
>
> done
>
> --Michael
On ATA side, you just need to enable the 'Receiver-tagged VIA header'
feature by setting bitt 22 of ConnectMode to 1. On SER side, nothing you
need to configure specifically.
----- Original Message -----
From: "Michael Vasilenko" <acid(a)dg.net.ua>
To: "Bo" <boman122(a)yahoo.com>
Sent: Friday, March 28, 2003 9:52 AM
Subject: Re: [Serusers] ATA 186 Behind NAT
> Bo (boman122(a)yahoo.com) wrote:
> > Yes. I already tested that.
>
> Can you please explain, what I must configure in ATA and SER
> to make a call from ATA with private IP
> >
> > ----- Original Message -----
> > From: "Ricardo Villa" <ricvil(a)epm.net.co>
> > To: <serusers(a)lists.iptel.org>
> > Sent: Friday, March 21, 2003 10:24 AM
> > Subject: [Serusers] ATA 186 Behind NAT
> >
> >
> > > Hi,
> > >
> > > I was reading about the ATA186's ability to detect that it is behind a
> > NAT.
> > > It requires that:
> > >
> > > "For the Cisco ATA to automatically detect its presence behind a NAT,
the
> > > SIP proxy server
> > > or remote user agent server must include the "received=" parameter in
the
> > > Via header in the
> > > responses to the Cisco ATA if the proxy detects that the source
address
> > and
> > > port do not match
> > > those in the Via header."
> > >
> > > Does SER support it?
> > >
> > >
> > > Thanks,
> > > Ricardo
> > >
> > > _______________________________________________
> > > 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
>
> --
> Michael Vasilenko
Hi
Where is the voicemail for ser at? Is it presently available? I glanced
through the cvs and couldn't find any.
Asterisk has decent voicemail.. however its not yet ported to anything else
except Linux
check out http://www.asteriskpbx.org
Sean
> -----Original Message-----
> From: Jiri Kuthan [mailto:jiri@iptel.org]
> Sent: Monday, March 31, 2003 7:59 AM
> To: ahmed.abdoulla(a)tedata.net; serusers(a)lists.iptel.org
> Subject: Re: [Serusers] Voicemail Feature
>
>
> At 06:11 PM 3/30/2003, Ahmed Abdoulla wrote:
>
> >Dear Madam/Sir,
> >
> >
> >
> >We are a data communication provider in Egypt, and we are
> very much interested in deploying SER.
> >
> >We are particularly interested in having a voicemail feature
> as one of our offerings, and we have tried the CVS (8.11)
> version but we have noticed (naturally) that it's not stable yet.
> >
> >
> >
> >Could you please give us a rough estimate on when you
> believe a beta or alpha release will be available?
>
> I'm little a bit reluctant to do so -- it has always taken
> longer than we anticipated
> and I would not like to set unrealistic expactations. If you
> insist -- without any
> guarantee, a *testing* version may be ready to go in two weeks.
>
> -Jiri
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
Hi,
Try to use mysql and auth. But, got the msg "ERROR:
bad config file (1 eorros)", when I type
"/usr/local/ser". Is anything wrong in my ser.cfg?
Thanks,
Alan
[root@localhost ser]# more ser.cfg
#
# $Id: ser.cfg,v 1.12 2002/10/21 02:40:06 jiri Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters
------------------------
debug=3 # debug level (cmd line: -dddddddddd)
fork=no
log_stderror=no # (cmd line: -E)
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
----------------------------------
# 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"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.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)
# -- auth params --
# Uncomment if you are using auth module
#
modparam("auth", "secret", "alsdkhglaksdhfkloiwr")
modparam("auth", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which
true in this config),
# uncomment also the following parameter)
#
modparam("auth", "password_column", "password")
# ------------------------- request routing logic
-------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwars==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (len_gt( max_len )) {
sl_send_reply("513", "Message too
big");
break;
};
# Do strict routing if pre-loaded route
headers present
rewriteFromRoute();
# 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") {
# Uncomment this if you want to use digest
authentication
if
(!www_authorize("iptel.org", "subscriber")) {
www_challenge("iptel.org", "0");
break;
};
save("location");
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
if (!t_relay()) {
sl_reply_error();
};
}
=====
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
Dear Madam/Sir,
We are a data communication provider in Egypt, and we are very much
interested in deploying SER.
We are particularly interested in having a voicemail feature as one of
our offerings, and we have tried the CVS (8.11) version but we have
noticed (naturally) that it's not stable yet.
Could you please give us a rough estimate on when you believe a beta or
alpha release will be available?
Thanks a lot for your time and cooperation.
Regards,
Ahmed Abdoulla
Quality Unit Manager
Acting WebDev Unit Manager
TE Data
11, Cleopatra St, Heliopolis
TEL : +20-2-4166660
FAX : +20-2-4166700
Hi,
I would like to use the registrar module, but ser crahses after calling the
save() or lookup() functions. Any idea?
syslog:
BUG: tcp_main_loop: dead child 6
tcp_main_loop: read response= bffff638, 2003 from 6 (20531)
BUG: tcp_main_loop: unknown cmd 2003
child process 20531 exited by a signal 11
core was not generated
INFO: terminating due to SIGCHLD
INFO: signal 15 received
Thanks,
--
---------------------------------------------------------------------------
Miklos Tirpak
Computer and Automation Research Institute e-mail : mtirpak(a)sztaki.hu
of the Hungarian Academy of Sciences phone : (361) 279-6011
H-1132. Budapest, Victor Hugo u 18-22 fax : (361) 279-6021
Hello
Is there a built in function that can check to see if a user exists (not
registered). I have a need to send different error codes depending on
whether a phone number is unallocated or it is allocated but not
registered. What I require is this
if (!lookup("location")) {
if (user does not exist) {
sl_send_reply ("604", "Does not exist anywhere");
break;
}
else {
sl_send_reply ("404", "Not Found");
break;
};
};
if (!t_relay()) {
sl_reply_error();
};
Thanks
Luke
during my pstn gateway survey, some people asked about cheap PSTN
gateways. Let me share what I know, speak up if you know more.
analog
-------
AudioCodes and AlliedTelesyn provide SIP FXO gateways wuith four ports
for about $1000. We have both of them in our lab (i.e., they do exist)
but haven't tested them yet (i.e., we don't know if they work).
MediaTrix might have some too, perhaps sightly cheaper, but they denied
shipping to us as we are not in their interoperability club (which makes
me cautios about their interoperability).
arrayvox was claiming to have some very cheap ones, but I neither know if
they shop nor if they work. The same for welltech.
in general, not only is a challenge to make the sip part of it work, but
also the analog -- tone recoginition may be pretty challenging. It differs
country from country and pbx from pbx.
digital
-------
I don't know -- some people meant Asterisk would do that, some other meant
not really.
other
-----
someone told me vegstream (both digital and analog) was good and afforable.
more can be found at
http://www.iptel.org/info/products/index.php?category=gateway&name=Gateways…
--
Jiri Kuthan http://iptel.org/~jiri/
hello every one,
I am facing some problem in the OPTIONS method.
I am getting "404 not found" response.
I wanted to query the server for its capabilities.
I wanted to know which are the methods it supports from the 200OK response of my OPTIONS method.
My packet was as below
OPTIONS sip:192.168.1.9 SIP/2.0
Via: sip/2.0/UDP 192.168.1.9:5060
Max-Forwards: 70
To: <sip:192.168.1.9>
From: <sip:geetha@192.168.1.21>;tag=1047012665620
Call-Id: 82963748691a049dc5aadf81b162c894(a)192.168.1.9
CSeq: 1 OPTIONS
Contact: <sip:192.168.1.9:5060>
Accept: application/sdp
Content-Length: 0
Can some one tell me How SER works for OPTIONS method and why am i getting that "404 not found" response.Is there some problem with my packet?
Thanks
Geetha
--
********************************************************************
eRiva provides IT Solutions & Services to companies worldwide.
Our State of the Art Research & Development Centers provides
Innovative Solutions to global customers.
********************************************************************
--
At 05:47 AM 3/29/2003, Dan Austin wrote:
>Can anyone recommend a SIP stack for Linux, where the code is documented well
>enough so that someone not an expert on SIP programming can
>figure it out?
A possibility is our FIFO UA, part of SER. It was built to couple SIP-unaware
applications with SER over stdin/stdout interface. We use it for our click-to-dial
and voicemail application. The adventage is it is pretty simply and you don't need
to run into stack details. For sake of completeness: some in our team would prefer
a stand-alone SIP stack better, but we don't have any yet.
If that is interesting for you, we will be glad to provide you with guidance.
-Jiri
hi,
Thanks for the quick reply.
Geetha
---------- Original Message ----------------------------------
>From: Nils Ohlmeier <nils(a)iptel.org>
>Reply-To: seruser(a)iptel.org
>Date: Sat, 29 Mar 2003 05:08:36 +0100
>
>>On Saturday 29 March 2003 05:01, Nils Ohlmeier wrote:
>>> On Saturday 29 March 2003 04:49, Geetha Shree wrote:
>>> > Can some one tell me How SER works for OPTIONS method and why am i
>>> > getting that "404 not found" response.Is there some problem with my
>>> > packet?
>>>
>>> the answer is pretty simple: Ser is currently not yet able to answer
>>> OPTIONS to the server itself. Maybe it is possible to create a correct
>>> answer with a lot of script commands (e.g. if==OPTIONS and user not present
>>> in uri { sl_reply(200); append_hf(header filed with the methods);break}),
>>> but their is support for this built into Ser or one of its modules.
>> ^^^
>> Errata: is no support
>>
>>> As a proxy it tries to find the user, to which it should process the
>>> request, which is not present, and because of this you get a 404 back.
>>
>>Greetings
>> Nils
>>
>>
>
>--
>********************************************************************
>eRiva provides IT Solutions & Services to companies worldwide.
>Our State of the Art Research & Development Centers provides
>Innovative Solutions to global customers.
>********************************************************************
>
>
>
>--
>
--
********************************************************************
eRiva provides IT Solutions & Services to companies worldwide.
Our State of the Art Research & Development Centers provides
Innovative Solutions to global customers.
********************************************************************
--
I'd guess that many folks on the list are as interested in
finding a low cost PC based gateway as I am.
My research has uncovered on possible candidate, and caused
some confusion at the same time.
I came upon a product called Wildcard T100P. A single loop
T1/PRI card with linux drivers, for the oh-so-reasonable price
of US $500. The catch seems to be that there is no gateway
code written to date to use the card, at least no code whose
only function is to be a gateway. There is also a single
port FXO card for US $100
It turns out that the OSS PBX Asterisk can leverage the card,
has support for SIP, and is in general really cool, but too
feature rich to be used as a PSTN gateway. Sure the price is
right (free).
Has anyone worked on or with the Wildcard? Details about the
card can be found at http://www.zapatatelephony.org/
What is lacking appears to be a package that can leverage
the Wildcard library with a SIP frontend. I am tempted to
try to workout what the framework of such a package would
look like, and try to rough out some code. The problem with
that is I'm no coder*. The source for the Wildcard driver is
well documented, so I may try anyways. Can anyone recommend
a SIP stack for Linux, where the code is documented well
enough so that someone not an expert on SIP programming can
figure it out?
* Not professionally. I have needed to debug C source before,
and have written small tools that to be honest were not at all
elegant.
Dan
Juha's ENUM lookup routine currently looks up the e164.arpa tree for a
phone number and searches for a sip record, which is returned and used to
rewrite the current uri.
ENUM also allows tel: records amongst others.
What, if anything should be done with those, and how should they be treated
relative to sip records?
I would assume a tel: record could be interpreted as a kind of call
forward, which could be arbitrarily staged.
One way of handling this could be to explicitely look for tel records with,
e.g., an argument to enum_query() to have any tel records rewrite the
current uri, and then go on to look up the result (maybe recursively which
requires a loop counter and an abort condition).
so the resolution could look like
while (loopcount--) {
enum_query("tel");
enum_query("sip");
}
what do you think?
-Michael
hi,
thanks. what i am looking for is not a full fledged accounting module. i
need to know if currently generated call records can be put into MySql
database. if yes, is there any tool available to view these records?
rgds,
sunithi
-----Original Message-----
From: jh(a)lohi.eng.song.fi [mailto:jh@lohi.eng.song.fi]
Sent: Thursday, March 27, 2003 8:21 PM
To: Sunithi JP
Cc: 'serusers(a)lists.iptel.org'
Subject: RE: [Serusers] help with accounting using mysql
Sunithi JP writes:
> thanks for the quick response. cud u pls tell me if accounting thru
RADIUS
> is working?
it depends how you define "working". the problem currently is that
there is no easy way to know if a bye, for example, was sent by a local
or foreign user. before that is information is available, any
accounting is difficult to make to "work".
if you mean a version of radius accounting that doesn't crash and
produces "records", i'm sure that such a module will be included in the
next release.
-- juha
hi Nils,
thanks for the quick response. cud u pls tell me if accounting thru RADIUS
is working? if so, where can i find help regarding this? any documents? pls
send me the links if any.
thanks
sunithi
-----Original Message-----
From: Nils Ohlmeier [mailto:nils@iptel.org]
Sent: Thursday, March 27, 2003 7:46 PM
To: Sunithi JP; 'serusers(a)lists.iptel.org'
Subject: Re: [Serusers] help with accounting using mysql
On Thursday 27 March 2003 15:09, Sunithi JP wrote:
> hi all,
> i mailed earlier regarding this. this is really urgent.
>
> i have just installed SER (version 0.8.10) along with the MySql support. i
> made entries for 2 users using "serctl add" command and am able to place a
> call between them using MSN messenger.
> i want to know what accounting support is available using MySql. what
> settings need to be done? are any records generated and placed in the
> database? how do i access these records?
> in ser.cfg i have loaded modules acc.so and mysql.so.
>
> pls help asap.
Their exist no support for storing accounting information in the MySQL
database. You can use the acc module, which then will log informations about
call starting and ending into syslog.
But currently your are on your own to accumulate this informations from
syslog.
If you would be so kind to search the mailing list archives yourself you
will
find that we are currently talking to one users about publishing their
solution. And in the future will also provide a solution.
Regards
Nils Ohlmeier
hi all,
i mailed earlier regarding this. this is really urgent.
i have just installed SER (version 0.8.10) along with the MySql support. i
made entries for 2 users using "serctl add" command and am able to place a
call between them using MSN messenger.
i want to know what accounting support is available using MySql. what
settings need to be done? are any records generated and placed in the
database? how do i access these records?
in ser.cfg i have loaded modules acc.so and mysql.so.
pls help asap.
thanks,
sunithi
hi,
It seems that iptel SER supports only strict routing. Pls tell me if it
supports loose routing. if yes, do i have to enable it somehow?
thx,
sunithi
Than you!
-jiri
At 10:00 AM 3/27/2003, Ng, Soo Sim wrote:
>I had tested it working with Cisco 3640 using ISDN BRI (VIC-2BRI-S/T-TE)
>
>SS
>_______________________________________________
>Serusers mailing list
>serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
--
Jiri Kuthan http://iptel.org/~jiri/
Hi Jan,
I've been trying the CVS version of SER to test the latest Presence Agent
module. I'm using a very nearly identical configuration file to "pa.cfg" in
etc/. The server seems to start correctly and is listening at the specified
port. However, when any client sends a REGISTER, the server crashes. Is there
anything we can do to debug this or any previous CVS version you consider to be
estable enough to use for the time being?
Regards,
Jaime
*******************************************************************************
Important.
Confidentiality: This communication is intended for the above-named person and
may be confidential and/or legally privileged. Any opinions expressed in this
communication are not necessarily those of the company. If it has come to you
in error you must take no action based on it, nor must you copy or show it to
anyone; please delete/destroy and inform the sender immediately.
Monitoring/Viruses
Orange may monitor all incoming and outgoing emails in line with current
legislation. Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.
Orange PCS Limited is a subsidiary of Orange SA and is registered in England No
2178917, with its address at St James Court, Great Park Road, Almondsbury Park,
Bradley Stoke, Bristol BS32 4QJ.
*******************************************************************************
hi vijay,
i did the installation through root. i think u cannot go about the
installation as a user as u wont have the privileges. Pls ask ur system
administrator to log is as root and do the installation.
also, pls send ur mails to everyone in the mailing list by sending ur
mails to serusers(a)lists.iptel.org. this will help others with similar queries.
rgds
sunithi
-----Original Message-----
From: vijay [mailto:vktiruveedula@foreseeinfo.com]
Sent: Thursday, March 27, 2003 2:16 PM
To: Sunithi JP
Subject: need help regarding SIP
hi sunithi,
recently i was allocated work on SIP. what i have to do is i have to make
our IM to talk with SIP clinets using SER.
For this i have downloaded the SER from iptel.org. As a first step i have to
install SER in my user account in linux and go thorough it.
But it is not compiling and giving error (Permission denied). So which files
i have to modify in order to compile / install the ser files in my account
as i have no permissions to root folder.
So can u help me how to compile and install the ser on linux with mysql
support and how to make call to MSN using SIP.
awating u r kind help / guide lines regading this.
bye
vijay
there is a seruser admin guide which u can download from iptel.org. this
will help u in every way. check this out.
-----Original Message-----
From: vijay [mailto:vktiruveedula@foreseeinfo.com]
Sent: Thursday, March 27, 2003 3:52 PM
To: Sunithi JP
Subject: Re: [Serusers] accounting using MySql
hi sunithi,
thanx for u r reply.
can u plz mail the steps involved in installation and running the SER
server. I'm able to install SER. But i'm not getting how to start and use
this. Plz help me.
Thanks a lot in advance...
with regards
vijay
----- Original Message -----
From: "Sunithi JP" <sunithijp(a)indts.com>
To: <serusers(a)lists.iptel.org>
Sent: Thursday, March 27, 2003 12:33 PM
Subject: [Serusers] accounting using MySql
> hi,
> i have just installed SER (version 0.8.10) along with the MySql support.
i
> made entries for 2 users in the database and am able to place a call
between
> them using MSN messenger.
> i want to know what accounting support is available using MySql. what
> settings need to be done? are any records generated and placed in the
> database? how do i access these records?
>
> pls help,
>
> rgds,
> sunithi
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
hi,
i have just installed SER (version 0.8.10) along with the MySql support.
can anyone pls tell me where i can find the Jabber Gateway?
pls help,
rgds,
sunithi
hi,
i have just installed SER (version 0.8.10) along with the MySql support. i
made entries for 2 users in the database and am able to place a call between
them using MSN messenger.
i want to know what accounting support is available using MySql. what
settings need to be done? are any records generated and placed in the
database? how do i access these records?
pls help,
rgds,
sunithi
Hi,
I would like to know if it is possible to append a variable to a log command like:
log(1, "Register received \n");
For troubleshooting purposes I would like to be able to see a log in syslog that would say something like:
"Register received from subscriber= ricvil"
Is it possible to do something like?
log(1, "Register received from subscriber= $username\n");
I could not find any documentation to support this.
Thanks,
Ricardo
Well, I have no problem releasing the code, but there are a few
technical constraints.
- This is very much a test jig. For example, it uses
psql via a pipe to do all database access. That stuff is
layered out, so it can easily be directed at a real postgres
perl module, but we have some issues with perl modules so
tend not to use them, at least in early development. I
would expect it to start groaning at around 100
calls/minute. We're in a beta test at the moment and will
be in production within a month. When our call volume
increases, we will certainly recode this in C. However,
using direct database access from perl would probably give
an 80% of the gains, so that might be the next step.
- It depends on a special syslogd version. The change
is simple -- the timestamp is written as "seconds since
1970" to msec precision instead of the human-readable
representation. Unix time_t is simply more natural for this
kind of work. I didn't attempt to layer the timestamp
processing, but it only occurs in one or two places, so
introducing mktime() and giving up on msecs would generalize
this. I have a converted Linux syslogd.c. I'm pretty sure
less than 10 lines changed. I know I converted a FreeBSD
syslogd as well, but I can't find it.
- The script uses the database to keep state. The first
INVITE inserts the call detail and the call is active (no
call_end time). The first BYE with matching call_id updates
the call_end time. Heuristics are then applied to match
each log entry from the gateway (cisco based) to the
database entry. This allows detection of missed BYEs. The
point is that the the database is integral in the matching
algorithm. The side-benefit is that the database can be
used to display active calls. The algorithm is dependent
on efficient database indexing.
- There is no particular dependency on database type except I
do record endpoint IPs as Postgres "inet" types, but these
are not searched so could as easily be "char" type.
A "timestamp" type of some kind is pretty much crucial.
So, I'm happy to push the code out to the group "as is". If nothing
else, there are probably code fragments worthy of harvest. I can also
put a bit of time into generalizing it a little before making it
available. Opinions?
Andy
--
Andrew Fullford Email: andy(a)august.net
August.Net Services, LLC Web: www.august.net
> Date: Wed, 26 Mar 2003 08:18:44 +0100
> To: "Greg Fausak" <greg(a)august.net>,
> "'Ricardo Villa'" <ricvil(a)epm.net.co>, <serusers(a)lists.iptel.org>
> From: Michael Haberler <mah(a)eunet.at>
> Subject: RE: [Serusers] Accounting Script
> Cc: <sip(a)august.net>
>
> --=======55A13AEF=======
> Content-Type: multipart/alternative; x-avg-checked=avg-ok-722294; boundary="=====================_54395666==.ALT"
>
>
> --=====================_54395666==.ALT
> Content-Type: text/plain; x-avg-checked=avg-ok-722294; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 8bit
>
> At 18:21 25.03.2003 -0600, Greg Fausak wrote:
>
> >My partner (Andy Fullford) wrote our code that does this.
> >
> >We turned on SER accounting, deliver via SYSLOG, and have a script that
> >scrapes all of that up and creates accounting records.
> >
> >In addition, we apply the syslog accounting output from our
> >gateway routers to verify the INVITE/BYE sequences. Finally,
> >we populate a database with the results. We were going to
> >use radius, but it didn't quite work right for us. I think what we have
> >cobbled together works really well. We don't have any 'hanging' calls
> >anymore....and even if we did we would catch them with the gateway
> >accounting.
> >
> >We did not think the SER user base would be interested. We use a postgres
> >database and
> >this doesn't seem to be mainstream. However, if there is interest for this
> >sort of thing perhaps we could donate it?
>
> me as including the SER user base would be interested.
>
> Also, we are migrating towards a Postgres shop here, so I would be very
> interested in Postgressifying the whole thing, accounting and SER itself.
>
> There was a post a while ago that somebody set out to do a DB interface
> SER/Postgres; if this is under way, fine - if this project was abandoned,
> we might chip in and do it - pleas get in touch with me
>
> -Michael
> nic.at
>
> >
> >Anyway, you could respond to <mailto:sip@august.net>sip(a)august.net and ask
> >Andy if he can
> >hack you out a piece of it to do what you want.
> >
> >---greg
> >Greg Fausak
> >
> >-----Original Message-----
> >From: serusers-admin(a)iptel.org [mailto:serusers-admin@lists.iptel.org] On Behalf
> >Of Ricardo Villa
> >Sent: Tuesday, March 25, 2003 3:53 PM
> >To: serusers(a)lists.iptel.org
> >Subject: [Serusers] Accounting Script
> >
> >Hi,
> >
> >Has anybody developed some sort of crude accounting script for SER that
> >would match all BYEs with their respective INVITEs in the syslog file and
> >say how many seconds each call lasted?
> >
> >Thanks,
> >Ricardo
serweb is a web interface for ser. the database definitions are supplied
with ser.
-jiri
At 05:20 PM 3/26/2003, Frost, Rod wrote:
>All,
>
>Where can I find the database and its schema for use with SerWeb. I have installed serweb but don't see a database in mysql.
>
>Thanks
>
>Rod Frost
>_______________________________________________
>Serusers mailing list
>serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
--
Jiri Kuthan http://iptel.org/~jiri/
Hi,
Has anybody developed some sort of crude accounting script for SER that would match all BYEs with their respective INVITEs in the syslog file and say how many seconds each call lasted?
Thanks,
Ricardo