diff options
author | Riza Sulistyo <riza@teluu.com> | 2014-01-24 09:32:27 +0000 |
---|---|---|
committer | Riza Sulistyo <riza@teluu.com> | 2014-01-24 09:32:27 +0000 |
commit | 514863030ea7a28b84d7880c848d2c3c8bcbf1fa (patch) | |
tree | d7a7b36bd84eb61e23ed7f7ba1264e0f319803e4 /pjsip/include | |
parent | 57460ee1295dfb681fcfeeeeaa16785aab571751 (diff) |
Re #1722:
- add handler for 502/503 response to refresh request.
- add expire timer for refresher.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4715 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip-ua/sip_timer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pjsip/include/pjsip-ua/sip_timer.h b/pjsip/include/pjsip-ua/sip_timer.h index aac4e689..1d40675d 100644 --- a/pjsip/include/pjsip-ua/sip_timer.h +++ b/pjsip/include/pjsip-ua/sip_timer.h @@ -200,6 +200,19 @@ PJ_DECL(pj_status_t) pjsip_timer_process_resp(pjsip_inv_session *inv, const pjsip_rx_data *rdata, pjsip_status_code *st_code); +/** + * Process Session Timers refresh error, this function will process + * error from refresh request. The error will be handle according the + * error code, i.e : BYE will be sent after error 503 (Transport Error). + * + * @param inv The invite session. + * @param event The event that trigger the error. + * + * @return PJ_SUCCESS on successful. + */ +PJ_DECL(pj_status_t) pjsip_timer_handle_refresh_error( + pjsip_inv_session *inv, + pjsip_event *event); /** * Process Session Timers headers in incoming request, this function |