Greetings all, I've been working on having Asterisk put a call through to two different numbers, and give the call to the first one that acknowledges by pressing the 1 key. I found an example on the wiki, but I can't get it working. When I answer the call I hear the message telling me to press 1 to connect, and as soon as the message is done, the call is connected. In other words, it is not waiting for me to press a key. I'm sure this is a forehead slapper, but I just can't see it...can anyone help? Here's the relevant portion of the dialplan, It executes the NoOp(Waiting) and then the macro seems to immediately exit and the call is connected. [default] exten => _9999XXXXXXXXXX,1,Dial(SIP/provider/${EXTEN:4},40,M(screen)) exten => _9999XXXXXXXXXX,2,Hangup [macro-screen] exten => s,1,Wait(1) exten => s,2,Set(TIMEOUT(digit)=5) exten => s,3,Set(TIMEOUT(response)=10) exten => s,4,Background(press-1) exten => s,5,NoOp(Waiting) exten => 1,1,NoOp(Caller accepted) exten => i,1,NoOp(Invalid response) exten => i,2,Set(MACRO_RESULT=CONTINUE) exten => t,1,NoOp(Timeout) exten => t,2,Set(MACRO_RESULT=CONTINUE) [find-eric] exten => s,1,Playback(pls-wait-connect-call) exten => s,n,Dial(LOCAL/99996135551212&LOCAL/99996135551313,40,m) (I have replaced the phone numbers with bogus ones). Thanks, Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061018/816defb9/attachment.htm
I have a backup of a working version on my server some where. When i find it I will post it. Dovid ----- Original Message ----- From: Eric Jacksch To: asterisk-users@lists.digium.com Sent: Wednesday, October 18, 2006 4:20 PM Subject: [asterisk-users] Findme problem Greetings all, I've been working on having Asterisk put a call through to two different numbers, and give the call to the first one that acknowledges by pressing the 1 key. I found an example on the wiki, but I can't get it working. When I answer the call I hear the message telling me to press 1 to connect, and as soon as the message is done, the call is connected. In other words, it is not waiting for me to press a key. I'm sure this is a forehead slapper, but I just can't see it...can anyone help? Here's the relevant portion of the dialplan, It executes the NoOp(Waiting) and then the macro seems to immediately exit and the call is connected. [default] exten => _9999XXXXXXXXXX,1,Dial(SIP/provider/${EXTEN:4},40,M(screen)) exten => _9999XXXXXXXXXX,2,Hangup [macro-screen] exten => s,1,Wait(1) exten => s,2,Set(TIMEOUT(digit)=5) exten => s,3,Set(TIMEOUT(response)=10) exten => s,4,Background(press-1) exten => s,5,NoOp(Waiting) exten => 1,1,NoOp(Caller accepted) exten => i,1,NoOp(Invalid response) exten => i,2,Set(MACRO_RESULT=CONTINUE) exten => t,1,NoOp(Timeout) exten => t,2,Set(MACRO_RESULT=CONTINUE) [find-eric] exten => s,1,Playback(pls-wait-connect-call) exten => s,n,Dial(LOCAL/99996135551212&LOCAL/99996135551313,40,m) (I have replaced the phone numbers with bogus ones). Thanks, Eric ------------------------------------------------------------------------------ _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list 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/20061019/e786e06b/attachment.htm
Ooops. I read the email wrong. The macro I created called one number. If the person didnt accept the call or if they didnt pick up then it tried the second person. Let me know if you still want it. Dovid -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061019/33495447/attachment.htm
Yes Please still post that one. I would like to see the code. Best regards, Al Bochter Bochter Services Toll Free: 866-638-1254 EXT: 250 Free World DialUp: 780217 EXT: 250 Cellular: 206-203-5801 http://www.BochterServices.com/?t=Email - - - - we BUY and sell Coins, Silver, Sterling Silver and Gold http://www.bochterservices.com/?j=gold&t=email - - - - For new and used security items http://www.bochterservices.com/?j=store&t=email_security - - - - 24kt GOLD PLATING http://www.bochterservices.com/?j=plating&t=email - - - - Dovid B wrote:> Ooops. I read the email wrong. The macro I created called one number. > If the person didnt accept the call or if they didnt pick up then it > tried the second person. Let me know if you still want it. > > Dovid > >------------------------------------------------------------------------ > >_______________________________________________ >--Bandwidth and Colocation provided by Easynews.com -- > >asterisk-users mailing list >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >------------------------------------------------------------------------ > > > >---------------------------------------------------- >Inbound (clean). Database: 0642-3, 10/19/2006 - 10/19/2006 10:44:05 PM > > > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061021/63ccbda2/attachment.htm
Something was broken with the script on the Wiki... this worked for me, however I have not touched it as I had more interesting projects on the table. I do know when you reject the call it will send the caller to your voicemail (or whatever else you wish to define). [macro-screen] exten => s,1,Playback(silence/1) exten => s,2,Playback(screen-from) exten => s,3,SayDigits(${ARG1}) exten => s,4,Read(ACCEPT|screen-accept|1||1) exten => s,5,GotoIf($[${ACCEPT} = 1 ] ?7:6) exten => s,6,SetVar(MACRO_RESULT=CONTINUE) exten => s,7,NoOp On 10/18/06, Eric Jacksch <eric.jacksch@tenebris.ca> wrote:> > Greetings all, > > I've been working on having Asterisk put a call through to two different > numbers, and give the call to the first one that acknowledges by pressing > the 1 key. I found an example on the wiki, but I can't get it working. > > When I answer the call I hear the message telling me to press 1 to > connect, and as soon as the message is done, the call is connected. In > other words, it is not waiting for me to press a key. > > I'm sure this is a forehead slapper, but I just can't see it...can anyone > help? Here's the relevant portion of the dialplan, It executes the > NoOp(Waiting) and then the macro seems to immediately exit and the call is > connected. > > [default] > exten => _9999XXXXXXXXXX,1,Dial(SIP/provider/${EXTEN:4},40,M(screen)) > exten => _9999XXXXXXXXXX,2,Hangup > > [macro-screen] > exten => s,1,Wait(1) > exten => s,2,Set(TIMEOUT(digit)=5) > exten => s,3,Set(TIMEOUT(response)=10) > exten => s,4,Background(press-1) > exten => s,5,NoOp(Waiting) > > exten => 1,1,NoOp(Caller accepted) > > exten => i,1,NoOp(Invalid response) > exten => i,2,Set(MACRO_RESULT=CONTINUE) > > exten => t,1,NoOp(Timeout) > exten => t,2,Set(MACRO_RESULT=CONTINUE) > > [find-eric] > exten => s,1,Playback(pls-wait-connect-call) > exten => s,n,Dial(LOCAL/99996135551212&LOCAL/99996135551313,40,m) > > (I have replaced the phone numbers with bogus ones). > > Thanks, > Eric > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > 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/20061022/33661b6e/attachment.htm