summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsip-ua
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-06-02 08:17:56 +0000
committerBenny Prijono <bennylp@teluu.com>2009-06-02 08:17:56 +0000
commitfad187f773f6ce7de945f95feecf24c589e985c8 (patch)
tree0bc8858e415d792d89d4079adf73b8406b672874 /pjsip/src/pjsip-ua
parentdb8640b0bc2a82c87576ed4b7ae33cdf25620c6d (diff)
Ticket #870: Changed the mapping of host resolution failure to SIP status code 502 from 503 (thanks Robert Cichielo for the report)
- also fixed client registration to use the reason phrase of the transaction rather than to retrieve the default reason phrase for the status code git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2732 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsip-ua')
-rw-r--r--pjsip/src/pjsip-ua/sip_reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjsip/src/pjsip-ua/sip_reg.c b/pjsip/src/pjsip-ua/sip_reg.c
index d08427db..5278ae48 100644
--- a/pjsip/src/pjsip-ua/sip_reg.c
+++ b/pjsip/src/pjsip-ua/sip_reg.c
@@ -1056,7 +1056,7 @@ static void tsx_callback(void *token, pjsip_event *event)
pj_lock_release(regc->lock);
call_callback(regc, PJ_SUCCESS, tsx->status_code,
(rdata ? &rdata->msg_info.msg->line.status.reason
- : pjsip_get_status_text(tsx->status_code)),
+ : &tsx->status_text),
rdata, expiration,
contact_cnt, contact);
pj_lock_acquire(regc->lock);