Module: sip-router Branch: master Commit: edfc839ed2c0778f0ce370e5b1caf10f865cf524 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=edfc839e...
Author: Jason Penton jason.penton@gmail.com Committer: Jason Penton jason.penton@gmail.com Date: Wed Sep 3 12:05:21 2014 +0200
modules/ims_registrar_pcscf: fixed transport lookup code
---
modules/ims_registrar_pcscf/lookup.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/modules/ims_registrar_pcscf/lookup.c b/modules/ims_registrar_pcscf/lookup.c index a6f5ecd..aefddda 100644 --- a/modules/ims_registrar_pcscf/lookup.c +++ b/modules/ims_registrar_pcscf/lookup.c @@ -88,17 +88,17 @@ int lookup_transport(struct sip_msg* _m, udomain_t* _d, str* _uri) { ret = -2; goto done; } + + tmp_s.s = tmp; + tmp_s.len = strlen(tmp); + if (set_dst_uri(_m, &tmp_s) < 0) { + LM_ERR("failed to set dst_uri for terminating UE\n"); + ret = -2; + goto done; + } + LM_DBG("Changed dst URI transport for UE to [%.*s]\n", tmp_s.len, tmp_s.s); } - tmp_s.s = tmp; - tmp_s.len = strlen(tmp); - if (set_dst_uri(_m, &tmp_s) < 0) { - LM_ERR("failed to set dst_uri for terminating UE\n"); - ret = -2; - goto done; - } - LM_DBG("Changed dst URI transport for UE to [%.*s]\n", tmp_s.len, tmp_s.s); - done: ul.unlock_udomain(_d, &uri); return ret;