]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Linksys P-RTP-Stat SIP header values (SFSIP-66)
authorMichael Jerris <mike@jerris.com>
Mon, 23 Jun 2008 16:52:38 +0000 (16:52 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 23 Jun 2008 16:52:38 +0000 (16:52 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8821 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/autoload_configs/cdr_csv.conf.xml
src/mod/endpoints/mod_sofia/sofia.c

index 7658e396ac77a42b815f4ed37d94ea8a5b21370d..bfaab3f0fcc63ea27f1a6a53784a5301ed7acede 100644 (file)
@@ -13,6 +13,7 @@
     <template name="sql">INSERT INTO cdr VALUES ("${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}", "${accountcode}");</template>
     <template name="example">"${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}", "${accountcode}","${read_codec}","${write_codec}"</template>
     <template name="snom">"${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}", "${accountcode}","${read_codec}","${write_codec}","${sip_user_agent}","${call_clientcode}","${sip_rtp_rxstat}","${sip_rtp_txstat}","${sofia_record_file}"</template>
+    <template name="linksys">"${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}","${accountcode}","${read_codec}","${write_codec}","${sip_user_agent}","${sip_rtp_p_rtp_stat}"</template>
     <template name="asterisk">"${accountcode}","${caller_id_number}","${destination_number}","${context}","${caller_id}","${channel_name}","${bridge_channel}","${last_app}","${last_arg}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${amaflags}","${uuid}","${userfield}"</template>
   </templates>
 </configuration>
index 5431f3b0a78a917102b267b17112a758447bac3e..63e9290417d3a7f2c1a2feb805cc4afde6187b47 100644 (file)
@@ -144,6 +144,10 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status,
        if ((tmp = sofia_glue_get_unknown_header(sip, "rtp-rxstat"))) {
                switch_channel_set_variable(channel, "sip_rtp_rxstat", tmp);
        }
+       if ((tmp = sofia_glue_get_unknown_header(sip, "P-RTP-Stat"))) {
+               switch_channel_set_variable(channel, "sip_p_rtp_stat", tmp);
+       }
+
        return;
 }