[Asterisk-Users] caller-id blocking

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Wed Dec 29 06:14:23 MST 2004


On December 28, 2004 06:32 pm, mohammad wrote:
> How can a user block his caller-id in Astersik?

show application SetCallerPres

  -= Info about application 'SetCallerPres' =-

[Synopsis]:
Set CallerID Presentation

[Description]:
  SetCallerPres(presentation): Set Caller*ID presentation on
a call to a new value.  Sets ANI as well if a flag is used.
Always returns 0.  Valid presentations are:

      allowed_not_screened    : Presentation Allowed, Not Screened
      allowed_passed_screen   : Presentation Allowed, Passed Screen
      allowed_failed_screen   : Presentation Allowed, Failed Screen
      allowed                 : Presentation Allowed, Network Number
      prohib_not_screened     : Presentation Prohibited, Not Screened
      prohib_passed_screen    : Presentation Prohibited, Passed Screen
      prohib_failed_screen    : Presentation Prohibited, Failed Screen
      prohib                  : Presentation Prohibited, Network Number
      unavailable             : Number Unavailable

You could also use SetCIDName/SetCIDNum as a more brute-force method.

Note these likely only work on ISDN BRI/PRI interfaces.

-A.



More information about the asterisk-users mailing list