2014-04-04 23:33, Johan Wilfer skrev:
Also - setting quiet=yes still plays join/leave sound. My current
work-around is:
sound_join=silence/1
sound_leave=silence/1
But this seems a bit ineffective... In Meetme the quiet-flag also
disabled join/leave sounds. Is this by design or an oversight?

Reading the source I get the impression that the intended behavior is:

1. Read "sound_only_person" if not flags "quiet" or "announce_only_user"
is set. (apps/app_confbridge.c:1099)
2. No join sounds if flag "quiet" is set. (apps/app_confbridge.c:1714)


But this is not what happens with 11.8.1, this is the bridge/user:

[conference_bridge]
type=bridge

[conference_user]
type=user
admin=no
marked=no
startmuted=no
announce_only_user=no
quiet=yes

With this I get join sounds played, and only_user is announced as well..



I should have gone to sleep I think, my brain doesn't work. I think I get it now however.

Short version:
With dynamic user profiles, CONFBRIDGE(user,template)=user_profile) must be used. The profile supplied in ConfBridge is ignored and I missed that. The end.


Long version:

This works:
ConfBridge(1,conference_bridge,conference_user);

dev02*CLI> confbridge list 1
Channel User Profile Bridge Profile Menu CallerID Muted ============================== ================ ================ ================ ================ ===== SIP/jttech_sip2-00000004 conference_user conference_bridge No


But this does not:
Set(CONFBRIDGE(user,startmuted)=no);
ConfBridge(1,conference_bridge,conference_user);

dev02*CLI> confbridge list 1
Channel User Profile Bridge Profile Menu CallerID Muted ============================== ================ ================ ================ ================ ===== SIP/jttech_sip2-00000005 conference_bridge No

I expected Confbridge to use the supplied user_profile as a template and overlay the specific settings I set with CONFBRIDGE(user) on top of that profile. But instead it seems like the default profile is used.



This however works (I should have read the docs more carefully):

Set(CONFBRIDGE(user,template)=conference_user);
Set(CONFBRIDGE(user,startmuted)=no);
ConfBridge(1,conference_bridge);

dev02*CLI> confbridge list 1
Channel User Profile Bridge Profile Menu CallerID Muted ============================== ================ ================ ================ ================ ===== SIP/jttech_sip2-00000007 conference_user conference_bridge Yes

With dynamic user profiles, CONFBRIDGE(user,template)=user_profile) must be used. The profile supplied in ConfBridge is ignored if one is present.

I didn't expect that...


--
Johan Wilfer

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to