[Asterisk-Users] RE: answer on # key?

Donny Kavanagh kavando at trn.ca
Thu Oct 21 11:43:50 MST 2004


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 at jacob-solutions.com] 
Sent: Thursday, October 21, 2004 2:25 PM
To: asterisk-users at 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 at txlink.net>
Subject: [Asterisk-Users] answer on # key?
To: <asterisk-users at lists.digium.com>
Message-ID: <03c901c4b796$0168cf80$cd00a8c0 at 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 at 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




More information about the asterisk-users mailing list