diff options
Diffstat (limited to 'channels/sip/dialplan_functions.c')
-rw-r--r-- | channels/sip/dialplan_functions.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/sip/dialplan_functions.c b/channels/sip/dialplan_functions.c index 509eacf31..bbc846fe9 100644 --- a/channels/sip/dialplan_functions.c +++ b/channels/sip/dialplan_functions.c @@ -91,8 +91,9 @@ int sip_acf_channel_read(struct ast_channel *chan, const char *funcname, char *p else return -1; + /* Return 0 to suppress a console warning message */ if (!stream) { - return -1; + return 0; } ast_rtp_instance_get_remote_address(stream, &sin); @@ -113,8 +114,9 @@ int sip_acf_channel_read(struct ast_channel *chan, const char *funcname, char *p else return -1; + /* Return 0 to suppress a console warning message */ if (!stream) { - return -1; + return 0; } ast_rtp_instance_get_local_address(stream, &sin); |