hi,
i cvs co latest sip_router and rel_0_9_0,use the default ser.cfg is work!,and when i run with sems in Single instance ser,i get :
ERROR: fix_expr : bad re "sip:voicemail+*@*"
Regards,
Rana
sems.conf
ser_fifo_name=/tmp/ser_fifo
socket_name=/tmp/am_sock
send_method=fifo
# ----------- configuration parameters from Stefan ------------------------
#debug=3 # debug level (cmd line: -dddddddddd)
#fork=yes
#log_stderror=no # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
debug=7
fork=no
log_stderror=yes
*/
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
#port=5060
#children=4
# Configure Ser to create a FIFO server
fifo="/tmp/ser_sock"
# Configure FIFO DB
fifo_db_url="mysql://ser:heslo@localhost/ser"
#
# for dbtext:
# create a file usr_preferences in /path/to/dbtext/dir
# with the following contents:
# username(str,null) domain(str,null) attribute(str,null) value(str,null) type(int,null)
# alice:mydomain.com:email:alice at mymail.com:2
# bert:mydomain.com:email:bert at mymail.com:2
#etc. and uncomment the following line
#fifo_db_url="dbtext:///path/to/dbtext/dir"
# ------------------ module loading ----------------------------------
# either dbtext or mysql
# loadmodule "modules/dbtext/dbtext.so"
#
# if installed via make install, modules are in /usr/local/lib/ser/modules/
# (e.g. loadmodule "/usr/local/lib/ser/modules/mysql.so")
loadmodule "modules/mysql/mysql.so"
loadmodule "modules/sl/sl.so"
loadmodule "modules/tm/tm.so"
loadmodule "modules/rr/rr.so"
loadmodule "modules/maxfwd/maxfwd.so"
loadmodule "modules/usrloc/usrloc.so"
loadmodule "modules/registrar/registrar.so"
# if you do not use fifo_db for the email address, but
# e.g. load_avp("ruri","email",0);
# load avp_db.so with
# loadmodule "modules/avp_db/avp_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)
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if ( msg:len > max_len ) {
sl_send_reply("513", "Message too big");
break;
};
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
record_route();
# loose-route processing
if (loose_route()) {
t_relay();
break;
};
if (uri==myself) {
if (method=="REGISTER") {
# make UAs which want to register happy
sl_send_reply("200","OK");
break;
};
# switch to statefull mode:
if (!t_newtran()){
sl_send_reply("500","could not create transaction");
break;
};
if (method=="ACK"){
# absorb ACKs
break;
};
# prevent timeout on the other side:
t_reply("100","Trying - just wait a minute !");
# uncomment this for single ser instance configuration
# dont forget to add user_prefix_separator=+ to sems.conf
# forward to sems plugin directly if r_uri is plugin_name+... at ...
if (uri=~"sip:voicemail+*@*") {
if(!t_write_unix("/tmp/am_sock","voicemail")){
log("could not contact voicemail\n");
t_reply("500","could not contact voicemail");
};
break;
};
if (uri=~"sip:conference+*@*") {
if(!t_write_unix("/tmp/am_sock","conference")){
log("could not contact conference\n");
t_reply("500","could not contact conference");
};
break;
};
if (uri=~"sip:announcement+*@*") {
if(!t_write_unix("/tmp/am_sock","announcement")){
log("could not contact announcementce\n");
t_reply("500","could not contact announcement");
};
break;
};
if (method=="INVITE"){
# redirect the call to the 'conference' plug-in
# if the URI begin with 100
if (uri=~"sip:100.*@") {
# assumes that Sems configuration parameter 'socket_name='
# has been set to /tmp/am_sock
if(!t_write_unix("/tmp/am_sock","conference")) {
t_reply("500","error contacting sems");
};
break;
};
# redirect the call to the 'announcement' plug-in
# if the URI begin with 200
if (uri=~"sip:200.*@") {
if(!t_write_unix("/tmp/am_sock","announcement")) {
t_reply("500","error contacting sems");
};
break;
};
# no service number, redirect to voicemail.
# do not forget to load AVPs so that voicemail gets the
# callee's email address.
#load_avp("ruri","email",0);
if(!t_write_unix("/tmp/am_sock","voicemail")) {
t_reply("500","error contacting sems");
};
break;
}
else if (method=="BYE" || method=="CANCEL") {
# Sems should already know which plug-in is handling that
# call. "bye" is no plug-in name. It is a reserved name which
# tells Sems to terminate the call.
if(!t_write_unix("/tmp/am_sock","bye")) {
t_reply("500","error contacting sems");
};
};
};
# forward to current uri now; use stateful forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
----
ZhongShan Ether Network Security Inc
---------------------------------------------------------
hi all,
I set up ser + serweb + asterisk with 2 ip300 Polycom.
ip300 Polycom supporting SUBSCRIBE/NOTIFY/MESSAGE
methods.
When i set one phone offline (phone is powered and
registered in location table) i can't store IM in
msilo
table.IM is sent to phone
if i switch off phone IM is stored in msilo table but
when I switch on the phone IM is not dumped to phone.
Can I use presence instead of location in order to
store IM ?
Harry
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
We are starting to work on ser 0.9.0 and the latest cvs serweb.
Two problems:
1. don't seems possible to activate the voicemail for the customers;
2. on some tabs i get DB error.
Any help?
Thanks
Hello Sir/Madam,
We,the students of final year Btech(IT) from India,are doing the same project in Sip VoIP.And also we are getting the same error as:
gov.nist.javax.sip.SipStackImpl cannot be instantiated.Ensure the path name has been set.
javax.sip.PeerUnavailableException.
If you get any answer regarding this error,kindly provide us with the details immediately.We need it urgently.
Bye, R.vivek & batch
"work work and work that will not let u down any day,any way."
"dont be happy that u re handsom.be happy that u r confident and hardworking.
---------------------------------
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
Hi,
I would like to know what version of linux kernel will give a stable running with SER and rtpproxy?
Is it a big issue in providing a stable SER?
As I find that after I have updated the kernel to 2.6.10 from 2.6.5, ser seems to be more stable than before.
Thomas
Hi All.
I'm located in the US and would like to comply with the Communications
Assistance for Law Enforcement Act (CALEA) that Congress passed which
basically says that VoIP providers should have the ability to wiretap
conversations for the FBI upon request.
I use mediaproxy for NAT traversal. So my question is how can I be
CALEA compliant? I assume I should be able to modify mediaproxy to
write RTP streams to disk, but I'm unclear on how to "mix" both sides
of the conversation.
Can anyone help with a suggestion?
Regards,
Paul
Andres,
Did you have to patch Asterisk to fix this? If so, would you share your patch?
Regards,
Paul
On Fri, 04 Mar 2005 12:12:18 -0500, Andres <andres(a)telesip.net> wrote:
>
>
> Bogdan-Andrei IANCU wrote:
>
> > Andres,
> >
> > The problem is not in ser, but in Asterisk... As your net captures
> > shows, * does not generate any INVITE final reply when receiving
> > CANCEL. It should sent a "487 Request Terminated".
> > The lack of this final reply keeps the transaction open on ser; when
> > FR timer hits, internally "408 Timeout" is generated (after 120 secs)
> > and failure_route called.
> >
> > So the problem is *.
> >
> > bogdan
>
> Crystal clear Bogdan. Problem solved now in Asterisk. Now we can start
> testing 0.9.0.
>
> Thanks!
>
> >
> >
>
> --
> Andres
> Network Admin
> http://www.telesip.net
>
>
> _______________________________________________
> Serdev mailing list
> serdev(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serdev
>
Ok, again this is the original number I came up with. Comes back with:
84.33.59.8:138092893
-----Original Message-----
From: Java Rockx [mailto:javarockx@gmail.com]
Sent: Friday, March 04, 2005 1:13 PM
To: Iqbal
Cc: Matt Schulte; jh(a)lohi.tutpro.com; serusers(a)lists.iptel.org
Subject: Re: [Serusers] lcr module and column type in DB
The correct answer is 85063633
You can find a tool on line for this at http://www.dnsstuff.com/
Regards,
Paul
On Fri, 04 Mar 2005 19:09:41 +0000, Iqbal <iqbal(a)gigo.co.uk> wrote:
>
> one of us i doing the maths wrong I get
>
> 85063637
>
> Iqbal
>
> On 3/4/2005, "Matt Schulte" <mschulte(a)netlogic.net> wrote:
>
> >Well, I did that and this is what I got :-)
> >
> >84.33.59.8:138092893
> >I tried "forwards" (without reverse) and got another funky IP.
> >
> >-lost
> >
> >-----Original Message-----
> >From: Iqbal [mailto:iqbal@gigo.co.uk]
> >Sent: Friday, March 04, 2005 12:28 PM
> >To: Matt Schulte; jh(a)lohi.tutpro.com
> >Cc: serusers(a)lists.iptel.org
> >Subject: RE: [Serusers] lcr module and column type in DB
> >
> >
> >
> >yeah pretty much,
> >
> >Iqbal
> >
> >On 3/4/2005, "Matt Schulte" <mschulte(a)netlogic.net> wrote:
> >
> >>So, just to clear this up. You still have to reverse the ip, so:
> >>
> >>example:
> >>209.247.17.5
> >>reverses to:
> >>5.17.247.209
> >>
> >>which long format comes to:
> >>85063633
> >>
> >> Thanks .. ??
> >>
> >>-----Original Message-----
> >>From: Iqbal [mailto:iqbal@gigo.co.uk]
> >>Sent: Wednesday, March 02, 2005 2:55 PM
> >>To: jh(a)lohi.tutpro.com
> >>Cc: serusers(a)lists.iptel.org
> >>Subject: Re: [Serusers] lcr module and column type in DB
> >>
> >>
> >>
> >>cheers, just what I needed..one thing though I had to reverse the
> >>format...not sure if I was doing it wrong or something else.
> >>
> >>Anyhow for all those with the same problem manually calculating it
> >>is
> >>
> >>IP=A.B.C.D
> >>
> >>IPlong= A*16777216 + B*65536 + C*256 + D
> >>
> >>but as mentioned above I for some reason had to do
> >>
> >>D*16777216 + C*65536 + B*256 + A
> >>
> >>Iqbal
> >>
> >>
> >>
> >>On 3/2/2005, "Juha Heinanen" <jh(a)lohi.tutpro.com> wrote:
> >>
> >>>Iqbal writes:
> >>>
> >>> > Any ideas
> >>>
> >>>yes, you have to put in ip_addr field integer representation of ip
> >>>address. use, for example, php's ip2long function.
> >>>
> >>>-- juha
> >>>
> >>>
> >>
> >>_______________________________________________
> >>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
>