Found this in the developer docs:
Set(CALLERID(all)=...) or Set(CALLERID(ani)=...)
http://www.asterisk.org/doxygen/app__setcallerid_8c.html
"All" should work... But I'd also ask the same question as C F: Where are you trying to set CID for? Are you trying to set it on calls that come into your system? In this case, "all" should work for you in the format Hugo talked about. If you're trying to set it on outgoing calls, make sure your provider supports it (and if you're using PSTN lines, they don't).
Alex
On 8/10/06, Don <[EMAIL PROTECTED]> wrote:
dunno that there is an "all" datatype is there?
Set(CALLERID(name)=John Doe)
Set(CALLERID(number)=555121212)
----- Original Message -----
From: "hugolivude" < [EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<[email protected]>
Sent: Thursday, August 10, 2006 5:26 PM
Subject: [asterisk-users] Correct syntax for Set(CALLERID(all)...
> Asteris 1.2.7
> Redhat 9
>
> Hi,
>
> Is this the correct syntax for setting CALLERID:
>
> exten => _1,n,Set(CALLERID(all)=The Smiths <212-876-9345>)
>
> I'm able to get the number to change but the name is always "Unknown
> Name". I've tried numerous combinations of quotes, but just cannot
> get the name...
>
> Thanks,
> H
> _______________________________________________
> --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
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.10.9/416 - Release Date: 8/10/2006
>
>
_______________________________________________
--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
--
Alex Robar
[EMAIL PROTECTED]
_______________________________________________ --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
