]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
omgwtf
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 19 Nov 2007 17:09:46 +0000 (17:09 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 19 Nov 2007 17:09:46 +0000 (17:09 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6334 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c
src/mod/endpoints/mod_sofia/sofia_glue.c

index b0a4ce308fe0bea1af538bfa8d5fa6486015c044..b0e4864eaa43542aad70a493422f7a7f406cde41 100644 (file)
@@ -1607,6 +1607,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
        switch_set_flag_locked(tech_pvt, TFLAG_OUTBOUND);
        switch_clear_flag_locked(tech_pvt, TFLAG_LATE_NEGOTIATION);
        switch_channel_set_state(nchannel, CS_INIT);
+       tech_pvt->caller_profile = caller_profile;
        *new_session = nsession;
        cause = SWITCH_CAUSE_SUCCESS;
        if (session) {
index 71c68271d613c6b89f5f1db0c69f45a92d5d8687..96ea5a5c71f6dcfe6d9226fd2f79b67ca80648bb 100644 (file)
@@ -629,6 +629,13 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
                from_str = sofia_overcome_sip_uri_weakness(session, use_from_str, NULL);
                to_str = sofia_overcome_sip_uri_weakness(session, tech_pvt->dest_to, NULL);
                
+               /* 
+                  Does the "genius" who wanted SIP to be "text-based" so it was "easier to read" even use it now,
+                  or did he just suggest it to make our lives miserable?
+               */
+               use_from_str = from_str;
+               from_str = switch_core_session_sprintf(session, "\"%s\" <%s>", tech_pvt->caller_profile->caller_id_name, use_from_str);
+
                tech_pvt->nh = nua_handle(tech_pvt->profile->nua, NULL,
                                                                  NUTAG_URL(url_str),
                                                                  SIPTAG_TO_STR(to_str),