[Asterisk-Users] Get the Caller-ID without Answering

George Burt george at trueshot.com
Sun Nov 21 18:53:31 MST 2004


Thanks, but that does not actually terminate the call.  The phone continues
to ring until the caller hangs up.

I have done an application with cellphones that allowed allowed me to send a
signal to the phone company to drop the call.  Maybe this is just a cell
phone thing.

George

>Put all authorized CallerID into Asterisk database (on cli: database put
>allowedcaller 1234567 1) and then do a lookup, whether CallerID is
>allowed. (1234567 is CallerID)
>
>exten => s,1,SetVar(allowed=0)
>exten => s,2,DBget(allowed=allowedcaller/${CALLERID})
>exten => s,3,GotoIf($[${allowed}]?5)
>exten => s,4,Hangup ; Hangup if not in "allowedcaller" list
>exten => s,5, do anything for allowed callers
>
>Regards
>bt
>
>George Burt schrieb:
>
>>I have an application that I want to be able to verify that the call
coming
>>in on a PSTN 800 number is from an authorized caller.
>>
>>I want to read the CallerId then terminate the call without answering it.
>>
>>   exten => s,1,Wair(3)
>>   exten => s,2,NoOp(${CALLERID})
>>   exten => s,3,Hangup()
>>
>>Any ideas would be appreciated.
>>
>>George
>>
>>_______________________________________________
>>Asterisk-Users mailing list
>>Asterisk-Users at lists.digium.com
>>http://lists.digium.com/mailman/listinfo/asterisk-users
>>To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>>
>>





More information about the asterisk-users mailing list