<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
first, as pointed in other related discussions in this mailing list,
it might be better to use a different approach if you start
everything from scratch. That will be doing all signaling handling
in kamailio and use asterisk only as media server. Practically all
user data is in kamailio, routing to asterisk only when needed for
media services. The tutorial is more targeting existing asterisk
deployments. Nevertheless, see more comments inline.<br>
<br>
<div class="moz-cite-prefix">On 6/5/13 10:59 PM, Thomas Martin
wrote:<br>
</div>
<blockquote cite="mid:969B4885-C7C2-4833-849C-90FA2E4F5D26@gmx.de"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hello,<br>
<br>
being new to Kamailio, I have been closely following Daniel's
tutorial "Kamailio 4.0.x and Asterisk 11.3.0 Realtime Integration
using Asterisk Database",
<div>hoping to be able to setup a basic SIP server with
voicemail-boxes attached to the the accounts. (Eventually, UACs
that live behind either port-restricted or</div>
<div>symmetric NATs should be supported (i.e. experience two way
audio), so, I guess, eventually "WITH_NAT" needs to be defined
and rtpproxy needs to be </div>
<div>installed as described in the "Run your own Skype-like
service in less than one hour" tutorial... ?)</div>
<div><br>
</div>
<div>Anyway, I am encountering a couple of difficulties in an
early stage and hope for some insights form the experts: </div>
<div><br>
</div>
<div>1) Even though launching Kamailio with "/etc/init.d/kamailio
start" seems to succeed ...</div>
<div><br>
</div>
<font face="Courier New">root@jm1:~# /etc/init.d/kamailio start<br>
Starting Kamailio:<br>
loading modules under
/usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/<br>
Listening on <br>
udp: 127.0.0.1:5060<br>
udp: 178.254.20.156:5060<br>
tcp: 127.0.0.1:5060<br>
tcp: 178.254.20.156:5060<br>
Aliases: <br>
tcp: <a moz-do-not-send="true"
href="http://rv1192.1blu.de">rv1192.1blu.de</a>:5060<br>
tcp: localhost:5060<br>
udp: <a moz-do-not-send="true"
href="http://rv1192.1blu.de">rv1192.1blu.de</a>:5060<br>
udp: localhost:5060<br>
*: <a moz-do-not-send="true"
href="http://jingle-me.org">jingle-me.org</a>:*<br>
<br>
kamailio started.<br>
root@jm1:~# <br>
</font><br>
<div> </div>
<div>... SIP Clients (I have tried several) cannot register and
receive the response: 401 Unauthorised.</div>
<div><br>
</div>
<div>cat /var/log/syslog yields:
<div><br>
<br>
<font face="Courier New">Jun 5 21:59:01 jm1
/usr/sbin/kamailio[2180]: INFO: rr [../outbound/api.h:49]: <b>Failed
to import bind_ob</b><br>
Jun 5 21:59:01 jm1 /usr/sbin/kamailio[2180]: INFO: rr
[rr_mod.c:159]: outbound module not available<br>
Jun 5 21:59:01 jm1 /usr/sbin/kamailio[2180]: INFO: usrloc
[hslot.c:53]: locks array size 512<br>
Jun 5 21:59:01 jm1 /usr/sbin/kamailio[2180]: INFO: auth
[auth_mod.c:350]: auth: qop set, but nonce-count
(nc_enabled) <b>support disabled</b><br>
Jun 5 21:59:01 jm1 /usr/sbin/kamailio[2180]: INFO:
<core> [udp_server.c:179]: INFO: udp_init: SO_RCVBUF
is initially 229376<br>
Jun 5 21:59:01 jm1 /usr/sbin/kamailio[2180]: INFO:
<core> [udp_server.c:230]: INFO: udp_init: SO_RCVBUF
is finally 262142<br>
Jun 5 21:59:01 jm1 /usr/sbin/kamailio[2180]: INFO:
<core> [udp_server.c:179]: INFO: udp_init: SO_RCVBUF
is initially 229376<br>
Jun 5 21:59:01 jm1 /usr/sbin/kamailio[2180]: INFO:
<core> [udp_server.c:230]: INFO: udp_init: SO_RCVBUF
is finally 262142<br>
Jun 5 21:59:01 jm1 /usr/sbin/kamailio[2200]: INFO: ctl
[io_listener.c:225]: io_listen_loop: using epoll_lt io
watch method (config)</font></div>
<div><br>
</div>
<div>I suspect that the "<span style="font-family: 'Courier
New'; ">INFO: auth [auth_mod.c:350]: auth: qop set, but
nonce-count (nc_enabled) </span><b style="font-family:
'Courier New'; ">support disabled</b>" hints to the problem,
but have no clue how to fix that.</div>
</div>
</blockquote>
It should go fine with this message (to try to get rid of it, paste
here the module parameters for auth and auth_db modules). Anyhow,
the logs you provide are from startup. You have to get the logs when
the phone attempts to register. Set debug=3 in your config, restart
and then register with a phone, you should see lots of log messages.
Paste them to mailing list if you cannot sort out the issue by
yourself.<br>
<br>
<blockquote cite="mid:969B4885-C7C2-4833-849C-90FA2E4F5D26@gmx.de"
type="cite">
<div>
<div><br>
</div>
<div><font face="Courier New"><br>
</font>
<div>2) Kamailio does <u>not</u> start on boot-up, even
though "<font face="Courier New">/etc/init.d/kamailio start</font>
(<font face="Courier New">stop/restart/status</font>)"
work(s), and <font face="Courier New">/etc/default/kamailio</font>
looks like this:</div>
</div>
</div>
<div><br>
</div>
<div>
<div><font face="Courier New">RUN_KAMAILIO=yes</font></div>
<div><font face="Courier New">USER=kamailio</font></div>
<div><font face="Courier New">GROUP=kamailio</font></div>
<div><font face="Courier New">SHM_MEMORY=64</font></div>
<div><font face="Courier New">PKG_MEMORY=4</font></div>
<div><font face="Courier New">SSD_SUID=no</font></div>
<div><font face="Courier New">DUMP_CORE=no</font></div>
</div>
<div><br>
</div>
<div>Right after a re-boot, <span style="font-family: 'Courier
New'; ">root@jm1:~#</span> <font face="Courier New">chkconfig
kamailio</font> yields: "<font face="Courier New">kamailio
on", </font></div>
<div>however, <span style="font-family: 'Courier New'; ">root@jm1:~#</span><span
style="font-family: 'Courier New'; ">/etc/init.d/kamailio
status </span>yields: "<font face="Courier New">Status of
Kamailio: kamailio is not running."</font> at this time.</div>
</blockquote>
<br>
Can you do "ps auxw | grep kamailio" and see if kamailio processes
are listed?<br>
<br>
Cheers,<br>
Daniel<br>
<blockquote cite="mid:969B4885-C7C2-4833-849C-90FA2E4F5D26@gmx.de"
type="cite">
<div><br>
</div>
<div>Any hints are appreciated!</div>
<div><br>
</div>
<div>Best regards,</div>
<div><br>
</div>
<div>-Thomas</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" 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>
<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>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
* <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a> *</pre>
</body>
</html>