<div dir="ltr">You could remove secret= on extensiones to check if its related to authentication or not<div><br></div><div>You must not request authentication to kamailio in order to work properly in front of Asterisk</div><div><br></div><div>As Daniel mention check if Kamailio peer is created and extensiones have no secret.. you would need to add alternate sippasswd table for kamailio authentication</div><div><br>BR</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-16 1:42 GMT+02:00 Ben Fitzgerald <span dir="ltr"><<a href="mailto:ben@letscorp.us" target="_blank">ben@letscorp.us</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, I've been following this integration tutorial <a href="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb" target="_blank">http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb</a> and have a successful registration and I can even make calls through my asterisk box.<div><br></div><div>However what is unusual to me is that every time a phone registers with Kamailio, that is forwarded to Asterisk (as expected), yet Asterisk replies with 401 Unauthorized. Oddly enough the phone registers and can still make calls. What worries me is that as we scale to 100's of cps, this seemingly erroneous message may slow down Asterisk because it's trying to handle authentication for users which have already been authenticated by Kamailio. If this behavior is expected, then that would be good to know as well.</div><div><br></div><div>This is the sip debug from ASTERISK (I have replaced IP's with the names of the servers):</div><div><br></div><div><div><br></div><div><--- SIP read from TCP:kamailio:41205 ---></div><div>REGISTER sip:asteriskIP:5060;transport=tcp SIP/2.0</div><div>Via: SIP/2.0/TCP kamailio;branch=z9hG4bK998f.2846e405000000000000000000000000.0</div><div>To: <sip:40081@asteriskIP></div><div>From: <sip:40081@asteriskIP>;tag=32fda68bf54efeeb04e3edc67b53c63d-cfb0</div><div>CSeq: 10 REGISTER</div><div>Call-ID: 0005ce130bcee5c4-26538@kamailio</div><div>Max-Forwards: 70</div><div>Content-Length: 0</div><div>User-Agent: kamailio (4.3.0 (x86_64/linux))</div><div>Contact: <sip:40081@kamailio:5060></div><div>Expires: 3600</div><div><br></div><div><-------------></div><div>--- (11 headers 0 lines) ---</div><div>Sending to kamailio:5060 (no NAT)</div><div>Sending to kamailio:5060 (no NAT)</div><div><br></div><div><--- Transmitting (no NAT) to kamailio:5060 ---></div><div>SIP/2.0 401 Unauthorized</div><div>Via: SIP/2.0/TCP kamailio;branch=z9hG4bK998f.2846e405000000000000000000000000.0;received= kamailio</div><div>From: <sip:40081@asteriskIP>;tag=32fda68bf54efeeb04e3edc67b53c63d-cfb0</div><div>To: <sip:40081@asteriskIP>;tag=as404bac9a</div><div>Call-ID: 0005ce130bcee5c4-26538@ kamailio</div><div>CSeq: 10 REGISTER</div><div>Server: Asterisk PBX 11.6-cert2</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH</div><div>Supported: replaces, timer</div><div>WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="262b338e"</div><div>Content-Length: 0</div><div><br></div><div><br></div><div><------------></div><div>Scheduling destruction of SIP dialog '0005ce130bcee5c4-26538@ kamailio' in 32000 ms (Method: REGISTER)</div><div>Scheduling destruction of SIP dialog '0005ce130bcee5c4-26538@ kamailio' in 32000 ms (Method: REGISTER)</div><div>Really destroying SIP dialog '0005ce130bcee5c1-26536@ kamailio' Method: REGISTER</div></div><div><br></div><div>=========================</div><div><br></div><div>sip.conf for kamailio trunk:</div><div><br></div><div><div>[kamailio-inbound]</div><div>type=friend</div><div>dtmfmode=auto</div><div>host=kamailioIP</div><div>allow=all</div><div>context=sipout</div><div>insecure=port,invite</div><div>canreinvite=no</div></div><div><br></div><div>========================</div><div><br></div><div>Asterisk version: 11.6-cert2</div><div>Kamailio version: 4.3</div><div><br></div><div><div><div><div dir="ltr"><div style="font-family:Helvetica;font-size:medium">Benjamin Fitzgerald</div><div style="font-family:Helvetica;font-size:medium">LETS Corporation</div><div style="font-family:Helvetica;font-size:medium">(925) 235-1154</div><div style="font-family:Helvetica;font-size:medium"><span style="text-align:-webkit-auto"><a href="mailto:ben@letscorp.us" style="color:rgb(17,85,204)" target="_blank">ben@letscorp.us</a></span></div><div style="font-family:Helvetica;font-size:medium"><br></div><div style="font-family:Helvetica;font-size:medium"><br></div><div><img src="https://drive.google.com/a/letscorp.us/uc?export=view&id=0BypXJ2tJXo79c0ZaNXJVUWFlMVk"><br></div><br style="font-family:Helvetica;font-size:medium"><span style="font-family:Helvetica;font-size:medium">*******Confidential Notice: </span><br style="font-family:Helvetica;font-size:medium"><span style="font-family:Helvetica;font-size:medium">This message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this message in error, please delete this message from all computers and contact Orion Systems/LETS Corp immediately by return e-mail and/or telephone at </span><a value="+19255665600" style="color:rgb(17,85,204);font-family:Helvetica;font-size:medium">(925) 566-5600</a><br></div></div></div>
</div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>