Prevent unnecessary warnings when getting rtpsource or rtpdest.
authorMark Michelson <mmichelson@digium.com>
Wed, 5 May 2010 18:28:05 +0000 (18:28 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 5 May 2010 18:28:05 +0000 (18:28 +0000)
commita6ea125e7c1937154148c972cbe1c42f498a77df
tree97e0403e2ac2050edfee5f402eb319dbabc6ce63
parentd7ff67179d89f7171afe50d6f4414eb8b906d924
Prevent unnecessary warnings when getting rtpsource or rtpdest.

If a recognized media type was present, but the media type was not
enabled for the channel, then a warning would be emitted. For instance,
attempting to get CHANNEL(rtpsource,video) on a call with no video would
cause a warning message to appear.

With this change, the warning will only appear if the stream argument
is not recognized as being a media type that can be specified.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@261313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/sip/dialplan_functions.c