Hi all,
I want to setup configurations as below and I have tried almost everything but for some unknown reasons its not working and its driving me crazy.
it would be great if I can get help.
I have a main extension (lets say 1000) and some side extensions (lets say 1001 and 1002).
I want to have this configuration that as soon as main extension (1000) calls the other extensions (1001 or 1002) a recorded message plays and then once it is finished, the call get disconnects.
I have tried multiple custom Dialplans but its not working and once I call the side extensions from the main extensions, its like a normal call and voice of each side can be heard on the other side instead of playing the recorded sound on B side.
here is what i have done :
editing the /etc/asterisk/extensions.conf as below:
[default]
; Define the primary extension (e.g., 1000)
exten => 1000,1,NoOp(Primary Extension)
same => n,Answer()
same => n,Playback(welcome-message) ; Play the recorded message (without extension)
same => n,Hangup()
; Define side extensions (e.g., 1001, 1002, etc.)
exten => 1001,1,NoOp(Side Extension 1001)
same => n,Dial(SIP/1001)
exten => 1002,1,NoOp(Side Extension 1002)
same => n,Dial(SIP/1002)
; Add more side extensions as needed
; Rule for when primary extension calls side extensions
exten => _1XXX,1,NoOp(Primary to Side Extension Call)
same => n,Playback(welcome-message) ; Play the recorded message (without extension)
same => n,Hangup()
editing /etc/asterisk/sip.conf as below :
[sip]
; Primary extension (e.g., 1000)
[1000]
type=friend
context=default
host=dynamic
secret=yourpassword
; Add other necessary settings
; Side extensions (e.g., 1001, 1002)
[1001]
type=friend
context=default
host=dynamic
secret=yourpassword
; Add other necessary settings
[1002]
type=friend
context=default
host=dynamic
secret=yourpassword
; Add other necessary settings
asterisk -rx “dialplan reload”
asterisk -rx “sip reload”
I am on asterisk v 18.19.0