<p dir="ltr">Kevin,</p>
<p dir="ltr">With your dialplan with g option on external trunk, if the call finishes the boss's leg of call also gets disconnected. So the next instruction would make a call to secratary, however with no one on other end.</p>

<p dir="ltr">Mitul </p>
<div class="gmail_quote">On 04-Sep-2014 11:44 PM, "Kevin Larsen" <<a href="mailto:kevin.larsen@pioneerballoon.com">kevin.larsen@pioneerballoon.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<tt><font><a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> wrote on 09/04/2014
11:57:40 AM:<br>
>      We are currently migrating from a Nortel pbx to
Asterisk and we <br>
> have been able to convert most of the functions that people are used
to <br>
> but there is one I have no clear idea how to do.  The scenario
is:<br>
> <br>
>      Boss calls secretary from outside the office to
get connected to <br>
> another outside destination.  The secretary dials the destination
and <br>
> then trasfers call to the boss.  When boss finishes with that
person <br>
> they want to send the call back to the secretary in order to make
<br>
> another connection or simply to talk to the secretary.<br>
> <br>
>      The first part is not a problem, but after the
boss finishes his <br>
> call how can we send the call back to the secretary?  I was thinking
of <br>
> using a conference room but how would the secretary know when the
boss <br>
> has finished?  Anyone know how to handle this scenario?<br>
</font></tt>
<br><tt><font>I haven't tested this, but my initial thought would
be to create a special context or extension that the secretary could route
through when doing the call transfer. The Dial application could be called
with the 'g' option to continue the dialplan at the next priority when
the call hangs up. Something like a normal call transfer would just dial
the number as normal, but for the special transfer, you could prepend the
dialed number with a #.</font></tt>
<br>
<br><tt><font>For example (using a local US dialstring, change to
fit your needs):</font></tt>
<br>
<br><tt><font>; This is a normal external call.</font></tt>
<br><tt><font>exten => _NXXNXXX,1,Dial(SIP/your_external_trunk/${EXTEN})</font></tt>
<br><tt><font>  same => n,Hangup()</font></tt>
<br>
<br><tt><font>; This is a call that should be transfered back to
the secretary's extension when external call is finished</font></tt>
<br><tt><font>exten => _#NXXNXXX,1,NoOp(Special Dial for Boss/Secretary
Transfer)</font></tt>
<br><tt><font>  same => n,Dial(SIP/your_external_trunk/${EXTEN:1},,g)</font></tt>
<br><tt><font>; First call has ended, now we go back to the secretary)</font></tt>
<br><tt><font>  same => n,Dial(SIP/1234)</font></tt>
<br><tt><font>  same => n,Hangup()</font></tt>
<br>
<br><tt><font>That's at least where I would start with my testing
and then develop the solution from there.</font></tt><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" 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" 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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div>