Hello,
I am trying to get autopatch working on my simplex ASL3 node. Hardware is a Pi4 using usbradio. Asterisk version is:
Asterisk 20.9.1+asl3-3.0.4-1.deb12
First a very basic question. What is the “Allstar Autopatch service” listed in iax.conf? Is this an iax2 connection we can use for outgoing autopatch calls? Perhaps a depreciated offering?
In any case, I have used my own PBX (asterisk) server instead.
The error: When I try and dial an autopatch (DTMF or rpt fun
), I see the following error and the call is not placed:
simplex900*CLI> rpt fun 617081 *615558745632 ; (not my actual number!)
[2024-08-16 14:07:13.835] WARNING[26197]: app_rpt/rpt_bridging.c:572 rpt_play_tone: Cannot start tone on DAHDI/pseudo-747982376
-- Hungup 'DAHDI/pseudo-1203405822'
-- Hungup 'DAHDI/pseudo-747982376'
simplex900*CLI>
Here is how the patch is connected up for me:
rpt.conf:
61 = autopatchup,noct = 1,farenddisconnect = 1,dialtime = 20000,context=pstn-out ; Autopatch up
62 = autopatchdn
extensions.conf (trying for super basic here until it works):
[pstn-out]
exten => _NXXNXXXXXX,1,Dial(IAX2/phonetrunk/\${EXTEN})
same => n,Busy
iax.conf:
[phonetrunk]
type=peer
username=900
password=SuperSecretPasswordThatMatchesTheOtherServer
auth = md5
context=pstn-out
host=10.0.0.203
disallow=all
allow=ulaw
allow=alaw
allow=adpcm
allow=gsm
Note: my understanding is that if the host is not dynamic
, then registration is not needed in iax.conf (because there’s nothing to “find”, each host knows where the other one is). Please tell me if this is incorrect though. Also is “peer” correct, or is “friend” better?
On the server:
iax.conf:
[900]
; This is for the 900 MHz simplex node
username=900
type=peer
secret=SuperSecretPasswordThatMatchesTheOtherServer
context=myphone
host=10.0.0.90
auth=md5
disallow=all
allow=ulaw
allow=alaw
allow=g726aal2
allow=gsm
codecpriority=host
transfer=no
callerid="W6EL" <(555) 555-1212>
extensions.conf:
[myphone]
exten=>41751,1,answer();
exten=>41751,n,rpt(41751|Pv);
include => pbx_server
include => autopatch_ext_process
include => voipms-outbound
I can supply more detail here but it’s working for my Nortel PBX, Zoiper, a SIP adapter, and so on. And thus far it isn’t making it far enough to be noticed by this asterisk server, so I think we’re good on this side.
Sorry for the long support posting, just trying to capture all the details.
Thanks,
–E
de W6EL