<div dir="auto">Hi List,<div dir="auto"><br></div><div dir="auto">the sip proxy Kamailio can also act as mid register you can stack the pieces together, there is not a separate module. </div><div dir="auto">Here is Fred Posner example:</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/fredposner/scripts/blob/master/kamailio/mid-registrar.cfg">https://github.com/fredposner/scripts/blob/master/kamailio/mid-registrar.cfg</a><br></div><div dir="auto"><br></div><div dir="auto">Kind regards </div><div dir="auto">Karsten Horsmann </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ken Rice <<a href="mailto:krice@freeswitch.org">krice@freeswitch.org</a>> schrieb am Mo., 27. Sept. 2021, 03:40:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry i dont have a config. However with OpenSips they have this midregister proxy option that eats a lot of the registration load for nat busting. you might read up on that and see if that helps any<br>
<br>
Sent from my iPhone<br>
<br>
> On Sep 26, 2021, at 20:01, Jerry Kendall <<a href="mailto:Jerry.Kendall@bishophosting.com" target="_blank" rel="noreferrer">Jerry.Kendall@bishophosting.com</a>> wrote:<br>
> <br>
> Thanks Ken,<br>
> <br>
> I have actually played with putting Kamailio in between the End Devices and FS but could not get Kamailio to do the REG/SUB and let all other things hit FS...<br>
> I could'nt even get the SUBs to work of Kamailio..<br>
> <br>
> I get the REG working but that was all.<br>
> <br>
> Do you have a cfg file that can get me started ? Does anyone ?<br>
> <br>
> Thanks,<br>
> Jerry<br>
> <br>
>> On 9/26/2021 4:25 PM, Ken Rice wrote:<br>
>> just keep in mind registration and blf subs etc count as CPS (sip calls/sec) why not offload that stuff to opensips?<br>
>> <br>
>> Sent from my iPhone<br>
>> <br>
>>>> On Sep 26, 2021, at 09:18, Jerry Kendall <<a href="mailto:Jerry.Kendall@bishophosting.com" target="_blank" rel="noreferrer">Jerry.Kendall@bishophosting.com</a>> wrote:<br>
>>> <br>
>>> <br>
>>> Hello all,<br>
>>> <br>
>>> I'm having some interesting problems with our Freeswitch system.<br>
>>> <br>
>>> I have found Tim's posting athttps://<a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2012-February/080422.html" rel="noreferrer noreferrer" target="_blank">lists.freeswitch.org/pipermail/freeswitch-users/2012-February/080422.html</a><br>
>>> <br>
>>> It seems very similar but does not help me... Wish it did.<br>
>>> <br>
>>> <br>
>>> Hardware: Dell R610, dual 6 core Xeon X5680 @ 3.3GHz with 10 Gig of RAM<br>
>>> Network: Dual 10Gig Fiber to 40Gig fabric<br>
>>> <br>
>>> Databases: also Dell R610 with dual 10Gig and Mariadb 10.5.9 NO ISSUES - VERY FAST - ULTRA LOW LATENCY<br>
>>> <br>
>>> <br>
>>> <br>
>>> We have 2 different FS systems<br>
>>> 1) One acting as an SBC of sorts - process SIP/RTP<br>
>>> 2) One acting as a PBX - process SIP/RTP<br>
>>> <br>
>>> Providers are connected to SBC (public - context)<br>
>>> PBX (sbc - context) connects to SBC (internal - context)<br>
>>> End Points connect to PBX (device - context)<br>
>>> <br>
>>> picographically:<br>
>>> <br>
>>> ITSP --- SBC --- PBX --- EndPoints<br>
>>> <br>
>>> The machine running FreeSWITCH as an SBC is fine - 50 calls (100 sessions) and near zero load average - CPU idle 98% - ALL GREAT<br>
>>> <br>
>>> About 100 devices registered, all NAT'd, approx 50 subscription via BLF buttons<br>
>>> Registration period is maxed to 60 minutes and most devices use the default of 60 minutes<br>
>>> <br>
>>> Typically, We see only a few CPS, maybe 5 if it's really busy<br>
>>> <br>
>>> All our trunks are SIP.  Only using PCMU/8000 codec.<br>
>>> <br>
>>> We use MARIADB in the core - as well as for sofia, voicemail, and anything else that can use it.<br>
>>> <br>
>>> Config, Directory and dialplan are done using CURL and handled via apache2 on the same server over 127.0.0.1.<br>
>>> <br>
>>> I keep hearing about FS systems handling thousands of users on one box.<br>
>>> I'm nowhere near that and it seems to be maxed out.<br>
>>> <br>
>>> Freeswitch on both systems is Version 1.10.6-release git 1ff9d0a 2021-03-25 13:16:09Z 64bit<br>
>>> <br>
>>> So... The problem<br>
>>> <br>
>>> The machine running FreeSWITCH as a PBX seems to be struggling during periods of any usage - even only 1 call (2 channels).<br>
>>> <br>
>>> Just a moment ago, load average is 4.5 - CPU Idle is 65% - 8 sessions active - 315 sessions since startup - 45 threads - 8 hours running<br>
>>> <br>
>>> The audio seems fine - no complaints reported..<br>
>>> There is a very noticable chocking on the BLFs though... Every few minutes, the BLFs just freeze - yes - freeze... Then they catch up<br>
>>> <br>
>>> for example, for testing this, I have programmed a BLF on one phone.<br>
>>> <br>
>>> I run manually "luarun /etc/freeswitch/scripts/on.lua  *<a href="mailto:8896@domain.com" target="_blank" rel="noreferrer">8896@domain.com</a>" - the lights turns red<br>
>>> then after a few seconds,<br>
>>> I run manually "luarun /etc/freeswitch/scripts/off.lua  *<a href="mailto:8896@domain.com" target="_blank" rel="noreferrer">8896@domain.com</a>" - the light turns green<br>
>>> Sometimes, when I run these manually, the lights take 30 seconds to change - sometimes - usually, under a second.<br>
>>> <br>
>>> <br>
>>> They change the state of the subscribe target<br>
>>> Here is the LUA script to turn the light ON(RED)<br>
>>> <br>
>>> ##############################################################<br>
>>> #!/lua<br>
>>> <br>
>>> local random = math.random<br>
>>> math.randomseed(os.time())<br>
>>> <br>
>>> local function uuid()<br>
>>>     local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'<br>
>>>     return string.gsub(template, '[xy]', function (c)<br>
>>>         local v = (c == 'x') and random(0, 0xf) or random(8, 0xb)<br>
>>>         return string.format('%x', v)<br>
>>>     end)<br>
>>> end<br>
>>> <br>
>>> local function SendCallDirectorBLFevent()<br>
>>> <br>
>>>         Uuid = uuid()<br>
>>> <br>
>>>         local event = freeswitch.Event("PRESENCE_IN")<br>
>>>         event:addHeader("proto", "sip")<br>
>>>         event:addHeader("event_type", "presence")<br>
>>>         event:addHeader("alt_event_type", "dialog")<br>
>>>         event:addHeader("Presence-Call-Direction", "outbound")<br>
>>>         event:addHeader("from", argv[1])<br>
>>>         event:addHeader("login", argv[1])<br>
>>>         event:addHeader("unique-id", Uuid )<br>
>>>         event:addHeader("answer-state", "confirmed")<br>
>>>         event:fire();<br>
>>> end<br>
>>> <br>
>>> SendCallDirectorBLFevent()<br>
>>> ##############################################################<br>
>>> <br>
>>> The issue is the choking on the BLFs and the HIGH load avg for such small amounts of calls on the PBX - the SBC seems fine.<br>
>>> <br>
>>> SO.....<br>
>>> <br>
>>> I have been trying to resolve this for about a month - looking everywhere I could.<br>
>>> I have monitored the network stats, disk IO stats, cpu usage, processes, etc.... I don't see anything different between the SBC and PBX stats...<br>
>>> <br>
>>> <br>
>>> I would like the BLFs to show the correct state a little faster (more like half a second, not 10-60 seconds after the event) and would I like to know how to fix the high CPU load on the PBX.<br>
>>> <br>
>>> I have confirmed 2 things today:<br>
>>> 1) it's not using mod_mariadb as I put back the ODBC and not help<br>
>>> 2) this is seems most noticeable when new calls come in. The BLFs pause to 5-8 seconds and continue - there is a noticeable spike in load avg when calls keep coming in for 5 minutes...<br>
>>> <br>
>>> <br>
>>> Any information that would be helpful?<br>
>>> <br>
>>> <br>
>>> Thanks,<br>
>>> Jerry<br>
>>> _________________________________________________________________________<br>
>>> <br>
>>> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer noreferrer" target="_blank">https://signalwire.com</a><br>
>>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
>>> Build your next product on our scalable cloud platform.<br>
>>> <br>
>>> Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer noreferrer" target="_blank">https://signalwire.community</a><br>
>>> <br>
>>> Professional FreeSWITCH Services<br>
>>> <a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
>>> <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
>>> <br>
>>> Official FreeSWITCH Sites<br>
>>> <a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
>>> <a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
>>> <a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
>>> <br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
>> <br>
>> _________________________________________________________________________<br>
>> <br>
>> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer noreferrer" target="_blank">https://signalwire.com</a><br>
>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
>> Build your next product on our scalable cloud platform.<br>
>> <br>
>> Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer noreferrer" target="_blank">https://signalwire.community</a><br>
>> <br>
>> Professional FreeSWITCH Services<br>
>> <a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
>> <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
>> <br>
>> Official FreeSWITCH Sites<br>
>> <a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
>> <a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
>> <a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
>> <br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
> <br>
> <br>
> <br>
> _________________________________________________________________________<br>
> <br>
> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer noreferrer" target="_blank">https://signalwire.com</a><br>
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
> Build your next product on our scalable cloud platform.<br>
> <br>
> Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer noreferrer" target="_blank">https://signalwire.community</a><br>
> <br>
> Professional FreeSWITCH Services<br>
> <a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
> <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
> <br>
> Official FreeSWITCH Sites<br>
> <a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
> <a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
> <a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
> <br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>