[asterisk-dev] Confbridge: Configure sound_leader_has_left
Pawel Kuzak
pawel.kuzak at 1und1.de
Mon Apr 23 03:28:38 CDT 2012
Hi,
I think I've found a minor bug in the Confbridge module. I tried to set
the sound /sound_leader_has_left /in the /confbridge.conf/, but it
didn't work. After checking the sources it seemed to me that the part
for reading the user configuration for this sound is missing. I made a
patch (see attachment) that I am using and I want to share it with you.
Greetings,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120423/d070b872/attachment.htm>
-------------- next part --------------
#! /bin/sh /usr/share/dpatch/dpatch-run
## leaderhasleft_sound.dpatch by <Pawel Kuzak <pawel.kuzak at schlund.de>>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad ui-asterisk~/apps/confbridge/conf_config_parser.c ui-asterisk/apps/confbridge/conf_config_parser.c
--- ui-asterisk~/apps/confbridge/conf_config_parser.c 2012-01-09 09:46:33.000000000 +0100
+++ ui-asterisk/apps/confbridge/conf_config_parser.c 2012-02-22 10:10:30.721648095 +0100
@@ -239,6 +239,8 @@
ast_string_field_set(sounds, placeintoconf, sound_file);
} else if (!strcasecmp(sound_name, "sound_wait_for_leader")) {
ast_string_field_set(sounds, waitforleader, sound_file);
+ } else if (!strcasecmp(sound_name, "sound_leader_has_left")) {
+ ast_string_field_set(sounds, leaderhasleft, sound_file);
} else if (!strcasecmp(sound_name, "sound_get_pin")) {
ast_string_field_set(sounds, getpin, sound_file);
} else if (!strcasecmp(sound_name, "sound_invalid_pin")) {
@@ -328,6 +330,7 @@
ast_string_field_set(sounds, otherinparty, tmp->sounds->otherinparty);
ast_string_field_set(sounds, placeintoconf, tmp->sounds->placeintoconf);
ast_string_field_set(sounds, waitforleader, tmp->sounds->waitforleader);
+ ast_string_field_set(sounds, leaderhasleft, tmp->sounds->leaderhasleft);
ast_string_field_set(sounds, getpin, tmp->sounds->getpin);
ast_string_field_set(sounds, invalidpin, tmp->sounds->invalidpin);
ast_string_field_set(sounds, locked, tmp->sounds->locked);
@@ -1021,6 +1024,7 @@
ast_cli(a->fd,"sound_other_in_party: %s\n", conf_get_sound(CONF_SOUND_OTHER_IN_PARTY, b_profile.sounds));
ast_cli(a->fd,"sound_place_into_conference: %s\n", conf_get_sound(CONF_SOUND_PLACE_IN_CONF, b_profile.sounds));
ast_cli(a->fd,"sound_wait_for_leader: %s\n", conf_get_sound(CONF_SOUND_WAIT_FOR_LEADER, b_profile.sounds));
+ ast_cli(a->fd,"sound_leader_has_left: %s\n", conf_get_sound(CONF_SOUND_LEADER_HAS_LEFT, b_profile.sounds));
ast_cli(a->fd,"sound_get_pin: %s\n", conf_get_sound(CONF_SOUND_GET_PIN, b_profile.sounds));
ast_cli(a->fd,"sound_invalid_pin: %s\n", conf_get_sound(CONF_SOUND_INVALID_PIN, b_profile.sounds));
ast_cli(a->fd,"sound_locked: %s\n", conf_get_sound(CONF_SOUND_LOCKED, b_profile.sounds));
More information about the asterisk-dev
mailing list