{"id":860,"date":"2020-07-23T11:56:35","date_gmt":"2020-07-23T01:26:35","guid":{"rendered":"http:\/\/172.16.0.6:8683\/?p=860"},"modified":"2020-07-23T12:46:36","modified_gmt":"2020-07-23T02:16:36","slug":"setting-up-a-hamshack-hotline-trunk-in-3cx-pbx","status":"publish","type":"post","link":"https:\/\/blog.lewys.eu\/?p=860","title":{"rendered":"Setting up a Hamshack Hotline Trunk in 3CX PBX"},"content":{"rendered":"\n<p>I have a 3CX PBX at home I use for a few things, and I also have a Cisco SPA504g that I use with HamShack Hotline.<br><br>I have a second extension setup on the SPA504g for my 3CX system, but I figured it might be a good idea to get the 3CX system to register to HH as a trunk as well! That way I can also make and receive HH calls from my phone and the amazing 3CX application.<br><br>I applied for a new trunk line via the <a href=\"https:\/\/apps.wizworks.net:9090\/index.php\">HH Support Center<\/a>, and received it the following morning.<br><\/p>\n\n\n\n<p>They provided me with three pieces of information;<br>User: 30027 &#8211; This is the extension number assigned to my trunk (Try calling me!)<br>Password: aprettygoodpasswordwashere<br>IAX Host: hhap.wizworks.net<br><br>The IAX Host is the SIP server, and should accept a SIP Register on port 5060 with the authentication info above.<br><br>In the 3CX Management Console, I went to <strong>Trunks <\/strong>and clicked <strong>Add SIP Trunk<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"228\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2020\/07\/image.png\" alt=\"\" class=\"wp-image-863\"\/><\/figure>\n\n\n\n<p>I selected <strong>Generic<\/strong> as the country, and <strong>Generic VoIP Provider<\/strong> as the provider.<br>The Main Trunk Number should be the extension provided above.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"621\" height=\"389\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2020\/07\/image-1.png\" alt=\"\" class=\"wp-image-864\"\/><figcaption><br><\/figcaption><\/figure>\n\n\n\n<p>I filled out the info where it needs to go, and set the destination for calls to the main trunk number to go straight to my extension, so Ill get them on my mobile or PC.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1433\" height=\"1046\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2020\/07\/image-2.png\" alt=\"\" class=\"wp-image-865\"\/><\/figure>\n\n\n\n<p>This SHOULD be all that&#8217;s required!<br>But alas, I am not that lucky today.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1381\" height=\"47\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2020\/07\/image-3.png\" alt=\"\" class=\"wp-image-866\"\/><\/figure>\n\n\n\n<p>The trunk is failing to register.<br>If we switch over to the <strong>3CX Event Log<\/strong>, we can see the failed registration attempt.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"905\" height=\"70\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2020\/07\/image-4.png\" alt=\"\" class=\"wp-image-867\"\/><\/figure>\n\n\n\n<p>Its worth noting here, that while the log shows the user as 10001@hhap.wizworks.net, this is merely a graphical confusion, as 10001 is the internal number assigned to the trunk by 3CX, and not the actual user that it attempts to register with. 3CX Uses the SIP User ID we entered above to register, but I am still receiving a 403 Forbidden from the hhap.wizworks.net:5060 (which currently resolves to 45.32.49.98) server.<\/p>\n\n\n\n<p>I thought this may be happening due to the second connection I already have from this address, the Cisco SPA504g handset, so I connected to my Unifi Controller and shutdown the PoE to the port the phone is connected to.<br><br>Once the phone went offline I tried registering again through 3CX, and this time it gives an error that the service is not available&#8230;<br><br>I have reached out to the HHOPS team to see if there is any issues currently with the hhap.wizworks.net server, and will update my post here when I hear back, or if I otherwise resolve the issue.<br><\/p>\n\n\n\n<p><strong>Update:<\/strong><\/p>\n\n\n\n<p>I heard back from HHOPS!<br><br>They gave a few suggestions, and I was able to get things up and running!<\/p>\n\n\n\n<p>Rather than <strong>Generic SIP Provider<\/strong> I have used <strong>Asterisk<\/strong> as the type, and rather than <strong>5060 <\/strong>for the port, I have used <strong>4569.<\/strong><br>It is now successfully registered and appears to be working!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1458\" height=\"1143\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2020\/07\/image-5.png\" alt=\"\" class=\"wp-image-870\"\/><figcaption><br><\/figcaption><\/figure>\n\n\n\n<p>To finalise, I have also setup an <strong>Outbound Rule<\/strong> for Hamshack Hotline, where calls to numbers with a length of 5 digits get routed out the new Hamshack Hotline trunk.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"393\" height=\"318\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2020\/07\/image-6.png\" alt=\"\" class=\"wp-image-871\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1029\" height=\"439\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2020\/07\/image-7.png\" alt=\"\" class=\"wp-image-872\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I have a 3CX PBX at home I use for a few things, and I also have a Cisco SPA504g that I use with HamShack Hotline. I have a second extension setup on the SPA504g for my 3CX system, but I figured it might be a good idea to get the 3CX system to register &hellip; <a href=\"https:\/\/blog.lewys.eu\/?p=860\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Setting up a Hamshack Hotline Trunk in 3CX PBX<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":868,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,35,26],"tags":[],"class_list":["post-860","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-amateur-radio","category-homelab","category-networking"],"jetpack_featured_media_url":"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2020\/07\/PBX-Status.png","_links":{"self":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts\/860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=860"}],"version-history":[{"count":3,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts\/860\/revisions"}],"predecessor-version":[{"id":873,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts\/860\/revisions\/873"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/media\/868"}],"wp:attachment":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}