On Sun, Jun 09, 2013 at 10:30:45AM +0200, Olivier CALVANO wrote: > We want optimize my extensions file conf on asterisk 11.4.0 : > > ; Destination: Gambia Type: Fixe > exten => _00220X.,1,Set(CDR(CodeCom)=BUS-GMB) [5 lines] > ; Destination: Libya Type: Fixe > exten => _00218X.,1,Set(CDR(CodeCom)=BUS-LBY) [the same 5 lines] > and into my Extensions.agi, i sent the other line. Do you think's that it's > a good idea ?
AGI is perfect for this. Create a list of destinations and relate your variables to it. Your free to use your favorite database and your favorite script/language to replace those 80000 with 1. There is a drawback ofcourse, there is atleast one more program to fail at calling time. You may be in a position where you can do the magic later based on cdrs, that way there is only asterisk to fail during the call. -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
