Skip to content

Commit

Permalink
kazoo: create empty routing if not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo committed May 4, 2017
1 parent 5456da5 commit e877303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/kazoo/kz_amqp.c
Expand Up @@ -1834,8 +1834,8 @@ int kz_amqp_subscribe(struct sip_msg* msg, char* payload)
}

if(routing == NULL) {
LM_ERR("invalid routing\n");
goto error;
LM_INFO("creating empty routing key : %s\n", payload_s.s);
routing = kz_amqp_routing_new("");
}

exchange = kz_amqp_exchange_from_json(&exchange_s, json_obj);
Expand Down

0 comments on commit e877303

Please sign in to comment.