how to run script when call end

Get help with installing and running AsteriskNOW.

Moderators: Moderator, Support

how to run script when call end

Postby haki » Tue Jan 06, 2015 6:22 am

Hi all
i have made "minimal call file" help.call like this :

Channel: SIP/Trunk1/18882223333
Application: Playback
Data: hello-world

This file will make call via SIP Trunk1 to 18882223333. in the normal, after play hello-world, the call will end. But if 18882223333 terminate the call, how to make this script run another script file, ex : play.sh
Thank so much
haki
Newsterisk
 
Posts: 7
Joined: Tue Jan 06, 2015 5:38 am

Re: how to run script when call end

Postby navaismo » Tue Jan 06, 2015 8:08 am

Use local channels and handle the script with the extension h or hangup handlers depending on your asterisk version.
navaismo
Salt of the Asterisk
 
Posts: 1610
Joined: Mon Dec 07, 2009 1:30 pm
Location: Mexico City, Mexico

Re: how to run script when call end

Postby haki » Tue Jan 06, 2015 9:04 am

navaismo wrote:Use local channels and handle the script with the extension h or hangup handlers depending on your asterisk version.

thank for your reply.
but can i do this by only add some command in .call file ?
Thank
haki
Newsterisk
 
Posts: 7
Joined: Tue Jan 06, 2015 5:38 am

Re: how to run script when call end

Postby david55 » Tue Jan 06, 2015 3:16 pm

No.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am


Return to AsteriskNOW Support

Who is online

Users browsing this forum: No registered users and 1 guest