Changeset 1912 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- Apr 8, 2008 11:33:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r1909 r1912 3006 3006 3007 3007 /* Notify callback */ 3008 code = PJSIP_SC_ OK;3008 code = PJSIP_SC_ACCEPTED; 3009 3009 if (pjsua_var.ua_cfg.cb.on_call_transfer_request) 3010 3010 (*pjsua_var.ua_cfg.cb.on_call_transfer_request)(existing_call->index, … … 3013 3013 3014 3014 if (code < 200) 3015 code = PJSIP_SC_ OK;3015 code = PJSIP_SC_ACCEPTED; 3016 3016 if (code >= 300) { 3017 3017 /* Application rejects call transfer request */ … … 3028 3028 if (no_refer_sub) { 3029 3029 /* 3030 * Always answer with 2 00.3030 * Always answer with 2xx. 3031 3031 */ 3032 3032 pjsip_tx_data *tdata; … … 3034 3034 pjsip_hdr *hdr; 3035 3035 3036 status = pjsip_dlg_create_response(inv->dlg, rdata, 200, NULL, &tdata); 3036 status = pjsip_dlg_create_response(inv->dlg, rdata, code, NULL, 3037 &tdata); 3037 3038 if (status != PJ_SUCCESS) { 3038 pjsua_perror(THIS_FILE, "Unable to create 2 00response to REFER",3039 pjsua_perror(THIS_FILE, "Unable to create 2xx response to REFER", 3039 3040 status); 3040 3041 return; … … 3052 3053 tdata); 3053 3054 if (status != PJ_SUCCESS) { 3054 pjsua_perror(THIS_FILE, "Unable to create 2 00response to REFER",3055 pjsua_perror(THIS_FILE, "Unable to create 2xx response to REFER", 3055 3056 status); 3056 3057 return; … … 3094 3095 } 3095 3096 3096 /* Accept the REFER request, send 2 00 (OK). */3097 /* Accept the REFER request, send 2xx. */ 3097 3098 pjsip_xfer_accept(sub, rdata, code, &hdr_list); 3098 3099
Note: See TracChangeset
for help on using the changeset viewer.