I thought I read somewhere on the Wiki that one could give Dial() an argument that would first dial the extension, but not bridge the connection until the called party hit the "#" key. It must have been during one of those late night coding sessions because now I can't find anything to do with that other than options to allow hangup of the call by hitting "*". Does such an option exist? If not, is anyone using a Macro to do that? I have a system that attempts to do a Dial out to a cell phone number with a 15 second timer as a find me type of application. If the cell phone is off or out of range, the 15 seconds of ring time isn't reached and the caller gets connected to the cell phone's voicemail instead of the Asterisk voicemail like I want. Having the # to connect option would fix this problem.
I was asking about this about a week ago. What I found out is that the # option is in the ZAP channel not the dial() command. Ie. Dial(Zap/g1c/5551212) It does work as advertised, but in my mind has some limitations. It sits silently waiting for user input. There is a bug filled, but I don't know the status. In my mind you should be able to play a file. (Press # to accept this call) Others have suggested that it be moved to the dial() command so that it could be used across all channels. I don't know if this is possible. Hope this helps... ~chris Message: 9 Date: Thu, 21 Oct 2004 12:47:15 -0500 From: "Matthew Simpson" <matthew@txlink.net> Subject: [Asterisk-Users] answer on # key? To: <asterisk-users@lists.digium.com> Message-ID: <03c901c4b796$0168cf80$cd00a8c0@KARI> Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original I thought I read somewhere on the Wiki that one could give Dial() an argument that would first dial the extension, but not bridge the connection until the called party hit the "#" key. It must have been during one of those late night coding sessions because now I can't find anything to do with that other than options to allow hangup of the call by hitting "*". Does such an option exist? If not, is anyone using a Macro to do that? I have a system that attempts to do a Dial out to a cell phone number with a 15 second timer as a find me type of application. If the cell phone is off or out of range, the 15 seconds of ring time isn't reached and the caller gets connected to the cell phone's voicemail instead of the Asterisk voicemail like I want. Having the # to connect option would fix this problem.
What about using the S(x) command on Dial...after x seconds, when your cellphone's voicemail kicks in, hang up. I'm not sure I understand why it makes a difference to you whether you hit # or *...using H is pretty simple, IMO. ________________________>[Asterisk-Users] answer on # key?From: "Matthew Simpson" <matthew@txlink.net>>To: <asterisk-users@lists.digium.com> > >I thought I read somewhere on the Wiki that one could give Dial() an >argument that would first dial the extension, but not bridge the connection >until the called party hit the "#" key. It must have been during one of >those late night coding sessions because now I can't find anything to do >with that other than options to allow hangup of the call by hitting "*". > >Does such an option exist? > >If not, is anyone using a Macro to do that? > >I have a system that attempts to do a Dial out to a cell phone number with a >15 second timer as a find me type of application. If the cell phone is off >or out of range, the 15 seconds of ring time isn't reached and the caller >gets connected to the cell phone's voicemail instead of the Asterisk >voicemail like I want. Having the # to connect option would fix this >problem.
I did this for a click to talk prototype application, hope this helps. There is no error checking in this "prototype" aka it will time out indefinitally on the menu until they hangup etc. It was just a proof of concept. Temp.agi called text2wave from festival and generated a wav file. Badly named, but this was hacked together in an afternoon. In macro-clicktotalk Read seems to require you play a file before input (or at least that's how I was able to get it working) hence the playing of beep, ideally all these messages would be recorded and not using TTS there for the message "you have a CTT call" would just be played in the read. Some of the options in the dial may not be required, I was playing around with this code somewhat trying to get it to transfer so it woudn't use up to zap channels while the call was active. The ideal solution is just to transfer, however then you have no ability to control both sides of the call. I wrote my own agi because calling Festival() was finicky and only seemed to work for me via the pri/zap and not sip?? This agi will work on unpatched festival as well. If you have any further questions, or want the code for temp.agi (should be named tts.agi) feel free to contact me off list if you choose to. Donny -- code -- [clicktotalk] exten=> s,1,Answer exten=> s,2,Wait(2) exten=> s,3,AGI,temp.agi|This is a call from the C T T service of <where I work> exten=> s,4,AGI,temp.agi|To accept the call press 1 to refuse the call press 2. exten=> 1,1,AGI,temp.agi|Please wait while we make contact with an agent exten=> 1,2,AGI,temp.agi|You may expirence a short wait and a peroid of silence. Please remain on the line. exten=> 1,3,Goto(clicktotalk-agent,s,1) exten=> 2,1,AGI,temp.agi|Since you have indicated you do not wish to accept this call exten=> 2,2,AGI,temp.agi|your request will be canceled. exten=> 2,3,Hangup exten=> t,1,Goto(clicktotalk,s,1) [clicktotalk-agent] exten=> s,1,Dial(Zap/g1/82979022,30,tTmgM(clicktotalk)) exten=> s,2,Hangup [macro-clicktotalk] exten=> s,1,AGI,temp.agi|You have a CTT Call. Please press any key. exten=> s,2,Read(XInput,beep,1) exten=> s,3,Gotoif(${XInput}?10:20) exten=> s,10,Goto(Z,1) exten=> s,20,Goto(s,1) exten=> t,1,Goto(s,1) exten=> Z,1,AGI,temp.agi|The refrence number is 1 1 1 1. exten=> Z,2,AGI,temp.agi|We are now connecting you to the client. exten=> Z,3,Wait(5) -----Original Message----- From: Matthew Simpson [mailto:matthew@txlink.net] Sent: Thursday, October 21, 2004 1:47 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] answer on # key? I thought I read somewhere on the Wiki that one could give Dial() an argument that would first dial the extension, but not bridge the connection until the called party hit the "#" key. It must have been during one of those late night coding sessions because now I can't find anything to do with that other than options to allow hangup of the call by hitting "*". Does such an option exist? If not, is anyone using a Macro to do that? I have a system that attempts to do a Dial out to a cell phone number with a 15 second timer as a find me type of application. If the cell phone is off or out of range, the 15 seconds of ring time isn't reached and the caller gets connected to the cell phone's voicemail instead of the Asterisk voicemail like I want. Having the # to connect option would fix this problem. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
See my post using a macro, it will loop a message waiting for the other end to press a dtmf to accept the call, you can optionally also play more information (in my case it was a ticket number so the agent could pull up additional information) The only limitation for me was there is no ability to play a message when both parties are connected since dial is a blocking call. It would be ideal if there were a flag to make Dial() non blocking, and then when that flag is used, we should be able to call another blocking function eg WaitForCall such that when we are finished running the context the parties wont be disconnected until they hang up. Say for example the non blocking dial flag is B (maybe that's used for something else, I'm just being hypothetical) We would do [context] exten=> 1,1,Dial(Zap/g1/1111,30,B) exten=> 1,2,Wait(2) exten=> 1,3,BackGround(youarenowconnected) exten=> 1,4,AGI,some-agi-to-log-the-sucessful-connection.agi exten=> 1,5,WaitForCall exten=> 1,6,Hangup This would be ideal. What does everyone think of that. Donny -----Original Message----- From: Christopher Jacob [mailto:chris@jacob-solutions.com] Sent: Thursday, October 21, 2004 2:25 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] RE: answer on # key? I was asking about this about a week ago. What I found out is that the # option is in the ZAP channel not the dial() command. Ie. Dial(Zap/g1c/5551212) It does work as advertised, but in my mind has some limitations. It sits silently waiting for user input. There is a bug filled, but I don't know the status. In my mind you should be able to play a file. (Press # to accept this call) Others have suggested that it be moved to the dial() command so that it could be used across all channels. I don't know if this is possible. Hope this helps... ~chris Message: 9 Date: Thu, 21 Oct 2004 12:47:15 -0500 From: "Matthew Simpson" <matthew@txlink.net> Subject: [Asterisk-Users] answer on # key? To: <asterisk-users@lists.digium.com> Message-ID: <03c901c4b796$0168cf80$cd00a8c0@KARI> Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original I thought I read somewhere on the Wiki that one could give Dial() an argument that would first dial the extension, but not bridge the connection until the called party hit the "#" key. It must have been during one of those late night coding sessions because now I can't find anything to do with that other than options to allow hangup of the call by hitting "*". Does such an option exist? If not, is anyone using a Macro to do that? I have a system that attempts to do a Dial out to a cell phone number with a 15 second timer as a find me type of application. If the cell phone is off or out of range, the 15 seconds of ring time isn't reached and the caller gets connected to the cell phone's voicemail instead of the Asterisk voicemail like I want. Having the # to connect option would fix this problem. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Matthew: That feature is referred to as Answer Supervision, and the dial flag is "c"...beware however, it only works when the outbound call is made via a Zap channel. I have the exact same need as you, however the call is made using either sip or iax, and currently answer supervision isn't an option. I posted to a bug report asking about making this feature channel type independant, but I don't think it's going anywhere yet. Marty ________________________________ From: asterisk-users-bounces@lists.digium.com on behalf of Matthew Simpson Sent: Thu 10/21/2004 11:47 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] answer on # key? I thought I read somewhere on the Wiki that one could give Dial() an argument that would first dial the extension, but not bridge the connection until the called party hit the "#" key. It must have been during one of those late night coding sessions because now I can't find anything to do with that other than options to allow hangup of the call by hitting "*". Does such an option exist? If not, is anyone using a Macro to do that? I have a system that attempts to do a Dial out to a cell phone number with a 15 second timer as a find me type of application. If the cell phone is off or out of range, the 15 seconds of ring time isn't reached and the caller gets connected to the cell phone's voicemail instead of the Asterisk voicemail like I want. Having the # to connect option would fix this problem. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 4766 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20041021/5e83deea/attachment.bin
Did you see the code I posted a day or two ago, it should do exactly what you want by running a macro before the calls are joined. However I tested it on Zap so I have no idea if it works between other mediums, please check it out and let me know. If you missed the posting, email me personally and I will hook you up with the code. Donny _____ From: Marty Mastera [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Marty Mastera Sent: Thursday, October 21, 2004 5:41 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] answer on # key? Matthew: That feature is referred to as Answer Supervision, and the dial flag is "c"...beware however, it only works when the outbound call is made via a Zap channel. I have the exact same need as you, however the call is made using either sip or iax, and currently answer supervision isn't an option. I posted to a bug report asking about making this feature channel type independant, but I don't think it's going anywhere yet. Marty _____ From: asterisk-users-bounces@lists.digium.com on behalf of Matthew Simpson Sent: Thu 10/21/2004 11:47 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] answer on # key? I thought I read somewhere on the Wiki that one could give Dial() an argument that would first dial the extension, but not bridge the connection until the called party hit the "#" key. It must have been during one of those late night coding sessions because now I can't find anything to do with that other than options to allow hangup of the call by hitting "*". Does such an option exist? If not, is anyone using a Macro to do that? I have a system that attempts to do a Dial out to a cell phone number with a 15 second timer as a find me type of application. If the cell phone is off or out of range, the 15 seconds of ring time isn't reached and the caller gets connected to the cell phone's voicemail instead of the Asterisk voicemail like I want. Having the # to connect option would fix this problem. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041022/d94746ae/attachment.htm