Limit access based on caller ID

I am not an expert at this.
But I have managed to get this context to work.


include => ext-local

exten => s,1,Answer()
exten => s,n,Background(pls-entr-num-uwish2-call)
exten => s,n,WaitExten(10)
exten => s,n,Hangup()

exten => i,1,Playback(sorry)
exten => i,n,Playback(goodbye)
exten => i,n,Hangup()

exten => t,1,Playback(the-party-you-are-calling)
exten => t,n,SayDigits(${EXTEN})
exten => t,n,Playback(is-curntly-unavail)
exten => t,n,Playback(please-try-again-later)
exten => t,n,Playback(goodbye)
exten => t,n,Hangup()

; end of [custom-limited_access][/code]

Now I need to add a few restrictions.

[quote][color=blue]IF the caller ID of the person calling is:
2135551234 or
4155556789 or
2125550123 or
2025553456 or
THEN let the caller proceed

How do I do this?

Use the GotoIf dialplan application to check all the caller id in sequence, you can find the caller id with the CALLERID(num) dialplan function, here are some samples: .


Marco Bruni