Displaying 1 result from an estimated 1 matches for "dialtopstn".
Did you mean:
dial_pstn
2006 Dec 28
0
Say who is using the PSTN?
...age played.
I'd like to find a way to instead tell them which extension is using the PSTN
line. I know that info is available in the manager API, but I have no idea how
to get access to it from either the dialplan or an AGI script.
The relevant portion of my dialplan looks like this:
[macro-dialtopstn]
exten => s,1,Dial(SIP/${ARG1}@pstn,120,WT)
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-ANSWER,1,Hangup
exten => s-BUSY,1,Playtones(busy)
exten => s-CANCEL,1,Hangup
exten => s-NOANSWER,1,Play(number-not-answering)
exten => s-NOANSWER,2,Hangup
exten => s-CONGESTION,1,Play...