[Asterisk-Users] Re-write callerid?

Bob Goddard asterisk at bgcomp.co.uk
Fri Mar 25 09:56:40 MST 2005


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}>").


B



More information about the asterisk-users mailing list