CALLERID(ani2) Inserting


I checked

But I cannot find a way to insert CALLERID(ani2), which I can read, but when I try to set it for a new call, I get a runtime error. This information, known as isup-oli comes embedded in the From header,like this ;tag=sansay1724414rdb124 and it can be read by using Set(var=${CALLERID(ani2)} But how do we add that information to the outbound INVITE? This is critical in the toll-free industry and call-from-jail industries. Thanks for your help.

Asterisk Users 6 months ago 1 Answer

Blocking Spammer By CallerID "name"


I have a subroutine to block spammer by CALLERID(number)

exten => 4,1,GotoIf(${BLACKLIST()}?blacklisted,s,1) exten => 4,n,Set(goaway=${CALLERID(number):0:2}) exten => 4,n,GotoIf($["${goaway}" = "V4" ]?blacklisted,s,1) exten => 4,n,GotoIf($["${goaway}" = "V3" ]?blacklisted,s,1)

but I just got another spammer (automated calls) who rotates his callerID number that starts with valid area code so blocking by prefix is not practical but it seems to me he uses the same (or few same) caller name like:

"Brit. Columbia "" <16047726633>" "KHAN SHARON "" <16042984429>" "Brit. Columbia "" <16042231781>"

So I was thinking the same subroutine can be used to block by CALLERID(name), isn't it:

exten => 4,n,Set(goaway2=${CALLERID(name):0:11}) exten => 4,n,GotoIf($["${goaway2}" = "Brit. Colum"…

Asterisk Users 2.1 years ago 8 Answers

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



on this site

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-

Asterisk Users 2.4 years ago 1 Answer

DAHDI: How To Supress Notification Of Changing CallerID On Transfer?


Hello out there,

I'm running an Asterisk 1.8.15-cert1 with DAHDI. Today I noticed that Asterisk is signalling to the calling party the current internal CallerID whenever I put a call to another internal phone.


Customer calls 020212345-555 -> IVR answers and puts caller to the chosen queue -> Someone picks up the phone (Internal ext. 321) -> CallerID shown on customers device changes to 020212345-321

Same when I park the call and pick it up on another phone.

I don't want this to happen and can't figure out how to disable this on DAHDI or at least the current channel. I tried "facilityenable=no"…

Asterisk Users 2.5 years ago 2 Answers