mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
- Make sure we set setvar= variables on outbound calls too, not only inbound calls.
- Also, change a function in app.c to return a userful value instead of always returning 0. Patch by fnordian, changed by Corydon76 and myself. This does not close the bug report, as fnordian had an additional change we're still discussing. (related to issue #14059) Reported by: fnordian Patches: chan_sip_hfield.patch uploaded by fnordian (license 110) 20090116__bug14059.diff.txt uploaded by Corydon76 (license 14) Tested by: fnordian, Corydon76, oej git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@172268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1827,7 +1827,7 @@ int ast_get_encoded_char(const char *stream, char *result, size_t *consumed)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ast_get_encoded_str(const char *stream, char *result, size_t result_size)
|
||||
char *ast_get_encoded_str(const char *stream, char *result, size_t result_size)
|
||||
{
|
||||
char *cur = result;
|
||||
size_t consumed;
|
||||
@@ -1837,7 +1837,7 @@ int ast_get_encoded_str(const char *stream, char *result, size_t result_size)
|
||||
stream += consumed;
|
||||
}
|
||||
*cur = '\0';
|
||||
return 0;
|
||||
return result;
|
||||
}
|
||||
|
||||
void ast_close_fds_above_n(int n)
|
||||
|
Reference in New Issue
Block a user