I need to route to a failure route when there is a
certain kind of failure. For example, If I don't
receive a 'Trying' back on the initial attempt{no
response to Invite}, then I would route using the
failure route. For all other failures {i.e. 404, no
answer, 486, etc..}, I don't try any other routes. How
can this be configured?
thank you
ac
Discover Yahoo!
Have fun online with music videos, cool games, IM and more. Check it out!
http://discover.yahoo.com/online.html
Hello List,
Got a question about the uri matching, I used a #0 prefix for calls but I
could find the correct syntax for ser.cfg to recognize the "#" key. I have
two different brands of hardware sip phones, one of them will send the # key
as %23 (the syntax I used has no problem picking this). However, the other
sends out the exact "#"
Here are the syntax I have tried:
1) if (uri=~"^sip:#[0-9]+@") {
2) if (uri=~"^sip:\#[0-9]+@") {
3) if (uri=~"^sip:[#]{1}[0-9]+@") {
Could someone inform me the correct syntax? TIA
_________________________________________________________________
Don't just Search. Find! http://search.sympatico.msn.ca/default.aspx The new
MSN Search! Check it out!
Hi,
When you are working with BASH shell the profile is
normally located in /etc/profile. When you can't find
it and you don't want to read documentation you can
start your shell with strace and look which files are
read.
For bash shell you type strace -e open bash --login.
Regards,
G�rard
--- Bharat More <bharat_sharp(a)yahoo.co.in> wrote:
> Hi all...
> I has installed ser 8.12.0, ser is
> running,and i exported my domain as novanet.co.in
> its
> gone successfully. but the next step is to export
> the
> domain in etc/profile file but where it is? Its
> supposed to be in the folder etc/profile but there
> is
> nthing in this folder?...
> Need urgent Help...Thanks for any hint in
> Adv.
>
>
>
>
________________________________________________________________________
> Yahoo! India Matrimony: Find your life partner
> online
> Go to: http://yahoo.shaadi.com/india-matrimony
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html
Hi,
I'm trying to setup the pa module in ser-0.9.0.
I am using:
modparam("pa", "pa_domain", "bilien.org")
modparam("pa", "use_db", 1)
modparam("pa", "db_url", "mysql://ser:heslo@localhost/ser")
then in the route():
if (uri==myself) {
if (method=="SUBSCRIBE") {
if (t_newtran()) {
handle_subscription("registrar");
break;
};
};
This seems to work fine, as a SUBSCRIBE message results in
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: handle_subscription() entered
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: get_pres_uri: _puri=sip:foo@bar
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: new_watcher starting
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: new_watcher: _p->uri=johan-xten(a)bilien.org
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: db_new_watcher: watcher->uri=johan-kphone(a)bilien.org
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: new_watcher: watcher->package=presence
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: new_watcher: status=active
in the logs.
But when I then register with foo@bar, nothing happens. I don't get any
NOTIFY, nor do I get something in the logs.
I can recompile and add some printf, see if the pa callback
is registered and called in usrloc, but I thought I'd first ask here if
someone sees what the problem is.
Thanks,
Johan.
Hi all,
Here's a very quick and easy way to check if a rtpproxy is up, and
responding on it's UDP command channel using the check_udp nagios utility:
/usr/local/libexec/nagios/check_udp -e "123 " -s "123 V" -H
your.rtp.host.com -p 22222
Note, this only works when you make rtpprxy listen on a UDP port, you
have to find another method to monitor rtpproxy when it listens on a
local socket.
-Jev
I've written a module that uses a 3rd party library to retrieve information
from a remote database.
This library is multi-threaded using pthreads. SER hangs on startup when
running in forked mode.
Works fine is non-fork mode. Anyone experience such a problem?
Thanks in advance.
I'm wondering if anybody has an optimized configuration for mysql in an
environment where several SER boxes are sending A LOT of traffic to one
central server.
The most notable thing I've done so far is increase the number of
max-connections.
Hi
I am trying to send
NOTIFY sip:040600@sip.domain.com SIP/2.0
Via: SIP/2.0/UDP a.b.c.d:5060
From: <sip:vmserver@sip.domain.com>
To: <sip:040600@sip.domain.com>
Contact: <sip:040600@a.b.c.d>
Call-ID: 4d61cf9e505d40e905032a18329d61ec(a)a.b.c.d
CSeq: 1 NOTIFY
User-Agent: VoiceMail
Event: message-summary
Content-Type: application/simple-message-summary
Content-Length: 40
Messages-Waiting: yes
Voicemail: 23/2
using
if (src_ip == a.b.c.d) {
log(1, "INSIDE ROUTE 2");
if (!t_relay()) {
sl_reply_error();
break;
};
};
in my NOTIFY route
however I keep getting too many hops. Should sipsak send the message to
ser, or should it go direct to the IPphone, I am guessing at the former.
Iqbal
Hello,
we are using ser version 0.8.14 and the script ser.cfg is working fine without database.
But after enabling write to database mode, and digest authentication we get one way request and no response from the server.
We variefied this is happening when we uncomment
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
I am sending U the complete script which we are using, please help us to solve our problem.
####################################################
#debug=3 # debug level (cmd line: -dddddddddd)
#fork=yes
#log_stderror=no # (cmd line: -E)
# Uncomment these lines to enter debugging mode
debug=10
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
#alias="localhost"
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"
loadmodule "/usr/local/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)
# -- auth params --
# Uncomment if you are using auth module
#
modparam("auth_db", "db_url", "sql://ser:heslo@localhost:3306/ser")
modparam("auth_db", "calculate_ha1", 1)
#
# If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
modparam("auth_db","user_column", "username")
modparam("auth_db", "password_column", "password")
modparam("auth_db","domain_column","domain")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
# 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 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("192.168.1.101", "subscriber")) {
www_challenge("192.168.1.101", "1");
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; use stateful forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
#################################
Hi,
I would like to deny all 3xx messages coming from subscribers. I found following code in seusers mailing list but my ser give me: "unknown command, missing loadmodule? ". What is wrong?
failure_route[1] {
if (t_check_status("3[0-9][0-9]")) {
t_reply("400","No redirect available");
break;
}
}
I have following modules loaded:
loadmodule "/usr/lib/ser/modules/textops.so"
loadmodule "/usr/lib/ser/modules/sl.so"
loadmodule "/usr/lib/ser/modules/tm.so"
loadmodule "/usr/lib/ser/modules/acc.so"
loadmodule "/usr/lib/ser/modules/rr.so"
loadmodule "/usr/lib/ser/modules/maxfwd.so"
loadmodule "/usr/lib/ser/modules/usrloc.so"
loadmodule "/usr/lib/ser/modules/registrar.so"
loadmodule "/usr/lib/ser/modules/auth.so"
loadmodule "/usr/lib/ser/modules/auth_radius.so"
SER version 0.8.12
Regards,
MC