<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Why not relay registrations to Kamailio after injecting a Path header? It seems like you’re taking the long, circuitous, and rickety way around.<br><br><div dir="ltr">—<div>Sent from mobile, with due apologies for brevity and errors.</div></div><div dir="ltr"><br><blockquote type="cite">On Aug 16, 2020, at 2:08 PM, Johnny Ritzer <sudoritz@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">
<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;}
@font-face
{font-family:"Times New Roman \(Body CS\)";
panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:12.0pt;
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:805388643;
mso-list-type:hybrid;
mso-list-template-ids:257573090 511051768 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-text:"%1\.\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:.75in;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:1.25in;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:1.75in;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:2.25in;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:2.75in;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:3.25in;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:3.75in;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:4.25in;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:4.75in;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">What are your thoughts on architecture build of the following scenarios.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">The PBX doesn’t support websockets and we want to use sip.js / jsSip. (use Kama as wss:// SIP proxy)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">PBX has direct PRI/sip Trunks/ DID control/ Voicemail.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">PBX hosts SIP extensions.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">UA </span><span style="font-size:11.0pt;font-family:Wingdings">à</span><span style="font-size:11.0pt"> Kamailio
</span><span style="font-size:11.0pt;font-family:Wingdings">à</span><span style="font-size:11.0pt"> PBX<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">--------SCENARIO A.) ------- Host SIP[xxxx] extensions on Kama box but same SIP extensions are also on PBX [xxxx]
<o:p></o:p></span></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:.25in;mso-list:l0 level1 lfo1"><span style="font-size:11.0pt">Build some sort of control to register handle kama to pbx …. (but reg webclients)
<o:p></o:p></span></li></ol>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Kama [1100] SIP-PBX [1100]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Does kama act as the UA 1100 / registered to PBX<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">What about UA to kamailio (do we do 1100a so UA-kama is 1100a) but kama is maintain REG/status/ but passing that IF client is online ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">MWI (voicemail is hosted on PBX) so how does that move through can it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">------- SCENARIO B.) ------ Proxy all/ everything . use route[REGFW] Forward all REG to PBX..<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Issues ----<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">MWI (SIP notify ?) <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">SIP Incoming CALL incoming calls to work. (if UA holds REG to outbound proxy on PBX or )
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">DTMF (sipINFO) doesn’t work (I see it sending)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I noticed I crashed the PBX because all the SIP scanners started pounding my Kamailio box after 2 days when I added route[REGFW] it starting eating up SIP trunk channels on PBX cause started forwarding
everything. Like it starting 4241@xxxxx.com 4242@xxxxx.com .<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Or might need to look at fail2ban pike module to oget this but still had issues I just don’t know where to look or code to fix on SCENARIO B<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Snippets on my testing .<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> route[REGFWD] {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> if(!is_method("REGISTER"))<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> return;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> $var(rip) = $sel(cfg_get.PBX.bindip);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> $uac_req(method)="REGISTER";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> $uac_req(ruri)="sip:" + $var(rip) + ":" + $sel(cfg_get.PBX.bindport);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> $uac_req(furi)="sip:" + $au + "@" + $var(rip);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> $uac_req(turi)="sip:" + $au + "@" + "kamaproxy";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> # $uac_req(turi)="sip:" + $au + "@" + $var(rip);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> $uac_req(hdrs)="Contact: <sip:" + $au + "@"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> + $sel(cfg_get.kamailio.bindip)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> + ":" + $sel(cfg_get.kamailio.bindport) + ">\r\n";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> if($sel(contact.expires) != $null)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> $uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + $sel(contact.expires) + "\r\n";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> else<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> $uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + $hdr(Expires) + "\r\n";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> uac_req_send();<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> #!endif<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">---------------<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">So this led me to extra security should I host SIP extensions on kamailio as an extra security but then what about MWI/inbound then) or do I have 1100 on kama which mitel is 1100 but I pass all info from
inbound. </span><span style="font-size:9.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
</div>
<span>_______________________________________________</span><br><span>Kamailio (SER) - Users Mailing List</span><br><span>sr-users@lists.kamailio.org</span><br><span>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</span><br></div></blockquote></body></html>