Hello,
My problem is :
- If a call come, i want to load a extension depending of the Country of the caller.
- But, if a call come from our country, there are no 0033, it is possible to know the “international number” in every case ?
- Otherwise, there is a plugin/function to know the “country code” ?
Can you help me please?
My extensions.conf
[code][OVH-0033372390168-FIXE] ; if come from 03 (france region)
exten => s,1,Playback(are-you-still-there)
[OVH-0033372390168-AUTRE] ; if anonymous call, or unknow
exten => s,1,Playback(you-entered)
[OVH-0033372390168]
exten => s,1,Noop(${CALLERID(number ):0:2})
exten => s,n,GotoIf($["${CALLERID(num)}" = “anonymous”]?anonymous)
exten => s,n,GotoIf($["${CALLERID(num):0:2}" = “03”]?france3)
exten => s,n(anonymous),Goto(OVH-0033372390168-AUTRE,s,1)
exten => s,n(france3),Goto(OVH-0033372390168-FIXE,s,1)[/code]