<tt><font size=2>asterisk-users-bounces@lists.digium.com 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 size=2>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 size=2>For example (using a local US dialstring, change to
fit your needs):</font></tt>
<br>
<br><tt><font size=2>; This is a normal external call.</font></tt>
<br><tt><font size=2>exten => _NXXNXXX,1,Dial(SIP/your_external_trunk/${EXTEN})</font></tt>
<br><tt><font size=2>  same => n,Hangup()</font></tt>
<br>
<br><tt><font size=2>; This is a call that should be transfered back to
the secretary's extension when external call is finished</font></tt>
<br><tt><font size=2>exten => _#NXXNXXX,1,NoOp(Special Dial for Boss/Secretary
Transfer)</font></tt>
<br><tt><font size=2>  same => n,Dial(SIP/your_external_trunk/${EXTEN:1},,g)</font></tt>
<br><tt><font size=2>; First call has ended, now we go back to the secretary)</font></tt>
<br><tt><font size=2>  same => n,Dial(SIP/1234)</font></tt>
<br><tt><font size=2>  same => n,Hangup()</font></tt>
<br>
<br><tt><font size=2>That's at least where I would start with my testing
and then develop the solution from there.</font></tt>