diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-04-28 22:19:49 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-04-28 22:19:49 +0000 |
commit | 00ed64489de3c39a6a452e11bb43b2c1090c9307 (patch) | |
tree | e871adbe53ea5daa64515cdb0feb1102df7e34cc /pjsip/include/pjsua-lib | |
parent | 7a0ee1a7208ddfe8575d1f1179f66fda2fa99339 (diff) |
Ticket #760: Enhancements to PUBLISH management (thanks Johan Lantz for the suggestion)
- Changes in PJSUA-LIB
- retry with fresh request on 412/Conditional Request Failed response
- changed default Expires in PUBLISH request to none (we will not put Expires), to avoid getting 423/Interval Too Brief response
- if the PUBLISH fails for any reason, it will be retried on every PJSUA_PRES_TIMER (default 300 seconds), similar to how failed SUBSCRIBE will be retried
- Changes to publish.h:
- added API to add headers in every PUBLISH request
- Added test scenario in Python unit tests
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2661 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib')
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index 99869344..e17a7f64 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -2037,7 +2037,7 @@ PJ_DECL(pj_status_t) pjsua_transport_close( pjsua_transport_id id, * Default PUBLISH expiration */ #ifndef PJSUA_PUBLISH_EXPIRATION -# define PJSUA_PUBLISH_EXPIRATION 600 +# define PJSUA_PUBLISH_EXPIRATION PJSIP_PUBC_EXPIRATION_NOT_SPECIFIED #endif @@ -3493,7 +3493,8 @@ PJ_DECL(pj_status_t) pjsua_call_dump(pjsua_call_id call_id, /** * This specifies how long the library should retry resending SUBSCRIBE - * if the previous SUBSCRIBE failed. + * if the previous SUBSCRIBE failed. This also controls the duration + * before failed PUBLISH request will be retried. * * Default: 300 seconds */ |