Custom extension used for paging with schedule and recording

Hello,

I am trying to create a custom extension “12100” that when called will call my Valcom VIP-821 connected to a Telecor XL paging box. From there I’m looking to insert it into a paging extension to allow it to have scheduled tasks. I have things set up as follow:
Valcom VIP-821 is Sip extension 4000
I can call extension 4000 and communicate with the telecor xl. If I press 0* I can “talk” to all the speakers. If I press 1* I can “talk” to all the speakers programmed into zone 1 of the telecor xl unit.

So I have created in extensions_custom.conf the following code:

exten => 12100,1,Dial(Sip/4000,60,rD(ww0*))

When I now dial 12100 from a phone I get 1 second of ringing before I hear the telecor unit pick up on all speakers and I can “talk” or page.

Where I am stuck on part 1 is using extension 12100 in the paging and intercom to schedule the schools bells.

The next part I’m suck on is, I would like to have someone be able to dial 777777 from any phone and it play a message(lockdown) through the telecor XL box to all zones as well as issue an http command to the door access controllers to lock them down. For that I have the following code with Username, passwords, and http string removed as it won’t let me post it, it thinks its a “link”.

exten => 777777,1,Set(result=${CURL(-Username:Password )})
exten => 777777,1,Dial(Sip/4000,60,rD(ww806*))
exten => 777777,n,Playback(custom/Lockdown)
exten => 777777,n,Hangup()

Any help would be appreciated.

If you change your code to something like this:

[valcom-page]
exten => s,1,Dial(Sip/4000,60,rD(ww0*))
exten => s,n,Hangup

And then create custom extension 12100 with a dial string of local/s@valcom-page then you can add this ext to page groups as well as dial directly.

I can’t understand what you’re asking in part 2.

Thank you I will give that a try later when I’m in the office there.

As for the second part, we are looking to create a lockdown code/extension ‘777777’ that when dialed will:

  • first issue an http command (Curl from my understanding but could be wrong) to the door access controllers telling them to lock down and deny entry into doors. This could also be done by closing a relay that would close a relay on the access control panel, not sure if the valcom can do that, it appears that it will close everytime the 4000 is dialed. If there is another device we could use that would great.
  • second do an page to the all page “extension” of 12100 and play the recorded message letting everyone know there is a lockdown situation.

Hopefully that clarifies what we are looking to do

The new extensions work. I can dial the paging extension now and it will play the announcement/bells. Now to get the scheduler to work in paging and intercom. Does not seem to doing anything.

The /var/log/asterisk/full log will tell the tale. If “nothing” is happening, it will either let you know that, or what isn’t working.

I don’t see anything in the logs. It is scheduled for 9:15am, 11:30am and 3:30pm.

[2019-09-09 09:13:15] VERBOSE[12993] chan_iax2.c: Registered IAX2 to ‘IP’, who sees us as IP with no messages waiting
[2019-09-09 09:14:46] NOTICE[12999] chan_iax2.c: Peer ‘voipms’ is now TOO LAGGED (2025 ms)!
[2019-09-09 09:14:56] NOTICE[12993] chan_iax2.c: Peer ‘voipms’ is now REACHABLE! Time: 15
[2019-09-09 09:14:57] VERBOSE[12999] chan_iax2.c: Registered IAX2 to ‘IP’, who sees us as IP with no messages waiting
[2019-09-09 09:16:37] VERBOSE[12995] chan_iax2.c: Registered IAX2 to ‘IP’, who sees us as IP with no messages waiting
[2019-09-09 09:17:29] VERBOSE[12997] chan_iax2.c: Registered IAX2 to ‘IP’, who sees us as IP with no messages waiting

[2019-09-09 11:28:29] VERBOSE[12994] chan_iax2.c: Registered IAX2 to ‘IP’, who sees us as IP with no messages waiting
[2019-09-09 11:29:21] VERBOSE[12995] chan_iax2.c: Registered IAX2 to ‘IP’, who sees us as IP with no messages waiting
[2019-09-09 11:30:11] VERBOSE[12994] chan_iax2.c: Registered IAX2 to ‘IP’, who sees us as IP with no messages waiting
[2019-09-09 11:31:51] VERBOSE[13002] chan_iax2.c: Registered IAX2 to ‘IP’, who sees us as IP with no messages waiting
[2019-09-09 11:32:16] NOTICE[13005] chan_sip.c: Peer ‘2029’ is now Lagged. (2011ms / 2000ms)
[2019-09-09 11:32:16] VERBOSE[12939] chan_sip.c: Extension Changed 2029[ext-local] new state Unavailable for Notify User 2022

[2019-09-09 15:28:41] NOTICE[13002] chan_iax2.c: Peer ‘voipms’ is now REACHABLE! Time: 14
[2019-09-09 15:29:27] VERBOSE[12995] chan_iax2.c: Registered IAX2 to ‘IP’, who sees us as IP with no messages waiting
[2019-09-09 15:30:19] VERBOSE[13000] chan_iax2.c: Registered IAX2 to ‘IP’, who sees us as IP with no messages waiting
[2019-09-09 15:31:59] VERBOSE[13001] chan_iax2.c: Registered IAX2 to ‘IP’, who sees us as IP with no messages waiting

I have checked “date” via CLI and it is showing the correct date and time.

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