summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-06-03 19:59:16 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-06-03 19:59:16 +0200
commit818a2288f4a523666c2d5fe2c7db98b5adb05cb8 (patch)
tree02fd4e17bbbb469d1bdadf1a087770f1effbbfe3 /src
parent9c2b349424c49cd94e18c788e6fe9527d04be5d1 (diff)
ua: add ua_progress() and testcase
Diffstat (limited to 'src')
-rw-r--r--src/ua.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ua.c b/src/ua.c
index 8a2bc61..1752061 100644
--- a/src/ua.c
+++ b/src/ua.c
@@ -850,6 +850,21 @@ int ua_answer(struct ua *ua, struct call *call)
}
+int ua_progress(struct ua *ua, struct call *call)
+{
+ if (!ua)
+ return EINVAL;
+
+ if (!call) {
+ call = ua_call(ua);
+ if (!call)
+ return ENOENT;
+ }
+
+ return call_progress(call);
+}
+
+
/**
* Put the current call on hold and answer the incoming call
*