[asterisk-users] Confbridge options

2014-04-04 Thread Johan Wilfer

Hi,

I'm doing an evaluation of Confbridge (migrating from Meetme). Looking 
at: https://wiki.asterisk.org/wiki/display/AST/ConfBridge+10
Under the heading User Profile Configuration Options the option 
announce_only_user is present. The sample config looks like this:

--
;announce_only_user=yes ;Sets if the only user announcement should be 
played when a channel enters a empty conference.  On by default.

--
But - disabling it (announce_only_user=no) doesn't take effect. And 
looking at the source asterisk-11.8.1/apps/app_confbridge.c I can't even 
find this option. Any clues?



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?



--
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


Re: [asterisk-users] Confbridge options

2014-04-04 Thread Johan Wilfer

2014-04-04 22:01, Johan Wilfer skrev:

Hi,

I'm doing an evaluation of Confbridge (migrating from Meetme). Looking
at: https://wiki.asterisk.org/wiki/display/AST/ConfBridge+10
Under the heading User Profile Configuration Options the option
announce_only_user is present. The sample config looks like this:
--
;announce_only_user=yes ;Sets if the only user announcement should be
played when a channel enters a empty conference.  On by default.
--
But - disabling it (announce_only_user=no) doesn't take effect. And
looking at the source asterisk-11.8.1/apps/app_confbridge.c I can't even
find this option. Any clues?


Looked at the wrong file for config parsing, sorry for the noise. But 
the option is not respected thought.





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..


--
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


Re: [asterisk-users] Confbridge options

2014-04-04 Thread Johan Wilfer

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
ChannelUser Profile Bridge Profile   Menu 
  CallerID Muted
==   
  =
SIP/jttech_sip2-0004   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
ChannelUser Profile Bridge Profile   Menu 
  CallerID Muted
==   
  =
SIP/jttech_sip2-0005conference_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
ChannelUser Profile Bridge Profile   Menu 
  CallerID Muted
==   
  =
SIP/jttech_sip2-0007   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