projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
265d0a0
)
Don't allow to run SIPDtmfMode on other channels than SIP ones.
author
Martin Pycko
<martinp@digium.com>
Fri, 14 Nov 2003 21:58:54 +0000
(21:58 +0000)
committer
Martin Pycko
<martinp@digium.com>
Fri, 14 Nov 2003 21:58:54 +0000
(21:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1750
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
34c9d4c
..
078aa70
100755
(executable)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-6266,6
+6266,10
@@
static int sip_dtmfmode(struct ast_channel *chan, void *data)
{
struct sip_pvt *p = chan->pvt->pvt;
char *mode;
{
struct sip_pvt *p = chan->pvt->pvt;
char *mode;
+ if (strcasecmp(chan->name, "SIP")) {
+ ast_log(LOG_WARNING, "Call this application only on SIP incoming calls\n");
+ return 0;
+ }
if (data)
mode = (char *)data;
else {
if (data)
mode = (char *)data;
else {