all calls running trougth a2billing agi
Code:
[a2billing]
;exten => _X.,1,Macro(dumpvars)
exten => _X.,1,DeadAGI(a2billing.php|1)
exten => _X.,2,Hangup
in the same context have this:
Code:
exten => _XXXXX,1,GotoIf(${DB_EXISTS(DND/${EXTEN})}?DND-ON,1);If DND entry exists on AstDB it means DND is ON
exten => _XXXXX,n,Dial(SIP/${EXTEN},300,tr) ; DND is OFF, start dialing
exten => _XXXXX,n,Goto(s-${DIALSTATUS},1)
exten =>_s-.,1,Playback(is-curntly-busy)
exten =>_s-.,n,hangup
exten => DND-ON,1,Goto(_s-.,1) ;In this example if DND is ON it will present you Unavailable VoiceMail Message
exten => h,1,hangup
i'm using a DND (dot not disfurb) context from some site from internet y if you request can share with you the macros for this.
I'm using five numbers to my customers.
If anyone can share another way todo this is welcome, and if anyone have the way todo this inside from a2billing agi, with calls with cost and without cost is welcome too
i'have interest on how that can be done.