<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello, I saw next emails but prefer answer directly here.
Comments inline.</p>
<p>Regards,</p>
<p>Ivo<br>
</p>
<div class="moz-cite-prefix">On 12/06/2017 08:33 PM, Wilkins, Steve
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:BLUPR09MB083594118773B7971C5EE2D8A0320@BLUPR09MB0835.namprd09.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:597367071;
mso-list-type:hybrid;
mso-list-template-ids:979819842 -1617815572 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:Calibri;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hello All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>Problem</b>: My main issue is that when
I “REGISTER” a client via Kamailio, and I attempt to “Dial” a
different endpoint within an Asterisk Dial Plan, Asterisk
throws an error stating that the endpoint (the number I am
dialing via “Dial”) is not registered or reachable. However,
commands like “Playback” do work correctly for the client I
“REGISTERED” via Kamailio.
<o:p></o:p></p>
<p class="MsoNormal"> E.g. I register client 10001 in
Kamailio, I then register another client 10002 in Kamalio;
both 10001 and 10002 can exercise an Asterisk Dial Plan which
will play videos/audio (No Problem). But, now I want 10001 to
Call (Dial) 10002; it is at this point that Asterisk throws
the error “10002 is not registered or reachable”.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have tried many of the suggestion on many
different help boards (several times) but I am still unable to
forward a registration from Kamailio to Asterisk.</p>
</div>
</blockquote>
So if your statement below is true your problems are replies not
request ?<br>
<blockquote type="cite"
cite="mid:BLUPR09MB083594118773B7971C5EE2D8A0320@BLUPR09MB0835.namprd09.prod.outlook.com">
<div class="WordSection1">
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">With my current Kamailio configuration (I
do use dispatching), I see , via tcpdump, Asterisk receiving a
“REGISTER” request, and Asterisk sends back the “unauthorized”
as expected, however, Kamailio does not re-send the “REGISTER”
as is customary. I am not sure of the next step to take, but
I feel I have a couple of options.
</p>
</div>
</blockquote>
At this point you can treat REGISTER as any other request in term of
Kamailio configuration. So you dispatch it, request leaves Kamailio
but reply is not forwarded to the endpoint. Most probably you do not
have on_reply route handling register replies from Asterisk. On 200
OK you can save() location before forwarding register reply to SIP
endpoint.<br>
- Note 1. Requested architecture/feature is targeted more to SBC
but not to a SIP proxy. At that point Kamailio is upstream registrar
and Asterisk is registrar and subscriber DB.<br>
- Note 2. This can be made w/ Kamailio but more than just
forwarding requests need to be made. There are other cases
(transport, nat, conatct ...) that need to be addressed.<br>
<br>
I think it is well described here :
<a class="moz-txt-link-freetext" href="http://www.frafos.com/uploa/html/29__Registration_Caching_and_Handling.html?highlight=register">http://www.frafos.com/uploa/html/29__Registration_Caching_and_Handling.html?highlight=register</a><br>
<blockquote type="cite"
cite="mid:BLUPR09MB083594118773B7971C5EE2D8A0320@BLUPR09MB0835.namprd09.prod.outlook.com">
<div class="WordSection1">
<p class="MsoNormal"><o:p></o:p></p>
<ul style="margin-top:0in" type="disc">
<li class="MsoListParagraph"
style="margin-left:0in;mso-list:l0 level1 lfo1">I can
continue to try and figure out why Kamailio is not sending
the second “REGISTER” (<b>I have not yet been able to figure
this out</b>).
<o:p></o:p></li>
<li class="MsoListParagraph"
style="margin-left:0in;mso-list:l0 level1 lfo1">Tell
Asterisk to not require authentication. (<b>I am using
pjsip and do not know how to not require authentication in
Asterisk when the request is from Kamailio</b>).<o:p></o:p></li>
</ul>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
This is more common approach, Integrate Kamailio and Asterisk via DB
and use Kamailio as registrar.<br>
<blockquote type="cite"
cite="mid:BLUPR09MB083594118773B7971C5EE2D8A0320@BLUPR09MB0835.namprd09.prod.outlook.com">
<div class="WordSection1">
<p class="MsoNormal">I have put a lot of time into this one, and
I am at a sticking point. Any help or suggestions would be
very much appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
</body>
</html>