Set(CALLERID(num-pres)=prohib) / AGI Version

Home » Asterisk Users » Set(CALLERID(num-pres)=prohib) / AGI Version
Asterisk Users 1 Comment

Hi,

on this site http://www.voip-info.org/wiki/view/Asterisk+func+callerid

you can read, that since Atserisk 1.8 the command (in dialplan) to hide the caller id is:
Set(CALLERID(num-pres)=prohib)

I tried to implement it into my AGI-Script, but with no success. Can please anyone give me a hint, what is wrong with it:
Set CALLERID(num-pres) prohib or Set CALLERID(num-pres)=prohib

Both commands lead into:
510 Invalid or unknown command

Besr regards
-Thorsten-

One thought on - Set(CALLERID(num-pres)=prohib) / AGI Version

  • Am 06.02.2013 16:02, schrieb Steve Edwards:

    Thanks. But I found the right syntax now:
    Exec Set CALLERID(num-pres)=prohib

    This AGI-Command leads into “200 OK” and I can verify, that outgoing calls (SIP and DAHDI) are anonymous.

    -Thorsten-