[asterisk-users] calls hang up even after Background() message
eventhough response timeout is set to 10 sec
Doug Crompton
doug at crompton.com
Mon Nov 27 00:28:18 MST 2006
I had the same problem and found I needed a (for you example)
exten => s,n,waitexten
after the last background. This is shown in many examples and in others it
is not. Very confusing but I think adding this will work for you.
Doug
On Mon, 27 Nov 2006, Jeronimo Romero wrote:
> I'm experiencing a strange problem. My inbound calls are hanging up
> right after Background() message even though response timeout is set to
> 10 sec.
>
> [voicepulseincoming]
>
> exten=>_X.,1,Answer
> exte=>_X.,n,GotoIfTime(9:00-17:00|mon-thu|*|*?business-hours,s,1)
> exten=>_X.,n,GotoIfTime(9:00-15:00|fri|*|*?business-hours,s,1)
> exten=>_X.,n,GotoIfTime(*|*|*|*?after-business-hours,s,1)
>
> [after-business-hours]
>
> exten=>s,1,Answer
> exten=>s,n,Set(TIMEOUT(digit)=10)
> exten=>s,n,Set(TIMEOUT(response)=10)
> exten=>s,n,SetVar(CALLFILENAME=${TIMESTAMP}:${CALLERIDNUM})
> exten=>s,n,Monitor(gsm,/var/spool/asterisk/monitor/${CALLFILENAME},m)
> exten=>s,n,Background(outside-business-hours)
> exten=>s,n,Background(main-auto-attendant)
> exten=>i,1,Goto(after-business-hours,s,7)
> exten=> 411,1,Directory(default)
> exten=> a,1,Goto(after-business-hours,s,7)
> exten=> o,1,Goto(after-business-hours,s,7)
>
>
> The call hangs up without respecting the 10 second response timeout.
> I've seen people posting this issue but I haven't seen the solution.
> Any help would be greatly appreciated.
>
> The asterisk console spits out the following message:
>
>
> -- Playing 'outside-business-hours' (language 'en')
> -- Executing BackGround("IAX2/voicepulse01-1",
> "main-auto-attendant") in new stack
> -- Playing 'main-auto-attendant' (language 'en')
> == Auto fallthrough, channel 'IAX2/voicepulse01-1' status is 'UNKNOWN'
> -- Hungup 'IAX2/voicepulse01-1'
>
>
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
"Those that sacrifice essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." -- Ben Franklin (1759)
****************************
* Doug Crompton *
* Richboro, PA 18954 *
* 215-431-6307 *
* *
* doug at crompton.com *
* http://www.crompton.com *
****************************
More information about the asterisk-users
mailing list