Skip to content

Commit

Permalink
modules/ims_registrar_pcscf: lookup of contact should not be based on…
Browse files Browse the repository at this point in the history
… where request comes from
  • Loading branch information
jaybeepee committed Feb 20, 2015
1 parent d335d21 commit 0ec36ae
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/ims_registrar_pcscf/lookup.c
Expand Up @@ -59,17 +59,13 @@ int lookup_transport(struct sip_msg* _m, udomain_t* _d, str* _uri) {
str uri;
pcontact_t* pcontact;
char tmp[MAX_URI_SIZE];
char srcip[20];
str received_host;
str received_host = {0,0};
str tmp_s;
int ret = 1;

if (_m->new_uri.s) uri = _m->new_uri;
else uri = _m->first_line.u.request.uri;

received_host.len = ip_addr2sbuf(&_m->rcv.src_ip, srcip, sizeof(srcip));
received_host.s = srcip;

//now lookup in usrloc
ul.lock_udomain(_d, &uri, &received_host, _m->rcv.src_port);
if (ul.get_pcontact(_d, &uri, &received_host, _m->rcv.src_port, &pcontact) != 0) { //need to insert new contact
Expand Down

0 comments on commit 0ec36ae

Please sign in to comment.