Re: [asterisk-users] Play Music While Processing AGI Script
On Tue, 14 May 2019, Alexander Perkins wrote: Hi All. I have a question - I have an AGI script that may run for 10 seconds, or it may run for 60 seconds while an agent becomes available (agents are geographically dispersed). Is there a way to have the music play in the background while the AGI scripts executes? When the AGI script finishes, then the music should also finish. I tried this, but the music needs to finish before moving on to step 4 and execute the script. exten => _NXZNXX,1,Answer() exten => _NXZNXX,2,MusicOnHold() exten => _NXZNXX,3,AGI(SetRecordingID.php,${UNIQUEID}) Create a separate thread in your AGI to play a small segment (5 to 10 seconds) of music in a loop. At the end of each 'play' check to see if the AGI is ready to exit. Off topic, but you can make maintenance of your dialplan easier if you write it like: exten = _nxznxx,1, answer() same = n, musiconhold() same = n, agi(SetRecordingID.php,${UNIQUEID}) The 'whitespace' and 'lowcasing' is just my personal preference. I would also use 'getopt/longopts' to parse the command line so you can have meaningful (long) options and are not dependent upon passing arguments in a particular order. -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST https://www.linkedin.com/in/steve-edwards-4244281-- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Play Music While Processing AGI Script
Hi All. I have a question - I have an AGI script that may run for 10 seconds, or it may run for 60 seconds while an agent becomes available (agents are geographically dispersed). Is there a way to have the music play in the background while the AGI scripts executes? When the AGI script finishes, then the music should also finish. I tried this, but the music needs to finish before moving on to step 4 and execute the script. exten => _NXZNXX,1,Answer() exten => _NXZNXX,2,MusicOnHold() exten => _NXZNXX,3,AGI(SetRecordingID.php,${UNIQUEID}) Any help would be appreciated. Alex -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] pjsip and tls client: How to decrypt Wireshark trace?
Hi Michael, If you can get a copy of the private key you can import that to Wireshark and see the encrypted information: https://support.citrix.com/article/CTX116557 On Sun, 12 May 2019 at 04:55, Michael Maier wrote: > Hello! > > I'm just wondering if it's possible to decrypt sips packages in Wireshark > while asterisk runs as sips client (connecting to the provider w/ > tls 1.2)? I don't use an own certificate. > > > Thanks > Michael > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users -- David Cunningham, Voisonics Limited http://voisonics.com/ USA: +1 213 221 1092 New Zealand: +64 (0)28 2558 3782 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] ChanSpy and ConfBridge
We have a scenario where we have ConfBridges assigned to specific users. An administrator wants to listen to the owner of a ConfBridge calls and may want to whisper instructions to them. I thought ChanSpy would be the perfect solution for this. During tests today I noticed this doesn't work as I thought it would. The administrator is able to whisper to the channel that is the owner of the ConfBridge. However, I'm hearing what sounds like an echo of the administrator channel's whisper going to the other channels in the ConfBridge. It's not as loud as it would be if I use ChanSpy to Barge In, but it's still present. At first, I thought it was just other phones picking up the sound. However, I muted all phones other than my administrator phone and I'm still hearing the administrator's whisper on other channels in the ConfBridge. Any thoughts on this? I have also noticed when toggling between modes (d for DTMF mode change where 4 = spy, 5 = whisper, and 6 = bargein) that audio to some channels becomes garbled afterward. I have tried both with and without the o option (for only listen to audio coming from this channel). Any suggestions? Have a great day! Dan -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users