Hi
i have add this in the context we are using for make call
exten => _X.,n,Set(CALLERID(num)=${IF(${EXTEN}=(_00.))?(0034${CALLERID(num)}):($CALLERID(num))})
the idea is when the dial number is international this add the prefix 0034 in CallerID
by the all tine add the prefix whit out dialin international call
i think is not correct but i can found the error on that…
IF any ones can help i wanna be really nice…
THANK YOU…
Missing $[…]
= does exact string comparisons. In this case you want to substring ${EXTEN}, but, in general, you would want to use a regular expression operator.
Hi David55
Thank you for reply…
I am new on asterisk…
Why you tell me is missing $[…]
the think i want to do is when i dial a international numbers ej 004490909090
add to my caller ID the international prefix
my caller id in my extencion ej 90787878 change atomatic to 003490787878
but is dial a local number my callerId not change
i am very new on that stuff…
thank you help .me
here is full context
[controlcallout]
exten => _X.,1,Answer
exten => _X.,n,Set(CALLERID(num)=${IF($EXTEN=(_00.))?(0034${CALLERID(num)}):($CALLERID(num))})
exten => _X.,n,Wait(1)
exten => _X.,n,deadAGI(control.php,1)
exten => _X.,n,Hangup
i have add
exten => _X.,n,Set(CALLERID(num)=${IF($EXTEN=(_00.))?(0034${CALLERID(num)}):($CALLERID(num))})
all work perfect but the modifications not run
(original)
[controlcallout]
exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,deadAGI(control.php,1)
exten => _X.,n,Hangup
whit this i just get callerId of the extension. (local ) but now i try the config is make international call add the prefix of the county automatic.
thank you david55
wiki.asterisk.org/wiki/display/AST/Expressions
(Note the server was overloaded when I tried, but you could use the Google cache.)
marnog
6
Hi David55
Thank you …
yes i see the server now is overload. also the google cache not get the site also.
i think i have problems of syntax whit this so i can’t find the solution.
Is another place i look to get the informations about correct that please.
thank you and have a nice time…
Hi David55
Thank you so much for the support.
finally done i have done this…
have a nice time.