Hello,
I have problems in executing “ExecIf” in Asterisk 13.18.2 for reformat CallerID(num)
My output in log is this :
- Executing [h@easybell:12] ExecIf(“SIP/0049283298091-00000044”, “(1?Set(CALLERID(num)=”+49283xxxxxxxxx"))")
[Nov 13 18:49:52] ERROR[22636][C-00000026]: app_exec.c:243 execif_exec: Usage: ExecIf(?()[:(<args)])
In Extension table (I use mysql) I use :
from_trunk _. ExecIf ($["${CALLERID(num):0:2}" = “02”]?Set(CALLERID(num)="+492${CALLERID(num):2}"))
Whats wrong with this syntax ?
Regards, Daniel