VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
andrew at convergedgro... Guest
|
Posted: Wed Jul 08, 2015 1:14 pm Post subject: [asterisk-users] Call Return |
|
|
Hi Guys
I am trying to write a macro for a call return so for example
Anyone in the company transfers a call to another extension and it is not answered etc it must return to the person who did the transfer
I have got it working but if the call originates externally for example someone calls in to the switchboard and they transfer it then it tries to return to the outside caller.
As doing a return to ${EXTEN}) wont work as that is the external party.
How do I declare a variable from the extension dialed?
So for example when 200 dials 201 I can capture the calling party(in this case 200) and declare it as a variable? |
|
Back to top |
|
|
asterisk_list at earth... Guest
|
Posted: Thu Jul 09, 2015 3:04 am Post subject: [asterisk-users] Call Return |
|
|
On Wednesday 08 Jul 2015, Andrew Colin wrote:
Quote: | Hi Guys
I am trying to write a macro for a call return so for example
Anyone in the company transfers a call to another extension and it is not
answered etc it must return to the person who did the transfer
I have got it working but if the call originates externally for example
someone calls in to the switchboard and they transfer it then it tries to
return to the outside caller.
As doing a return to ${EXTEN}) wont work as that is the external party.
How do I declare a variable from the extension dialed?
So for example when 200 dials 201 I can capture the calling party(in this
case 200) and declare it as a variable?
|
You need to set a variable quite early in your extension logic, using a Set
command;
Set(dialled=${EXTEN})
and then later you can retrieve it as ${dialled} . This variable will persist
across context jumps, even although ${EXTEN} may have changed.
--
AJS
Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
andrew at convergedgro... Guest
|
Posted: Thu Jul 09, 2015 9:06 am Post subject: [asterisk-users] Call Return |
|
|
Hi Aj
Can you perhaps show me an example as to how you would do it as I have tried
setting it very early but still doesn’t work
Kind Regards
Andrew Colin
Converged Telecoms (Pty) Ltd.
Licensed Telecoms Operator : (0258/IECS/JAN/09) (0258/IECNS/JAN/09)
Switchboard: +27 (0)10 591 4600
Email: andrew@convergedgroup.net
Web: http://www.convergedgroup.net
75 Witkoppen Road, Northriding, Johannesburg, 2169
P O Box 7246, Weltevredenpark, 1715
This communication is confidential and intended solely for the addressee(s).
Any unauthorized review, use, disclosure or distribution is prohibited. If
you believe this message has been sent to you in error, please notify the
sender by replying to this transmission and delete the message without
disclosing it. Thank you.E-mail including attachments is susceptible to data
corruption, interception, unauthorized amendment, tampering and viruses, and
we only send and receive emails on the basis that we are not liable for any
such corruption, interception, amendment, tampering or viruses or any
consequences thereof.
-----Original Message-----
From: A J Stiles [mailto:asterisk_list@earthshod.co.uk]
Sent: Thursday, July 9, 2015 10:03 AM
To: Andrew Colin; Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Call Return
On Wednesday 08 Jul 2015, Andrew Colin wrote:
Quote: | Hi Guys
I am trying to write a macro for a call return so for example
Anyone in the company transfers a call to another extension and it is
not answered etc it must return to the person who did the transfer
I have got it working but if the call originates externally for
example someone calls in to the switchboard and they transfer it then
it tries to return to the outside caller.
As doing a return to ${EXTEN}) wont work as that is the external party.
How do I declare a variable from the extension dialed?
So for example when 200 dials 201 I can capture the calling party(in
this case 200) and declare it as a variable?
|
You need to set a variable quite early in your extension logic, using a Set
command;
Set(dialled=${EXTEN})
and then later you can retrieve it as ${dialled} . This variable will
persist across context jumps, even although ${EXTEN} may have changed.
--
AJS
Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|