[asterisk-users] Setting outgoing callerid on when using a PRI
Dave Fullerton
dfullertasterisk at shorelinecontainer.com
Tue Nov 10 13:30:41 CST 2009
Jason Parker wrote:
> Doug Lytle wrote:
>> Dave Fullerton wrote:
>>> Note "num" and not "number" I don't know if that was a change from 1.4
>>> to 1.6 or if Doug mistyped it.
>>>
>> Not a mistype. I've been using number all along, but looking at the
>> docs shows that I've been incorrect. It must concatenate the number
>> down to num. Looks like I've got a little modifying to do this evening:
>>
>>
>> core show function CALLERID
>> livonia*CLI>
>> -= Info about function 'CALLERID' =-
>>
>> [Syntax]
>> CALLERID(datatype[,<optional-CID>])
>>
>> [Synopsis]
>> Gets or sets Caller*ID data on the channel.
>>
>> [Description]
>> Gets or sets Caller*ID data on the channel. The allowable datatypes
>> are "all", "name", *num*, "ANI", "DNID", "RDNIS".
>> Uses channel callerid by default or optional callerid, if specified.
>>
>> Doug
>>
>
> The documentation is correct, but the way the check really works, is that it
> reads the first 3 chars and matches it to "num".
>
> This means that "num", "number", and "numnumnumIloveapplesauce" would all
> technically match.
lol. Love it. I want to use that in my dialplan just to make my
successor go "WTF"?
-Dave
More information about the asterisk-users
mailing list