]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
misc fixes
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 3 Dec 2008 20:10:54 +0000 (20:10 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 3 Dec 2008 20:10:54 +0000 (20:10 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10582 d0543943-73ff-0310-b7d9-9358b9ac24b2

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

index a3770eec16164328e7507c68231b0a378e59ef5c..1dae34c20fd7404d10b9229978584dec2261fdff 100644 (file)
@@ -1819,7 +1819,7 @@ switch_status_t sofia_glue_activate_rtp(private_object_t *tech_pvt, switch_rtp_f
                                                  tech_pvt->remote_sdp_audio_port, tech_pvt->agreed_pt, tech_pvt->read_codec.implementation->microseconds_per_packet / 1000);
        }
 
-       switch_snprintf(tmp, sizeof(tmp), "%d", tech_pvt->remote_sdp_audio_port);
+       switch_snprintf(tmp, sizeof(tmp), "%d", tech_pvt->local_sdp_audio_port);
        switch_channel_set_variable(tech_pvt->channel, SWITCH_LOCAL_MEDIA_IP_VARIABLE, tech_pvt->adv_sdp_audio_ip);
        switch_channel_set_variable(tech_pvt->channel, SWITCH_LOCAL_MEDIA_PORT_VARIABLE, tmp);
 
index 1abfb09f4839cb11c2d7b7ac05056ac6eb8d3748..d570ca599fa98f00519e7ae9ac899227268b3747 100644 (file)
@@ -199,7 +199,7 @@ static switch_status_t my_on_hangup(switch_core_session_t *session)
 
        if (globals.debug) {
                switch_event_t *event;
-               if (switch_event_create(&event, SWITCH_EVENT_COMMAND) == SWITCH_STATUS_SUCCESS) {
+               if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_DATA) == SWITCH_STATUS_SUCCESS) {
                        char *buf;
                        switch_channel_event_set_data(channel, event);
                        switch_event_serialize(event, &buf, SWITCH_FALSE);