Changeset 1417 for pjproject/trunk/pjsip/src/pjsip-ua/sip_xfer.c
- Timestamp:
- Aug 16, 2007 10:11:44 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_xfer.c
r1266 r1417 58 58 }; 59 59 60 const pjsip_methodpjsip_refer_method = {60 PJ_DEF_DATA(const pjsip_method) pjsip_refer_method = { 61 61 (pjsip_method_e) PJSIP_REFER_METHOD, 62 62 { "REFER", 5} 63 63 }; 64 64 65 PJ_DEF(const pjsip_method*) pjsip_get_refer_method() 66 { 67 return &pjsip_refer_method; 68 } 65 69 66 70 /* … … 145 149 146 150 status = pjsip_endpt_add_capability( endpt, &mod_xfer, PJSIP_H_ALLOW, 147 NULL, 1, &pjsip_refer_method.name); 151 NULL, 1, 152 &pjsip_get_refer_method()->name); 148 153 if (status != PJ_SUCCESS) 149 154 return status; … … 224 229 /* Check that request is REFER */ 225 230 PJ_ASSERT_RETURN(pjsip_method_cmp(&rdata->msg_info.msg->line.req.method, 226 &pjsip_refer_method)==0,231 pjsip_get_refer_method())==0, 227 232 PJSIP_ENOTREFER); 228 233 … … 299 304 300 305 /* Create basic REFER request */ 301 status = pjsip_evsub_initiate(sub, &pjsip_refer_method, -1,306 status = pjsip_evsub_initiate(sub, pjsip_get_refer_method(), -1, 302 307 &tdata); 303 308 if (status != PJ_SUCCESS)
Note: See TracChangeset
for help on using the changeset viewer.