All pastes #2618 Raw Edit

PRI dial with billing

public ini v1 · immutable
#2618 ·published 2004-12-03 17:01 UTC
rendered paste body
; Set the account code to 'benshaw' if there is no account code given as ARG2.  Then dial out the PRI[macro-pri-dial]exten => s,1,SetVar(ACCOUNTCODE=${ARG2})exten => s,n,GotoIf($[{$ARG2} != ""],n+2)exten => s,n,SetVar(ACCOUNTCODE="benshaw")exten => s,n,SetAccount(${ACCOUNTCODE})exten => s,n,Dial(${BELLTRUNK}/${ARG1})exten => s,n,Wait(5)exten => s,n,Congestionexten => s,n+100,Busy