While trying to get SLA running (which I do, mostly), I’ve run into an “interesting” behavior that I did not expect. I’m using the dialplan code from the SLA.pdf doc (with only station & line names changed) along with code to allow paging extensions by dialing the extension number:
In extensions.conf:
[macro-PageExt]
exten=s,1,ChanIsAvail(${ARG1}|js)
exten=s,2,SIPAddHeader(Call-Info: answer-after=0)
;;exten=s,3,Dial(${ARG1})
exten=s,3,Page(${ARG1}|d)
exten=s,4,NoOp();
exten=s,5,Hangup
[PageOneExt]
exten=_1XX,1,Macro(PageExt,SIP/${EXTEN})
exten=_1XX,2,Hangup
[sla_stations]
include = PageOneExt
exten = 131,1,SLAStation(131)
exten = 131_AnalogLine1,hint,SLA:131_AnalogLine1
exten = 131_AnalogLine1,1,SLAStation(131_AnalogLine1)
exten = 131_AnalogLine2,hint,SLA:131_AnalogLine2
exten = 131_AnalogLine2,1,SLAStation(131_AnalogLine2)
etc. for other extensions 132, 133, 134
Now, when I want to call another extension if I dial the extension number (i.e. 131), all I get is an outside line. I do not get the extension. What purpose is the first line:
exten = 131,1,SLAStation(131)
supposed to serve? This is the line causing trouble. I know that I could (should?) change my “page” macro to use something like “*131” to page an extension. But the question in my mind remains: Why does that line in the [sla_stations] section cause dialing an extension (from ANY other extension) to grab an outside line?
Bob.[/i]