Re: [asterisk-users] Special functionality for Secretary/Boss

2014-09-04 Thread jg
Why can't you continue within the extension and dispatch whether the call failed or terminated? 
Simply make a second call.


jg

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Special functionality for Secretary/Boss

2014-09-04 Thread Kevin Larsen
asterisk-users-boun...@lists.digium.com wrote on 09/04/2014 11:57:40 AM:
  We are currently migrating from a Nortel pbx to Asterisk and we 
 have been able to convert most of the functions that people are used to 
 but there is one I have no clear idea how to do.  The scenario is:
 
  Boss calls secretary from outside the office to get connected to 
 another outside destination.  The secretary dials the destination and 
 then trasfers call to the boss.  When boss finishes with that person 
 they want to send the call back to the secretary in order to make 
 another connection or simply to talk to the secretary.
 
  The first part is not a problem, but after the boss finishes his 
 call how can we send the call back to the secretary?  I was thinking of 
 using a conference room but how would the secretary know when the boss 
 has finished?  Anyone know how to handle this scenario?

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 #.

For example (using a local US dialstring, change to fit your needs):

; This is a normal external call.
exten = _NXXNXXX,1,Dial(SIP/your_external_trunk/${EXTEN})
  same = n,Hangup()

; This is a call that should be transfered back to the secretary's 
extension when external call is finished
exten = _#NXXNXXX,1,NoOp(Special Dial for Boss/Secretary Transfer)
  same = n,Dial(SIP/your_external_trunk/${EXTEN:1},,g)
; First call has ended, now we go back to the secretary)
  same = n,Dial(SIP/1234)
  same = n,Hangup()

That's at least where I would start with my testing and then develop the 
solution from there.-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Special functionality for Secretary/Boss

2014-09-04 Thread Eric Wieling
Sounds like you are running FreePBX.

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mitul Limbani
Sent: Thursday, September 04, 2014 6:34 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Special functionality for Secretary/Boss


Kevin,

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.

Mitul
On 04-Sep-2014 11:44 PM, Kevin Larsen 
kevin.lar...@pioneerballoon.commailto:kevin.lar...@pioneerballoon.com wrote:
asterisk-users-boun...@lists.digium.commailto:asterisk-users-boun...@lists.digium.com
 wrote on 09/04/2014 11:57:40 AM:
  We are currently migrating from a Nortel pbx to Asterisk and we
 have been able to convert most of the functions that people are used to
 but there is one I have no clear idea how to do.  The scenario is:

  Boss calls secretary from outside the office to get connected to
 another outside destination.  The secretary dials the destination and
 then trasfers call to the boss.  When boss finishes with that person
 they want to send the call back to the secretary in order to make
 another connection or simply to talk to the secretary.

  The first part is not a problem, but after the boss finishes his
 call how can we send the call back to the secretary?  I was thinking of
 using a conference room but how would the secretary know when the boss
 has finished?  Anyone know how to handle this scenario?

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 #.

For example (using a local US dialstring, change to fit your needs):

; This is a normal external call.
exten = _NXXNXXX,1,Dial(SIP/your_external_trunk/${EXTEN})
  same = n,Hangup()

; This is a call that should be transfered back to the secretary's extension 
when external call is finished
exten = _#NXXNXXX,1,NoOp(Special Dial for Boss/Secretary Transfer)
  same = n,Dial(SIP/your_external_trunk/${EXTEN:1},,g)
; First call has ended, now we go back to the secretary)
  same = n,Dial(SIP/1234)
  same = n,Hangup()

That's at least where I would start with my testing and then develop the 
solution from there.
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Special functionality for Secretary/Boss

2014-09-04 Thread Mitul Limbani
Kevin,

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.

Mitul
On 04-Sep-2014 11:44 PM, Kevin Larsen kevin.lar...@pioneerballoon.com
wrote:

 asterisk-users-boun...@lists.digium.com wrote on 09/04/2014 11:57:40 AM:
   We are currently migrating from a Nortel pbx to Asterisk and we
  have been able to convert most of the functions that people are used to
  but there is one I have no clear idea how to do.  The scenario is:
 
   Boss calls secretary from outside the office to get connected to
  another outside destination.  The secretary dials the destination and
  then trasfers call to the boss.  When boss finishes with that person
  they want to send the call back to the secretary in order to make
  another connection or simply to talk to the secretary.
 
   The first part is not a problem, but after the boss finishes his
  call how can we send the call back to the secretary?  I was thinking of
  using a conference room but how would the secretary know when the boss
  has finished?  Anyone know how to handle this scenario?

 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 #.

 For example (using a local US dialstring, change to fit your needs):

 ; This is a normal external call.
 exten = _NXXNXXX,1,Dial(SIP/your_external_trunk/${EXTEN})
   same = n,Hangup()

 ; This is a call that should be transfered back to the secretary's
 extension when external call is finished
 exten = _#NXXNXXX,1,NoOp(Special Dial for Boss/Secretary Transfer)
   same = n,Dial(SIP/your_external_trunk/${EXTEN:1},,g)
 ; First call has ended, now we go back to the secretary)
   same = n,Dial(SIP/1234)
   same = n,Hangup()

 That's at least where I would start with my testing and then develop the
 solution from there.
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users