fix build

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11328 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-01-21 02:18:03 +00:00
parent 3a4f8d8a4a
commit dbeb3aa47d
2 changed files with 7 additions and 1 deletions

View File

@ -260,7 +260,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_add(switch_core_session_t
if (bug->callback) {
switch_bool_t result = bug->callback(bug, bug->user_data, SWITCH_ABC_TYPE_INIT);
if (result == SWITCH_FALSE) {
switch_core_media_bug_remove(session, new_bug);
switch_core_media_bug_remove(session, &bug);
*new_bug = NULL;
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error attaching BUG to %s\n", switch_channel_get_name(session->channel));
return SWITCH_STATUS_GENERR;
}

View File

@ -388,6 +388,11 @@ static uint8_t check_channel_status(originate_global_t *oglobals, originate_stat
int hits = 2;
char *p = ring_array[fx], *q;
if (!p) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error\n");
continue;
}
if (!(hits = atoi(p))) {
hits = 2;
}