All pastes #2108547 Raw Edit

Mine

public text v1 · immutable
#2108547 ·published 2012-02-01 09:04 UTC
rendered paste body
context autoinformer {
_. => {
        NoCDR();
        Set(A=${STRFTIME(${EPOCH},,%s)});
        Answer();
        Wait(1,5);
        Playback(new3);


        //Hangup(16);
    }
failed => Hangup();
h => {
Set(B=${STRFTIME(${EPOCH},,%s)});
NoOp(LENGTH = ${MATH(${B}-${A},int)});
Hangup();
    }
}


context dialing {
_X. => {
    Dial(SIP/telexchange2/7${EXTEN:1});
    Hangup();
    }
}

Action: originate
Channel: Local/89050941774@dialing
CallerId: autoinformer
Context: autoinformer
Exten: informer
Priority: 1
Timeout: 20000
Async: true
Setvar: CALLERID(name)=autoinformer