[Freeswitch-users] prevent internal extensions from getting calls from outside

Juan Pablo L. jpablolorenzetti at hotmail.com
Sat Sep 1 01:27:09 MSD 2012


Hi, i have a gateway that allows us to call outside and allows calls to reach the extensions from outside,
but i have a bunch of extensions that we dont want to be able to receive calls from outside.
We have a block of numbers, if any of those numbers is dialed from the PSTN or any external network
the call will be routed, through the external gateway, to the PBX so it is up to the PBX to decide
if the call should reach the extension or not. there are some restrictions .. i can not have different number segments
for the extensions, they all are in the same segment, a given extension could not be allowed to be reached from outside
at this time but it may be reachable in a latter time (due to change in the user status in the company), etc ...
i tried to put a variable in the directory for a user but when the call arrives at the PBX and the PBX is routing
that variable is not available yet and i m having trouble figuring out when that variable is available before bridging the call
so i can use it as a condition to route the call.

any hint will on how to deal with will help. thanks! 		 	   		  


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list