returing proper status from megaco_context_add_termination API
This commit is contained in:
parent
263dc459a8
commit
3eba8a7940
|
@ -435,14 +435,16 @@ switch_status_t megaco_context_add_termination(mg_context_t *ctx, mg_termination
|
|||
|
||||
if (ctx->terminations[0] && ctx->terminations[1]) {
|
||||
if (zstr(ctx->terminations[0]->uuid)) {
|
||||
status = megaco_activate_termination(ctx->terminations[0]);
|
||||
if(SWITCH_STATUS_SUCCESS != (status = megaco_activate_termination(ctx->terminations[0]))){
|
||||
return status;
|
||||
}
|
||||
}
|
||||
if (zstr(ctx->terminations[1]->uuid)) {
|
||||
status = megaco_activate_termination(ctx->terminations[1]);
|
||||
if(SWITCH_STATUS_SUCCESS != (status = megaco_activate_termination(ctx->terminations[1]))){
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
||||
if(SWITCH_STATUS_SUCCESS != status) return status;
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Bridging: %s (%s) <> %s (%s)\n",
|
||||
ctx->terminations[0]->name, ctx->terminations[0]->uuid,
|
||||
ctx->terminations[1]->name, ctx->terminations[1]->uuid);
|
||||
|
|
Loading…
Reference in New Issue