Ignore:
Timestamp:
Nov 27, 2008 12:42:07 PM (15 years ago)
Author:
bennylp
Message:

More ticket #10: changed to signature of the redirection callbacks to make it more natural to use

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip-ua/sip_inv.h

    r2370 r2371  
    231231     * @param inv       The invite session. 
    232232     * @param target    The current target to be tried. 
    233      * @param cmd       Action to be performed for the target. Set this 
     233     * @param e         The event that caused this callback to be called. 
     234     *                  This could be the receipt of 3xx response, or 
     235     *                  4xx/5xx response received for the INVITE sent to 
     236     *                  subsequent targets, or NULL if this callback is 
     237     *                  called from within #pjsip_inv_process_redirect() 
     238     *                  context. 
     239     * 
     240     * @return          Action to be performed for the target. Set this 
    234241     *                  parameter to one of the value below: 
    235242     *                  - PJSIP_REDIRECT_ACCEPT: immediately accept the 
    236      *                    redirection (default value). When set, the 
     243     *                    redirection to this target. When set, the 
    237244     *                    session will immediately resend INVITE request 
    238      *                    to the target. 
     245     *                    to the target after this callback returns. 
    239246     *                  - PJSIP_REDIRECT_REJECT: immediately reject this 
    240247     *                    target. The session will continue retrying with 
     
    252259     *                    to either accept or reject the redirection upon 
    253260     *                    getting user decision. 
    254      * @param e         The event that caused this callback to be called. 
    255      *                  This could be the receipt of 3xx response, or 
    256      *                  4xx/5xx response received for the INVITE sent to 
    257      *                  subsequent targets, or NULL if this callback is 
    258      *                  called from within #pjsip_inv_process_redirect() 
    259      *                  context. 
    260      */ 
    261     void (*on_redirected)(pjsip_inv_session *inv, const pjsip_uri *target, 
    262                           pjsip_redirect_op *cmd, const pjsip_event *e); 
     261     */ 
     262    pjsip_redirect_op (*on_redirected)(pjsip_inv_session *inv,  
     263                                       const pjsip_uri *target, 
     264                                       const pjsip_event *e); 
    263265 
    264266} pjsip_inv_callback; 
Note: See TracChangeset for help on using the changeset viewer.