This hangup issue only happens to in queue calls. Features.conf items like automon, atxfer, and blindxfer work perfectly while on a direct non-queue call.
Troubleshooting Thus Far
This issue has been discussed at great length on other message boards with no clear anwser. Some claim that due to a bug only the * is passed through while in the que, which happens to be the default call disconnect code. I changed all the defaults to ommit * but no change in behavoir.
- always hungup the que call
Spawn extension (from-sip, 2020, 4) exited non-zero on ‘SIP/1559-09f92880’
always did nothing
No matter what the features.conf settings were, it still followed along the lines of what was described above.
*note we can’t upgrade beyond asterisk 1.2 due to experience with 1.4+ in production environments.
CODE:
extensions.conf
[globals]
DYNAMIC_FEATURES=>automon
DYNAMIC_FEATURES=>blindxfer
DYNAMIC_FEATURES=>atxfer
[from-sip]
; Agent Login
exten=> 2001,1,AgentCallbackLogin(||${CALLERID(num)}@queueout)
;Agent Logout
exten=> 2002,1,AgentCallbackLogin(|l)
; entering the que to test
exten=> 2020,1,Answer
exten=> 2020,2,Ringing
exten=> 2020,3,Wait(2)
exten=> 2020,4,Queue(qalpha)
exten=> 2020,5,Hangup
[queueout]
exten => _XXXX,1,Dial(sip/${EXTEN},20,t)
exten => _XX,1,goto(from-internal,${EXTEN},1)
queues.conf
[qalpha]
music=default
strategy=roundrobin
timeout=15
retry=5
wrapuptime=0
maxlen = 0
announce-frequency = 0
announce-holdtime = no
member => Agent/1557
member => Agent/1530
agents.conf
agent => 1557,1234,agent two
agent => 1530,1234,agent three