hi there,
I have any question.
1) I want to make the SIP Server which has individual processing and
a database.
Can I remake that by SER?
Can I add any functions to SER?
2) How is MySQL used in SER?
MySQL+PHP? MySQL+C++?
Is it written MySQL when Client is registered by "REGISTER"?
3) I want to know the program composition of SER.
Where can I see that? or Should I learn SER from any documents?
Thank you for your time and your advance.
----
Keisuke INOUE
mailto:keino048744@yahoo.co.jp
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
I registered with iptel.org and when i dial to a number in iptel.org, ( both
were behind NAT )
Caller -- NAT --- iptel.org -- NAT --- Callee
I'm not hearing any sound. Can anyone help me what could be the problem?
Is there is a NAT server like fwdnat.pulver.com:5082 like in fwd here in
iptel.org ?
Kannaiyan
Only one user on asterisk will collect all voice mails.
I was thinking that I will need to create all the extensions in
asterisk so when the user cannot be reached at his phone, then ser
will rewrite the request to asterisk keeping the original uri.
Is this how to do it ?
Thanks.
Samy.
----- Original Message -----
From: "Kannaiyan Natesan" <nkans(a)lycos.co.uk>
Date: Monday, December 15, 2003 2:41 pm
Subject: Re: [Serusers] Using asterisk as a voicemail server with SER
> Samy,
>
> That is feasible.
> You can create a sip user in asterisk and forward the call on busy.
>
> Kannaiyan
>
>
> ----- Original Message -----
> From: "Samy Touati" <samy(a)tunix.com>
> To: <serusers(a)lists.iptel.org>
> Sent: Monday, December 15, 2003 7:35 PM
> Subject: [Serusers] Using asterisk as a voicemail server with SER
>
>
> > Hi,
> >
> > Can I use asterisk as a voicemail server, where unanswered calls
> get
> > forwarded to asterisk acting as a voicemail server.
> > I like to fact that asterisk voicemail can be accessed through a
> phone
> > (IVR).
> > Is this setup feasable, has anyone tried it ?
> >
> > Thanks.
> >
> > Samy.
> >
> >
> > _______________________________________________
> > Serusers mailing list
> > serusers(a)lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> >
> >
>
>
>
>
Hello,
We are trying to install and test your Sip Express Router.
Environment: Redhat Linux 8.0 with mysql server running.
I downloaded the rpm packages
1. ser-0.8.12-0.i386.rpm,
2. ser-0.8.12-0.src.rpm,
3. ser-jabber-0.8.12-0.i386.rpm,
4. ser-mysql-0.8.12-0.i386.rpm,
5. ser-radius-0.8.12-0.i386.rpm.
from the ftp site. I, then, installed 1'st, 3'rd and 4'th packages. when i try to restart theserver, from the terminal window again, 'stopping ser : [FAILED], Starting ser: [OK]' message appears. but wheni run the terminal window, and check teh status of the ser server, it gives the following message. 'ser dead but subsys locked'.
when i try to run the configuration file, /etc/ser/ser.cfg, it says permission denied..
Also, when i try to run ser_mysql.sh, using /usr/sbin/ser_mysql.sh, everything works fine. But when i run /usr/sbin/ser_mysql.sh create, to create a database, it asks for 'MySql password for root:'. Is it the root passsword for the system or the DEFAULT_PW or RO_PW (given in ser_mysql.sh). after its asks for the domain or realm, the following error message appears.
'/usr/sbin/ser_mysql.sh: line 1: gen_ha1: command not found
HA1 calculation failed'
Also, i installed mysql server after installing the packages described above. will it be the cause of the issue ?
Would really appreciate, if you could throw some light on this... as i'm new to linux, i find it really difficult, sometimes.. cheers,
Krish
Network Manager
NTX Technology UK Ltd
Block 40, Catterick way, Borehamwood, Hertfordshire
Ph: +44 208 381 5904, Mob: + 44 7789 545 323
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at admin(a)ntxtechnology.com immediately and destroy all copies of this message and any attachments.
-----Original Message-----
From: NTX Technology [mailto:info@ntxtechnology.com]
Sent: Monday, December 15, 2003 5:54 PM
To: serusers(a)lists.iptel.org
Subject: [Serusers] SIP Express Router
Hello,
We are trying to install and test your Sip Express Router.
Environment: Redhat Linux 8.0 with mysql server running.
I downloaded the rpm packages
1. ser-0.8.12-0.i386.rpm,
2. ser-0.8.12-0.src.rpm,
3. ser-jabber-0.8.12-0.i386.rpm,
4. ser-mysql-0.8.12-0.i386.rpm,
5. ser-radius-0.8.12-0.i386.rpm.
from the ftp site. I, then, installed 1'st, 3'rd and 4'th packages. when
i try to restart theserver, from the terminal window again, 'stopping
ser : [FAILED], Starting ser: [OK]' message appears. but wheni run the
terminal window, and check teh status of the ser server, it gives the
following message. 'ser dead but subsys locked'.
when i try to run the configuration file, /etc/ser/ser.cfg, it says
permission denied..
what do you mean by "run the configuration file"? root is allowed to
edit the configuration file using a text editor.
maybe there is an error in your ser.cfg, which causes ser to fail during
startup
Also, when i try to run ser_mysql.sh, using /usr/sbin/ser_mysql.sh,
everything works fine. But when i run /usr/sbin/ser_mysql.sh create, to
create a database, it asks for 'MySql password for root:'. Is it the
root passsword for the system or the DEFAULT_PW or RO_PW (given in
ser_mysql.sh). after its asks for the domain or realm, the following
error message appears.
'/usr/sbin/ser_mysql.sh: line 1: gen_ha1: command not found
HA1 calculation failed'
the mysql password for root the the password of the mysql-root user (not
the linux root user). In redhat, the mysql-root user password is default
empty -> just press enter when you are asked.
Also, i installed mysql server after installing the packages described
above. will it be the cause of the issue ?
Would really appreciate, if you could throw some light on this... as i'm
new to linux, i find it really difficult, sometimes.. cheers,
regards,
Klaus
Hello,
We are trying to install and test your Sip Express Router.
Environment: Redhat Linux 8.0 with mysql server running.
I downloaded the rpm packages
1. ser-0.8.12-0.i386.rpm,
2. ser-0.8.12-0.src.rpm,
3. ser-jabber-0.8.12-0.i386.rpm,
4. ser-mysql-0.8.12-0.i386.rpm,
5. ser-radius-0.8.12-0.i386.rpm.
from the ftp site. I, then, installed 1'st, 3'rd and 4'th packages. when i try to restart theserver, from the terminal window again, 'stopping ser : [FAILED], Starting ser: [OK]' message appears. but wheni run the terminal window, and check teh status of the ser server, it gives the following message. 'ser dead but subsys locked'.
when i try to run the configuration file, /etc/ser/ser.cfg, it says permission denied..
Also, when i try to run ser_mysql.sh, using /usr/sbin/ser_mysql.sh, everything works fine. But when i run /usr/sbin/ser_mysql.sh create, to create a database, it asks for 'MySql password for root:'. Is it the root passsword for the system or the DEFAULT_PW or RO_PW (given in ser_mysql.sh). after its asks for the domain or realm, the following error message appears.
'/usr/sbin/ser_mysql.sh: line 1: gen_ha1: command not found
HA1 calculation failed'
Also, i installed mysql server after installing ser packages. will it be the cause of the issue ?
Would really appreciate, if you could throw some light on this...
Krish
Network Manager
NTX Technology UK Ltd
Block 40, Catterick way, Borehamwood, Hertfordshire
Ph: +44 208 381 5904, Mob: + 44 7789 545 323
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at admin(a)ntxtechnology.com immediately and destroy all copies of this message and any attachments.
I downloaded the latest CVS of ser and when I start it I get this warning
2(7307) WARNING: no fifo_db_url given - fifo DB commands disabled!
I was wondering what it means because aliases dont work with the CVS. I use the
same config with 8.12 and aliases work.
the reason im using the CVS version is because Im trying to get voicemail to
work with SEMS but I am getting
voicemail - initializing
0(7312) ERROR: vm_mod_init: unable to bind db
0(7312) init_mod(): Error while initializing module voicemail
Thanks in advance
Glacier
Sri Lanka( Land & Cell 0.18 - India ( Land & Cell ) 0.16 - Bangladesh ( Land & Cell ) 0.16 - Australia 0.06 Cell 17 - Ethiopia ( Land & Cell ) 0.35 - Eritrea 0.37 - Saudi Arabia ( Land & Cell ) 0.24 - Senegal 0.29 - Lebanon 0.14 - Philippines 0.15 - Egypt ( Land & Cell ) 0.20
Aya Phone is a global telecommunication network for your international calls. Our rates are dealt with the best World-wide operators. Thus you may achieve consequent savings through your long distance calls.
Aya Phone is residential & business services allows cheap calls from anywhere to anywhere in the world with high quality services.
No Hidden Fees, No Monthly Service Fees
No Subscription Cost Best Quality & Rates .
a.. Enjoy crystal clear phone calls using our dialer with best rates worldwide.
b.. No connection fees or other hidden fees
c.. Call while surfing the Internet
d.. Easily track and manage your calls online
http://www.ayaphone.us
Hey All,
I am trying to get all missed calls to post to the MySQL database. However,
I am getting the following error when starting
up SER.
0(1748) set_mod_param_regex: parameter <db_flag> not found in module <acc>
0(1748) parse error (54,29-30): Can't set module parameter
0(1748) set_mod_param_regex: parameter <db_url> not found in module <acc>
0(1748) parse error (55,59-60): Can't set module parameter
0(1748) set_mod_param_regex: parameter <db_missed_flag> not found in module
<acc>
0(1748) parse error (56,36-37): Can't set module parameter
ERROR: bad config file (3 errors)
I've tried recompiling the "acc" module (the original was from the Solaris
package for SER 0.8.12).
Anyone know why I am getting these errors? My config is basically copied
directly from the acc module examples.
I have also attached my ser.cfg file below.
Thanks for your help!
Darren Sessions
----
#
# $Id: pstn.cfg,v 1.2 2003/06/03 03:18:12 jiri Exp $
#
# example: ser configured as PSTN gateway guard; PSTN gateway is
located
# at 192.168.0.10
#
# ----------- global configuration parameters ---------------------
---
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=yes # (cmd line: -E)
dns=yes
rev_dns=yes
check_via=no
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/uri.so"
loadmodule "/usr/local/lib/ser/modules/group.so"
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/acc.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
#loadmodule "/usr/local/lib/ser/modules/textops.so"
#loadmodule "/usr/local/lib/ser/modules/vm.so"
# ----------------- setting module-specific parameters ------------
---
modparam("auth_db", "db_url","mysql://ser:heslo@localhost/ser")
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("usrloc", "db_mode", 2)
# -- acc params --
modparam("acc", "log_level", 1)
# that is the flag for which we will account -- don't forget to
# set the same one :-)
#modparam("acc", "db_flag", 1)
modparam("acc", "db_url","mysql://ser:heslo@localhost/ser")
modparam("acc", "db_missed_flag", 3)
modparam("tm", "fr_inv_timer", 20)
#modparam("tm", "fr_inv_timer", 20)
#modparam("tm", "fr_inv_timer", 20>
modparam("group", "db_url", "mysql://ser:heslo@localhost/ser")
# ------------------------- request routing logic ----------------
---
# main routing logic
alias="ion.dom"
alias="63.86.212.154"
route {
if (!mf_process_maxfwd_header("10")) {
log("LOG: Too many hops\n");
sl_send_reply("483", "Alas Too Many Hops");
break;
};
if (!(method=="REGISTER")) record_route();
if (loose_route()) {
t_relay();
break;
};
# if (!uri==myself) {
# t_relay();
# break;
# };
if (method == "REGISTER") {
if (!save("location")) {
sl_reply_error();
};
break;
};
# does the user wish redirection on no availability?
(i.e., is he
# in the voicemail group?) -- determine it now and store
it in
# flag 4, before we rewrite the flag using UsrLoc
if (is_user_in("Request-URI", "voicemail")) {
setflag(4);
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
# handle user which was not found
route(4);
break;
};
# if user is on-line and is in voicemail group, enable
redirection
if (method == "INVITE" && isflagset(4)) {
t_on_failure("1");
};
setflag(3);
t_relay();
}
# ------------- handling of unavailable user ------------------
route[4] {
# non-Voip -- just send "off-line"
if (!(method == "INVITE" || method == "ACK" || method
== "CANCEL")) {
sl_send_reply("404", "Not Found");
break;
};
# not voicemail subscriber
if (!isflagset(4)) {
if (uri=~"^sip:1.*") {
rewritehostport("1.1.1.7:5060");
t_relay_to_udp("1.1.1.7", "5060");
break;
};
if (uri=~"^sip:011.*") {
rewritehostport("1.1.1.6:5060");
t_relay_to_udp("1.1.1.6", "5060");
break;
};
}
# forward to voicemail now
setflag(3);
rewritehostport("1.1.1.8:5060");
t_relay_to_udp("1.1.1.8", "5060");
}
# if forwarding downstream did not succeed, try voicemail running
# at bat.iptel.org:5060
failure_route[1] {
setflag(3);
revert_uri();
rewritehostport("1.1.1.8:5060");
append_branch();
t_relay_to_udp("1.1.1.8", "5060");
}
Ok here's what I have done.
You have to set a NAT detected flag from ser.cfg after a successful nat_uac_test - ie.
if nat_uac_test(..) {
setflag(6)
}
(Thanks to Klaus for the tip!!)
In nathelper.c, force_rtp_proxy_f checks if flag 6 (am harcoding 6 into the code at the moment) is set. If yes, it tells RTP proxy not to save the IP:port which is in the SDP body. So rtpproxy will have to wait for atleast one packet from this UA before it knows the correct natted IP:port to which RTP packets from the other end is to be sent.
If this nat flag is not set, nathelper will forward the IP:port from SDP body to rtpproxy. Since rtpproxy knows the right IP:port for this end, it will forward any RTP packets coming from the other end without waiting for any UDP packets to come from this end.
There is another problem with the existing nathelper + rtpproxy which I did not mention in my previous email. rtpproxy expects BOTH ends to be sending and receiving on the same port (symmetric RTP) - otherwise it does not work. But if a UA is not behind NAT, it should work with or without symmetric RTP support (regardless of whether the other end is natted or not). I have tried to solve this as follows -
first rtpproxy tries to match IP:port of the sender with the ones (addr1 and addr2) it has in its record. If it finds a match, it will forward the packet to the other IP:port. However if no match is found and addr1 and addr2 are not NULL, rtpproxy tries to do a match using only the IP address (ie. port number is not taken into consideration). If the sender's IP address matches with one of the two stored addresses (but port number does not match), forward the packet to the other IP:port.
I have made the necessary modifications - but will test it on Monday.
Regards,
Dhiraj
-----Original Message-----
From: Klaus Darilion [mailto:darilion@ict.tuwien.ac.at]
Sent: Fri 12/12/2003 20:31
To: serdev(a)iptel.org
Cc: Bhuyan,D,Dhiraj,XVR3 R; jiri(a)iptel.org; sobomax(a)portaone.com
Subject: RE: nat + multiple RTP proxy
...just some thoughts from me ...
You also must change the behaviour of the rtpproxy - rtpproxy should be
enhanced to be symmetrical only in one direction:
imagine the following scenario:
ua1 ----NAT----ser+rtpproxy-------ua2
ua1 is behind NAT, ua2 not: rtpproxy should relay rtp packets from ua2
to the ip-address:port it received the packets from ua1 (therefore it
has to receive at least one packet from ua1 before relaying from
ua2->ua1). RTP packets from ua1 to the rtpproxy should be forwarded the
ip-address:port announced in the SDP from ua2 - this can be done
immediately.
Therefore, I suggest to make decision if a UA is NATed or not in the ser
script, but enhance the force_rtp_proxy() and use a parameter, e.g.
force_rtp_proxy(0) should tell the rtp-proxy to be symmetrical to this
client, whereas
force_rtp_proxy(1) will tell the rtp-proxy to relay to this client using
the ip-address:port in the SDP
maybe it will be useful to use two ports at the rtpproxy (one for each
client) to easily distinguish the two clients.
> -----Original Message-----
> From: dhiraj.2.bhuyan(a)bt.com [mailto:dhiraj.2.bhuyan@bt.com]
> Sent: Friday, December 12, 2003 8:49 PM
> To: Klaus Darilion; jiri(a)iptel.org; sobomax(a)portaone.com;
> serdev(a)iptel.org
> Cc: serusers(a)iptel.org
> Subject: nat + multiple RTP proxy
>
>
> Hello List,
> I am trying to get SER + nathelper working with multiple RTP
> proxies on the route (please read the mail appended below on
> the problem I am trying to solve and how am trying to solve
> it). I spent sometime understanding the internals of SER -
> but it will be great if anyone can help me with the following
> problem -
>
> My test settings is -
>
> UA1 ---- NAT ---- SER/RTP1 ----- SER/RTP2 ------- UA2
>
> I am forcing rtpproxy on SER2 also.
>
> In file nathelper.c, I added a test case in
> force_rtp_proxy_f(..) to check if the SIP/SDP packet was sent
> by a device behind NAT. I use the SER received_test(msg) to
> do this check (which is basically a msg->via1->host ==
> msg->rcv.src_ip test). I try setting up a call from UA1 to
> UA2. When SER1 receives the SIP/SDP packet from UA1, the
> received_test correctly detects that UA1 is behind NAT. But
> when UA2 sends back an OK with its SDP data (which SER2
> modifies before sending it to SER1), a received_test (in
> SER1) on this SIP/SDP message returns positive (isn't via1
> added by SER2? and via2 the one added by UA1?).
>
> I will appreciate any help on this. Is there any better way
> to do this? I am not doing a check on contact header since
> fix_nated_contact may have already been called (save reason
> for not checking the SDP contact information).
>
> Sorry I am unable to add any debugging information - as I am
> writing from home.
>
> Regards,
>
> Dhiraj
>
> Network Security Specialist,
> BT Exact
> > -----Original Message-----
> > From: dhiraj.2.bhuyan(a)bt.com [mailto:dhiraj.2.bhuyan@bt.com]
> > Sent: Friday, December 12, 2003 6:39 PM
> > To: jiri(a)iptel.org; sobomax(a)portaone.com
> > Cc: serusers(a)iptel.org
> > Subject: [Serusers] nat + multiple RTP proxy
> >
> >
> > Greetings list,
> > I spent some time looking into the rtpproxy and nathelper
> > code. Currently, nathelper + rtpproxy will work ONLY if there
> > is "one" RTP proxy on the path. In a scenario like -
> >
> > UA1 ---- NAT ---- SER/RTP1 ----- SER/RTP2 ---- NAT --- UA2
> >
> > where UA1 and UA2 are subscribed to two different SERs and
> > are also behind NAT, RTP proxy 1 never forwards the RTP
> > traffic from UA1 to RTP proxy 2 (because of the way it is
> > designed) since RTP1 is waiting for at least one RTP packet
> > from RTP proxy 2 and vice versa - hence the deadlock.
> >
> > This can be fixed if the RTP proxy waits for one UDP packet
> > from the device behind NAT, but does not wait for any packets
> > from the device it thinks is not behind NAT before forwarding
> > it the RTP traffic (coming from the other end). Thus in the
> > above scenario, RTP 1 waits for at least one packet from UA1
> > - but does not wait for any packet from RTP2.
> >
> > I am writing a patch for nathelper and rtpproxy to add this
> > functionality (should be available by next week). Anyone -
> > any thoughts on this?
> >
> > Dhiraj Bhuyan
> > Network Security Specialist,
> > BT Exact Business Assurance Solutions
> >
> > Tel: +44 1473 643932
> > Mob: +44 7962 012145
> > Email: dhiraj.2.bhuyan(a)bt.com
> >
> > _______________________________________________
> > Serusers mailing list
> > Serusers(a)iptel.org
> > http://mail.iptel.org/mailman/listinfo/serusers
> >
> >
>
>
>
>