[asterisk-users] retrieve last number dialled

2007-11-28 Thread Eric Smith
What is the easiest (simplest) way to do this?

-- 
- Eric Smith

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] retrieve last number dialled

2007-11-28 Thread Patrick
On Wed, 2007-11-28 at 11:07 +0100, Eric Smith wrote:
 What is the easiest (simplest) way to do this?

Store the dialed number in the Asterisk DB and setup an extension to
retrieve it from the DB and dial it.

Regards,
Patrick


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] retrieve last number dialled

2007-11-28 Thread Benjamin Jacob
simultaneous calls??.. will this correctly ensure the last call 
retrieved from such DB was indeed the last call received?


Patrick wrote:

On Wed, 2007-11-28 at 11:07 +0100, Eric Smith wrote:
  

What is the easiest (simplest) way to do this?



Store the dialed number in the Asterisk DB and setup an extension to
retrieve it from the DB and dial it.

Regards,
Patrick


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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

  



EMAIL DISCLAIMER : This email and any files transmitted with it are 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. Any unauthorised distribution or copying is strictly 
prohibited. If you receive this transmission in error, please notify the sender 
by reply email and then destroy the message. Opinions, conclusions and other 
information in this message that do not relate to official business of Mascon 
shall be understood to be neither given nor endorsed by Mascon. Any information 
contained in this email, when addressed to Mascon clients is subject to the 
terms and conditions in governing client contract.

Whilst Mascon takes steps to prevent the transmission of viruses via e-mail, we 
can not guarantee that any email or attachment is free from computer viruses 
and you are strongly advised to undertake your own anti-virus precautions. 
Mascon grants no warranties regarding performance, use or quality of any e-mail 
or attachment and undertakes no liability for loss or damage, howsoever caused. 



___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] retrieve last number dialled

2007-11-28 Thread Yehavi Bourvine +972-8-9489444
 What is the easiest (simplest) way to do this?

I do it in two steps: Save the dialled number in Asterisk DB and have a
special extension (*41) which redials it.

Here is the abstract from the dialplan where I save it:

Set(_To=${EXTEN});  // Save the original extension dialled.
Set(_From=${CALLERID(num)}); // Save the caller.
Set(DB(${To}/LastCaller)=${From});
Set(DB(${From}/LastCalled)=${To});

and then the special extension:
*41 = {
Set(tmp=${DB(${CALLERID(num)}/LastCalled)});
SayDigits(${tmp});
// Save it so when the other side hangs it will see it and dial us.
Dial(SIP/${tmp});
};


  Regards, __Yehavi:

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] retrieve last number dialled

2007-11-28 Thread Patrick

On Wed, 2007-11-28 at 17:08 +0530, Benjamin Jacob wrote:
 simultaneous calls??.. will this correctly ensure the last call 
 retrieved from such DB was indeed the last call received?

Look at the subject. He said *dialled* number, not received :)

Regards,
Patrick



___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] retrieve last number dialled

2007-11-28 Thread Benjamin Jacob
duhhh !!

Patrick wrote:

On Wed, 2007-11-28 at 17:08 +0530, Benjamin Jacob wrote:
  

simultaneous calls??.. will this correctly ensure the last call 
retrieved from such DB was indeed the last call received?



Look at the subject. He said *dialled* number, not received :)

Regards,
Patrick



___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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

  



EMAIL DISCLAIMER : This email and any files transmitted with it are 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. Any unauthorised distribution or copying is strictly 
prohibited. If you receive this transmission in error, please notify the sender 
by reply email and then destroy the message. Opinions, conclusions and other 
information in this message that do not relate to official business of Mascon 
shall be understood to be neither given nor endorsed by Mascon. Any information 
contained in this email, when addressed to Mascon clients is subject to the 
terms and conditions in governing client contract.

Whilst Mascon takes steps to prevent the transmission of viruses via e-mail, we 
can not guarantee that any email or attachment is free from computer viruses 
and you are strongly advised to undertake your own anti-virus precautions. 
Mascon grants no warranties regarding performance, use or quality of any e-mail 
or attachment and undertakes no liability for loss or damage, howsoever caused. 



___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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