Skip to content

Commit

Permalink
Revert "dmq: do not parse From header again, since it was done alread…
Browse files Browse the repository at this point in the history
…y prior to cloning msg."

This reverts commit 1025042.
  • Loading branch information
charlesrchance committed Jan 30, 2015
1 parent 4a316c1 commit 3ae78d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/dmq/worker.c
Expand Up @@ -91,11 +91,11 @@ void worker_loop(int id)
current_job = job_queue_pop(worker->queue);
/* job_queue_pop might return NULL if queue is empty */
if(current_job) {
/* attempt to identify node based on from uri */
if (current_job->msg->from->parsed) {
dmq_node = find_dmq_node_uri(node_list, &((struct to_body*)current_job->msg->from->parsed)->uri);
} else {
/* extract the from uri */
if (parse_from_header(current_job->msg) < 0) {
LM_ERR("bad sip message or missing From hdr\n");
} else {
dmq_node = find_dmq_node_uri(node_list, &((struct to_body*)current_job->msg->from->parsed)->uri);
}

ret_value = current_job->f(current_job->msg, &peer_response, dmq_node);
Expand Down

0 comments on commit 3ae78d8

Please sign in to comment.