Did you looked at the Link event? it contains the numbers you need and is sent to the manager just before the answer (when the remote party picups)
Event: Link Privilege: call,all Channel1: SIP/101-0a86 Channel2: SIP/102-bc8d Uniqueid1: 1136392698.4 Uniqueid2: 1136392698.5 CallerID1: 101 CallerID2: 102 On Wed, 4 Jan 2006 10:29:47 -0600, Moises Silva wrote > Or you can use MAGI patch, to execute agi stuff from the manager :) > > On 1/4/06, Alexander Lopez <[EMAIL PROTECTED]> wrote: > > You can execute an AGI script BEFORE you answer the call, it should only delay the call a ms or so. > > > > In this AGI you can either save the values to a DB or send them elsewhere. > > > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf Of > > > amaury BOSSE > > > Sent: Wednesday, January 04, 2006 3:55 AM > > > To: [email protected] > > > Subject: [Asterisk-Dev] How to recover caller and called > > > numbers withAsterisk Manager > > > > > > I am working on an application based on Asterisk Manager and > > > I have to recover caller number and called number. > > > > > > I have already looked at Asterisk Events but no one seems to > > > be helpful for my application. > > > > > > I need to get caller and calling number as soon as the > > > communication is started (before call answer) but cdr only > > > log calls after their end. > > > > > > Is there another way to recover these numbers and to > > > associate them with channels? > > > > > > Amaury BOSSЙ > > > > > > > > > _______________________________________________ > > > --Bandwidth and Colocation provided by Easynews.com -- > > > > > > Asterisk-Dev mailing list > > > To UNSUBSCRIBE or update options visit: > > > http://lists.digium.com/mailman/listinfo/asterisk-dev > > > > > _______________________________________________ > > --Bandwidth and Colocation provided by Easynews.com -- > > > > Asterisk-Dev mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-dev > > > > -- > "Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org" > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Dev mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-dev _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
