What are you using for AGI
The correct command to send
Would be:
EXEC Set(${CALLERID(num)}=0005551212)
> -----Original Message-----
> From: asterisk-users-bounces@lists.digium.com
> [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of
> Rehan AllahWala
> Sent: Thursday, December 29, 2005 7:01 PM
> To: C F
> Cc: asterisk-users@lists.digium.com
> Subject: Re: [Asterisk-Users] CALLERIDNUM
>
> Do u know how to instert it in the agi ?
>
> $AGI->exec("SetCIDNum(8504338555)");
>
>
> but it didn't work
>
>
>
> > www.voip-info.org/wiki-asterisk
> > or you could try the CLI show application Set, and show function
> > CALLERID
> >
> >
> > On 12/28/05, Rehan Ahmed <rehan33@gmail.com> wrote:
> > > Hi
> > >
> > > Can you send any example of this command like
> > >
> > > Set(CALLERID(num)=value)
> > >
> > > Thanks
> > >
> > > Rehan
> > >
> > >
> > > On 12/28/05, C F <shmaltz@gmail.com> wrote:
> > > > in 1.2 and on (or CVS HEAD) you have to use:
> > > > Set(CALLERID(num)=value)
> > > >
> > > > On 12/28/05, turby@seznam.cz <turby@seznam.cz> wrote:
> > > > > is it possible rewrite CALLERIDNUM in the ZAP channel?
I use
> > > > >
> > > > > [int-transfer]
> > > > > exten => _00XXXX.,1,SetVar(CALLERIDNUM=${CALLNR})
> > > > > exten => _00XXXX.,2,MYSQL(Connect connid localhost
webcdr
> > > > > ser91623 cdr) exten => _00XXXX.,3,MYSQL(Query
resultid
> > > > > ${connid} select\
> > > > >
if((floor(u.credit/p.cost))>1\,ceil((u.credit)/p.cost)*60\,0)\
> > > > > as\ sekund\ from\ user\ u\,\ sip\ s\,\ pricelist\ p\
where\
> > > > > u.iduser=s.iduser\ and\
s.idsip=\'${CALLERIDNUM}\'\ and\
> > > > > p.acode=s.acode\ and\ u.currency=p.currency\ and\
> > > > > right(left(\'${EXTEN}\'\,CHAR_LENGTH(
> > > p.ccode)+2)\,CHAR_LENGTH(p.ccode))\
> > > > > like\ concat(p.ccode\,\'%\')\ order\ by\
p.ccode\
> desc\ limit\
> > > > > 1) exten => _00XXXX.,4,MYSQL(Fetch foundRow
> ${resultid} sekund)
> > > > > ; fetch
> > > row
> > > > > ..
> > > > > ..
> > > > >
> > > > > without success. At row 3 have var ${CALLERIDNUM}
original
> > > > > value, not value from ${CALLNR}.
> > > > >
> > > > >
> > > > > --
> > > > > turby@seznam.cz
> > > > >
> > > > > _______________________________________________
> > > > > --Bandwidth and Colocation provided by Easynews.com --
> > > > >
> > > > > Asterisk-Users mailing list
> > > > > To UNSUBSCRIBE or update options visit:
> > > > >
> > > http://lists.digium.com/mailman/listinfo/asterisk-users
> > > > >
> > > > _______________________________________________
> > > > --Bandwidth and Colocation provided by Easynews.com --
> > > >
> > > > Asterisk-Users mailing list
> > > > To UNSUBSCRIBE or update options visit:
> > > >
> > > http://lists.digium.com/mailman/listinfo/asterisk-users
> > > >
> > >
> > >
> > >
> > > --
> > > Rehan Ahmed AllahWala
> > > http://www.SuperTec.com - Tommrow's Technology, Today.
> > > http://www.didx.net - DID Number Exchange and Peering Service.
> > >
> > > _______________________________________________
> > > --Bandwidth and Colocation provided by Easynews.com --
> > >
> > > Asterisk-Users mailing list
> > > To UNSUBSCRIBE or update options visit:
> > >
> > > http://lists.digium.com/mailman/listinfo/asterisk-users
> > >
> > >
> > >
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> Super Technologies Inc., Pensacola, Florida
> http://www.SuperTec.com - Technologies from tomorrow, Today!
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>