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-apps/src/pjsua/pjsua_app.c

    r2370 r2371  
    23942394 * Redirection handler. 
    23952395 */ 
    2396 static void call_on_redirected(pjsua_call_id call_id, const pjsip_uri *target, 
    2397                                pjsip_redirect_op *cmd, const pjsip_event *e) 
    2398 { 
    2399     *cmd = app_config.redir_op; 
    2400  
     2396static pjsip_redirect_op call_on_redirected(pjsua_call_id call_id,  
     2397                                            const pjsip_uri *target, 
     2398                                            const pjsip_event *e) 
     2399{ 
    24012400    PJ_UNUSED_ARG(e); 
    24022401 
    2403     if (*cmd == PJSIP_REDIRECT_PENDING) { 
     2402    if (app_config.redir_op == PJSIP_REDIRECT_PENDING) { 
    24042403        char uristr[PJSIP_MAX_URL_SIZE]; 
    24052404        int len; 
     
    24162415                  call_id, len, uristr)); 
    24172416    } 
     2417 
     2418    return app_config.redir_op; 
    24182419} 
    24192420 
Note: See TracChangeset for help on using the changeset viewer.