[Asterisk-Users] Re-write callerid?

Remco Barende asterisk at barendse.to
Fri Mar 25 10:35:05 MST 2005


On Fri, 25 Mar 2005, Bob Goddard wrote:

> On Friday 25 March 2005 16:30, Remco Barende wrote:
>>>> I would like to have sip phones appear by their local cid
>>>> (like Henk <208>) but when they call out using the PRI I would like
>>>> their full DID (MSN) to appear (like 0031201234567)
>>>>
>>>> I could ofcourse set callerid to the main phonenumber but surely there
>>>> must be a better solution?
>>>>
>>>> Thanks!!
>>>> Remco
>>>
>>> I set the Caller*ID before I place the outgoing call, like so:
>>>
>>> exten => _91NXXNXXXXXX,1,SetCallerID(IgLou Internet <5029663848>)
>>> exten => _91NXXNXXXXXX,2,Dial(Zap/r1/${EXTEN:1})
>>
>> Yes, but this way you can only display one single phone number, and not
>> the MSN number for each SIP phone?
>>
>> For example Henk has SIP/208 and MSN 00312010000208
>> I would like to display Henk <208> for any call that stays in the company
>> but 00312010000208  to the outside.
>
> What's wrong with SetCallerID("${CallerIDName} <00312010000${CallerIDNum}>").

Nothing other than that if you have a number block of 100 MSN's it would 
benice to actually use them instead of just showing the first number for 
every call.

There must be companies that have a similar problem?




More information about the asterisk-users mailing list