Route call by countrycode

If we receive an incoming call from the England (countrycode +44) I would like to route that call to an English speaking menu, Spain caller to Spanish speaking menu etc
I have made a start but to no avail.
exten => 0015555555,n,GotoIf($["${CALLERIDNUM}" = “0044X.”]?menu-en,s,1)
Any assistance would be appreciated.

Many thanks

I think you can’t use patterns in this case, so you’ve to cut the caller id and just check the relevant portion, in this case we check only the fist 4 digits:
exten => 0015555555,n,GotoIf($["${CALLERID(num):0:4}" = “0044”]?menu-en,s,1)

In the doc directory of the * sources there is the file channelvariables.txt, there are listed all the variables and how use them.

Regards.

Marco Bruni

Many thanks Marco. It did the job!

Kind regards,

Joe