]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
switch_add_event_header needs a format specifier, or >=gcc-4.3 will be very unhappy...
authorStefan Knoblich <stkn@freeswitch.org>
Mon, 20 Apr 2009 23:53:24 +0000 (23:53 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Mon, 20 Apr 2009 23:53:24 +0000 (23:53 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13089 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index b1a0da0d92eff32b65e2ded1d7a49ac9be9b6f7c..36e490b35949f9ef10faa770abd8674ea6e06882 100644 (file)
@@ -4000,32 +4000,32 @@ void sofia_handle_sip_i_info(nua_t *nua, sofia_profile_t *profile, nua_handle_t
 
                if (sip->sip_from && sip->sip_from->a_url) {
                        if (sip->sip_from->a_url->url_user) {
-                               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "SIP-From-User", sip->sip_from->a_url->url_user);
+                               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "SIP-From-User", "%s", sip->sip_from->a_url->url_user);
                        }
 
                        if (sip->sip_from->a_url->url_host) {
-                               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "SIP-From-Host", sip->sip_from->a_url->url_host);
+                               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "SIP-From-Host", "%s", sip->sip_from->a_url->url_host);
                        }
                }
 
                if (sip->sip_to && sip->sip_to->a_url) {
                        if (sip->sip_to->a_url->url_user) {
-                               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "SIP-To-User", sip->sip_to->a_url->url_user);
+                               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "SIP-To-User", "%s", sip->sip_to->a_url->url_user);
                        }
 
                        if (sip->sip_to->a_url->url_host) {
-                               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "SIP-To-Host", sip->sip_to->a_url->url_host);
+                               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "SIP-To-Host", "%s", sip->sip_to->a_url->url_host);
                        }
                }
 
 
                if (sip->sip_contact && sip->sip_contact->m_url) {
                        if (sip->sip_contact->m_url->url_user) {
-                               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "SIP-Contact-User", sip->sip_contact->m_url->url_user);
+                               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "SIP-Contact-User", "%s", sip->sip_contact->m_url->url_user);
                        }
 
                        if (sip->sip_contact->m_url->url_host) {
-                               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "SIP-Contact-Host", sip->sip_contact->m_url->url_host);
+                               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "SIP-Contact-Host", "%s", sip->sip_contact->m_url->url_host);
                        }
                }