In article <4b577ffd$0$23530$>,
Steve <Steve@noreply> wrote:
>Hi,
>
>I would like to know if there is a way to hide an extensions between 2
>sip phones, connected to Asterisk ? ( I am using Asterisk 1.6.2 )
>
>I tried ( for my SIP.CONF )
>
>Hidecallerid=no
>or
>restrictedID=yes
>
>Nothing works !
I would like to see something like
>"unavailable"....etc..
>
>- Any idea ??
It's actually quite easy to do in the dialplan, but a lot will depend
on how your dialplan is constructed - or alterable by yourself.
One way to do it is on the called extension side - so if when
you call extension 222 it effectively does:
exten => 202,1,Dial(SIP/222)
then you can do
exten => 202,1,Set(CALLERID(num,"Withheld"))
exten => 202,n,Set(CALLERID(name,"Withheld"))
exten => 202,n,Dial(SIP/202)
That will then alter the caller ID to Withheld - but it will do it when
any phone calls extension 202.
If you want to do it when just one phone calls 202, then one way is to
use the astdb to store a value, tied to the calling extension which you
check on the called dialplan code, or call a special number...
Eg. dial 141 then a 3-digit extension to withhold ID to that extension:
exten => _141XXX,1,Set(CALLERID(all,"Withheld"))
exten => _141XXX,n,Goto(${EXTEN:3},1)
And so on.
(Apologies if you enter this & get syntax errors, I'm typing on a Friday
night and have nt tested it)
Gordon