Changeset 1938 for pjproject/trunk


Ignore:
Timestamp:
Apr 22, 2008 6:33:55 PM (17 years ago)
Author:
bennylp
Message:

Fixed bug in invalid Contact address being generated upon NAT detection, when no username part is present in the account ID

File:
1 edited

Legend:

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

    r1931 r1938  
    582582        tmp = (char*) pj_pool_alloc(pool, PJSIP_MAX_URL_SIZE); 
    583583        len = pj_ansi_snprintf(tmp, PJSIP_MAX_URL_SIZE, 
    584                                "<sip:%.*s@%.*s:%d;transport=%s>", 
     584                               "<sip:%.*s%s%.*s:%d;transport=%s>", 
    585585                               (int)acc->user_part.slen, 
    586586                               acc->user_part.ptr, 
     587                               (acc->user_part.slen? "@" : ""), 
    587588                               (int)via_addr->slen, 
    588589                               via_addr->ptr, 
Note: See TracChangeset for help on using the changeset viewer.