how do i change this for following requirement options:
Opiton 1:
all countires except INDIA i.e if ISD calls starts with 01191. then calls should be dropped by saying some messge like “NOT ALLOWED” etc.
Option 2:
How to allow specific countries to specific extensions. I know how to do this with context, but there are too many such requirements and none of them are same. some needs only uk, some needs japan, some needs both, very random selection. please suggest.
Hi
For your first option you can use following concept b4 Dial cmd at pryority 1
exten +> _011.,1,GoToif the use ${EXTEN} fuction to check dial our number if that is 01191 then hangup or goto line where u can play not allowed msg.
For your second option context is easy option but as for difrent extension with difrent country privleges its difficult.
hi
Instead of ${EXTEN} us shud manupulate ${EXTEN} in such format that u can grep or select only 01191. like ${EXTEN:3:4}— CHECK WITH voip-info.org
Also same time dont use =“01191.” use only “01191”