<div dir="ltr">Hi Steve, <div><br></div><div>Sorry, I was replying at the same time in another thread and I mixed responses.</div><div><br></div><div>Let me correct myself: </div><div><br></div><div>You are using:</div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"> same => n,Dial(PJSIP/${EXTEN},30,t)</span><br></div><div><p class="gmail-MsoNormal" style="font-size:12.8px"><u></u></p></div><div><br></div><div>So if someone dials "client1" you would try to reach PJSIP/client1 and that would fail because client1 is not registered with Asterisk.</div><div><br></div><div>Let's say your trunk with Kamailio si called "kamailio" in pjsip.conf...</div><div><br></div><div><br></div><div>If "client1" is registered with Kamailio instead of Asterisk, you want to send that call to Kamailio:</div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace"><span style="font-size:12.8px"> same => n,Dial(PJSIP/${EXTEN}<font color="#ff0000">@kamailio-trunk</font>,30,t)</span><br></font></div><div><p class="gmail-MsoNormal" style="font-size:12.8px"><font face="monospace, monospace"><u></u></font></p></div></div><div><div><span style="font-size:12.8px"><font face="monospace, monospace"> same => n,Dial(PJSIP/<font color="#ff0000">kamailio-trunk/</font>${EXTEN},30,t)</font></span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">That way, you are sending the call to Kamailio instead of trying to keep it local.</span></div><div><span style="font-size:12.8px"><br></span></div><div>Sorry for the confusion, let me know if you have any doubts.</div></div><div><br></div><div>Joel.</div><div><br></div><div><div><br></div><div><br></div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 15, 2017 at 10:43 AM, Joel Serrano <span dir="ltr"><<a href="mailto:joel@gogii.net" target="_blank">joel@gogii.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Steve, <div><br></div><div>You mentioned that Kamailio was handling the registration of the clients...</div><div><br></div><div>Therefor, you want to do something like this if you want to be able to bridge calls:</div><span class=""><br>exten => _900XX,1,Answer()<br> same => n,DumpChan()<br></span> same => n,Dial(SIP/${EXTEN}@<<<wbr>kamailio-peer>>,30,t)<br> same => n,HangUp()<div><br></div><div>Another valid format:</div><div><br></div><div><span class="">exten => _900XX,1,Answer()<br> same => n,DumpChan()<br></span> same => n,Dial(SIP/<<kamailio-peer>>/$<wbr>{EXTEN},30,t)<br> same => n,HangUp()<br></div><div><br></div><div><br></div><div>Where "<<kamailio-peer>>" == the name of the peer you configured in sip.conf for Kamailio.</div><div><br></div><div>At the end, the key here is that you are calling SIP/XXXX which is not local, if you call PJSIP/XXXX (per your example) you are trying to reach a local endpoint (in this case, the device that would have to be directly registered with Asterisk).</div><div><br></div><div>Give a try and let me know how it goes.</div><div><br></div><div><br></div><div>Cheers, </div><span class="HOEnZb"><font color="#888888"><div>Joel.</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 14, 2017 at 8:59 AM, Wilkins, Steve <span dir="ltr"><<a href="mailto:swwilkins@mitre.org" target="_blank">swwilkins@mitre.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_7261412455163425338m_-7673493315878238017WordSection1">
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Here is my extentions.conf<u></u><u></u></p>
<p class="MsoNormal">exten => _900XX,1,Answer()<u></u><u></u></p>
<p class="MsoNormal"> same => n,DumpChan()<u></u><u></u></p>
<p class="MsoNormal"> same => n,Dial(PJSIP/${EXTEN},30,t)<u></u><u></u></p>
<p class="MsoNormal"> same => n,HangUp()<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have 90001,90002 in pjsip.conf with a webrtc endpoint.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thank you,<u></u><u></u></p>
<p class="MsoNormal">-Steve<u></u><u></u></p>
<p class="MsoNormal"><a name="m_7261412455163425338_m_-7673493315878238017__MailEndCompose"><u></u> <u></u></a></p>
<span></span>
<p class="MsoNormal"><b>From:</b> sr-users [mailto:<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists<wbr>.kamailio.org</a>]
<b>On Behalf Of </b>Joel Serrano<br>
<b>Sent:</b> Thursday, December 14, 2017 9:29 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> Re: [SR-Users] Flow Diagram for WebRTC Client1 => WebRTC Client2 (via Kamailio and Asterisk)<u></u><u></u></p><div><div class="m_7261412455163425338h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Hi, can you share with us the asterisk dialplan part where you call the Dial() application?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, Dec 12, 2017 at 06:38 Wilkins, Steve <<a href="mailto:swwilkins@mitre.org" target="_blank">swwilkins@mitre.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hello All,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I am looking for a Diagram or such that shows the flow of SIP traffic for a WebRTC Client1 => WebRTC Client2 call using Kamailio in front of Asterisk.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I am unable to get Asterisk to find the correct registered clients, which are registered in Kamailio and am hoping verifying the flow will help give me a clue as to what is going
on. E.g. Using chrome and tryit-pjsip I have Client1, and Client2 registered in Kamailio. However when I try to connect Client1 to Client2 (make a call), Asterisk has no clue where Client1 and Cleint2 are registered to.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thank you!<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div></div></div>
</div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>