Saurabh Nirkhey
2009-Apr-24 02:22 UTC
[asterisk-users] Hangup Detection After Originate (Asterisk Manager API)
I have written an asterisk manager client which creates an outbound call using Asterisk manager API's Originate action. when the call is connected I run 3 applications on it. 1)read a dtmf digit from user 2)A customized application which I have written,(It plays something to user) 3)Hangup If user hangs up while app 2(see above) is executing I get a 'Event Hangup' from asterisk in my manager client . But if app2 is over and asterisk executes Hangup (app3),It never sends any packet to my client regarding Hangup of the call. I have given all permissions to manager user in manager.conf. Can somebody help me? Thanks & Regards ==============(-: Saurabh :-) ============== "French is the language of love,For everything else there is 'C' " "Every search begins with beginner's luck and ends with the victor being severly tested" -Paulo Coehlo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090424/569a45e6/attachment.htm
Matt Riddell
2009-Apr-26 22:27 UTC
[asterisk-users] Hangup Detection After Originate (Asterisk Manager API)
On 24/04/2009 2:22 p.m., Saurabh Nirkhey wrote:> I have written an asterisk manager client which creates an outbound > call using Asterisk manager API's Originate action. > when the call is connected I run 3 applications on it. > 1)read a dtmf digit from user > 2)A customized application which I have written,(It plays something to user) > 3)Hangup > > If user hangs up while app 2(see above) is executing I get a 'Event Hangup' > from asterisk in my manager client . > But if app2 is over and asterisk executes Hangup (app3),It never sends > any packet to my client regarding Hangup of the call. > > I have given all permissions to manager user in manager.conf. > Can somebody help me?Maybe use the UserEvent application before calling hangup: -= Info about application 'UserEvent' =- [Synopsis] Send an arbitrary event to the manager interface [Description] UserEvent(eventname[|body]): Sends an arbitrary event to the manager interface, with an optional body representing additional arguments. The body may be specified as a | delimeted list of headers. Each additional argument will be placed on a new line in the event. The format of the event will be: Event: UserEvent UserEvent: <specified event name> [body] If no body is specified, only Event and UserEvent headers will be present. -- Kind Regards, Matt Riddell Director _______________________________________________ http://www.venturevoip.com (Great new VoIP end to end solution) http://www.venturevoip.com/news.php (Daily Asterisk News - html) http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)