[Asterisk-Users] Forcing to exec an app into an extension , even if user hangs up

Steven Critchfield critch at basesys.com
Thu Dec 11 03:08:07 MST 2003


On Thu, 2003-12-11 at 03:49, Alexandru Coseru wrote:
> Hello..
> 
> I'm having another problem right now...
> 
> There is a way to force the execution of an application into an extension ,
> even if the user hangs up before reaching it ?
> 
> 
> For instance:
> 
> exten => 500,1,Answer
> exten=>500,2,Play(prompt1)
> exten=>500,3,Play(prompt2)
> exten=>500,4,Play(prompt3)
> exten=>500,5,MyOwnApp
> exten=>500,6,Hangup
> 
> 
> Now , if the user sits back and doesn't touch the phone , it's all ok...
> But...
> If the user hangs up after the first prompt., how can I still exec myOwnApp
> ?
> let's say that is some kind of billing function , and I cannot use the
> cdr's....

Why don't you play the prompts from within your own app? Then you could
do any number of more interesting reporting things. Playing a file from
within a app isn't difficult. 
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list