From fc42d93ddf999ca142f8e9edd95dd36a72ffa6f2 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 f59d474b2f..200901af34 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 0e9bf18305..c69fc6f355 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 ed9f82fa9b..e94fed4111 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) * @@ -2463,6 +2463,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);