Similar to this question, I’m trying to access ring groups, page groups and queues from within the dialplan. I’ve tried all sorts of wording, but everything either returns no route to destination or subscriber absent.
This is what my context looks like at the moment
[check-whitelist]
exten => s,1,Noop(Entering user defined context [check-whitelist] in extensions_custom.conf)
exten => s,n,AGI(lgaetz-cmcheck.php,${CALLERID(number)})
exten => s,n,gotoif($["${whitelist}"="false"]?,1000)
exten => s,n,Return
exten => s,1000,Dial(PJSIP/22)
This works, if the number is found, it routes to extension 22. But I’d really like to route to ring group 61. Not sure how I’d do that?!
Thank you!!