add param

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6317 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-11-17 00:26:28 +00:00
parent 74b563c23e
commit 5fe2353c2f
4 changed files with 78 additions and 23 deletions

View File

@@ -1510,7 +1510,7 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
return data;
}
SWITCH_DECLARE(char *) switch_channel_build_param_string(switch_channel_t *channel, switch_caller_profile_t *caller_profile)
SWITCH_DECLARE(char *) switch_channel_build_param_string(switch_channel_t *channel, switch_caller_profile_t *caller_profile, const char *prefix)
{
switch_stream_handle_t stream = { 0 };
switch_size_t encode_len = 1024, new_len = 0;
@@ -1522,6 +1522,10 @@ SWITCH_DECLARE(char *) switch_channel_build_param_string(switch_channel_t *chann
SWITCH_STANDARD_STREAM(stream);
if (prefix) {
stream.write_function(&stream, "%s&", prefix);
}
encode_buf = malloc(encode_len);
assert(encode_buf);