Changeset 733 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Sep 22, 2006 12:48:18 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r729 r733 2105 2105 } else { 2106 2106 int call = current_call; 2107 pjsua_msg_data msg_data; 2108 pjsip_generic_string_hdr refer_sub; 2109 pj_str_t STR_REFER_SUB = { "Refer-Sub", 9 }; 2110 pj_str_t STR_FALSE = { "false", 5 }; 2107 2111 2108 2112 ui_input_url("Transfer to URL", buf, sizeof(buf), &result); … … 2114 2118 continue; 2115 2119 } 2120 2121 /* Add Refer-Sub: false in outgoing REFER request */ 2122 pjsua_msg_data_init(&msg_data); 2123 pjsip_generic_string_hdr_init2(&refer_sub, &STR_REFER_SUB, 2124 &STR_FALSE); 2125 pj_list_push_back(&msg_data.hdr_list, &refer_sub); 2116 2126 2117 2127 if (result.nb_result != NO_NB) { … … 2121 2131 pjsua_buddy_info binfo; 2122 2132 pjsua_buddy_get_info(result.nb_result-1, &binfo); 2123 pjsua_call_xfer( current_call, &binfo.uri, NULL);2133 pjsua_call_xfer( current_call, &binfo.uri, &msg_data); 2124 2134 } 2125 2135 … … 2127 2137 pj_str_t tmp; 2128 2138 tmp = pj_str(result.uri_result); 2129 pjsua_call_xfer( current_call, &tmp, NULL);2139 pjsua_call_xfer( current_call, &tmp, &msg_data); 2130 2140 } 2131 2141 }
Note: See TracChangeset
for help on using the changeset viewer.