Send DTMF tone before Hung up call

General discussions about AsteriskNOW.

Moderators: Moderator, Support

Send DTMF tone before Hung up call

Postby ptrenta » Thu Apr 05, 2012 10:50 am

Hello I'm developing a web console application.

Actually i can intercept and monitor a phone call on a browser with Manager API, so i can see on the web console the call arriving and i take note of the channel and the uid , i can see when the phone answer and when hang up i close the web page.

I need to send DTMF tone to the trunk line before close the call when the phone talking hang up. I can see when the phone hang up but the call is dropped at the same time.. is there a way to maintain the channel on, send dtmf tone and then close it?

thanks Paolo
ptrenta
Newsterisk
 
Posts: 7
Joined: Thu Sep 15, 2011 2:29 am

Re: Send DTMF tone before Hung up call

Postby omid.mohajerani » Thu Apr 05, 2012 1:41 pm

as you may know you can use PlayDTMF in AMI ( http://www.voip-info.org/wiki/view/Aste ... n+PlayDTMF ) but When someone hangs up the call , this function will not work . Just in the middle of the call you can send DTMF .
What do you want to do exactly ?
omid.mohajerani
Oldsterisk
 
Posts: 105
Joined: Tue Sep 21, 2010 9:28 am

Re: Send DTMF tone before Hung up call

Postby ptrenta » Wed Apr 11, 2012 1:06 am

Hi omid i have to do exactly what seem not work.. when someone hangs up the phone.. i have to find a way to maintain the trunk on just the time to send DTMF tones on it.
ptrenta
Newsterisk
 
Posts: 7
Joined: Thu Sep 15, 2011 2:29 am

Re: Send DTMF tone before Hung up call

Postby omid.mohajerani » Wed Apr 11, 2012 7:57 am

what do you mean by maintain the trunk ? what do you want to do exactly ?
omid.mohajerani
Oldsterisk
 
Posts: 105
Joined: Tue Sep 21, 2010 9:28 am

Re: Send DTMF tone before Hung up call

Postby ptrenta » Wed Apr 11, 2012 11:27 am

I have a phone connection between a telephone (extension of asterisk) and a remote control system.
When the telephone hang..i need to send a DTMF on the line to the remote control system before disconnect the call.

Hope to be clear now.. :-)
ptrenta
Newsterisk
 
Posts: 7
Joined: Thu Sep 15, 2011 2:29 am

Re: Send DTMF tone before Hung up call

Postby omid.mohajerani » Wed Apr 11, 2012 1:50 pm

because you can not detect when user wants to hangup you can not have this feature or at least I dont know about it . I suggest you to use h extension ... it wil be run after someone hangs up the call . so you can create a new channel to that Control device ...
omid.mohajerani
Oldsterisk
 
Posts: 105
Joined: Tue Sep 21, 2010 9:28 am

Re: Send DTMF tone before Hung up call

Postby senecaave » Mon Sep 03, 2012 12:42 am

i don't know about this.
senecaave
Newsterisk
 
Posts: 1
Joined: Mon Sep 03, 2012 12:38 am


Return to AsteriskNOW General

Who is online

Users browsing this forum: No registered users and 1 guest