Pattern match within GotoIf


i need to do a pattern match on a callerid within gotoif. I want to say if the outbound extension starts with 2 goto if else go to if

so instead of 123456789 in below example i need to do a regexp - can’t figure out how to do that

exten => _NXXNXXXXXXX,1,GotoIf($["${CALLERID(num)}" = “123456789”]?3:2)

exten => _NXXNXXXXXXX,1,GotoIf($["${CALLERID(num):0:1}" = “2”]?3:2) … les+Basics

–Satish Barot
Ahmedabad, India

thank you so much - i had seen that page in the manual but for the life of me i couldn’t find it again! :smile: