Hi
thank you for your reply, I found a way to go around this problem in asterisk:
suppose you want to remove any prefix, let's say 02, follow this steps:
exten => _02.,1,Wait,2
exten => _02.,2,Set(CALLERID(all)="shop" <9997>)
exten => _02.,3,goto(PSTNOutBound,00${EXTEN:2},1)
exten => _02.,4,Wait,2
exten => _02.,5,Hangup
[PSTNOutBound]
exten =>_00.,1,AGI(a2billing.php|2)
exten =>_00.,2,Wait,2
exten =>_00.,3,Hangup
so when the person dial a number with prefix 02, asterisk first remove the 02, then add 00, then call go the context PSTNOuBound, wiche based on 00 prefix, and a2billing is able to remove 00, it's a nice trick to remove any prefix you want, you need just to change the number 2 on ${EXTEN:2} wiche tel asterisk to remove the first 2 digists, in my case the prefis is 02 with tow digists
Regards
|