<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pttlink.org/index.php?action=history&amp;feed=atom&amp;title=PSTN_Node_Access</id>
	<title>PSTN Node Access - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pttlink.org/index.php?action=history&amp;feed=atom&amp;title=PSTN_Node_Access"/>
	<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=PSTN_Node_Access&amp;action=history"/>
	<updated>2026-04-28T21:51:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=PSTN_Node_Access&amp;diff=5084&amp;oldid=prev</id>
		<title>Kg7qin at 03:51, 6 September 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=PSTN_Node_Access&amp;diff=5084&amp;oldid=prev"/>
		<updated>2021-09-06T03:51:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:51, 6 September 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[Category:&lt;/del&gt;How to&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{Infobox PTTLink&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;| image = Telephone-3594206 1920.jpg&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;| caption = CQ CQ CQ&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;| category = &lt;/ins&gt;How to&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Software]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Software]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following configuration will allow you to dial into your AllStarLink/PTTLink node and use it like your own personal telephone portal.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following configuration will allow you to dial into your AllStarLink/PTTLink node and use it like your own personal telephone portal.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff::1.12:old-2730:rev-5084 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kg7qin</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=PSTN_Node_Access&amp;diff=2730&amp;oldid=prev</id>
		<title>Kg7qin at 20:07, 17 July 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=PSTN_Node_Access&amp;diff=2730&amp;oldid=prev"/>
		<updated>2021-07-17T20:07:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:07, 17 July 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:How to]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Software]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following configuration will allow you to dial into your AllStarLink/PTTLink node and use it like your own personal telephone portal.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following configuration will allow you to dial into your AllStarLink/PTTLink node and use it like your own personal telephone portal.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Note:  This is for personal node access only.  For information on setting up a public autopatch on your node, refer to [[Setup Autopatch]].&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Prerequisites==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Prerequisites==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff::1.12:old-2729:rev-2730 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kg7qin</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=PSTN_Node_Access&amp;diff=2729&amp;oldid=prev</id>
		<title>Kg7qin: Protected &quot;PSTN Node Access&quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=PSTN_Node_Access&amp;diff=2729&amp;oldid=prev"/>
		<updated>2021-07-17T20:02:23Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/wiki/PSTN_Node_Access&quot; title=&quot;PSTN Node Access&quot;&gt;PSTN Node Access&lt;/a&gt;&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:02, 17 July 2021&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff::1.12:old-2728:rev-2729 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kg7qin</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=PSTN_Node_Access&amp;diff=2728&amp;oldid=prev</id>
		<title>Kg7qin: Created initial page</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=PSTN_Node_Access&amp;diff=2728&amp;oldid=prev"/>
		<updated>2021-07-17T20:01:59Z</updated>

		<summary type="html">&lt;p&gt;Created initial page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The following configuration will allow you to dial into your AllStarLink/PTTLink node and use it like your own personal telephone portal.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
*A SIP provider to setup a trunk to&lt;br /&gt;
*A provisioned telephone number (DID) with your provider that is passed over the trunk to your node&lt;br /&gt;
*Forwarding of port 5060 from your cable modem/router to your AllStarLink/PTTLink node&lt;br /&gt;
&lt;br /&gt;
It is recommended that you setup firewall rules to limit inbound connections on port 5060 to only your SIP provider.  This will eliminate the SIP enumeration and other attacks that your ALlStarLink/PTTLink node will be subjected to.&lt;br /&gt;
&lt;br /&gt;
===SIP Providers===&lt;br /&gt;
The following SIP providers have been used with this configuration.  &lt;br /&gt;
&lt;br /&gt;
Note:  You will only need a single provider.&lt;br /&gt;
&lt;br /&gt;
*[https://www.leap.tel/ Leap]&amp;lt;ref name=&amp;quot;LEAP&amp;quot;&amp;gt;[https://www.leap.tel Leap]/&amp;lt;/ref&amp;gt;&lt;br /&gt;
*[https://telnyx.com/ Telnyx]&amp;lt;ref name=&amp;quot;TELNYX&amp;quot;&amp;gt;[https://telnyx.com/ Telnyx]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Make the following changes to your AllStarLink/PTTLink node's configuration files.&lt;br /&gt;
&lt;br /&gt;
===sip.conf===&lt;br /&gt;
Edit /etc/asterisk/sip.conf as follows:&lt;br /&gt;
&lt;br /&gt;
====Using TELNYX====&lt;br /&gt;
Add a stanza to sip.conf similar to the following:&lt;br /&gt;
&lt;br /&gt;
   [TELNYX]&lt;br /&gt;
   type=friend&lt;br /&gt;
   host=sip.telnyx.com&lt;br /&gt;
   disallow=all&lt;br /&gt;
   allow=ulaw&lt;br /&gt;
   insecure=private&lt;br /&gt;
   context=from-ptsn&lt;br /&gt;
   canreinvite=yes&lt;br /&gt;
   qualify=no&lt;br /&gt;
   username='''USERNAME'''&lt;br /&gt;
   secret='''SECRET'''&lt;br /&gt;
   nat=yes&lt;br /&gt;
   directtypdrtup=yes&lt;br /&gt;
   externalip='''YOUR PUBLIC IP'''   ;useful if you have issues with SIP&lt;br /&gt;
   ;localhost=NETWORK/SUBNET         ;useful if you have issues with SIP&lt;br /&gt;
&lt;br /&gt;
====Using Leap====&lt;br /&gt;
Add a stanza to sip.conf similar to the following:&lt;br /&gt;
&lt;br /&gt;
   [LEAP]&lt;br /&gt;
   disallow=all&lt;br /&gt;
   allow=ulaw&lt;br /&gt;
   context=from-pstn&lt;br /&gt;
   type=friend&lt;br /&gt;
   insecure=invite&lt;br /&gt;
   dtmfmode=rfc2833&lt;br /&gt;
   username='''USERNAME'''&lt;br /&gt;
   secret='''PASSWORD'''&lt;br /&gt;
   host='''FQDN OF YOUR LEAP TEL INSTANCE NAME'''&lt;br /&gt;
   fromdomain='''MAKE THIS MATCH THE HOST LINE ABOVE'''&lt;br /&gt;
   canreinvite=yes&lt;br /&gt;
   nat=yes&lt;br /&gt;
   qualify=yes&lt;br /&gt;
   externip='''YOUR PUBLIC IP'''&lt;br /&gt;
   localnet='''YOUR NODE'S LOCAL NEWORK/SUBNET''' ; Format: 192.168.0.0/255.255.255.0&lt;br /&gt;
&lt;br /&gt;
===SIP registration===&lt;br /&gt;
You will need to add a register line in the [general] section of your sip.conf file.  This will allow your node to authenticate with your SIP provider and optionally use it for outbound calls.&lt;br /&gt;
&lt;br /&gt;
====Telnyx====&lt;br /&gt;
register =&amp;gt; &amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;@sip.telnyx.com&lt;br /&gt;
&lt;br /&gt;
====Leap====&lt;br /&gt;
register =&amp;gt; &amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;@&amp;lt;fqdn of leap instance&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===extensions.conf===&lt;br /&gt;
We use the context of '''from-pstn''' in both SIP providers examples above.  You will need to add a dial plan stanza that matches the context calls come in on your SIP trunk. &lt;br /&gt;
&lt;br /&gt;
'''''DO NOT PUSH EXTERNAL PHONE CALLS TO YOU NODE'S DEFAULT STANZA!'''''  &lt;br /&gt;
&lt;br /&gt;
This is a security concern as all calls coming in should be authenticated before they are passed to app_rpt.&lt;br /&gt;
&lt;br /&gt;
You can change the greeting message and tones played to whatever you want.&lt;br /&gt;
&lt;br /&gt;
We will use the node number of ''2000'' as the extension to dial to get node access.  You will be greeted by a message to enter your password and if successful the call will then transfer over to your node.&lt;br /&gt;
&lt;br /&gt;
   [from-pstn]&lt;br /&gt;
   exten =&amp;gt; XXXXXXXXXX,1,Goto(s|1)  ; Replace XXXXXXXXXX with the full phone number passed from your provider (e.g., 2535551212)&lt;br /&gt;
   &lt;br /&gt;
   exten =&amp;gt; s,1,Ringing()&lt;br /&gt;
   exten =&amp;gt; s,n,Wait(3)&lt;br /&gt;
   exten =&amp;gt; s,n,Answer()&lt;br /&gt;
   exten =&amp;gt; s,n,Log(VERBOSE,Incoming call from ${CALLERID(all)})     ;Log the incoming call&lt;br /&gt;
   &lt;br /&gt;
   exten =&amp;gt; s,n,GotoIf($[&amp;quot;${CALLERID(num)}&amp;quot; = &amp;quot;&amp;quot;]?877)               ;Do some spam/telemarketer filtering&lt;br /&gt;
   exten =&amp;gt; s,n,GotoIf($[&amp;quot;${CALLERID(num):0:3}&amp;quot; = &amp;quot;877&amp;quot;]?877)&lt;br /&gt;
   exten =&amp;gt; s,n,GotoIf($[&amp;quot;${CALLERID(num):0:3}&amp;quot; = &amp;quot;800&amp;quot;]?877)&lt;br /&gt;
   exten =&amp;gt; s,n,GotoIf($[&amp;quot;${CALLERIDNAME:0:9}&amp;quot; = &amp;quot;Anonymous&amp;quot;]?877)&lt;br /&gt;
   exten =&amp;gt; s,n,GotoIf($[&amp;quot;${CALLERIDNAME:0:7}&amp;quot; = &amp;quot;Unknown&amp;quot;]?877)&lt;br /&gt;
   exten =&amp;gt; s,n,GotoIf($[&amp;quot;${CALLERIDNUM:0:7}&amp;quot; = &amp;quot;Private&amp;quot;]?877)&lt;br /&gt;
   exten =&amp;gt; s,n,GotoIf($[&amp;quot;${CALLERIDNAME:0:7}&amp;quot; = &amp;quot;Private&amp;quot;]?877)&lt;br /&gt;
   exten =&amp;gt; s,n,GotoIf($[&amp;quot;${CALLERIDNUM:0:10}&amp;quot; = &amp;quot;Restricted&amp;quot;]?877)&lt;br /&gt;
   exten =&amp;gt; s,n,GotoIf($[&amp;quot;${CALLERIDNUM:0:4}&amp;quot; = &amp;quot;PSTN&amp;quot;]?877)&lt;br /&gt;
   exten =&amp;gt; s,n,Wait(2)&lt;br /&gt;
   &lt;br /&gt;
   exten =&amp;gt; s,n,Background(thank-you-for-calling&amp;amp;privacy-please-stay-on-line-to-be-connected)&lt;br /&gt;
   exten =&amp;gt; s,n,Background(or&amp;amp;if-u-know-ext-dial&amp;amp;otherwise&amp;amp;to-hang-up-2)&lt;br /&gt;
   exten =&amp;gt; s,n,Background(press-star)&lt;br /&gt;
   exten =&amp;gt; s,n,Wait(1)&lt;br /&gt;
   exten =&amp;gt; s,n,Background()&lt;br /&gt;
   exten =&amp;gt; s,n,Playtones(425/50,0/50)&lt;br /&gt;
   exten =&amp;gt; s,n,Playtones(!914/276,!1371/276,!1777/380,0)&lt;br /&gt;
   exten =&amp;gt; s,n,Wait(2)&lt;br /&gt;
   exten =&amp;gt; s,n,WaitExten(20)  ; Wait for a keypress&lt;br /&gt;
   exten =&amp;gt; s,n,Playback(goodbye)  ;Nothing received so hangup&lt;br /&gt;
   exten =&amp;gt; s,n,Wait(2)&lt;br /&gt;
   exten =&amp;gt; s,n,Hangup()&lt;br /&gt;
   &lt;br /&gt;
   ;Default of where calls will go if nothing is entered&lt;br /&gt;
   exten =&amp;gt; 10,1,LOG(VERBOSE, Hanging up.)&lt;br /&gt;
   exten =&amp;gt; 10,n,StopPlaytones&lt;br /&gt;
   exten =&amp;gt; 10,n,Playback(goodbye)&lt;br /&gt;
   exten =&amp;gt; 10,n,Wait(2)&lt;br /&gt;
   exten =&amp;gt; 10,n,Hangup()&lt;br /&gt;
   &lt;br /&gt;
   exten =&amp;gt; *,1,Playback(goodbye)&lt;br /&gt;
   exten =&amp;gt; *,n,Wait(2)&lt;br /&gt;
   exten =&amp;gt; *,n,Hangup()&lt;br /&gt;
   &lt;br /&gt;
   ;Drop calls with no caller ID, 800, or 877 &lt;br /&gt;
   exten =&amp;gt; s,877,Congestion()&lt;br /&gt;
   exten =&amp;gt; 877,1,Wait(1)&lt;br /&gt;
   exten =&amp;gt; 877,n,Hangup()&lt;br /&gt;
   &lt;br /&gt;
   exten =&amp;gt; i,1,Log(VERBOSE, Caller ${CALLERID(all)} dialed an invalid extension.  Hanging up...)&lt;br /&gt;
   exten =&amp;gt; i,n,Congestion(15)&lt;br /&gt;
      &lt;br /&gt;
   exten =&amp;gt; h,1,Log(VERBOSE, Caller ${CALLERID(all)} hung up.)&lt;br /&gt;
   exten =&amp;gt; h,n,Hangup()&lt;br /&gt;
   &lt;br /&gt;
   exten =&amp;gt; 2000,1,Log(VERBOSE, Caller ${CALLERID(all)} is attempting remote radio control....)&lt;br /&gt;
   exten =&amp;gt; 2000,n,Authenticate('''1234''')   ; Change 1234 to a more secure password&lt;br /&gt;
   exten =&amp;gt; 2000,n,Goto(pstn-radio-control|2000|1)&lt;br /&gt;
&lt;br /&gt;
Now we add an additional stanza to the extensions.conf called pstn-radio-control.  This stanza will take the phone call we passed to it and connect it to app_rpt.&lt;br /&gt;
&lt;br /&gt;
   [pstn-radio-control]&lt;br /&gt;
   exten =&amp;gt; 2000,1,Ringing&lt;br /&gt;
   exten =&amp;gt; 2000,n,Wait(3)&lt;br /&gt;
   exten =&amp;gt; 2000,n,Answer&lt;br /&gt;
   exten =&amp;gt; 2000,n,Set(CALLERID(name)=&amp;quot;'''CALLSIGN'''&amp;quot;)  ; Change to your callsign&lt;br /&gt;
   exten =&amp;gt; 2000,n,Playback(rpt/connected)&lt;br /&gt;
   exten =&amp;gt; 2000,n,Playback(rpt/node)&lt;br /&gt;
   exten =&amp;gt; 2000,n,Saydigits(${EXTEN})&lt;br /&gt;
   exten =&amp;gt; 2000,n,Rpt(${EXTEN}|P|${CALLERID(name)})&lt;br /&gt;
&lt;br /&gt;
==Testing==&lt;br /&gt;
*Make sure your AllStarLink/PTTLink node is registered with your SIP provider.&lt;br /&gt;
   Node*CLI&amp;gt; sip show registry&lt;br /&gt;
   Host                            Username       Refresh State                Reg.Time                 &lt;br /&gt;
   sip.telnyx.com:5060             blahblah        105 Registered           Sat, 17 Jul 2021 12:35:43&lt;br /&gt;
&lt;br /&gt;
*Call the telephone number you have provisioned with your SIP provider and watch your AllStarLink/PTTLink node's console.  If successful you will see output similar to:&lt;br /&gt;
&lt;br /&gt;
    -- Executing [18005551212@from-pstn:1] Goto(&amp;quot;SIP/LEAP-01aa5b48&amp;quot;, &amp;quot;s|1&amp;quot;) in new stack&lt;br /&gt;
    -- Goto (from-pstn,s,1)&lt;br /&gt;
    -- Executing [s@from-pstn:1] Ringing(&amp;quot;SIP/LEAP-01aa5b48&amp;quot;, &amp;quot;&amp;quot;) in new stack&lt;br /&gt;
    -- Executing [s@from-pstn:2] Wait(&amp;quot;SIP/LEAP-01aa5b48&amp;quot;, &amp;quot;3&amp;quot;) in new stack&lt;br /&gt;
    -- Executing [s@from-pstn:3] Answer(&amp;quot;SIP/LEAP-01aa5b48&amp;quot;, &amp;quot;&amp;quot;) in new stack&lt;br /&gt;
    -- Executing [s@from-pstn:4] Log(&amp;quot;SIP/LEAP-01aa5b48&amp;quot;, &amp;quot;VERBOSE|Incoming call from &amp;quot;WIRELESS CALLER&amp;quot; &amp;lt;+18885551212&amp;gt;&amp;quot;) in new stack&lt;br /&gt;
&lt;br /&gt;
*You will hear the greeting, be prompted to enter the extension you wish to call and hear some tones playing.  &lt;br /&gt;
*Enter your node number (you did change it from 2000 in the example right?) and your password when prompted.  &lt;br /&gt;
*If successful you will then be passed to app_rpt and hear the announcement saying you've connected to your node, your call sign as the other node connecting, and your node will now be ready to control using DTMF codes as if you were on a radio link.&lt;br /&gt;
&lt;br /&gt;
==References/External Links==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kg7qin</name></author>
	</entry>
</feed>