Hi,
I have built ser and modules from the tar.gz file available on CVS.
Authentication using auth_db works fine, but auth_radius results in
a segmentation fault when I try to register.
The debug log (with debug=9) says:
Mar 22 16:21:32 voip ser: SIP Request:
Mar 22 16:21:32 voip ser: method: <REGISTER>
Mar 22 16:21:32 voip ser: uri: <sip:voip.pdn.ac.lk>
Mar 22 16:21:32 voip ser: version: <SIP/2.0>
Mar 22 16:21:32 voip ser: parse_headers: flags=1
Mar 22 16:21:32 voip ser: Found param type 232, <branch> =
<z9hG4bK3378053857>; state=16
Mar 22 16:21:32 voip ser: end of header reached, state=5
Mar 22 16:21:32 voip ser: parse_headers: Via found, flags=1
Mar 22 16:21:32 voip ser: parse_headers: this is the first via
Mar 22 16:21:32 voip ser: After parse_msg...
Mar 22 16:21:32 voip ser: preparing to run routing scripts...
Mar 22 16:21:32 voip ser: DEBUG : is_maxfwd_present: searching for
max_forwards header
Mar 22 16:21:32 voip ser: parse_headers: flags=128
Mar 22 16:21:32 voip ser: DEBUG: add_param: tag=2520454554
Mar 22 16:21:32 voip ser: end of header reached, state=29
Mar 22 16:21:32 voip ser: DEBUG: get_hdr_field: <To> [44];
uri=[sip:nimalr@voip.pdn.ac.lk]
Mar 22 16:21:32 voip ser: DEBUG: to body [<sip:nimalr@voip.pdn.ac.lk>]
Mar 22 16:21:32 voip ser: get_hdr_field: cseq <CSeq>: <0> <REGISTER>
Mar 22 16:21:32 voip ser: DEBUG: is_maxfwd_present: value = 10
Mar 22 16:21:32 voip ser: parse_headers: flags=4096
Mar 22 16:21:32 voip ser: DEBUG: get_hdr_body : content_length=0
Mar 22 16:21:32 voip ser: found end of header
Mar 22 16:21:32 voip ser: pre_auth(): Credentials with given realm not
found
Mar 22 16:21:32 voip ser: ERROR: fifo_server fgets failed: Illegal seek
Mar 22 16:21:33 voip last message repeated 3 times
Mar 22 16:21:33 voip ser: INFO: signal 15 received
Mar 22 16:21:33 voip ser: INFO: signal 15 received
My configuration is :
.........
.........
# 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"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
..........
..........
if (uri=~"voip.pdn.ac.lk") {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!radius_www_authorize("voip.pdn.ac.lk")) {
# if (!www_authorize("voip.pdn.ac.lk","subscriber")) {
www_challenge("voip.pdn.ac.lk", "0");
break;
};
save("location");
break;
};
........
........
Any help for solving the problem would be appreciated. Thanks.
Nimal R.
This mail is probably spam. The original message has been attached
along with this report, so you can recognize or block similar unwanted
mail in future. See http://spamassassin.org/tag/ for more details.
Content preview: Search Your Love
URI:http://thesyl.ru/adv/images/spacer.gif
URI:http://thesyl.ru/adv/images/letter1_1_02.gif [...]
Content analysis details: (9.60 points, 5 required)
HEADER_8BITS (1.2 points) Headers include 3 consecutive 8-bit characters
HTML_70_80 (0.4 points) BODY: Message is 70% to 80% HTML
HTML_FONT_COLOR_UNSAFE (0.1 points) BODY: HTML font color not within safe 6x6x6 palette
HTML_COMMENT_8BITS (2.9 points) BODY: HTML comment has 3 consecutive 8-bit characters
HTML_FONT_COLOR_RED (0.1 points) BODY: HTML font color is red
HTML_MESSAGE (0.1 points) BODY: HTML included in message
SUBJ_FULL_OF_8BITS (4.3 points) Subject is full of 8-bit characters
MIME_HTML_ONLY (0.1 points) Message only has text/html MIME parts
INVALID_MSGID (0.4 points) Message-Id is not valid, according to RFC 2822
The original message did not contain plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam. If you wish to view
it, it may be safer to save it to a file and open it with an editor.
Folks,
We found that in some cases it is necessary to have a function which
will save contact without sending reply to the UA. For example, it is
useful when there is a need to do stateless forwarding of the REGISTER
request, but at the same time save it in the local registration
database (sending reply in this case will disable any retransmissions
that might be necessary to ensure that the request actually reached the
destination). Attached patch provides necessary functionality, it would
be nice to have it included into the next release.
Thanks!
-Maxim
Hi,
When we have a situation in which a PC changes IP addresses (like on
dialup), we end up with multiple registrations (see below). Is it possible
to configure SER so that it only has the latest registration?
[root@maui ser]# serctl ul show rvilla
<sip:rvilla@200.58.193.72:5060;transport=udp>;q=0.00;expires=2773
<sip:rvilla@200.58.203.236:5060;transport=udp>;q=0.00;expires=3194
<sip:rvilla@200.58.203.61:5060;transport=udp>;q=0.00;expires=3544
On a related note, the registrar README says:
"Name: lookup
Params: table - Name of table that should be used for the lookup
Desc: The functions extracts username from Request-URI and tries to find all
contacts
for the username in usrloc. If there are no such contacts, -1 will be
returned.
If there are such contacts, Request-URI will be overwritten with the contact
that
has the highest q value and optionally the rest will be appended to the
message
(depending on append_branches parameter value)."
....but as you can see all 3 contacts have the same "q value" (whatever that
stands for).
How does one resolve such an issue?
Thanks,
Ricardo
Hi,
Not sure if someone has asked this before. Is there any way to route all SIP
messages through SER without using record_route()?
Jaime
*******************************************************************************
Important.
Confidentiality: This communication is intended for the above-named person and
may be confidential and/or legally privileged. Any opinions expressed in this
communication are not necessarily those of the company. If it has come to you
in error you must take no action based on it, nor must you copy or show it to
anyone; please delete/destroy and inform the sender immediately.
Monitoring/Viruses
Orange may monitor all incoming and outgoing emails in line with current
legislation. Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.
Orange PCS Limited is a subsidiary of Orange SA and is registered in England No
2178917, with its address at St James Court, Great Park Road, Almondsbury Park,
Bradley Stoke, Bristol BS32 4QJ.
*******************************************************************************
Hi,
I have successfully registered the Windows Messenger (4.7) to SER. I was also able to make SIP calls to PSTN by entering the number by selecting "Start a Voice Conversation" -> "Other" -> "Enter e-mail address". But how to enter the number directly from the dialer? It seems that the dialer doesn't work (no response) so I have no way to enter DTMF for IVR applications.
Anyone has any idea? Thanks.
Reagards,
Bo
Hi,
I was reading about the ATA186's ability to detect that it is behind a NAT.
It requires that:
"For the Cisco ATA to automatically detect its presence behind a NAT, the
SIP proxy server
or remote user agent server must include the "received=" parameter in the
Via header in the
responses to the Cisco ATA if the proxy detects that the source address and
port do not match
those in the Via header."
Does SER support it?
Thanks,
Ricardo
Hi,
I am trying to use t_uac_dlg to send a new message from a module. It does
not send the message, and I get the following in my log:
Mar 21 14:50:54 d254196 /usr/local/sbin/ser[3111]: ERROR: mk_proxy: could
not resolve hostname: "cs.stir.ac.uk"Mar 21 14:50:54 d254196 /usr/local/sbin/ser[3111]: ERROR: t_relay: bad
host name in URI <sip:srm@cs.stir.ac.uk>Mar 21 14:50:54 d254196 /usr/local/sbin/ser[3111]: ERROR: uri2sock: Can't
create a dst proxyMar 21 14:50:54 d254196 /usr/local/sbin/ser[3111]: ERROR: t_uac_dlg: no
socket found
The code in my module is as follows, where all the ps_ things are str*
variables, with values as indicated by comments:
tmb.t_uac_dlg( // send request
ps_req_type, // INVITE
NULL,
PROTO_UDP ,
ps_req_uri, // sip:srm@cs.stir.ac.uk
ps_req_to, // srm(a)cs.stir.ac.uk
ps_req_from, // mrs(a)cs.stir.ac.uk
NULL,
NULL,
NULL,
NULL,
ps_req_headers, // NULL
ps_req_body, // NULL
NULL, // transaction_cb callback param //
optional NULL // void* callback pointer // optional
);
Any hints? I might have misunderstood what is expected from a request uri.
If so, an example would be very welcome.
thanks
Stephan
--
The University of Stirling is a university established in Scotland by
charter at Stirling, FK9 4LA. Privileged/Confidential Information may
be contained in this message. If you are not the addressee indicated
in this message (or responsible for delivery of the message to such
person), you may not disclose, copy or deliver this message to anyone
and any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. In such case, you should destroy this
message and kindly notify the sender by reply email. Please advise
immediately if you or your employer do not consent to Internet email
for messages of this kind. Opinions, conclusions and other
information in this message that do not relate to the official
business of the University of Stirling shall be understood as neither
given nor endorsed by it.