I have several locations that want to be able to dial zero and have the call the front office. Each location has its own callerID so I can find a way to route the call to the correct Operator.
I am planning on creating ring groups for each location but then add a macro that essentially checks that if someone dials zero (0) and the caller ID is matched then the call is directed to a particular ring group.
This is what I have thought of but does not work. I am not experience I am adding this to the extensions_custom.conf file:
[macro-Operator]
;;User dialing zero is redirected to Operator A
exten => s,1,GotoIf($["${OUTNUM}"=“0” & “${CALLERID(number)}”=“XXXXXXXXXX”]?2:4)
exten => s,2,Dial(“Local/7151@from-internal”)
exten => s,3,MacroExit()
;;User dialing zero is redirected to Operator B
exten => s,4,GotoIf($["${OUTNUM}"=“0” & “${CALLERID(number)}”=“YYYYYYYYYY”]?5)
exten => s,5,Dial(SIP/7152)
exten => s,6,MacroExit()
Is this possible? Any help or pointers are appreciated. Thank you.