[prev in list] [next in list] [prev in thread] [next in thread]
List: openser-users
Subject: Re: [SR-Users] I am getting this error in the log When REGISTER
From: Daniel-Constantin Mierla <miconda () gmail ! com>
Date: 2011-09-23 11:29:37
Message-ID: 4E7C6DA1.70708 () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello,
the log shows clear that it tries to parse a URI that is null (actually
contains the string "<<null>>" which is used for pseudo-variables), see
the log message again:
Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: <core>
[parser/parse_uri.c:1218]: parse_uri: bad uri, state 0 parsed: <<nul>
(4) / <<null>> (6)
Are you updating the URI in From/To headers and the do msg_apply_changes()?
There is no reason to fail for '_', being used a lot and clearly shown
in the logs it is not that case. You can try with a user without '_'
just to convince yourself.
Cheers,
Daniel
On 9/23/11 1:10 PM, Krishna Kurapati wrote:
> Daniel,
>
> I am not using said AVP parameter
>
> I have
>
> # ----- registrar params -----
> modparam("registrar", "method_filtering", 1)
>
> only.
>
> I am suspecting if the name has "_" like krishn_kura is causing this
> problem.
>
> Krish
> On Fri, Sep 23, 2011 at 3:56 AM, Daniel-Constantin Mierla
> <miconda@gmail.com <mailto:miconda@gmail.com>> wrote:
>
> Hello,
>
>
> On 9/23/11 12:15 AM, Krishna Kurapati wrote:
> > Daniel,
> >
> > Just got back...
> >
> > Here is the Log at Level 4
> >
> > Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: ALERT:
> > <script>: REGISTER: From krishna_p_test_com, 50.62.1.7 To
> > krishna_p_test_com, 50.62.1.7
> > Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: <core>
> > [parser/parse_uri.c:1218]: parse_uri: bad uri, state 0 parsed:
> > <<nul> (4) / <<null>> (6)
> the URI is null value, are you using aor_avp parameter for
> registrar module?
>
> http://kamailio.org/docs/modules/stable/modules_k/registrar.html#id2965190
>
> Cheers,
> Daniel
>
>
> > Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: ERROR:
> > registrar [common.c:75]: failed to parse Address of Record
> > Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: ERROR:
> > registrar [save.c:822]: failed to extract Address Of Record
> > Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: usrloc
> > [ucontact.c:805]: exists callback for type= UL_CONTACT_UPDATE
> > Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG:
> > registrar [reply.c:192]: created Contact HF: Contact:
> > <sip:krishna_p_test_com@192.168.1.68:61539;transport=tcp;registering_acc=50_62_1_7>;expires=223;received="sip:75.62.17.45:61650;transport=TCP",
> > <sip:krishna_p_test_com@192.168.1.68:61650;transport=tcp;registering_acc=50_62_1_7>;expires=600;received="sip:75.62.17.45:61650;transport=TCP"#015#012
> >
> > Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: sl
> > [sl.c:278]: reply in stateless mode (sl)
> > Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: <core>
> > [msg_translator.c:204]: check_via_address(75.62.17.45,
> > 192.168.1.68, 0)
> > Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: <core>
> > [tcp_main.c:2284]: tcp_send: send from reader (17031 (9)), reusing fd
> > Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: <core>
> > [tcp_main.c:2520]: tcp_send: sending...
> >
> > Krish
> >
> > On Thu, Sep 22, 2011 at 2:19 PM, Daniel-Constantin Mierla
> > <miconda@gmail.com <mailto:miconda@gmail.com>> wrote:
> >
> >
> >
> > On 9/22/11 9:04 PM, Krishna Kurapati wrote:
> > > Thanks Daniel,
> > >
> > > Here it is...
> > >
> > > [...]
> >
> > It looked ok for my eye. Can you run kamailio with higher
> > debug level (debug=4 in config file) and send the log
> > messages related to parsing the URI for AoR?
> >
> > Cheers,
> > Daniel
> >
> >
> > >
> > >
> > > On Thu, Sep 22, 2011 at 1:44 PM, Daniel-Constantin Mierla
> > > <miconda@gmail.com <mailto:miconda@gmail.com>> wrote:
> > >
> > > Hello,
> > >
> > > can you grab such REGISTER with ngrep (or wireshark) and
> > > past it here?
> > >
> > > Cheers,
> > > Daniel
> > >
> > >
> > > On 9/22/11 8:07 PM, Krishna Kurapati wrote:
> > > > Sep 22 09:49:53 siptest /usr/sbin/kamailio[3160]:
> > > > ERROR: registrar [common.c:75]: failed to parse Address
> > > > of Record
> > > > Sep 22 09:49:53 siptest /usr/sbin/kamailio[3160]:
> > > > ERROR: registrar [save.c:822]: failed to extract
> > > > Address Of Record
> > > >
> > > > Is there a problem when AoR contains "_"
> > > >
> > > > for example is AoR krish_kura@sip.org
> > > > <mailto:krish_kura@sip.org> is not allowed?
> > > >
> > > > Thanks
> > > > Krish Kura
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> > > > sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
> > > > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> > >
> > > --
> > > Daniel-Constantin Mierla --http://www.asipto.com
> > > Kamailio Advanced Training, Oct 10-13, Berlin:http://asipto.com/u/kat
> > > http://linkedin.com/in/miconda -- http://twitter.com/miconda
> > >
> > >
> >
> > --
> > Daniel-Constantin Mierla --http://www.asipto.com
> > Kamailio Advanced Training, Oct 10-13, Berlin:http://asipto.com/u/kat
> > http://linkedin.com/in/miconda -- http://twitter.com/miconda
> >
> >
> >
> >
> > _______________________________________________
> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> > sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla --http://www.asipto.com
> Kamailio Advanced Training, Oct 10-13, Berlin:http://asipto.com/u/kat
> http://linkedin.com/in/miconda -- http://twitter.com/miconda
>
>
--
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda
[Attachment #5 (text/html)]
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
the log shows clear that it tries to parse a URI that is null
(actually contains the string "<<null>>" which is used
for pseudo-variables), see the log message again:<br>
<br>
Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG:
<core> [parser/parse_uri.c:1218]: parse_uri: bad uri, state 0
parsed: <<nul> (4) / <<null>> (6)<br>
<br>
Are you updating the URI in From/To headers and the do
msg_apply_changes()?<br>
<br>
There is no reason to fail for '_', being used a lot and clearly
shown in the logs it is not that case. You can try with a user
without '_' just to convince yourself.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
On 9/23/11 1:10 PM, Krishna Kurapati wrote:
<blockquote
cite="mid:CAOzCjAc8YOUgWLAqUf7twaOy67x+1emSKidMhmueqqU3kSyLsA@mail.gmail.com"
type="cite">Daniel,
<div><br>
</div>
<div>I am not using said AVP parameter</div>
<div><br>
</div>
<div>I have </div>
<div><br>
</div>
<div>
<div># ----- registrar params -----</div>
<div>modparam("registrar", "method_filtering", 1)</div>
<div><br>
</div>
only.</div>
<div><br>
</div>
<div>I am suspecting if the name has "_" like krishn_kura is
causing this problem.</div>
<div><br>
</div>
<div>Krish<br>
<div class="gmail_quote">On Fri, Sep 23, 2011 at 3:56 AM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" \
href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF" text="#000000"> Hello,
<div class="im"><br>
<br>
On 9/23/11 12:15 AM, Krishna Kurapati wrote:
<blockquote type="cite">Daniel,
<div><br>
</div>
<div>Just got back...</div>
<div><br>
</div>
<div>Here is the Log at Level 4</div>
<div><br>
</div>
<div>
<div>Sep 22 15:07:09 siptest
/usr/sbin/kamailio[17031]: ALERT: <script>:
REGISTER: From krishna_p_test_com, 50.62.1.7 To
krishna_p_test_com, 50.62.1.7</div>
<div>Sep 22 15:07:09 siptest
/usr/sbin/kamailio[17031]: DEBUG: <core>
[parser/parse_uri.c:1218]: parse_uri: bad uri,
state 0 parsed: <<nul> (4) /
<<null>> (6)</div>
</div>
</blockquote>
</div>
the URI is null value, are you using aor_avp parameter for
registrar module?<br>
<br>
<a moz-do-not-send="true"
href="http://kamailio.org/docs/modules/stable/modules_k/registrar.html#id2965190"
target="_blank">http://kamailio.org/docs/modules/stable/modules_k/registrar.html#id2965190</a><br>
<br>
Cheers,<br>
<font color="#888888"> Daniel</font>
<div>
<div class="h5"><br>
<br>
<blockquote type="cite">
<div>
<div>Sep 22 15:07:09 siptest
/usr/sbin/kamailio[17031]: ERROR: registrar
[common.c:75]: failed to parse Address of Record</div>
<div>Sep 22 15:07:09 siptest
/usr/sbin/kamailio[17031]: ERROR: registrar
[save.c:822]: failed to extract Address Of
Record</div>
<div>Sep 22 15:07:09 siptest
/usr/sbin/kamailio[17031]: DEBUG: usrloc
[ucontact.c:805]: exists callback for type=
UL_CONTACT_UPDATE</div>
<div>Sep 22 15:07:09 siptest
/usr/sbin/kamailio[17031]: DEBUG: registrar
[reply.c:192]: created Contact HF: Contact: <a
\
moz-do-not-send="true"><sip:krishna_p_test_com@192.168.1.68:61539;transport=tcp;registering_acc=50_62_1_7></a>;expires=223;received=<a
\
moz-do-not-send="true">"sip:75.62.17.45:61650;transport=TCP"</a>, <a \
moz-do-not-send="true"><sip:krishna_p_test_com@192.168.1.68:61650;transport=tcp;registering_acc=50_62_1_7></a>;expires=600;received=<a
\
moz-do-not-send="true">"sip:75.62.17.45:61650;transport=TCP"</a>#015#012</div> \
<div>Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: sl [sl.c:278]:
reply in stateless mode (sl)</div>
<div>Sep 22 15:07:09 siptest
/usr/sbin/kamailio[17031]: DEBUG: <core>
[msg_translator.c:204]:
check_via_address(75.62.17.45, 192.168.1.68, 0)</div>
<div>Sep 22 15:07:09 siptest
/usr/sbin/kamailio[17031]: DEBUG: <core>
[tcp_main.c:2284]: tcp_send: send from reader
(17031 (9)), reusing fd</div>
<div>Sep 22 15:07:09 siptest
/usr/sbin/kamailio[17031]: DEBUG: <core>
[tcp_main.c:2520]: tcp_send: sending...</div>
<div><br>
</div>
<div>Krish</div>
<br>
<div class="gmail_quote">On Thu, Sep 22, 2011 at
2:19 PM, Daniel-Constantin Mierla <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div> <br>
<br>
On 9/22/11 9:04 PM, Krishna Kurapati
wrote: </div>
<blockquote type="cite">
<div>Thanks Daniel,
<div><br>
</div>
<div>Here it is...</div>
<div><br>
</div>
</div>
<div>[...]</div>
</blockquote>
<br>
It looked ok for my eye. Can you run
kamailio with higher debug level (debug=4 in
config file) and send the log messages
related to parsing the URI for AoR?<br>
<br>
Cheers,<br>
<font color="#888888"> Daniel</font>
<div><br>
<br>
<blockquote type="cite">
<div>
<div><br>
</div>
<br>
<div class="gmail_quote">On Thu, Sep
22, 2011 at 1:44 PM,
Daniel-Constantin Mierla <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:miconda@gmail.com"
\
target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF"
text="#000000"> Hello,<br>
<br>
can you grab such REGISTER with
ngrep (or wireshark) and past it
here?<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
On 9/22/11 8:07 PM, Krishna
Kurapati wrote: </div>
</div>
<blockquote type="cite">
<div>
<div>
<div class="gmail_quote">Sep
22 09:49:53 siptest
/usr/sbin/kamailio[3160]:
ERROR: registrar
[common.c:75]: failed to
parse Address of Record<br>
<div>Sep 22 09:49:53
siptest
/usr/sbin/kamailio[3160]:
ERROR: registrar
[save.c:822]: failed
to extract Address Of
Record</div>
<div><br>
</div>
<div>Is there a problem
when AoR contains "_"</div>
<div><br>
</div>
<div>for example is AoR
<a
moz-do-not-send="true"
href="mailto:krish_kura@sip.org" target="_blank">krish_kura@sip.org</a>
is not allowed?</div>
<div><br>
</div>
<div>Thanks</div>
<div>Krish Kura</div>
</div>
<br>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
\
<pre>_______________________________________________ SIP Express Router (SER) and \
Kamailio (OpenSER) - sr-users mailing list <a moz-do-not-send="true" \
href="mailto:sr-users@lists.sip-router.org" \
target="_blank">sr-users@lists.sip-router.org</a> <a moz-do-not-send="true" \
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" \
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a> \
</pre> </blockquote>
<font color="#888888"> <br>
<pre cols="72">--
Daniel-Constantin Mierla -- <a moz-do-not-send="true" href="http://www.asipto.com" \
target="_blank">http://www.asipto.com</a> Kamailio Advanced Training, Oct 10-13, \
Berlin: <a moz-do-not-send="true" href="http://asipto.com/u/kat" \
target="_blank">http://asipto.com/u/kat</a> <a moz-do-not-send="true" \
href="http://linkedin.com/in/miconda" \
target="_blank">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" \
href="http://twitter.com/miconda" \
target="_blank">http://twitter.com/miconda</a></pre> </font></div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla -- <a moz-do-not-send="true" href="http://www.asipto.com" \
target="_blank">http://www.asipto.com</a> Kamailio Advanced Training, Oct 10-13, \
Berlin: <a moz-do-not-send="true" href="http://asipto.com/u/kat" \
target="_blank">http://asipto.com/u/kat</a> <a moz-do-not-send="true" \
href="http://linkedin.com/in/miconda" \
target="_blank">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" \
href="http://twitter.com/miconda" \
target="_blank">http://twitter.com/miconda</a></pre> </div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" \
target="_blank">sr-users@lists.sip-router.org</a> <a moz-do-not-send="true" \
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" \
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a> \
</pre> </blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla -- <a moz-do-not-send="true" href="http://www.asipto.com" \
target="_blank">http://www.asipto.com</a> Kamailio Advanced Training, Oct 10-13, \
Berlin: <a moz-do-not-send="true" href="http://asipto.com/u/kat" \
target="_blank">http://asipto.com/u/kat</a> <a moz-do-not-send="true" \
href="http://linkedin.com/in/miconda" \
target="_blank">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" \
href="http://twitter.com/miconda" \
target="_blank">http://twitter.com/miconda</a></pre> </div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" \
href="http://www.asipto.com">http://www.asipto.com</a> Kamailio Advanced Training, \
Oct 10-13, Berlin: <a class="moz-txt-link-freetext" \
href="http://asipto.com/u/kat">http://asipto.com/u/kat</a> <a \
class="moz-txt-link-freetext" \
href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a \
class="moz-txt-link-freetext" \
href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre> </body>
</html>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic