You'll need to lose the double quotation marks in the assignment:

Set(CALLERID(name)="Fred") becomes:
Set(CALLERID(name)=Fred)

If it still doesn't work, then it means that your particular provider does not support the ability to be able to set the caller ID name, or it's receiving a corrupted copy of it. One such provider that I'm aware of for that issue is Group Telecom. They receive corrupted caller ID name information from asterisk. So, caller ID num information will work, but not caller ID name information.

sean darcy wrote:
sean darcy wrote:
I've tried to create a subroutine that sets callerid name based on number.

extensions.conf:

...........
exten => s,1,Answer()
exten => s,n,GoSub(set-callerid-name,0${CALLERID(num)},1)
exten => s,n,Dial(${mainline},60)
.......

[set-callerid-name]
exten => 0,1,NoOp( no CALLERID num set)
exten => 02025462677,1,Set(CALLERID(name) = "Fred" )
................
exten => _X.,2,NoOp(CALLERID: ${CALLERID(name)})
exten => _X.,3,Return()


--

//////////////////////////////////////////////////////////
//  Daniel Bruce Lynes                                  //
//  Westwood Village Computers                          //
//  http://www.westwoodvillagecomputers.com/            //
//                                                      //
//  Opinions expressed are not necessarily those of     //
//  Westwood Village Computers.                         //
//////////////////////////////////////////////////////////

begin:vcard
fn:Daniel Lynes
n:Lynes;Daniel
org:Westwood Village Computers
adr:;;;Coquitlam;BC;V3B 0B2;Canada
email;internet:[EMAIL PROTECTED]
title:Owner
tel;work:604-484-0151
tel;cell:604-728-3777
url:http://www.westwoodvillagecomputers.com/
version:2.1
end:vcard

_______________________________________________
-- 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

Reply via email to