[asterisk-users] set(CALLERID(name) not working
Daniel Lynes
astuser at westwoodvillagecomputers.com
Tue Nov 11 22:58:31 CST 2008
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. //
//////////////////////////////////////////////////////////
-------------- next part --------------
A non-text attachment was scrubbed...
Name: astuser.vcf
Type: text/x-vcard
Size: 284 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20081112/fdabb875/attachment.vcf
More information about the asterisk-users
mailing list