<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p>Hello,</p>
<p>At first look.</p>
<p>I seems you have setup 2 Users "test" and "test2" and you are trying to send to </p>
<pre>'To: sip:<strong>test_local</strong>@localhost' therefore '<span style="font-family: Verdana, Geneva, sans-serif;">2(17356) DEBUG: registrar [lookup.c:158]: lookup(): 'test_local' Not </span><span style="font-family: Verdana, Geneva, sans-serif;">found in usrloc --'</span></pre>
<pre><br /><br />-mike</pre>
<p> </p>
<p>On 06/20/2013 5:41 am, aft wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre>Hi,

I'm trying to understand intricacies of SIP protocol.

I'm installed a stock kamailio from git repo.

kamcmd> core.version
kamailio 4.0.2 (x86_64/linux) f87866

Now i'm trying to send OPTION request by "sipsak".

I've added two users :

arif@khost:~$ kamctl db show user
...........
+----+----------+---------------+------------+---------------+----------------------------------+----------------------------------+------+
| id | username | domain        | password   | email_address | ha1
                    | ha1b                             | rpid |
+----+----------+---------------+------------+---------------+----------------------------------+----------------------------------+------+
|  1 | test     | 192.168.7.143 | testpasswd |               |
ad87b307789553f95799738d87246ca0 | e211f539e22a1ad2cc0f3c07056c3517 |
NULL |
|  2 | test2    | localhost     | testpasswd |               |
46d8618f5b652e4aeff3ffe52f373028 | bb8564b436dcfa183a8228244d8527ea |
NULL |
+----+----------+---------------+------------+---------------+----------------------------------+----------------------------------+------+

Now The OPTION message i'm trying :

OPTIONS sip:test_local@localhost SIP/2.0
Via: SIP/2.0/UDP 127.0.1.1:60518;branch=z9hG4bK.374c1583;rport;alias
From: sip:<a href="mailto:sipsak@127.0.1.1:60518">sipsak@127.0.1.1:60518</a>;tag=74766f41
To: sip:test_local@localhost
Call-ID: 1953918785@127.0.1.1
CSeq: 1 OPTIONS
Contact: sip:<a href="mailto:sipsak@127.0.1.1:60518">sipsak@127.0.1.1:60518</a>
Content-Length: 0
Max-Forwards: 70
User-Agent: sipsak 0.9.6
Accept: text/plain

kamailio is respoding with :
SIP/2.0 404 Not Found

After digging in kamailio log :

2(17356) DEBUG: registrar [lookup.c:158]: lookup(): 'test_local' Not
found in usrloc --

The code reads :

155      ul.lock_udomain(_d, &aor);
156                 res = ul.get_urecord(_d, &aor, &r);
157                 if (res > 0) {
158                         LM_DBG("'%.*s' Not found in usrloc\n",
aor.len, ZSW(    aor.s));

So it seems i'm doing something very wrong.

Although in my config :

106 #!define WITH_MYSQL
107 #!define WITH_AUTH
108 #!define WITH_USERLOCDB

After going through the RFC3261's section 11.2,
It seems this OPTION message should work and generate a 200(OK).

What it is i'm doing wrong?




--
-Cheers
-Arif

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<p> </p>
</body></html>