summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron Herting <aaron@herting.cc>2014-02-24 20:54:34 -0500
committerAaron Herting <aaron@herting.cc>2014-02-24 20:54:34 -0500
commitf32b363841155fe021f8e417f9d8ed928b89f557 (patch)
tree5637aa135bb157092c1be97521c826eb529b0bf4 /src
parentb823b7d4481612b7047d7ad87911218893a2297b (diff)
added dtmfio module
Diffstat (limited to 'src')
-rw-r--r--src/call.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/call.c b/src/call.c
index dc3edb5..3114830 100644
--- a/src/call.c
+++ b/src/call.c
@@ -1553,7 +1553,12 @@ void call_set_handlers(struct call *call, call_event_h *eh,
if (!call)
return;
- call->eh = eh;
- call->dtmfh = dtmfh;
- call->arg = arg;
+ if (eh)
+ call->eh = eh;
+
+ if (dtmfh)
+ call->dtmfh = dtmfh;
+
+ if (arg)
+ call->arg = arg;
}