I've got an existing Asterisk box that I'm using as a general-purpose PBX, but want to hook it up to AllStar in order to connect to different repeaters from my SIP devices.
I've got my node setup as 44977, and it does receive links inbound and exchanges audio traffic fine; however, when trying to link out, it doesn't find any external nodes.
I have already run asl3-update-astdb and asl3-update-nodelist, and the /var/lib/asterisk/rpt_extnodes is fully populated with the node I'm trying to lookup.
My rpt.conf includes:
[general]
node_lookup_method = both ; method used to lookup nodes
; dns = dns lookup only (default)
; both = dns lookup first, followed by external file
; file = external file lookup only
; The domain name used for DNS lookups when the node lookup method is "dns" or
; "both". The default domain is "nodes.allstarlink.org" and does not need to
; be defined here. Only set "dns_node_domain" if a) you really know what you're
; doing and b) you need to use an alternate DNS domain for node resolution.
;dns_node_domain = nodes.allstarlink.org
; When using DNS, "app_rpt" must know the length of the longest node number.
; The current maximum is 6 digits and does not need to be defined here. The
; "max_dns_node_length" variable can be used to limit queries to shorter (or
; longer) node numbers.
;max_dns_node_length = 6
[nodes]
; If you are using automatic update for AllStarLink nodes, and you probably are,
; no AllStarLink remote nodes should be defined here. Only place a definition
; for your local nodes, and private (not on AllStarLink directory) nodes here.
; Sample nodes on this server. These are required. Use IP 127.0.0.1
; IAX port number if not the default 4569.
;1998 = [email protected]/1998,NONE
; Sample public or private node behind your router.
;1001 = [email protected]:4568/1001,NONE
; Sample private node on the internet.
;1000 = [email protected]:4569/1000,NONE
44977 = [email protected]/44977,NONE
; (snip)
#tryinclude "/var/lib/asterisk/rpt_extnodes"
[44977](node-main)
I use the pbx_lua interface for configuring my dialplan, of which this part is my outward link step:
function enter_allstar(c,e)
app.answer()
app.Read("node", "you-must-first-dial", 6)
print("calling exten " .. channel.node:get())
app.rpt(tonumber(channel["node"]:get()), "S")
end
and this is the log from Asterisk, first connecting to the local node 44977, and then to the node 55770:
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio CoS mark 5
-- Executing [202@from_internal:1] answer("PJSIP/500-00000001", "")
> 0x7f805005a060 -- Strict RTP learning after remote address set to: 192.168.68.89:10014
> 0x7f805005a060 -- Strict RTP switching to RTP target address 192.168.68.89:10014 as source
-- Executing [202@from_internal:1] Read("PJSIP/500-00000001", "node,you-must-first-dial,6")
-- Accepting a maximum of 6 digits.
-- <PJSIP/500-00000001> Playing 'you-must-first-dial.ulaw' (language 'en_GB')
> 0x7f805005a060 -- Strict RTP learning complete - Locking on source address 192.168.68.89:10014
-- User entered '44977'
-- Executing [202@from_internal:1] rpt("PJSIP/500-00000001", "44977,S")
-- Channel Announcer/IAXLink-00000006;2 joined 'softmix' base-bridge <5e28c59b-2cac-4f06-878d-2c6dccfac0ec>
-- Channel Announcer/IAXLink-00000006;2 left 'softmix' base-bridge <5e28c59b-2cac-4f06-878d-2c6dccfac0ec>
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio CoS mark 5
-- Executing [202@from_internal:1] answer("PJSIP/500-00000002", "")
> 0x7f8050081690 -- Strict RTP learning after remote address set to: 192.168.68.89:10016
> 0x7f8050081690 -- Strict RTP switching to RTP target address 192.168.68.89:10016 as source
-- Executing [202@from_internal:1] Read("PJSIP/500-00000002", "node,you-must-first-dial,6")
-- Accepting a maximum of 6 digits.
-- <PJSIP/500-00000002> Playing 'you-must-first-dial.ulaw' (language 'en_GB')
> 0x7f8050081690 -- Strict RTP learning complete - Locking on source address 192.168.68.89:10016
-- User entered '55770'
-- Executing [202@from_internal:1] rpt("PJSIP/500-00000002", "55770,S")
[Nov 22 15:31:19] WARNING[1628][C-00000003]: app_rpt.c:7277 rpt_exec: Cannot find specified system node 55770
== Spawn extension (from_internal, 202, 1) exited non-zero on 'PJSIP/500-00000002'