Change MusicOnHold in ConfBridge after some time

Hello,

I would like to change music on hold after some time when user is ConfBridge and in empty room(only one user)
I have something like this in confbridge.conf:

[guest_user_profile-test]
  type=user
  quiet=yes
  music_on_hold_when_empty=yes
  music_on_hold_class=default
  dsp_drop_silence=yes
  dtmf_passthrough=yes

and dialplan in extensions.conf:

[ext-confbridge-guest-test]
  exten => entry,1,GosubIf($["true" == "true"]?sub-record-file,s,1)
  same => n,ConfBridge(${ConferenceId},,guest_user_profile-test)
  same => n,Verbose(After conf bridge)

And I would like to set some sort of Timer that will after for example 1 minute change moh sound to another file(we will get to you as soon as possible etc.), then back to classic moh and in some cases hangup after third minute.

My easy solution is to create new playlist in musiconhold.conf with files with according length but with this solution I can’t hangup call.

Does anyone have experience or idea with that problem?

Thanks in advance

I would create music files containing exactly what you want to be played -
either:

music - announcement - music - announcement - music - etc

or:

music - announcement overlaid on music - music - announcement overlaid - etc

Antony.

Thanks Pooh, any help is appreciated. That was my first idea, but this solution does not solve the problem with Hangup. I would like to hangup the call when only one participant(guest) is in the room after some time so I thought about some timer but I can’t find clean solution to that.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Application_ConfBridge
contains the interesting status “TIMEOUT - The channel reached its configured
timeout.”

I don’t find any link saying how to set the timeout, though :frowning:

Antony.

Thanks a lot, I found this thread so I will try it and share the result :slight_smile: Confbridge timeout dynamic

Hi,

I tried setting timeout on ConfBridge user

same => n,Set(CONFBRIDGE(user,timeout)=20)

and even

  [guest_user_profile]
  type=user
  quiet=yes
  music_on_hold_when_empty=yes
  music_on_hold_class=default
  dsp_drop_silence=yes
  dtmf_passthrough=yes
  timeout=20

with no luck :frowning:

So I’m out of ideas and don’t know if this is even possible. I will probably end up with using AMI to hangup after defined time on some sort of Middleware

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.