diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-01-04 22:45:08 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-01-04 22:45:08 +0000 |
commit | 8ad7bc7bae775ae1292186c0cee9e2da138be54d (patch) | |
tree | 0595b1d657eb8b7636686ed9fa4cd6020096fe84 /pjsip/src | |
parent | 1c649378ac22d512909ebb2fbabfac041378991e (diff) |
Just updated and improved the doxygen documentations all over the place
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@875 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_call.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c index b042e935..f7b77348 100644 --- a/pjsip/src/pjsua-lib/pjsua_call.c +++ b/pjsip/src/pjsua-lib/pjsua_call.c @@ -686,10 +686,15 @@ pj_bool_t pjsua_call_on_incoming(pjsip_rx_data *rdata) } else { - /* Notify application */ - if (pjsua_var.ua_cfg.cb.on_incoming_call) + /* Notify application if on_incoming_call() is overriden, + * otherwise hangup the call with 480 + */ + if (pjsua_var.ua_cfg.cb.on_incoming_call) { pjsua_var.ua_cfg.cb.on_incoming_call(acc_id, call_id, rdata); - + } else { + pjsua_call_hangup(call_id, PJSIP_SC_TEMPORARILY_UNAVAILABLE, + NULL, NULL); + } } |