Hello there,
Asterisk 22.2.0, working on a simple SLA setup. I’ve hit a wall with outbound calls. When a deskphone (in this configuration, called station4
and station5
) speed dials an SLA extension (e.g. station4_line1
or station5_line1
), it fails and Asterisk logs:
-- Executing [station5_line1@sla_stations:1] SLAStation("PJSIP/station5-00000006", "station5_line1") in new stack
-- Called disa@line1_outbound
-- Executing [disa@line1_outbound:1] NoOp("Local/disa@line1_outbound-00000004;2", "") in new stack
-- Executing [disa@line1_outbound:2] DISA("Local/disa@line1_outbound-00000004;2", "no-password,line1_outbound") in new stack
-- Local/disa@line1_outbound-00000004;1 answered
-- Auto fallthrough, channel 'PJSIP/station5-00000006' status is 'UNKNOWN'
== Spawn extension (line1_outbound, disa, 2) exited non-zero on 'Local/disa@line1_outbound-00000004;2'
The .conf
files:
; sla.conf
[general]
attemptcallerid = yes
[line1]
type = trunk
device = Local/disa@line1_outbound
[station](!)
type = station
trunk = line1
[station4](station)
device = PJSIP/station4
[station5](station)
device = PJSIP/station5
; extensions.conf
[globals]
INTERNAL_DIAL_OPT=,30
[line1]
exten => s,1,SLATrunk(line1)
exten => _X.,1,Goto(s,1)
[line1_outbound]
exten => disa,1,NoOp()
same => n,DISA(no-password,line1_outbound)
exten => _1NXXNXXXXXX,1,Dial(PJSIP/${EXTEN}@line7777)
[sla_stations]
exten => station4,1,SLAStation(station4)
exten => station4_line1,hint,SLA:station4_line1
exten => station4_line1,1,SLAStation(station4_line1)
exten => station5,1,SLAStation(station5)
exten => station5_line1,hint,SLA:station5_line1
exten => station5_line1,1,SLAStation(station5_line1)
; pjsip.conf
[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0
[line7777]
type = endpoint
transport = transport-udp
context = line1
allow = !all,g722,ulaw
aors = line7777_aor
auth = line7777_auth
direct_media = no
dtmf_mode = auto
callerid = asreceived
trust_id_inbound = yes
send_pai = yes
send_rpid = yes
allow_subscribe = yes
[line7777_auth]
type = auth
auth_type = userpass
username = 7777
password = 7777
[line7777_aor]
type = aor
contact = sip:2.6.0.0:5062
remove_existing = yes
max_contacts = 1
[line7777_identify]
type = identify
endpoint = line7777
match = 2.6.0.0
[station](!)
type = endpoint
allow = !all,g722,ulaw
context = sla_stations
dtmf_mode = rfc4733
allow_subscribe = yes
[auth-userpass](!)
type = auth
auth_type = userpass
[aor-single-reg](!)
type = aor
max_contacts = 1
[station4](station)
auth = station4
aors = station4
callerid = "Station 4"
[station4](auth-userpass)
username = station4
password = station4
[station4](aor-single-reg)
[station5](station)
auth = station5
aors = station5
callerid = "Station 5"
[station5](auth-userpass)
username = station5
password = station5
[station5](aor-single-reg)
I’ve been whacking my head on my desk for a couple of days on this — even digging into main/pbx.c
, which seems to point to DIALSTATUS
isn’t available, but that’s as far as I was able to follow that lead.
Anyone have any insight?