Custom extension to dial paging group

This is a multi step problem that I’m pretty close to solving. Trying to create a lockdown for our school. When a user dials 7777, it will issue a curl command(works) and dial either a custom extension(that had the paging gateway and the zone code set) and then play a audio file, or dial a paging “extension” that has the audio file set as the announcement.

So our school has an old Telecor paging system that I connected a paging gateway to (extension 4000). I then created a custom extension, 12100, which is set in extensions_custom to dial 4000, then enter DTMF 0* to tell the telecor to page to zone 0. I have made a custom extension, Applications-Extensions-Custom Extension and entered the dial local/s@valcom-page-all. The code in extensions_custom is:

[valcom-page-all]
exten => s,1,Dial(Sip/4000,10,D(0*))
exten => s,n,Hangup

I then made a custom extension of 7777 and set the dial to local/s@lockdown-lock-doors. The code I have for that is:

[lockdown-lock-doors]
;exten => s,1,Set(result=${SHELL(curl --digest -v -u username:password -G “http://192.168.xxx.xxx/vapix/doorcontrol?format=simple&action=LockDownDoor&Token=Axis-accc8ee11020:1566846890.452790000”)}) ;Back Door
;exten => s,n,Set(result=${SHELL(curl --digest -v -u username:password -G “http://192.168.xxx.xxx/vapix/doorcontrol?format=simple&action=LockDownDoor&Token=Axis-accc8ece8ae0:1566829952.763999000”)}) ;Front Door
;exten => s,n,Set(result=${SHELL(curl --digest -v -u username:password -G “http://192.168.xxx.xxx/vapix/doorcontrol?format=simple&action=LockDownDoor&Token=Axis-accc8ece8ae0:1566829952.763999000”)}) ;Interior Door
exten => s,1,Answer
exten => s,n,dial(Sip/12100)
exten => s,n,Playback(custom/Lockdown)
exten => s,n,Wait(10)
exten => s,n,Hangup()

*I commented out the curl commands to try to work on just the paging/announcement.

When I try that I just get the lockdown message over the handset not the speakers. If i change the dial(sip/12100) to the code from 12100, so Dial(Sip/4000,10,D(0*)) I can talk to all the speakers but the audio file never plays.

I then have made a paging extension “17777” what will page to 12100 and play the custom audio file that is set in the page announcement field.

When I set the Dial to Dial(SIP/17777) I get a busy signal.

I’m sure I’m missing something stupid here. I tried playing with call files and got no where. I forgot to grab the log file before I left the office for the night.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.