{"id":20,"date":"2016-03-01T07:41:02","date_gmt":"2016-02-29T18:41:02","guid":{"rendered":"http:\/\/andrew.gordons.gen.nz\/?p=20"},"modified":"2017-01-12T17:03:43","modified_gmt":"2017-01-12T04:03:43","slug":"fail-over-on-home-sip-trunk","status":"publish","type":"post","link":"https:\/\/andrew.gordons.gen.nz\/?p=20","title":{"rendered":"Fail over on home SIP trunk"},"content":{"rendered":"<p>I have an <a href=\"http:\/\/www.asterisk.org\">Asterisk<\/a> at home running on a little PC Engines ALIX board (purchased from <a href=\"https:\/\/nicegear.co.nz\">NiceGear<\/a>).  Phones used are (in no particular order) Panasonic, Snom, Polycom, Yealink and Grandstream.  The main connection to the PSTN is a SIP trunk to <a href=\"https:\/\/www.2talk.co.nz\">2talk<\/a> over a Vodafone HFC Cable Internet connection (possibly changing to a UFB fibre connection this year sometime).  For redundancy I have 2talk fail over incoming calls to a cell phone number if my PBX is unreachable (i.e. Internet issue).  It doesn&#8217;t go to a cellphone though, it goes to a cheap GSM SIP CTU which sends the call into the PBX, ringing all the phones just like normal.  The CTU and the &#8220;PBX&#8221; are run off the same UPS as the PoE switch powering the phones so when the phones stop working during a power cut so does the PBX and the CTU.  To allow for this I have call forwarding set up on the CTU&#8217;s phone account to forward calls through to an actual cellphone.  So when there&#8217;s a power cut, longer than the UPS can handle, calls are forwarded to the CTU which is unreachable so the cell network forwards the call to one of our cellphones.  Normally I would use <a href=\"https:\/\/www.2degreesmobile.co.nz\">2degrees<\/a> for a SIM for the CTU, in this case it was my only choice.  The CTU is a 2G GSM device, Spark doesn&#8217;t have a 2G network, only a 3G network so they are out leaving just Vodafone and 2degrees.  On prepay Vodafone only allows a call forwarding destination of their voicemail service whereas 2degrees has no such restriction so they were my only choice (as well as my preferred choice).  Seems to work fine, I&#8217;ve just got to remember to top up the CTU&#8217;s SIM $20\/year to keep it active.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have an Asterisk at home running on a little PC Engines ALIX board (purchased from NiceGear). Phones used are (in no particular order) Panasonic, Snom, Polycom, Yealink and Grandstream. The main connection to the PSTN is a SIP trunk to 2talk over a Vodafone HFC Cable Internet connection (possibly changing to a UFB fibre [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"","activitypub_status":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-voip"],"_links":{"self":[{"href":"https:\/\/andrew.gordons.gen.nz\/index.php?rest_route=\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andrew.gordons.gen.nz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andrew.gordons.gen.nz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andrew.gordons.gen.nz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/andrew.gordons.gen.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20"}],"version-history":[{"count":1,"href":"https:\/\/andrew.gordons.gen.nz\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":21,"href":"https:\/\/andrew.gordons.gen.nz\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions\/21"}],"wp:attachment":[{"href":"https:\/\/andrew.gordons.gen.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andrew.gordons.gen.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andrew.gordons.gen.nz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}