<div dir="ltr"><div><div>I think a simpler way to do this would be to define an member in your queues.conf that points to a local channel that calls the remote users cell phone.<br><br></div>You can use the M option in your dial to run a macro to prompt the user to accept the call.<br><br></div>Here's my connector macro, I call it with:<br><br>Dial(LOCAL/${CELLPHONE}@intern,60,M(connector))<br><div><br>[macro-connector]<br>exten => s,1,NoOP()<br> same =>   n(TOP),Read(RESPONSE,beep&accept-reject,1,s,3,5); 3 tries with 5 seconds to respond each time<br> same =>   n,GotoIf($[${LEN(${RESPONSE})} = 0]?REJECT,1)        ;If we didn't get a response try and fail gracefully<br> same =>   n,GotoIf($["${RESPONSE}" = "1"]?ACCEPT,1)            ;Take the call<br> same =>   n,GotoIf($["${RESPONSE}" = "2"]?REJECT,1)            ;Reject the Call<br> same =>   n,Goto(s,TOP)<br><br>exten => ACCEPT,1,NoOP()                                        ;Just connect the caller and callee<br> same =>   n,Playback(pls-wait-connect-call)<br> same =>   n,MacroExit()                                        ;Return<br><br>exten => REJECT,1,NoOP()<br> same =>   n,Playback(beep&cancelled&goodbye)<br> same =>   n,Set(MACRO_RESULT=BUSY)                        ;Reject the call<br> same =>   n,Hangup()<br> same =>   n,MacroExit()                                        ;Return<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 30, 2016 at 6:08 AM, nik600 <span dir="ltr"><<a href="mailto:nik600@gmail.com" target="_blank">nik600@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear all<div><br></div><div>i'm using an "old"  Asterisk 1.6.2.9-2+squeeze12, and want to know if is possible to configure a scenario like this:</div><div><br></div><div>1) receive a call and put it on-hold in a queue (OK)</div><div>2) monitor the queue and trigger an outbound call to a remote number using AMI, setting the channel of the on-hold on a specific var named channel2Link (OK)</div><div>3) when the remote number answer, trigger an AGI/diaplan script that ask to accept the call pressing a specific key (OK)</div><div>4) if right key is pressed redirect the current call to the channel2Link, connecting the call in queue with the remote number (?)</div><div><br></div><div>Step 1,2,3 works properly but i'm not able to link the two channels, even using redirect,goto or pickupChan.</div><div><br></div><div>Any idea or help will be appreciated!</div><div><br></div><div>Thanks<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature">/*************/<br>nik600<br><a href="http://www.kumbe.it" target="_blank">http://www.kumbe.it</a></div>
</font></span></div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.<br>---Heinlein</div>
</div>