[Asterisk-Users] Action after _caller_ has hungup(cmd Dial
'g'-option)
Benchev
bbench at mail.bg
Sat Mar 11 02:34:11 MST 2006
> There's the "g"-option for the Dial-cmd that allows to execute the next
> extensions in the current context when the callee hangs up.
>
> I would need the same for a call where the caller hangs up, concretely
> i have to inform a agi-application of the end of a call. Does someone
> know a way to do this from the dialplan?
You could add after your agi-application a hangup
section starting with "h":
exten => _X.,n,AGI,agi-application.agi
exten => h,1,Set(result=${DIALSTATUS})
exten => h,2,GotoIf($["${RESULT}" = "CANCEL" | "${RESULT}" = "NOANSWER" |
"${RESULT}" = "BUSY" | "${RESULT}" = "CHANUNAVAIL" | "${RESULT}" =
"CONGESTION" | "${RESULT}" = ""]?500:3)
exten => h,3,Do_things
exten => h,500,Congestion
benchev
More information about the asterisk-users
mailing list