[Asterisk-Users] Re: CallerID

Tomislav Parčina tparcina at lama.hr
Thu Apr 6 05:30:55 MST 2006


In article <4434BCFD.1010205 at garnetweb.com>, asterisk at garnetweb.com says...
> how do you set two types of caller id one for internal calling and one 
> for external?  Basically everyone calling out from asterisk from one 
> context I want to assign a single callerid.  On all other contexts I 
> want to assign a caller ID specific to each line for all calls going out 
> to asterisk.
> 
> Finally for all calls that remain behind the asterisk box (ext to ext) 
> the Caller ID is set to the specific extension of the caller.

That's easy.

In sip.conf define caller id for every telephone that you wont them to have in internal calls.

In every context put something like this.

exten => _0.,1,Set(CALLERID(name)=Lama.hr)
exten => _0.,n,Set(CALLERID(number)=00038521495148)
exten => _0.,n,Dial(OOH323/${EXTEN:1}@xxx.xxx.xxx.xxx,60,TW)
exten => _0.,n,Hangup

Hope it helps.


--
Tomislav Parcina
tparcina#lama.hr



More information about the asterisk-users mailing list