Broadcasting of messages not working :(

Hi,

I am trying to broadcast a message on multiple extensions when an extension is dialed using the Asterisk CLI but i am not getting any response when the multiple extensions are dialed from the context. The extensions are described in call files.

Below is the content of extensions.conf file

[trial]

exten => 1000,1,Answer()
exten => 1000,2,Playback(dir-intro-oper)
exten => 911,1,Goto(pa-system,s,1)

[pa-system]
exten => s,1,Answer()
exten => s,n,Playback(dollars)
exten => s,n,System(cp /etc/asterisk/.call /tmp/)
exten => s,n,System(mv /tmp/
.call /var/spool/asterisk/outgoing/)
exten => s,n, Hangup()

Content of the call files :

5000.call

Channel: SIP/5000
Callerid: 911
MaxRetries: 2
RetryTime: 5
WaitTime: 20
Context: trial
Extension: 1000

6000.call

Channel: SIP/6000
Callerid: 911
MaxRetries: 2
RetryTime: 5
WaitTime: 20
Context: trial
Extension: 1000

The playback of the file “dollars” works fine. But the system tries to call the individual extensions, then the call does not proceed.

Below is the CLI output of the call:

Connected to Asterisk 11.13.0 currently running on VOIP (pid = 4206)
== Using SIP RTP CoS mark 5
– Executing [911@trial:1] Goto(“SIP/10001-00000000”, “pa-system,s,1”) in new stack
– Goto (pa-system,s,1)
– Executing [s@pa-system:1] Answer(“SIP/10001-00000000”, “”) in new stack
– Executing [s@pa-system:2] Playback(“SIP/10001-00000000”, “dollars”) in new stack
– <SIP/10001-00000000> Playing ‘dollars.gsm’ (language ‘en’)
– Executing [s@pa-system:3] System(“SIP/10001-00000000”, “cp /etc/asterisk/.call /tmp/") in new stack
– Executing [s@pa-system:4] System(“SIP/10001-00000000”, "mv /tmp/
.call /var/spool/asterisk/outgoing/”) in new stack
– Attempting call on SIP/5000 for 1000@trial:1 (Retry 1)
– Attempting call on SIP/6000 for 1000@trial:1 (Retry 1)
– Executing [s@pa-system:5] Hangup(“SIP/10001-00000000”, “”) in new stack
== Spawn extension (pa-system, s, 5) exited non-zero on ‘SIP/10001-00000000’
– Attempting call on SIP/5000 for 1000@trial:1 (Retry 2)
– Attempting call on SIP/6000 for 1000@trial:1 (Retry 2)
– Attempting call on SIP/5000 for 1000@trial:1 (Retry 3)
– Attempting call on SIP/6000 for 1000@trial:1 (Retry 3)
– Remote UNIX connection
– Remote UNIX connection disconnected

Please let me know any solution to this issue.

Thanks.

Take a look on the Page application

Hi,

I found out the issue. The problem was with the 5000 and 6000 extensions. They need to be explicitly registered before being used to call.