quickphone wrote:
Hi i like to start callback service but im having some problems witch i can not solve since here we have couple telecom company and the have diffrent prefix i have found this:
[a2billing-cid-callback]
exten => SPA400,1,Ringing()
exten => SPA400,n,Set(CALLERID(num)=389${IF($[${CALLERID(num):0:1}=0]?${CALLERID(num):1}:${CALLERID(num)})})
exten => SPA400,n,DeadAGI(a2billing.php|1|cid-callback)
exten => SPA400,n,Hangup
and work excellent when you try from prefix 47 its just add plus 389 and my trunk work OK but when some one call from other company show 38947 and the extension add plus 389 and number come 38938947
how to remove theat 389 if in number have ?
please help
im making callback but since there couple telecom provider and they show diffrent caller id and my asterisk get some fake agi_callerid i can not setup but they show agi_calleridname correct like need to be number so please let me know are possible to use calleridname authentication becouse only theat number is correct and then my callback will work ?
sorry for english
Added after 51 minutes: ok i solved if any one whant to use this here is :
[a2billing-cid-callback]
exten => _X.,1,Ringing()
exten => _X.,n,Set(CALLERID(num)= 389${IF($[${CALLERID(name):0:1}=0]?${CALLERID(name):1}:${CALLERID(name)})})
exten => _X.,n,DeadAGI(a2billing.php|2|cid-callback)
exten => _X.,n,Hangup