Ignore:
Timestamp:
Feb 27, 2013 10:11:59 AM (7 years ago)
Author:
nanang
Message:

Re #1556: backported to 1.x

Location:
pjproject/branches/1.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x

  • pjproject/branches/1.x/pjsip/src/test/tsx_uac_test.c

    r3553 r4385  
    160160static void tsx_user_on_tsx_state(pjsip_transaction *tsx, pjsip_event *e) 
    161161{ 
    162     if (pj_strcmp2(&tsx->branch, TEST1_BRANCH_ID)==0) { 
     162    if (pj_stricmp2(&tsx->branch, TEST1_BRANCH_ID)==0) { 
    163163        /* 
    164164         * Transaction with TEST1_BRANCH_ID should terminate with transaction 
     
    214214        } 
    215215 
    216     } else if (pj_strcmp2(&tsx->branch, TEST2_BRANCH_ID)==0) { 
     216    } else if (pj_stricmp2(&tsx->branch, TEST2_BRANCH_ID)==0) { 
    217217        /* 
    218218         * Transaction with TEST2_BRANCH_ID should terminate with transport error. 
     
    232232        } 
    233233 
    234     } else if (pj_strcmp2(&tsx->branch, TEST3_BRANCH_ID)==0) { 
     234    } else if (pj_stricmp2(&tsx->branch, TEST3_BRANCH_ID)==0) { 
    235235        /* 
    236236         * This test terminates the transaction while resolver is still 
     
    257257        } 
    258258 
    259     } else if (pj_strcmp2(&tsx->branch, TEST4_BRANCH_ID)==0) { 
     259    } else if (pj_stricmp2(&tsx->branch, TEST4_BRANCH_ID)==0) { 
    260260        /*  
    261261         * This test simulates transport failure after several  
     
    285285 
    286286 
    287     } else if (pj_strcmp2(&tsx->branch, TEST5_BRANCH_ID)==0) { 
     287    } else if (pj_stricmp2(&tsx->branch, TEST5_BRANCH_ID)==0) { 
    288288        /*  
    289289         * This test simulates transport failure after several  
     
    313313 
    314314 
    315     } else if (pj_strcmp2(&tsx->branch, TEST6_BRANCH_ID)==0) { 
     315    } else if (pj_stricmp2(&tsx->branch, TEST6_BRANCH_ID)==0) { 
    316316        /*  
    317317         * Successfull non-INVITE transaction. 
     
    356356        } 
    357357 
    358     } else if (pj_strcmp2(&tsx->branch, TEST7_BRANCH_ID)==0) { 
     358    } else if (pj_stricmp2(&tsx->branch, TEST7_BRANCH_ID)==0) { 
    359359        /*  
    360360         * Successfull non-INVITE transaction. 
     
    409409 
    410410 
    411     } else if (pj_strcmp2(&tsx->branch, TEST8_BRANCH_ID)==0) { 
     411    } else if (pj_stricmp2(&tsx->branch, TEST8_BRANCH_ID)==0) { 
    412412        /*  
    413413         * Failed INVITE transaction. 
     
    469469 
    470470 
    471     } else if (pj_strcmp2(&tsx->branch, TEST9_BRANCH_ID)==0) { 
     471    } else if (pj_stricmp2(&tsx->branch, TEST9_BRANCH_ID)==0) { 
    472472        /*  
    473473         * Failed INVITE transaction with provisional response. 
     
    584584static pj_bool_t msg_receiver_on_rx_request(pjsip_rx_data *rdata) 
    585585{ 
    586     if (pj_strcmp2(&rdata->msg_info.via->branch_param, TEST1_BRANCH_ID) == 0) { 
     586    if (pj_stricmp2(&rdata->msg_info.via->branch_param, TEST1_BRANCH_ID) == 0) { 
    587587        /* 
    588588         * The TEST1_BRANCH_ID test performs the verifications for transaction 
     
    652652 
    653653    } else 
    654     if (pj_strcmp2(&rdata->msg_info.via->branch_param, TEST4_BRANCH_ID) == 0) { 
     654    if (pj_stricmp2(&rdata->msg_info.via->branch_param, TEST4_BRANCH_ID) == 0) { 
    655655        /* 
    656656         * The TEST4_BRANCH_ID test simulates transport failure after several 
     
    673673 
    674674    } else 
    675     if (pj_strcmp2(&rdata->msg_info.via->branch_param, TEST5_BRANCH_ID) == 0) { 
     675    if (pj_stricmp2(&rdata->msg_info.via->branch_param, TEST5_BRANCH_ID) == 0) { 
    676676        /* 
    677677         * The TEST5_BRANCH_ID test simulates user terminating the transaction 
     
    704704 
    705705    } else 
    706     if (pj_strcmp2(&rdata->msg_info.via->branch_param, TEST6_BRANCH_ID) == 0) { 
     706    if (pj_stricmp2(&rdata->msg_info.via->branch_param, TEST6_BRANCH_ID) == 0) { 
    707707        /* 
    708708         * The TEST6_BRANCH_ID test successfull non-INVITE transaction. 
     
    729729 
    730730    } else 
    731     if (pj_strcmp2(&rdata->msg_info.via->branch_param, TEST7_BRANCH_ID) == 0) { 
     731    if (pj_stricmp2(&rdata->msg_info.via->branch_param, TEST7_BRANCH_ID) == 0) { 
    732732        /* 
    733733         * The TEST7_BRANCH_ID test successfull non-INVITE transaction 
     
    779779 
    780780    } else 
    781     if (pj_strcmp2(&rdata->msg_info.via->branch_param, TEST8_BRANCH_ID) == 0) { 
     781    if (pj_stricmp2(&rdata->msg_info.via->branch_param, TEST8_BRANCH_ID) == 0) { 
    782782        /* 
    783783         * The TEST8_BRANCH_ID test failed INVITE transaction. 
     
    842842 
    843843    } else 
    844     if (pj_strcmp2(&rdata->msg_info.via->branch_param, TEST9_BRANCH_ID) == 0) { 
     844    if (pj_stricmp2(&rdata->msg_info.via->branch_param, TEST9_BRANCH_ID) == 0) { 
    845845        /* 
    846846         * The TEST9_BRANCH_ID test failed INVITE transaction with 
Note: See TracChangeset for help on using the changeset viewer.