[asterisk-users] Extenxions Optimization

Daniel Tryba daniel at tryba.nl
Sun Jun 9 03:55:57 CDT 2013


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.



More information about the asterisk-users mailing list