Ignore:
Timestamp:
Oct 18, 2006 5:16:34 PM (16 years ago)
Author:
bennylp
Message:

Some changes to REFER handling in PJSUA-LIB:

  • added callback to report call transfer progress
  • changed the call transfer request callback name in pjsua
  • added "--norefersub" option in pjsua.
  • fixed bug when call transfer is done more than once in the same dialog (dialog usage can not be added)

Also removed 7xx status from the SIP status codes.

And added pjsip_parse_status_line() to parse sipfrag.

File:
1 edited

Legend:

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

    r753 r780  
    310310     * transfer. 
    311311     */ 
    312     void (*on_call_transfered)(pjsua_call_id call_id, 
    313                                const pj_str_t *dst, 
    314                                pjsip_status_code *code); 
     312    void (*on_call_transfer_request)(pjsua_call_id call_id, 
     313                                     const pj_str_t *dst, 
     314                                     pjsip_status_code *code); 
     315 
     316    /** 
     317     * Notify application of the status of previously sent call 
     318     * transfer request. Application can monitor the status of the 
     319     * call transfer request, for example to decide whether to  
     320     * terminate existing call. 
     321     * 
     322     * @param call_id       Call ID. 
     323     * @param status_code   Status progress of the transfer request. 
     324     * @param status_text   Status progress text. 
     325     * @param final         If non-zero, no further notification will 
     326     *                      be reported. The status_code specified in 
     327     *                      this callback is the final status. 
     328     * @param p_cont        Initially will be set to non-zero, application 
     329     *                      can set this to FALSE if it no longer wants 
     330     *                      to receie further notification (for example, 
     331     *                      after it hangs up the call). 
     332     */ 
     333    void (*on_call_transfer_status)(pjsua_call_id call_id, 
     334                                    int status_code, 
     335                                    const pj_str_t *status_text, 
     336                                    pj_bool_t final, 
     337                                    pj_bool_t *p_cont); 
    315338 
    316339    /** 
Note: See TracChangeset for help on using the changeset viewer.