From 159bce8846c6ad6a801085814ce456b13d90b395 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 16 Aug 2007 10:11:44 +0000 Subject: Ticket #354: continuing work to port the Symbian libraries to .DSO format git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1417 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsip-ua/sip_xfer.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'pjsip/src/pjsip-ua/sip_xfer.c') diff --git a/pjsip/src/pjsip-ua/sip_xfer.c b/pjsip/src/pjsip-ua/sip_xfer.c index a4c46629..b9c41e88 100644 --- a/pjsip/src/pjsip-ua/sip_xfer.c +++ b/pjsip/src/pjsip-ua/sip_xfer.c @@ -57,11 +57,15 @@ enum PJSIP_REFER_METHOD = PJSIP_OTHER_METHOD }; -const pjsip_method pjsip_refer_method = { +PJ_DEF_DATA(const pjsip_method) pjsip_refer_method = { (pjsip_method_e) PJSIP_REFER_METHOD, { "REFER", 5} }; +PJ_DEF(const pjsip_method*) pjsip_get_refer_method() +{ + return &pjsip_refer_method; +} /* * String constants @@ -144,7 +148,8 @@ PJ_DEF(pj_status_t) pjsip_xfer_init_module(pjsip_endpoint *endpt) return status; status = pjsip_endpt_add_capability( endpt, &mod_xfer, PJSIP_H_ALLOW, - NULL, 1, &pjsip_refer_method.name); + NULL, 1, + &pjsip_get_refer_method()->name); if (status != PJ_SUCCESS) return status; @@ -223,7 +228,7 @@ PJ_DEF(pj_status_t) pjsip_xfer_create_uas( pjsip_dialog *dlg, /* Check that request is REFER */ PJ_ASSERT_RETURN(pjsip_method_cmp(&rdata->msg_info.msg->line.req.method, - &pjsip_refer_method)==0, + pjsip_get_refer_method())==0, PJSIP_ENOTREFER); /* Lock dialog */ @@ -298,7 +303,7 @@ PJ_DEF(pj_status_t) pjsip_xfer_initiate( pjsip_evsub *sub, pjsip_dlg_inc_lock(xfer->dlg); /* Create basic REFER request */ - status = pjsip_evsub_initiate(sub, &pjsip_refer_method, -1, + status = pjsip_evsub_initiate(sub, pjsip_get_refer_method(), -1, &tdata); if (status != PJ_SUCCESS) goto on_return; -- cgit v1.2.3