From 8d7aa3ff65aa500b483fcccc17597a49b2a4c54c Mon Sep 17 00:00:00 2001 From: William King Date: Fri, 17 May 2013 12:39:17 -0700 Subject: [PATCH] FS-5441: --resolve --- src/mod/endpoints/mod_sofia/sofia.c | 2 +- src/mod/endpoints/mod_sofia/sofia_presence.c | 2 +- src/mod/endpoints/mod_sofia/sofia_reg.c | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 8acae66a27..d9553b98aa 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -33,7 +33,7 @@ * Nathan Patrick * Joseph Sullivan * Emmanuel Schmidbauer - * + * William King * * sofia.c -- SOFIA SIP Endpoint (sofia code) * diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 329c3aaa6d..b7ef99d72d 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -28,7 +28,7 @@ * Paul D. Tinsley * Bret McDanel * Raymond Chandler - * + * William King * * sofia_presence.c -- SOFIA SIP Endpoint (presence code) * diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 01730611a9..520c0733d9 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -32,7 +32,7 @@ * Eliot Gable * Leon de Rooij * Emmanuel Schmidbauer - * + * William King * * sofia_reg.c -- SOFIA SIP Endpoint (registration code) * @@ -2603,6 +2603,11 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, } } + if (sip->sip_call_id && sip->sip_call_id->i_id) { + switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "sip_call_id", sip->sip_call_id->i_id); + } + + if (sip->sip_request) { switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "sip_request_user", sip->sip_request->rq_url->url_user); switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "sip_request_host", sip->sip_request->rq_url->url_host);