Changeset 4532


Ignore:
Timestamp:
Jun 7, 2013 7:26:33 AM (11 years ago)
Author:
bennylp
Message:

Fixed #1673: Use Request URI when matching incoming request to account if the To URI contains tel: URL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r4531 r4532  
    26252625    uri = rdata->msg_info.to->uri; 
    26262626 
    2627     /* Just return default account if To URI is not SIP: */ 
     2627    /* Use Req URI if To URI is not SIP */ 
     2628    if (!PJSIP_URI_SCHEME_IS_SIP(uri) && 
     2629        !PJSIP_URI_SCHEME_IS_SIPS(uri)) 
     2630    { 
     2631        if (rdata->msg_info.msg->type == PJSIP_REQUEST_MSG) 
     2632            uri = rdata->msg_info.msg->line.req.uri; 
     2633        else 
     2634            return pjsua_var.default_acc; 
     2635    } 
     2636 
     2637    /* Just return default account if both To and Req URI are not SIP: */ 
    26282638    if (!PJSIP_URI_SCHEME_IS_SIP(uri) &&  
    26292639        !PJSIP_URI_SCHEME_IS_SIPS(uri))  
Note: See TracChangeset for help on using the changeset viewer.