Changeset 2903 for pjproject/trunk


Ignore:
Timestamp:
Aug 19, 2009 9:39:17 AM (15 years ago)
Author:
bennylp
Message:

Misc #951: use UPPERCASE characters in transport type in SIP Via header, some endpoints complain about it (thanks Tzury Bar Yochay and Alain Totouom for the report)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_msg.c

    r2724 r2903  
    2222#include <pjsip/print_util.h> 
    2323#include <pjsip/sip_errno.h> 
     24#include <pj/ctype.h> 
    2425#include <pj/string.h> 
    2526#include <pj/pool.h> 
     
    19041905    pj_memcpy(buf, sip_ver.ptr, sip_ver.slen); 
    19051906    buf += sip_ver.slen; 
    1906     pj_memcpy(buf, hdr->transport.ptr, hdr->transport.slen); 
     1907    //pj_memcpy(buf, hdr->transport.ptr, hdr->transport.slen); 
     1908    /* Convert transport type to UPPERCASE (some endpoints want that) */ 
     1909    { 
     1910        int i; 
     1911        for (i=0; i<hdr->transport.slen; ++i) { 
     1912            buf[i] = (char)pj_toupper(hdr->transport.ptr[i]); 
     1913        } 
     1914    } 
    19071915    buf += hdr->transport.slen; 
    19081916    *buf++ = ' '; 
Note: See TracChangeset for help on using the changeset viewer.