Accessing ring groups and page groups etc from within a dialplan

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!!

An internal resource that is reachable by dialing a sequence of 61 from a local extension would be accessed using Dial with:

Dial(local/61@from-internal)

If using GoTo, it would be:

GoTo(from-internal,61,1)
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.