Hi to all, i have installed a Ser 8.12 in Fedora Core 3 and i have a problem
when i try call to another user.
I received the error 404 but if i use a softphone client in server console,
anyone user can talk with me.
This is my ser.cfg ->
[root@dns2 ser]# more ser.cfg
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
#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=yes # (cmd. line: -v)
dns=yes # (cmd. line: -r)
rev_dns=yes # (cmd. line: -R)
port=5060
children=4
listen=82.159.201.35
alias=telintcable.es
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/usrloc.so"
loadmodule "/usr/lib/ser/modules/registrar.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)
# -- auth params --
# Uncomment if you are using auth module
#
#modparam("auth_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
#modparam("auth_db", "password_column", "password")
# -- 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 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 (uri=~"telintcable.es") {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("telintcable.es", "subscriber"))
{
www_challenge("telintcable.es", "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; use stateful forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
And trace with ngrep port 5060 in server ->
U 82.159.201.35:5060 -> 192.168.110.135:5060
INVITE sip:prueba@192.168.110.135:5060 SIP/2.0..Record-Route:
<sip:prueba@82.159.201.35;ftag=4
2799873930355;lr=on>..Content-Length: 339..Contact:
<sip:amembrives@192.168.110.5:5060>..Call-
ID: 409094EA-AB6D-4329-A43C-8308E14397E6@192.168.110.5..Content-Type:
application/sdp..From: "
amembrives"<sip:amembrives@telintcable.es>;tag=42799873930355..CSeq: 1
INVITE..Max-Forwards: 6
9..To: <sip:prueba@telintcable.es>..Via: SIP/2.0/UDP
82.159.201.35;branch=z9hG4bK36e9.94679231
.0..Via: SIP/2.0/UDP
192.168.110.5;received=217.125.143.150;rport=5000;branch=z9hG4bKc0a86e050
131c9b1429327c70000188e00000007..User-Agent: SJphone/1.50.271d (SJ
Labs)....v=0..o=- 332592903
1 3325929031 IN IP4 192.168.110.5..s=SJphone..c=IN IP4 192.168.110.5..t=0
0..a=direction:activ
e..m=audio 49152 RTP/AVP 3 97 98 8 0 101..a=rtpmap:3 GSM/8000..a=rtpmap:97
iLBC/8000..a=rtpmap
:98 iLBC/8000..a=fmtp:98 mode=20..a=rtpmap:8 PCMA/8000..a=rtpmap:0
PCMU/8000..a=rtpmap:101 tel
ephone-event/8000..a=fmtp:101 0-11,16..
#
U 217.125.143.150:5060 -> 82.159.201.35:5060
OPTIONS sip:dns2.telintcable.es:5060 SIP/2.0..Content-Length: 0..Call-ID:
DB40A222-9E72-4412-9
FEA-7A13F0C950C7@192.168.110.135..From:
<sip:prueba@telintcable.es>;tag=1944664032666..CSeq: 1
2 OPTIONS..Max-Forwards: 70..To: <sip:dns2.telintcable.es:5060>..Via:
SIP/2.0/UDP 192.168.110.
135;rport;branch=z9hG4bKc0a86e870131c9b1429327d40000290400000023....
#
U 82.159.201.35:5060 -> 217.125.143.150:5060
SIP/2.0 404 Not Found..Call-ID:
DB40A222-9E72-4412-9FEA-7A13F0C950C7@192.168.110.135..From: <s
ip:prueba@telintcable.es>;tag=1944664032666..CSeq: 12 OPTIONS..To:
<sip:dns2.telintcable.es:50
60>;tag=9d871af07b54b916b825cc89b774548a.916e..Via: SIP/2.0/UDP
192.168.110.135;rport=5060;bra
nch=z9hG4bKc0a86e870131c9b1429327d40000290400000023;received=217.125.143.150
..Server: Sip EXpr
ess router (0.8.12 (i386/linux))..Content-Length: 0..Warning: 392
82.159.201.35:5060 "Noisy fe
edback tells: pid=3210 req_src_ip=217.125.143.150 req_src_port=5060
in_uri=sip:dns2.telintcab
le.es:5060 out_uri=sip:dns2.telintcable.es:5060 via_cnt==1"....
Sorry for my bad english and thank for help.
Hi All:
I tried to server farm the SER and have two simple questions.
(1)can multiple SERs connect to single copy of MySql database at the
same time.
I tried
modparam("auth_db", "db_url", "sql://ser:heslo@192.228.118.240/ser")
modparam("usrloc", "db_url", "sql://ser:heslo@192.228.118.240/ser")
modparam("group", "db_url", "sql://ser:heslo@192.228.118.240/ser")
on two machines with ser, the results is that the first one is Ok but
the second one has a error message to many db connection opened
Did I misses anything?
(2) what is the recommended way of server farming SER and how to load
balance the traffic.
Thanks very much for any help available.
Regards,
TC Chan
Hi All...
I am using SER 0.8.14 ,RADIUS,and mysql. I
want to authenticate all the clients based on IP
addresses. How to proceed...? where to make the
changes? can any one give me the sample code
function?...
Thanks for any hint...Bharat
________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony
I get the same error message when I move everything into the .c file.
-Daniel
On 5/24/05, Samuel Osorio Calvo <samuel.osorio(a)nl.thalesgroup.com> wrote:
> I did not make a complete review but the first thing I saw is that you should move all the module interface to the .c file.
>
> Samuel.
>
>
> Unclassified.
> >>> Daniel Corbe <daniel.junkmail(a)gmail.com> 05/23/05 05:34PM >>>
> Actually those were incredibly useful. Thank you.
>
> Now, when I compile my module I am getting the following error message:
>
> 16:18:13 root#proxy2:/usr/local/src/ser-0.9.0/modules/radius_cache>gcc
> -c -o radius_cache.o radius_cache.c
> In file included from radius_cache.c:46:
> radius_cache.h:58: `NAME' undeclared here (not in a function)
> radius_cache.h:58: syntax error before string constant
> radius_cache.h:62: warning: initialization from incompatible pointer type
>
> I'm not sure what to do about that. It seems to be something internal
> and specific to MODULE_VERSION in the SER header.
>
> My module:
> http://www.rafb.net/paste/results/N0uQyJ91.html
>
> My module's header file:
> http://www.rafb.net/paste/results/vo3vG345.html
>
> Thanks for the help.
>
> -Daniel
>
>
> On 5/23/05, Samuel Osorio Calvo <samuel.osorio(a)nl.thalesgroup.com> wrote:
> > There's a simple module, called print that is meant to be mainly an
> > example. So I recommend you to take a look at its interface and to start
> > from there your module.
> > I attacht also several files that a little bit old but still they are
> > really useful.
> >
> > Luck!
> >
> > Samuel.
> >
> >
> > Unclassified.
> > >>> Daniel Corbe <daniel.junkmail(a)gmail.com> 05/22/05 10:41PM >>>
> > Here's another question:
> >
> > I got my module to compile by taking _init out and reworking the
> > initalization of the module into something else.
> >
> > Now when SER loads I get:
> >
> > May 22 21:34:00 proxy2 ser: ERROR: no version info in module
> > </usr/local/lib/ser/modules/radius_cache.so>: Undefined symbol
> > "module_version"
> >
> > What is module_version? How do I define it?
> >
> > Thanks.
> >
> > -Daniel
> >
> >
> > On 5/22/05, Daniel Corbe <daniel.junkmail(a)gmail.com> wrote:
> > > Hello,
> > >
> > > I have a SER module which I've written in C and I'm trying to
> > compile.
> > > When I compile it I get this error:
> > >
> > > 20:53:24
> > root#proxy2:/usr/local/src/ser-0.9.0/modules/radius_cache>gcc
> > > -shared -o radius_cache.so radius_cache.o
> > > radius_cache.o: In function `_init':
> > > radius_cache.o(.text+0x0): multiple definition of `_init'
> > > /usr/lib/crti.o(.init+0x0): first defined here
> > >
> > > Is there something else in SER that exports _init already?
> > >
> > > Thanks.
> > >
> > > -Daniel
> > >
> >
> > _______________________________________________
> > Serusers mailing list
> > serusers(a)lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> >
> >
> >
>
>
It's in this thread in my post from 05/16.
Also, yesterday, I posted it to serdev.
Michael
On Tuesday 24 May 2005 09:00 am, you wrote:
> Would u please send me link for that patch?
>
> Thanks,
> Mohammad
>
>
> Michael Ulitskiy wrote:
>
> >It works with above-posted patch and with limitations stated in the docs
> >as Daniel pointed out.
> >You won't be able to authenticate to RFC-compliant implementations.
> >
> >Michael
> >
> >On Monday 23 May 2005 12:05 pm, info(a)beeplove.com wrote:
> >
> >
> >>Does this module work on ser-0.9.0?
> >>Or, was you guys able to make it work on ser-0.9.0
> >>
> >>If you were able to make it worked, would you please share the tricks,
> >>
> >>Thanks,
> >>Mohammad
> >>
> >>
> >>Original Message:
> >>-----------------
> >>From: Michael Ulitskiy mdu113(a)acedsl.com
> >>Date: Mon, 23 May 2005 12:01:40 -0400
> >>To: daniel(a)voice-system.ro, serusers(a)lists.iptel.org
> >>Subject: Re: [Serusers] UAC module (backport to 0.9.0)
> >>
> >>
> >>On Sunday 22 May 2005 04:51 am, Daniel-Constantin Mierla wrote:
> >>
> >>
> >>>Hello,
> >>>
> >>>the issue with CSeq is known and it is stated in the documentation (see
> >>>the note there):
> >>>
> >>>http://www.voice-system.ro/docs/uac/ar01s04.html#uac_auth
> >>>
> >>>
> >>Thanks. Actually I read that docs, but somehow overlooked that note.
> >>Thanks for pointing it out.
> >>
> >>
> >>
> >>>Daniel
> >>>
> >>>
> >>Michael
> >>
> >>
> >>
> >>>On 05/16/05 22:05, Michael Ulitskiy wrote:
> >>>
> >>>
> >>>
> >>>>Hello,
> >>>>
> >>>>I succeeded to make UAC module calculate credentials and
> >>>>resend message with the following simple patch on t_reply.c
> >>>>of tm module:
> >>>>
> >>>>--- t_reply.c.bak 2005-05-13 14:57:25.000000000 -0400
> >>>>+++ t_reply.c 2005-05-13 15:16:45.000000000 -0400
> >>>>@@ -761,6 +761,10 @@
> >>>> a callback; save branch count to be able to determine
> >>>> later if new branches were initiated */
> >>>> branch_cnt=Trans->nr_of_outgoings;
> >>>>+ /* also append the current reply to the transaction to
> >>>>+ * make it available in failure routes - a kind of
> >>>>
> >>>>
> >>"fake"
> >>
> >>
> >>>>+ * save of the final reply per branch */
> >>>>+ Trans->uac[branch].reply = reply;
> >>>>
> >>>> /* run ON_FAILURE handlers ( route and callbacks) */
> >>>> if ( has_tran_tmcbs( Trans,
> >>>>
> >>>>
> >>TMCB_ON_FAILURE_RO|TMCB_ON_FAILURE)
> >>
> >>
> >>>>@@ -769,6 +773,11 @@
> >>>>
> >>>>
> >>>>
> >>picked_branch==branch?reply:Trans->uac[picked_branch].reply,
> >>
> >>
> >>>> picked_code);
> >>>> }
> >>>>+
> >>>>+ /* now reset it; after the failure logic, the reply may
> >>>>+ * not be stored any more and we don't want to keep into
> >>>>+ * transaction some broken reference */
> >>>>+ Trans->uac[branch].reply = 0;
> >>>>
> >>>> /* look if the callback perhaps replied transaction; it
> >>>>
> >>>>
> >>also
> >>
> >>
> >>>> covers the case in which a transaction is replied
> >>>>
> >>>>
> >>localy
> >>
> >>
> >>>>It's actually taken from cvs-head.
> >>>>Now ser.cfg written below works as expected with just one
> >>>>important issue. Authentication doesn't work anyway because
> >>>>ser doesn't increase CSeq number when resending message
> >>>>(INVITE) with credentials. I'm trying to authenticate
> >>>>to asterisk and in case of asterisk it immediately replies
> >>>>"503 Service Unavailable" if it receives INVITE with the same CSeq.
> >>>>I thought it could be asterisk-specific problem, but RFC3261 in
> >>>>section "8.1.3.5 Processing 4xx Responses" says:
> >>>>"new request constitutes a new transaction and SHOULD have the same
> >>>>value of the Call-ID, To, and From of the previous request, but the CSeq
> >>>>should contain a new sequence number that is one higher than the
> >>>>
> >>>>
> >>previous."
> >>
> >>
> >>>>So I guess this is not an asterisk-specific.
> >>>>It is my understanding that in order for this to work ser must increment
> >>>>CSeq when authenticating to UAS, but decrement CSeq in all subsequent
> >>>>in-dialog messages that will be sent to call originator including BYEs.
> >>>>This, in turn, requires for ser to be call-statefull which is not the
> >>>>
> >>>>
> >>case.
> >>
> >>
> >>>>Conclusion: uac authentication in ser is not possible.
> >>>>Please correct me if I'm wrong (I honestly want to be wrong on this
> >>>>
> >>>>
> >>matter:))
> >>
> >>
> >>>>Thank you,
> >>>>
> >>>>Michael
> >>>>
> >>>>On Sunday 15 May 2005 12:36 am, you wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Michael Ulitskiy wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Hello,
> >>>>>>
> >>>>>>Has anyone succeeded in getting UAC authentication to work?
> >>>>>>I'm doing the following:
> >>>>>>
> >>>>>>route {
> >>>>>> resetflag(1);
> >>>>>> t_on_failure("1");
> >>>>>> route(1);
> >>>>>>}
> >>>>>>
> >>>>>>route[1]
> >>>>>>{
> >>>>>> if (uri=~"[@:](192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)")
> >>>>>>
> >>>>>>
> >>{
> >>
> >>
> >>>>>> sl_send_reply("479", "We don't forward to private IP
> >>>>>>
> >>>>>>
> >>addresses");
> >>
> >>
> >>>>>> break;
> >>>>>> };
> >>>>>> if (!t_relay()) {
> >>>>>> sl_reply_error();
> >>>>>> };
> >>>>>>}
> >>>>>>
> >>>>>>failure_route[1] {
> >>>>>> # authentication reply received?
> >>>>>> if ( t_check_status("401|407") ) {
> >>>>>> if (!isflagset(1) && uac_auth()) {
> >>>>>> setflag(1);
> >>>>>> t_on_failure("1");
> >>>>>> append_branch();
> >>>>>> route(1);
> >>>>>> } else {
> >>>>>> t_reply("500","Error occurred");
> >>>>>> }
> >>>>>> break;
> >>>>>> }
> >>>>>>
> >>>>>>}
> >>>>>>
> >>>>>>When uac_auth() is called I get the following in the:
> >>>>>>0(28973) DEBUG:uac:uac_auth: picked reply is (nil), code 407
> >>>>>>0(28973) BUG:uac:uac_auth: empty reply on picked branch
> >>>>>>
> >>>>>>Any suggestions or ideas?
> >>>>>>Thank you,
> >>>>>>
> >>>>>>Michael
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>I am also getting same thing with different msg ..
> >>>>>BUG:uac:uac_auth: empty reply on picked branch
> >>>>>
> >>>>>Anybody know how to overcome this?
> >>>>>
> >>>>>Mohammad
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>_______________________________________________
> >>>>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
> >>
> >>--------------------------------------------------------------------
> >>mail2web - Check your email from the web at
> >>http://mail2web.com/ .
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
>
>
Hello,
I'd like ask for advice on what is in your opinion the best solution
in the following scenario.
I have a bunch of sip servers (asterisk boxes as my users need pbx
functionality) that can make sip call to each other and my PSTN
gateway. Now I want to purchase PSTN terminitaion in several
different markets (and probably more in the future). All those
terminations will require authentication.
I want all my boxes when they see non-local call to send it to a
central routing server that would determine where this call should
be sent and authenticate to the appropriate provider so that I don't
have to configure all credentials on all asterisk boxes. Also I want
it not to deal with the media at all. All media streams should go directly
from asterisk box to the PSTN termination provider.
So basically it should be central SIP router that is able to authenticate
calls if neccessary.
I thought I could do it with SER and its UAC module, but it appears
UAC module doesn't work and probably won't work (see my previous
post in this list about UAC backport to 0.9.0).
Also I don't want to use asterisk in this place as asterisk always wants to
stay in media path and I'd really like to avoid of getting into hassle with
re-invites.
So the question is what are my options and what you would advice
as a solution. Are there any software out there that can do it (preferably
open-source, of course) or what else you could suggest to do to get
desired results.
Thanks a lot,
--
See you later,
Michael
hi
is there someone that know how can i write in C this part of program that i
wrote in shell in serctl (in the ping part of the prog when i do the command
"serctl ping URI") :
ping)
# error handling is hacked -- filter_fl should not
# consume positive status -- that should be done by
# calling app
if [ "$#" -ne 2 ] ; then
usage
exit 1
fi
TIMESTAMPS=`date "+%s.%N"`
print_status $TIMESTAMPS
RET=`fifo_cmd t_uac_dlg OPTIONS "$2" "." \
"From: sip:daemon@$SIP_DOMAIN" \
"To: <$2>" "Contact: <sip:daemon@!!>" "." "." \
| head -1 `
TIMESTAMPE=`date "+%s.%N"`
print_status $TIMESTAMPE
TIME= echo "(${TIMESTAMPE} - ${TIMESTAMPS}) *1000" | bc -l
print_status $TIME
;;
thanks a lot
ps: i need the part of the fifo_cmd etc..., not the part of timestamp (but
if you know if there is the same date function in C please tell me ;) )
hello
can you any one tell me what is problem in this
i am using ser 0.9.0
when ever i am trying to install ser.
this is the problem in this installation
Makefile.rules:81: action.d: No such file or directory
Makefile.rules:81: crc.d: No such file or directory
Makefile.rules:81: daemonize.d: No such file or
directory
Makefile.rules:81: data_lump.d: No such file or
directory
Makefile.rules:81: data_lump_rpl.d: No such file or
directory
Makefile.rules:81: dprint.d: No such file or directory
Makefile.rules:81: dset.d: No such file or directory
Makefile.rules:81: error.d: No such file or directory
Makefile.rules:81: fifo_server.d: No such file or
directory
Makefile.rules:81: flags.d: No such file or directory
Makefile.rules:81: forward.d: No such file or
directory
Makefile.rules:81: hash_func.d: No such file or
directory
Makefile.rules:81: ip_addr.d: No such file or
directory
Makefile.rules:81: main.d: No such file or directory
Makefile.rules:81: md5.d: No such file or directory
Makefile.rules:81: md5utils.d: No such file or
directory
Makefile.rules:81: modparam.d: No such file or
directory
Makefile.rules:81: msg_translator.d: No such file or
directory
Makefile.rules:81: pass_fd.d: No such file or
directory
Makefile.rules:81: proxy.d: No such file or directory
Makefile.rules:81: qvalue.d: No such file or directory
Makefile.rules:81: re.d: No such file or directory
Makefile.rules:81: receive.d: No such file or
directory
Makefile.rules:81: resolve.d: No such file or
directory
Makefile.rules:81: route.d: No such file or directory
Makefile.rules:81: route_struct.d: No such file or
directory
Makefile.rules:81: script_cb.d: No such file or
directory
Makefile.rules:81: socket_info.d: No such file or
directory
and also serctl is not working i am using root
serctl moni
is not working
[root@voice ser]# serctl moni
Error opening ser's FIFO /tmp/ser_fifo
Make sure you have line fifo=/tmp/ser_fifo in your
config
--- Grigory Fishilevich <g.fishilevich(a)gmail.com>
wrote:
> hi,
>
> these messages have nothing to say. i think you have
> a permissions
> problem, you should take a look at /var/log/messages
>
> ? have you ser running or not?
>
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail