Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 7:52 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Problem with prefix
PostPosted: Thu Feb 19, 2009 3:51 pm 
Offline

Joined: Tue Aug 08, 2006 4:00 pm
Posts: 117
Location: Bitola,Macedonia
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 ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 20, 2009 11:27 am 
Offline

Joined: Tue Aug 08, 2006 4:00 pm
Posts: 117
Location: Bitola,Macedonia
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 :oops:

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group