I would like to monitor a VOIP line for dropouts in both directions.
I have installed an asterisk server at the client and one at the office in the setup as shown in the diagram below.
Both Asterisk servers have been registered at the SIP provider, each with their own number.
To test the outgoing traffic from the client, I call ext 200 from the VOIP phone, which calls the Asterisk2 server via the provider.
The Asterisk1 server plays musiconhold which is monitored at the head of out network.
I would like to monitor the other direction at the same time. Is it possible to have both servers play musiconhold?
I tried to call the StartMusicOnHold application before the Dial call, but the music stops as soon as the Dial call is made.
Is this somehow possible?
snippet asterisk2 dialplan
…
; call to 200 calls asterisk 1 server
exten => 200,1,NoOp(calling 200)
same => n,Dial(SIP/provider/00xxxxxxxxx)
same => n,Hangup
snippet asterisk1 dialplan
…
[provider-in]
exten => s,1,NoOp(provider calling ${EXTEN})
same => n,Answer()
same => n,Playback(hello)
same => n,MusicOnHold(default,60)
same => n,Hangup