summaryrefslogtreecommitdiff
path: root/pjsip-apps
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-11-27 12:42:07 +0000
committerBenny Prijono <bennylp@teluu.com>2008-11-27 12:42:07 +0000
commitaa39a64bb0d43467eeceecf9759473135be09751 (patch)
tree7184fa543358b6c843ebfde889ee83a5cb6800fa /pjsip-apps
parentc40accaad90c1ec16cf734e478d13247812c0e0c (diff)
More ticket #10: changed to signature of the redirection callbacks to make it more natural to use
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2371 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps')
-rw-r--r--pjsip-apps/src/pjsua/pjsua_app.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c
index 870d0129..b3b5a98d 100644
--- a/pjsip-apps/src/pjsua/pjsua_app.c
+++ b/pjsip-apps/src/pjsua/pjsua_app.c
@@ -2393,14 +2393,13 @@ static void call_on_dtmf_callback(pjsua_call_id call_id, int dtmf)
/*
* Redirection handler.
*/
-static void call_on_redirected(pjsua_call_id call_id, const pjsip_uri *target,
- pjsip_redirect_op *cmd, const pjsip_event *e)
+static pjsip_redirect_op call_on_redirected(pjsua_call_id call_id,
+ const pjsip_uri *target,
+ const pjsip_event *e)
{
- *cmd = app_config.redir_op;
-
PJ_UNUSED_ARG(e);
- if (*cmd == PJSIP_REDIRECT_PENDING) {
+ if (app_config.redir_op == PJSIP_REDIRECT_PENDING) {
char uristr[PJSIP_MAX_URL_SIZE];
int len;
@@ -2415,6 +2414,8 @@ static void call_on_redirected(pjsua_call_id call_id, const pjsip_uri *target,
"disconnect.",
call_id, len, uristr));
}
+
+ return app_config.redir_op;
}
/*