playing a chime through cyberdata paging gateway

voipdog

Joined
May 2, 2008
Messages
30
Likes
0
Points
0
#1
All

Have a cyberdata paging gateway up and working. What I want to do now is to run a shell script so that a chime is played at say 10:00 AM over the loud speakers so the workers know its break time. I have tried to set up a .call file but I cannot get it to work.

On the cyberdata paging side from the extensions_custom.conf

I want ext=>10 to play the beep when dialed. Any suggestions?

THanks

JJS

[from-internal-custom]
exten => 1234,1,Playback(demo-congrats) ; extensions can dial 1234
exten => 1234,2,Hangup()
exten => h,1,Hangup()
include => agentlogin
include => conferences
include => calendar-event
include => ext-paging
include => beeptest

[ext-paging]

include => ext-paging-custom
exten => PAGE101,1,GotoIf($[${CALLERID(number)}=101]?skipself)
exten => PAGE101,n,Dial(Sip/101,5)
exten => PAGE101,n(skipself),Noop(Not paging originator)
exten => Debug,1,Noop(dialstr is LOCAL/PAGE101@ext-paging)

exten => PAGE102,1,GotoIf($[${CALLERID(number)}=102]?skipself)
exten => PAGE102,n,Dial(Sip/102,5)
exten => PAGE102,n(skipself),Noop(Not paging originator)
exten => Debug,1,Noop(dialstr is LOCAL/PAGE102@ext-paging)

exten => PAGE103,1,GotoIf($[${CALLERID(number)}=103]?skipself)
exten => PAGE103,n,Dial(Sip/103,5)
exten => PAGE103,n(skipself),Noop(Not paging originator)
exten => Debug,1,Noop(dialstr is LOCAL/PAGE103@ext-paging)

exten => PAGE104,1,GotoIf($[${CALLERID(number)}=104]?skipself)
exten => PAGE104,n,Dial(Sip/104,5)
exten => PAGE101,n(skipself),Noop(Not paging originator)
exten => Debug,1,Noop(dialstr is LOCAL/PAGE104@ext-paging)

exten => 100,1,Page(LOCAL/PAGE101@ext-paging&LOCAL/PAGE102@ext-paging&LOCAL/PAGE103@ext-paging&LOCAL/PAGE
104@ext-paging)

[beeptest]
exten => 10,1,Answer()
exten => 10,n,Wait(1)
exten => 10,n,Playback(beep)
exten => 10,n,Wait(1)
exten => 10,n,Hangup()
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#2
I had the same kind of problem. It was resolved with the G option of the dial cmd.

I have a paging group 620 that has all my paging extensions.

when I dial 675, it will page 620 and play the beep and a message.

in extension.custom.conf

[from-internal-custom]
exten => 675,n,dial(local/620@ext-paging,,CG(pagermsg,msg1,1))
exten => 675,n,Hangup()

[pagermsg]
exten => msg1,1,Noop(Page msg1)
exten => msg1,n,Wait(1)
exten => msg1,n,Playback(msg1)
exten => msg1,n,Hangup()
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#3
and by the way, even with the C option in dial, I'm still having it in the CDR...
I tried also to add a NoCdr() in the msg1 ext but it is still there.

If someone has an idea how to declutter my CDR to avoid logging these pages?
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,566
Latest member
Fpino
Top