Hi,
I am running with X-Lite phones trying to gain familiarity with Asterisk. I have created a basic menu system but it does not behave as I would have expected. I would be very grateful for some input on this.
The user dials 3065, and can then chose to dial 1 to be put through to 3092, or 2 to be put through to 3094. This works fine as long as the person being called picks up. If they do not pick up or they are not running a softphone, the system correctly plays a “Nobody is available” audio message but then fails to hangup. By this I mean that visually, The calling Xlite shows that the call to 3065 is still established with the call duration timer still incrementing. I would have expected Hangup() to drop the connection !?
The extension.conf settings are :
; ----------------------------------------------------------
exten => 3065,1,Answer()
exten => 3065,n,Background(enter-ext-of-person)
exten => 3065,n,WaitExten()
exten => 1,1,Dial(SIP/3092,10)
exten => 1,n,Playback(vm-nobodyavail)
exten => 1,n,Hangup()
exten => 2,1,Dial(SIP/3094,10)
exten => 2,n,Playback(vm-nobodyavail)
exten => 2,n,Hangup()
;handle invalid, i.e.neither 1 nor 2 has been pressed
exten => i,1,Playback(pbx-invalid)
exten => i,n,Goto(internal,3065,1)
; handle timeout
exten => t,1,Playback(vm-goodbye)
exten => t,n,Hangup()
; ----------------------------------------------------
The CLI trace is for a call from 3062 to 3065, with a selection of option 1, is as follows :
-- Executing Answer("SIP/3062-09f3da58", "") in new stack
-- Executing BackGround("SIP/3062-09f3da58", "enter-ext-of-person") in new stack
-- Playing 'enter-ext-of-person' (language 'en')
-- Executing WaitExten("SIP/3062-09f3da58", "") in new stack
== CDR updated on SIP/3062-09f3da58
– Executing Dial(“SIP/3062-09f3da58”, “SIP/3092|10”) in new stack
== Everyone is busy/congested at this time (1:0/0/1)
– Executing Playback(“SIP/3062-09f3da58”, “vm-nobodyavail”) in new stack
– Playing ‘vm-nobodyavail’ (language ‘en’)
– Executing Hangup(“SIP/3062-09f3da58”, “”) in new stack
== Spawn extension (phones, 1, 3) exited non-zero on 'SIP/3062-09f3da58’
asterisk1*CLI>
So the Hangup does appear to be getting executed.
Any ideas what I am doing wrong ? How can I get the system to drop the call after the message is played?
Thanks.
regards
Marty