Most carriers like to receive overseas destination numbers without the 011 prefix i.e. just the country code and North American numbers as 1 + city code. Thus I setup my a2billing rate table accordingly and set the call plan to strip the 011 prefix so dialed rates match with the rate table.
This works well unless someone dials a North American number without the leading "1" e.g. 250...... is billed as Rwanda instead of BC.
Is there any way to force the user to dial 1xxx and 011xxx in a2billing without modifying the entire rate table? Right now I import the rate table as given by the provider as their numbering convention is the same as mine and I would like to keep it that way. Any suggestions? Please?
My users dial an access number so the destination number is not known before I pass it to a2billing.php
exten => xxxxxxxxxx,1,Set(__FROM_DID=${EXTEN}) exten => xxxxxxxxxx,n,Gosub(app-blacklist-check,s,1) exten => xxxxxxxxxx,n,ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) exten => xxxxxxxxxx,n,Set(__CALLINGPRES_SV=${CALLERPRES()}) exten => xxxxxxxxxx,n,Set(CALLERPRES()=allowed_not_screened) exten => xxxxxxxxxx,n(dest-ext),Goto(a2billing,${EXTEN},1)
[a2billing] exten => _X.,1,NoOP(a2b!) exten => _X.,n,GotoIf($["${EXTEN:0:10}" = "xxxxxxxxxx"]?NEXT) exten => _X.,n,Goto(END) exten => _X.,n(NEXT),AGI(a2billing.php,1) exten => _X.,n(END),Hangup
|