Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 16, 2024 8:10 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: strip 0 for cid - callback
PostPosted: Wed Nov 03, 2010 6:34 am 
Offline

Joined: Tue May 16, 2006 11:54 pm
Posts: 12
Location: Taiwan
Dear Sir,
I am use 1.8.1 version for callback
My caller ID is 0912345678,how to strip 0 ?
from cli I am get 340912345678 , But i need is 34912345678
My config as below
[custom-a2billing-cid-callback]
exten => _X.,1,deadAGI(a2billing.php|4|cid-callback|34) ;last parameter isthe callback area code
exten => _X.,n,Hangup

Thanks


Top
 Profile  
 
 Post subject: Re: strip 0 for cid - callback
PostPosted: Wed Nov 03, 2010 7:20 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

A little piece of dial-plan to strip the leading 0 will work, although if this is a Spanish number, that is unusual behaviour

The substrings section of http://www.voip-info.org/wiki/view/Asterisk+variables shows you how to strip digits, and here is the command to manipulate the caller ID

http://www.voip-info.org/wiki/view/Setting+Callerid

Joe


Top
 Profile  
 
 Post subject: Re: strip 0 for cid - callback
PostPosted: Sat Apr 28, 2012 12:32 am 
Offline

Joined: Wed Jun 16, 2010 11:22 pm
Posts: 32
one way around that problem would be something like this, hopefully this will help

exten => _X.,n,Set(CALLERID(num)=${IF($[${CALLERID(num)}=340912345678]?34912345678${CALLERID(num):11}:${CALLERID(num)})})

in the extensions.conf file


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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