]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSMOD-61
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 14 Jun 2010 19:10:15 +0000 (14:10 -0500)
committerBrian West <brian@freeswitch.org>
Mon, 14 Jun 2010 19:10:15 +0000 (14:10 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.c
src/mod/endpoints/mod_sofia/mod_sofia.h

index c497632f349b14804a32a42d2877c068944272fe..9b621329bb252f134b348550444a79a99c616317 100644 (file)
@@ -263,7 +263,7 @@ char *generate_pai_str(switch_core_session_t *session)
        callee_name = switch_sanitize_number(switch_core_session_strdup(session, callee_name));
 
        if (!zstr(callee_number) && (zstr(ua) || !switch_stristr("polycom", ua))) {
-               callee_number = switch_core_session_sprintf(session, "sip:%s@%s", callee_number, tech_pvt->sipip);
+               callee_number = switch_core_session_sprintf(session, "sip:%s@%s", callee_number, tech_pvt->profile->sipip);
        }
 
        header = (tech_pvt->cid_type == CID_TYPE_RPID && !switch_stristr("aastra", ua)) ? "Remote-Party-ID" : "P-Asserted-Identity";
index fd00a21c7d90264b35d2fddb85c5e9043c1e481b..fbe87a2109213b4786098eb81ffb12cf16fbe4f6 100644 (file)
@@ -573,7 +573,6 @@ struct private_object {
        uint32_t ssrc;
        uint32_t video_ssrc;
        sofia_profile_t *profile;
-       char *sipip;
        char *local_sdp_audio_ip;
        switch_port_t local_sdp_audio_port;
        char *remote_sdp_audio_ip;