From 8ee46a316f48c6cde5293e519306b335bcebc7a2 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Thu, 12 Sep 2013 12:13:22 -0400 Subject: [PATCH] FS-5788 --resolve used wrong variable for setting custom origination SIP headers --- src/mod/event_handlers/mod_rayo/mod_rayo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mod/event_handlers/mod_rayo/mod_rayo.c b/src/mod/event_handlers/mod_rayo/mod_rayo.c index 3004601661..c556083f22 100644 --- a/src/mod/event_handlers/mod_rayo/mod_rayo.c +++ b/src/mod/event_handlers/mod_rayo/mod_rayo.c @@ -50,7 +50,7 @@ SWITCH_MODULE_DEFINITION(mod_rayo, mod_rayo_load, mod_rayo_shutdown, NULL); #define RAYO_END_REASON_REJECT "rejected" #define RAYO_END_REASON_ERROR "error" -#define RAYO_SIP_REQUEST_HEADER "sip_r_" +#define RAYO_SIP_REQUEST_HEADER "sip_h_" #define RAYO_SIP_RESPONSE_HEADER "sip_rh_" #define RAYO_SIP_PROVISIONAL_RESPONSE_HEADER "sip_ph_" #define RAYO_SIP_BYE_RESPONSE_HEADER "sip_bye_h_" @@ -909,9 +909,9 @@ static void rayo_call_cleanup(struct rayo_actor *actor) /* add signaling headers */ { switch_event_header_t *header; - /* get all variables prefixed with sip_r_ */ + /* get all variables prefixed with sip_h_ */ for (header = event->headers; header; header = header->next) { - if (!strncmp("variable_sip_r_", header->name, 15)) { + if (!strncmp("variable_sip_h_", header->name, 15)) { add_header(end, header->name + 15, header->value); } } @@ -2857,9 +2857,9 @@ static iks *rayo_create_offer(struct rayo_call *call, switch_core_session_t *ses add_header(offer, "to", switch_channel_get_variable(channel, "sip_full_to")); add_header(offer, "via", switch_channel_get_variable(channel, "sip_full_via")); - /* get all variables prefixed with sip_r_ */ + /* get all variables prefixed with sip_h_ */ for (var = switch_channel_variable_first(channel); var; var = var->next) { - if (!strncmp("sip_r_", var->name, 6)) { + if (!strncmp("sip_h_", var->name, 6)) { add_header(offer, var->name + 6, var->value); } }