Ignore:
Timestamp:
Apr 28, 2009 10:19:49 PM (15 years ago)
Author:
bennylp
Message:

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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r2506 r2661  
    20382038 */ 
    20392039#ifndef PJSUA_PUBLISH_EXPIRATION 
    2040 #   define PJSUA_PUBLISH_EXPIRATION 600 
     2040#   define PJSUA_PUBLISH_EXPIRATION PJSIP_PUBC_EXPIRATION_NOT_SPECIFIED 
    20412041#endif 
    20422042 
     
    34943494/** 
    34953495 * This specifies how long the library should retry resending SUBSCRIBE 
    3496  * if the previous SUBSCRIBE failed. 
     3496 * if the previous SUBSCRIBE failed. This also controls the duration  
     3497 * before failed PUBLISH request will be retried. 
    34973498 * 
    34983499 * Default: 300 seconds 
Note: See TracChangeset for help on using the changeset viewer.