char *reply = "error/facility_not_subscribed";
switch_stream_handle_t mystream = { 0 };
-
if (!cmd) {
stream->write_function(stream, "%s", "");
return SWITCH_STATUS_SUCCESS;
exclude_contact = switch_channel_get_variable(channel, "sip_exclude_contact");
}
-
data = strdup(cmd);
switch_assert(data);
domain = dup_domain;
}
- if (!user) goto end;
-
-
SWITCH_STANDARD_STREAM(mystream);
switch_assert(mystream.data);
select_url(user, domain, concat, exclude_contact, &mystream);
reply = mystream.data;
-
- end:
-
if (zstr(reply)) {
reply = "error/user_not_registered";
} else if (end_of(reply) == ',') {
reply = NULL;
switch_safe_free(mystream.data);
-
switch_safe_free(data);
switch_safe_free(dup_domain);