Hi all,
I have been hunting for a solution to my problem now for a couple of
days.
I am trying to set up connectivity so that we can have conference
calling using X-Pro (http://www.xten.com/) as I live in Australia and
our company is based in New York, London and Costa Rica.
I have installed ser from the CVS file as I have read that it solves a
number of bugs, but cannot get out of this problem of not being able to
log into the service.
Here is the setup.
SER is installed in London on RedHat 7.1 with MYSQL / SerWeb and sits
behind a Cisco PIX 515UR (NAT) with 5060 open and no fixup happening.
I am located in Australia behind a DLINK 604+ router with NAT installed.
I can connect to SER fine as I am running it now with debugging to the
command line, but I keep getting the same error in the log file.
0(1464) pre_auth(): Credentials with given realm not found
I have tried setting up using Windows Messenger and still get the same
errror.
I have configured the DNS server to return the correct IP 10.0.0.20 when
It looks up casinoreality.co.uk as I thought that was a problem.
Am I making a simple mistake?
Thanks in advance.
Nicholas Irving
nirving(a)casinoreality.com
Here is the log that is being produced.
0(1464) parse_headers: flags=-1
0(1464) check_via_address(220.240.68.206, 220.240.68.206, 0)
0(1464) receive_msg: cleaning up
0(1464) SIP Request:
0(1464) method: <REGISTER>
0(1464) uri: <sip:casinoreality.co.uk>
0(1464) version: <SIP/2.0>
0(1464) parse_headers: flags=1
0(1464) end of header reached, state=5
0(1464) parse_headers: Via found, flags=1
0(1464) parse_headers: this is the first via
0(1464) After parse_msg...
0(1464) preparing to run routing scripts...
0(1464) DEBUG : is_maxfwd_present: searching for max_forwards header
0(1464) parse_headers: flags=128
0(1464) end of header reached, state=9
0(1464) DEBUG: get_hdr_field: <To> [32];
uri=[sip:8910@casinoreality.co.uk]
0(1464) DEBUG: to body [<sip:8910@casinoreality.co.uk>]
0(1464) get_hdr_field: cseq <CSeq>: <5620> <REGISTER>
0(1464) DEBUG: get_hdr_body : content_length=0
0(1464) found end of header
0(1464) DEBUG: is_maxfwd_present: max_forwards header not found!
0(1464) end of header reached, state=9
0(1464) parse_headers: flags=256
0(1464) find_first_route(): No Route headers found
0(1464) loose_route(): There is no Route HF
0(1464) parse_headers: flags=4096
0(1464) pre_auth(): Credentials with given realm not found
0(1464) build_auth_hf(): 'WWW-Authenticate: Digest
realm="casinoreality.co.uk",
nonce="3f305b98bc1835283fec5e1c6b584776470624c5"
'
0(1464) parse_headers: flags=-1
0(1464) check_via_address(220.240.68.206, 220.240.68.206, 0)
0(1464) receive_msg: cleaning up
Here is a copy of my config
#
# $Id: ser.cfg,v 1.21 2003/06/04 13:47:36 jiri Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
debug=7 # debug level (cmd line: -dddddddddd)
fork=no
log_stderror=yes # (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
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", "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 (len_gt( 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=~"casinoreality.co.uk") {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("casinoreality.co.uk",
"subscriber")) {
www_challenge("casinoreality.co.uk",
"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();
};
}
Hi,
I would like to understand a little bit better the "loose route" concept. I have seen 2 different configs for ser:
Sometimes the config has just:
loose_route();
...and sometimes it has:
if (loose_route()) {
t_relay();
break;
};
How exactly do these 2 differ? The README says: "The function performs loose routing as defined in RFC3261", but why would I put a t_relay() after checking for loose_route()?
What I can tell so far is that loose routing leaves the next hop in the Route header, but I don't understand which one of the above two examples actually tell SER to do that.
Thanks,
Ricardo Villa
OK, I'll take a look at it. Please don't send private e-mails, always CC
the list.
Jan.
On 05-08 12:04, Kevin Chu wrote:
> Hi Jan,
>
> I am using registrar with pa for regular SIP client (MS Messengers).
>
> Actually, I think I got the same problems as explained in this mail, but I
> can't find the final answer for those questions:
> http://lists.iptel.org/pipermail/serdev/2003-June/000411.html
>
> Thanks,
> Kevin
>
> -----Original Message-----
> From: Jan Janak [mailto:jan@iptel.org]
> Sent: Tuesday, August 05, 2003 11:56 AM
> To: Jiri Kuthan
> Cc: serusers(a)lists.iptel.org; kevin.chu(a)viditec.com
> Subject: Re: Fwd: RE: [Serusers] send_reply() error from pa module
>
>
> >From where do you get the presence information, registrar or jabber ?
>
> Jan.
>
> On 05-08 18:50, Jiri Kuthan wrote:
> > [resent to serusers, since this email was sent mistakenly to my private
> address]
> >
> > >X-From_: Tue Aug 5 18:00:17 2003
> > >X-Original-To: jiri(a)fox.iptel.org
> > >Delivered-To: jiri(a)fox.iptel.org
> > >From: "Kevin Chu" <kevin.chu(a)viditec.com>
> > >To: "Jiri Kuthan" <jiri(a)iptel.org>
> > >Subject: RE: [Serusers] send_reply() error from pa module
> > >Date: Tue, 5 Aug 2003 11:06:33 -0500
> > >X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
> > >Importance: Normal
> > >X-Spam-Status: No, hits=-7.3 required=5.0
> > > tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,MSGID_GOOD_EXCHANGE,
> > > ORIGINAL_MESSAGE,QUOTED_EMAIL_TEXT,REPLY_WITH_QUOTES
> > > autolearn=ham version=2.55
> > >X-Spam-Level:
> > >X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
> > >
> > >Hi Jiri,
> > >
> > >After adding t_newtran in the script, the error is gone and pa can send
> out
> > >NOTIFY now.
> > >
> > >However, the presence status is always 'closed' no matter the presentity
> is
> > >online or offline. How can I modify the script to let the pa send out the
> > >real
> > >status in the NOTIFY? Do I need to use mysql or dbtext module with pa to
> > >make
> > >the location information persistent?
> > >
> > >BR,
> > >Kevin
> > >
> > >-----Original Message-----
> > >From: Jiri Kuthan [mailto:jiri@iptel.org]
> > >Sent: Tuesday, July 29, 2003 11:35 AM
> > >To: Kevin Chu; SER Users
> > >Subject: Re: [Serusers] send_reply() error from pa module
> > >
> > >
> > >You probably have no t_newtran in you script. t_newtran must preceed
> > >t_reply.
> > >Check SER documentation for examples how to introduce stateful
> processing.
> > >
> > >-jiri
> > >
> > >At 04:14 PM 7/29/2003, Kevin Chu wrote:
> > >>Hi,
> > >>
> > >>I tried to use the pa modules to process SUBSCRIBE request from SIP
> user.
> > >>However, the following error message was returned when the pa module
> tried
> > >>to send 200 OK response:
> > >>
> > >> 0(19584) ERROR: t_reply: cannot send a t_reply to a message for which
> no
> > >>T-state has been established
> > >> 0(19584) send_reply(): Error while sending 200 OK
> > >>
> > >>Looks like the transaction state was missing while sending the response.
> > >>Please see the attached debug
> > >>and error message. I can't figure out the reason for that error, could
> > >>anybody help me out? Thanks!
> > >>
> > >>BR,
> > >>Kevin
> > >>
> > >>
> > >>_______________________________________________
> > >>Serusers mailing list
> > >>serusers(a)lists.iptel.org
> > >>http://lists.iptel.org/mailman/listinfo/serusers
> > >
> > >--
> > >Jiri Kuthan http://iptel.org/~jiri/
> >
> > --
> > Jiri Kuthan http://iptel.org/~jiri/
> >
> > _______________________________________________
> > Serusers mailing list
> > serusers(a)lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
>
>
[resent to serusers, since this email was sent mistakenly to my private address]
>X-From_: Tue Aug 5 18:00:17 2003
>X-Original-To: jiri(a)fox.iptel.org
>Delivered-To: jiri(a)fox.iptel.org
>From: "Kevin Chu" <kevin.chu(a)viditec.com>
>To: "Jiri Kuthan" <jiri(a)iptel.org>
>Subject: RE: [Serusers] send_reply() error from pa module
>Date: Tue, 5 Aug 2003 11:06:33 -0500
>X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
>Importance: Normal
>X-Spam-Status: No, hits=-7.3 required=5.0
> tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,MSGID_GOOD_EXCHANGE,
> ORIGINAL_MESSAGE,QUOTED_EMAIL_TEXT,REPLY_WITH_QUOTES
> autolearn=ham version=2.55
>X-Spam-Level:
>X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
>
>Hi Jiri,
>
>After adding t_newtran in the script, the error is gone and pa can send out
>NOTIFY now.
>
>However, the presence status is always 'closed' no matter the presentity is
>online or offline. How can I modify the script to let the pa send out the
>real
>status in the NOTIFY? Do I need to use mysql or dbtext module with pa to
>make
>the location information persistent?
>
>BR,
>Kevin
>
>-----Original Message-----
>From: Jiri Kuthan [mailto:jiri@iptel.org]
>Sent: Tuesday, July 29, 2003 11:35 AM
>To: Kevin Chu; SER Users
>Subject: Re: [Serusers] send_reply() error from pa module
>
>
>You probably have no t_newtran in you script. t_newtran must preceed
>t_reply.
>Check SER documentation for examples how to introduce stateful processing.
>
>-jiri
>
>At 04:14 PM 7/29/2003, Kevin Chu wrote:
>>Hi,
>>
>>I tried to use the pa modules to process SUBSCRIBE request from SIP user.
>>However, the following error message was returned when the pa module tried
>>to send 200 OK response:
>>
>> 0(19584) ERROR: t_reply: cannot send a t_reply to a message for which no
>>T-state has been established
>> 0(19584) send_reply(): Error while sending 200 OK
>>
>>Looks like the transaction state was missing while sending the response.
>>Please see the attached debug
>>and error message. I can't figure out the reason for that error, could
>>anybody help me out? Thanks!
>>
>>BR,
>>Kevin
>>
>>
>>_______________________________________________
>>Serusers mailing list
>>serusers(a)lists.iptel.org
>>http://lists.iptel.org/mailman/listinfo/serusers
>
>--
>Jiri Kuthan http://iptel.org/~jiri/
--
Jiri Kuthan http://iptel.org/~jiri/
it is recommended to update SER to the latest stable branch -- there are
many fixes and improvements since pre29 was out. To learn about getting
it see: wwww.iptel.org/ser/cvs/
Daniel
giAndrea wrote:
>
>
> the version is 0.8.11pre29
>
> ok, i try to resteart ser in debug mode
>
> At 13.41 05/08/2003 +0200, you wrote:
>
>> Tell us what SER version you have there.
>> Start ser in debug mode and see where the error is -- in your config
>> file you must set:
>> log_stderror=yes
>> debug=9
>>
>> Daniel
>>
>> giAndrea wrote:
>>
>>> At 13.25 05/08/2003 +0200, you wrote:
>>>
>>>> From your mail I understand you didn't set the parameter properly.
>>>> It should be like this:
>>>> modparam("rr", "enable_full_lr", 1)
>>>
>>>
>>>
>>> uh... ok... i've corrected but ser don't start.... i comment this
>>> row and ser start correctly....
>>>
>>> andrea.
>>>
>>>
>>>
>>>
>>>> Please read the README from RR module's directory -- online you
>>>> find it here:
>>>> http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/rr/README?…
>>>> <http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/rr/README?…>
>>>> <http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/rr/README?…
>>>> <http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/rr/README?…>>
>>>>
>>>> Daniel
>>>>
>>>> giAndrea wrote:
>>>>
>>>>> At 11.41 05/08/2003 +0200, you wrote:
>>>>>
>>>>>> Hello,
>>>>>> usually that is related to MSN Messenger and loose routing, if
>>>>>> you use that. Have you set the RR parameter 'enable_full_lr' to 1?
>>>>>> If that doesn't solve the problem we need the SIP traffic (use
>>>>>> ngrep or ethereal to capture it).
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> when i set enable_full_lr to 1 ( modparam("rr, "enable_full_lr",
>>>>> no); ) ser dont't start. I've included modules rr
>>>>>
>>>>> when i use ngrep (ngrep andrea@ port 5060 for example) nothing
>>>>> appear....
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Daniel
>>>>>>
>>>>>> giAndrea wrote:
>>>>>>
>>>>>>> Hi to all
>>>>>>>
>>>>>>> i've a problem with ser. I've configured 2 server with ser but i
>>>>>>> can't call one user from first server to second, ex:
>>>>>>>
>>>>>>> sip:andrea@foo.bar --------------------> sip:andrea@foo.2.bar
>>>>>>> (server 1) (server 2)
>>>>>>>
>>>>>>> I use MSN for UA.
>>>>>>>
>>>>>>> Any hints on this would be very appreciated.
>>>>>>>
>>>>>>> Andrea
>>>>>>>
>>>>>>> -------------------------------------------------------
>>>>>>> Andrea Girardi
>>>>>>> mobile +39 347 9624051
>>>>>>> http://www.giandrea.com <http://www.giandrea.com/>
>>>>>>> <http://www.giandrea.com/> <http://www.giandrea.com/>
>>>>>>> <http://www.giandrea.com/>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Serusers mailing list
>>>>>>> serusers(a)lists.iptel.org
>>>>>>> http://lists.iptel.org/mailman/listinfo/serusers
>>>>>>>
>>>>>>
>>>>> ----------------------------------
>>>>> Legge di Clarke sulle idee rivoluzionarie
>>>>> Ogni idea rivoluzionaria - in campo scientifico, artistico o altro
>>>>> provoca tre stadi di reazione, riassumibili nelle seguenti frasi:
>>>>> 1. "E' impossibile; non farmi perdere tempo".
>>>>> 2. "E' possibile, ma non val la pena di farlo".
>>>>> 3. "L'ho sempre detto, io, che era un'ottima idea".
>>>>
>>> ----------------------------------
>>> Legge di Clarke sulle idee rivoluzionarie
>>> Ogni idea rivoluzionaria - in campo scientifico, artistico o altro
>>> provoca tre stadi di reazione, riassumibili nelle seguenti frasi:
>>> 1. "E' impossibile; non farmi perdere tempo".
>>> 2. "E' possibile, ma non val la pena di farlo".
>>> 3. "L'ho sempre detto, io, che era un'ottima idea".
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Serusers mailing list
>>> serusers(a)lists.iptel.org
>>> http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>
>>
>>
> ----------------------------------
> Legge di Clarke sulle idee rivoluzionarie
> Ogni idea rivoluzionaria - in campo scientifico, artistico o altro
> provoca tre stadi di reazione, riassumibili nelle seguenti frasi:
> 1. "E' impossibile; non farmi perdere tempo".
> 2. "E' possibile, ma non val la pena di farlo".
> 3. "L'ho sempre detto, io, che era un'ottima idea".
>
At 13.25 05/08/2003 +0200, you wrote:
> From your mail I understand you didn't set the parameter properly. It
> should be like this:
>modparam("rr", "enable_full_lr", 1)
uh... ok... i've corrected but ser don't start.... i comment this row and
ser start correctly....
andrea.
>Please read the README from RR module's directory -- online you find it here:
>http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/rr/README?…
>
>Daniel
>
>giAndrea wrote:
>
>>At 11.41 05/08/2003 +0200, you wrote:
>>
>>>Hello,
>>>usually that is related to MSN Messenger and loose routing, if you use
>>>that. Have you set the RR parameter 'enable_full_lr' to 1?
>>>If that doesn't solve the problem we need the SIP traffic (use ngrep or
>>>ethereal to capture it).
>>
>>
>>
>>when i set enable_full_lr to 1 ( modparam("rr, "enable_full_lr", no); )
>>ser dont't start. I've included modules rr
>>
>>when i use ngrep (ngrep andrea@ port 5060 for example) nothing appear....
>>
>>
>>
>>
>>>Daniel
>>>
>>>giAndrea wrote:
>>>
>>>>Hi to all
>>>>
>>>>i've a problem with ser. I've configured 2 server with ser but i can't
>>>>call one user from first server to second, ex:
>>>>
>>>>sip:andrea@foo.bar --------------------> sip:andrea@foo.2.bar
>>>> (server 1) (server 2)
>>>>
>>>>I use MSN for UA.
>>>>
>>>>Any hints on this would be very appreciated.
>>>>
>>>>Andrea
>>>>
>>>>-------------------------------------------------------
>>>>Andrea Girardi
>>>>mobile +39 347 9624051
>>>>http://www.giandrea.com <http://www.giandrea.com/>
>>>><http://www.giandrea.com/>
>>>>
>>>>------------------------------------------------------------------------
>>>>
>>>>_______________________________________________
>>>>Serusers mailing list
>>>>serusers(a)lists.iptel.org
>>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>>
>>----------------------------------
>>Legge di Clarke sulle idee rivoluzionarie
>>Ogni idea rivoluzionaria - in campo scientifico, artistico o altro
>>provoca tre stadi di reazione, riassumibili nelle seguenti frasi:
>>1. "E' impossibile; non farmi perdere tempo".
>>2. "E' possibile, ma non val la pena di farlo".
>>3. "L'ho sempre detto, io, che era un'ottima idea".
----------------------------------
Legge di Clarke sulle idee rivoluzionarie
Ogni idea rivoluzionaria - in campo scientifico, artistico o altro provoca
tre stadi di reazione, riassumibili nelle seguenti frasi:
1. "E' impossibile; non farmi perdere tempo".
2. "E' possibile, ma non val la pena di farlo".
3. "L'ho sempre detto, io, che era un'ottima idea".
Hi to all
i've a problem with ser. I've configured 2 server with ser but i can't call
one user from first server to second, ex:
sip:andrea@foo.bar --------------------> sip:andrea@foo.2.bar
(server 1) (server 2)
I use MSN for UA.
Any hints on this would be very appreciated.
Andrea
-------------------------------------------------------
Andrea Girardi
mobile +39 347 9624051
http://www.giandrea.com
Hi List
i have configured ser with mysql/radius/acc
i dun get any errors when ser starts..but i dun see is ser is even
communicating with radius
BTW i m using following:
latest ser release from cvs
latest release of freeradius
and OS is RedHat 7.2
what changes do i need to make in freeradius conf files ( and which files)
so that it starts communicating with sip server and then do its standard
stuff of AAA
these are logs
Aug 5 17:02:35 sip ser[26579]: rc_avpair_new: unknown attribute 1072
Aug 5 18:17:36 sip ser[4360]: rc_avpair_new: unknown attribute 1072
Aug 5 18:18:28 sip ser[4360]: rc_avpair_new: unknown attribute 1072
---------------------------------
=========this is how my ser.cfg looks like=========================
# $Id: ser.cfg,v 1.21 2003/06/04 13:47:36 jiri Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
debug=3 # debug level (cmd line: -dddddddddd)
fork=no
log_stderror=yes # (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
fifo="/tmp/ser_fifo"
mhomed=yes
listen=mydomain
# ------------------ 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"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
loadmodule "/usr/local/lib/ser/modules/uri.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/acc.so"
modparam("usrloc", "db_mode", 2)
modparam("auth_radius",
"radius_config","/usr/local/etc/radiusclient/radiusclient.conf")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
modparam("acc", "log_level", 1)
modparam("acc", "radius_flag", 1)
# ------------------------- request routing logic -------------------
# main routing logic
alias=mydomain
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 (len_gt( 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();
# 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=~"sip.net4india.com") {
if (method=="REGISTER") {
log(1, "REGISTER: Authenticating user\n");
if (!radius_www_authorize("")) {
log(1, "REGISTER: challenging user\n");
www_challenge("", "0");
break;
};
save("location");
break;
};
if (method=="INVITE") {
log(1, "INVITE\n");
setflag(1); /* set for accounting (the same value as in
log_flag!) */
};
if (method=="MESSAGE") {
log(1, "MESSAGE\n");
setflag(1); /* set for accounting (the same value as in
log_flag!) */
};
if (method=="BYE" || method=="CANCEL") {
log (1, "BYE or CANCEL\n");
setflag(1);
};
# 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 to all
i've some doubts:
I've installed SER on a Linux RedHad 9.0.
1 - Why I can't see another SER server on a lan with MSN? Ex.
andrea(a)foo.bar cannot send message and view andrea(a)foo2.bar
2 - On seruser.pdf at page 50 i've read that "The latest SER release
includes automated multidomain management which greatly automates
maintenance of multiple domains.". I've seen on mySql db that there is the
domain table with domain primary key and on subscriber table user_name and
domain are primary key. I think that there is exist a foreign key from
subscriber to domain. Who has to write the information on this table? How
do i configure ser to use multiple domain?
3 - How do I configure ser to report information on mySql database? For
example, i've configured ser for Reporting Missed Calls by the acc module
but there is an error on acc_request("404 Not Found"); instruction on ser.cfg.
4 - Microsoft MSN 6.0 doesn't support service communication. Is it true?
5 - On seruser.pdf at page 87 there are the old version of database tables.
6 - Where can i found help for ser command line options?
regards,
Andrea
At 12:59 PM 8/4/2003, Klaus Darilion wrote:
>> -----Original Message-----
>> From: Nils Ohlmeier [mailto:nils@iptel.org]
>...
>> there will be a new module availble for our customers shortly
>> which handles
>> the replication of registers much more intelligent.
>> It stores the missed Register from the "down" period and
>> updates the recovered
>> server with informations which are required by this server to
>> be up-to-date
>> again.
>
>Sounds interesting, but what means "for our customers?" No open source?
Yes, that's what it is -- those who give us money for some work are not
typically interested in sharing the outcome freely.
-jiri