ya, <br><br>I added a line:<br><br>switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_NOTICE, &quot;sip_recovery SQL =&gt; %s\n&quot;, sql);<br><br>and found that it actually inserts the xml_cdr_text into sip_recovery table ...<br>
<br><br>its just isql command line utility that was unable to display it ... maybe because of xml tags.<br><br><br>Anyhow,  metadata looks like:<br><br><br>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
&lt;cdr&gt;                                                                                                                                                                                                                                                                                                                                                                                                     <br>
  &lt;channel_data&gt;                                                                                                                                                                                                                                                                                                                                                                                          <br>
    &lt;state&gt;CS_EXECUTE&lt;/state&gt;                                                                                                                                                                                                                                                                                                                                                                             <br>
    &lt;direction&gt;inbound&lt;/direction&gt;                                                                                                                                                                                                                                                                                                                                                                        <br>
    &lt;state_number&gt;4&lt;/state_number&gt;                                                                                                                                                                                                                                                                                                                                                                        <br>
    &lt;flags&gt;0=1;1=1;35=1;41=1;51=1&lt;/flags&gt;                                                                                                                                                                                                                                                                                                                                                                 <br>
    &lt;caps&gt;1=1;2=1;3=1&lt;/caps&gt;                                                                                                                                                                                                                                                                                                                                                                              <br>
  &lt;/channel_data&gt;                                                                                                                                                                                                                                                                                                                                                                                         <br>
  &lt;variables&gt;                                                                                                                                                                                                                                                                                                                                                                                             <br>
    &lt;uuid&gt;4be94b6f-1df1-45bd-b920-1c55185dc3bd&lt;/uuid&gt;                                                                                                                                                                                                                                                                                                                                                     <br>
    &lt;sip_local_network_addr&gt;195.88.212.30&lt;/sip_local_network_addr&gt;                                                                                                                                                                                                                                                                                                                                        <br>
    &lt;sip_network_ip&gt;195.88.212.39&lt;/sip_network_ip&gt;                                                                                                                                                                                                                                                                                                                                                        <br>
    &lt;sip_network_port&gt;49603&lt;/sip_network_port&gt;                                                                                                                                                                                                                                                                                                                                                            <br>
    &lt;sip_received_ip&gt;195.88.212.39&lt;/sip_received_ip&gt;                                                                                                                                                                                                                                                                                                                                                      <br>
    &lt;sip_received_port&gt;49603&lt;/sip_received_port&gt;                                                                                                                                                                                                                                                                                                                                                          <br>
    &lt;sip_via_protocol&gt;udp&lt;/sip_via_protocol&gt;                                                                                                                                                                                                                                                                                                                                                              <br>
    &lt;sip_from_user&gt;38515492122&lt;/sip_from_user&gt;                                                                                                                                                                                                                                                                                                                                                            <br>
    &lt;sip_from_uri&gt;38515492122%40195.88.212.39&lt;/sip_from_uri&gt;                                                                                                                                                                                                                                                                                                                                              <br>
    &lt;sip_from_host&gt;195.88.212.39&lt;/sip_from_host&gt;                                                                                                                                                                                                                                                                                                                                                          <br>
    &lt;sip_from_user_stripped&gt;38515492122&lt;/sip_from_user_stripped&gt;                                                                                                                                                                                                                                                                                                                                          <br>
    &lt;sofia_profile_name&gt;external&lt;/sofia_profile_name&gt;                                                                                                                                                                                                                                                                                                                                                     <br>
    &lt;sip_Remote-Party-ID&gt;%3Csip%3A38515492122%40195.88.212.39%3E%3Bparty%3Dcalling%3Bscreen%3Dyes%3Bprivacy%3Doff&lt;/sip_Remote-Party-ID&gt;                                                                                                                                                                                                                                                                   <br>
    &lt;sip_cid_type&gt;rpid&lt;/sip_cid_type&gt;                                                                                                                                                                                                                                                                                                                                                                     <br>
    &lt;sip_full_via&gt;SIP/2.0/UDP%20195.88.212.39%3A5060%3Bbranch%3Dz9hG4bK27A84C&lt;/sip_full_via&gt;                                                                                                                                                                                                                                                                                                              <br>
    &lt;sip_req_user&gt;38518880050&lt;/sip_req_user&gt;                                                                                                                                                                                                                                                                                                                                                              <br>
    &lt;sip_req_port&gt;5080&lt;/sip_req_port&gt;                                                                                                                                                                                                                                                                                                                                                                     <br>
    &lt;sip_req_uri&gt;38518880050%40195.88.212.30%3A5080&lt;/sip_req_uri&gt;                                                                                                                                                                                                                                                                                                                                         <br>
    &lt;sip_req_host&gt;195.88.212.30&lt;/sip_req_host&gt;                                                                                                                                                                                                                                                                                                                                                            <br>
    &lt;sip_to_user&gt;38518880050&lt;/sip_to_user&gt;                                                                                                                                                                                                                                                                                                                                                                <br>
    &lt;sip_to_uri&gt;38518880050%40195.88.212.30&lt;/sip_to_uri&gt;                                                                                                                                                                                                                                                                                                                                                  <br>
    &lt;sip_to_host&gt;195.88.212.30&lt;/sip_to_host&gt;                                                                                                                                                                                                                                                                                                                                                              <br>
    &lt;sip_contact_user&gt;38515492122&lt;/sip_contact_user&gt;                                                                                                                                                                                                                                                                                                                                                      <br>
    &lt;sip_contact_port&gt;5060&lt;/sip_contact_port&gt;                                                                                                                                                                                                                                                                                                                                                             <br>
    &lt;sip_contact_uri&gt;38515492122%40195.88.212.39%3A5060&lt;/sip_contact_uri&gt;                                                                                                                                                                                                                                                                                                                                 <br>
    &lt;sip_contact_host&gt;195.88.212.39&lt;/sip_contact_host&gt;                                                                                                                                                                                                                                                                                                                                                    <br>
    &lt;channel_name&gt;sofia/external/38515492122%40195.88.212.39&lt;/channel_name&gt;                                                                                                                                                                                                                                                                                                                               <br>
    &lt;sip_user_agent&gt;Cisco-SIPGateway/IOS-12.x&lt;/sip_user_agent&gt;                                                                                                                                                                                                                                                                                                                                            <br>
    &lt;sip_via_host&gt;195.88.212.39&lt;/sip_via_host&gt;                                                                                                                                                                                                                                                                                                                                                            <br>
    &lt;sip_via_port&gt;5060&lt;/sip_via_port&gt;                                                                                                                                                                                                                                                                                                                                                                     <br>
    &lt;switch_r_sdp&gt;v%3D0%0D%0Ao%3DCiscoSystemsSIP-GW-UserAgent%203218%205821%20IN%20IP4%20195.88.212.39%0D%0As%3DSIP%20Call%0D%0Ac%3DIN%20IP4%20195.88.212.39%0D%0At%3D0%200%0D%0Am%3Daudio%2016464%20RTP/AVP%208%20101%0D%0Ac%3DIN%20IP4%20195.88.212.39%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-16%0D%0Aa%3Dptime%3A20%0D%0A&lt;/switch_r_sdp&gt; <br>
    &lt;sip_use_codec_name&gt;PCMA&lt;/sip_use_codec_name&gt;                                                                                                                                                                                                                                                                                                                                                         <br>
    &lt;sip_use_codec_rate&gt;8000&lt;/sip_use_codec_rate&gt;                                                                                                                                                                                                                                                                                                                                                         <br>
    &lt;sip_use_codec_ptime&gt;20&lt;/sip_use_codec_ptime&gt;                                                                                                                                                                                                                                                                                                                                                         <br>
    &lt;read_codec&gt;PCMA&lt;/read_codec&gt;                                                                                                                                                                                                                                                                                                                                                                         <br>
    &lt;read_rate&gt;8000&lt;/read_rate&gt;                                                                                                                                                                                                                                                                                                                                                                           <br>
    &lt;write_codec&gt;PCMA&lt;/write_codec&gt;                                                                                                                                                                                                                                                                                                                                                                       <br>
    &lt;write_rate&gt;8000&lt;/write_rate&gt;                                                                                                                                                                                                                                                                                                                                                                         <br>
    &lt;outside_call&gt;true&lt;/outside_call&gt;                                                                                                                                                                                                                                                                                                                                                                     <br>
    &lt;domain_name&gt;195.88.212.31&lt;/domain_name&gt;                                                                                                                                                                                                                                                                                                                                                              <br>
    &lt;max_forwards&gt;69&lt;/max_forwards&gt;                                                                                                                                                                                                                                                                                                                                                                       <br>
    &lt;myDNIS&gt;38518880050&lt;/myDNIS&gt;                                                                                                                                                                                                                                                                                                                                                                          <br>
    &lt;sip_local_sdp_str&gt;v%3D0%0Ao%3DFreeSWITCH%201296021156%201296021157%20IN%20IP4%20195.88.212.30%0As%3DFreeSWITCH%0Ac%3DIN%20IP4%20195.88.212.30%0At%3D0%200%0Am%3Daudio%2025930%20RTP/AVP%208%0Aa%3Drtpmap%3A8%20PCMA/8000%0Aa%3DsilenceSupp%3Aoff%20-%20-%20-%20-%0Aa%3Dptime%3A20%0Aa%3Dsendrecv%0A&lt;/sip_local_sdp_str&gt;                                                                              <br>
    &lt;local_media_ip&gt;195.88.212.30&lt;/local_media_ip&gt;                                                                                                                                                                                                                                                                                                                                                        <br>
    &lt;local_media_port&gt;25930&lt;/local_media_port&gt;                                                                                                                                                                                                                                                                                                                                                            <br>
    &lt;sip_use_pt&gt;8&lt;/sip_use_pt&gt;                                                                                                                                                                                                                                                                                                                                                                            <br>
    &lt;rtp_use_ssrc&gt;1713917945&lt;/rtp_use_ssrc&gt;                                                                                                                                                                                                                                                                                                                                                               <br>
    &lt;remote_media_ip&gt;195.88.212.39&lt;/remote_media_ip&gt;                                                                                                                                                                                                                                                                                                                                                      <br>
    &lt;remote_media_port&gt;16464&lt;/remote_media_port&gt;                                                                                                                                                                                                                                                                                                                                                          <br>
    &lt;endpoint_disposition&gt;ANSWER&lt;/endpoint_disposition&gt;                                                                                                                                                                                                                                                                                                                                                   <br>
    &lt;sip_to_tag&gt;va1j6gN6FQKtp&lt;/sip_to_tag&gt;                                                                                                                                                                                                                                                                                                                                                                <br>
    &lt;sip_from_tag&gt;CDA3D150-264D&lt;/sip_from_tag&gt;                                                                                                                                                                                                                                                                                                                                                            <br>
    &lt;sip_cseq&gt;101&lt;/sip_cseq&gt;                                                                                                                                                                                                                                                                                                                                                                              <br>
    &lt;sip_call_id&gt;AED34DF0-288311E0-89BBD88B-B59C2BD1%40195.88.212.39&lt;/sip_call_id&gt;                                                                                                                                                                                                                                                                                                                        <br>
    &lt;sip_full_from&gt;%3Csip%3A38515492122%40195.88.212.39%3E%3Btag%3DCDA3D150-264D&lt;/sip_full_from&gt;                                                                                                                                                                                                                                                                                                          <br>
    &lt;sip_full_to&gt;%3Csip%3A38518880050%40195.88.212.30%3E%3Btag%3Dva1j6gN6FQKtp&lt;/sip_full_to&gt;                                                                                                                                                                                                                                                                                                              <br>
    &lt;language&gt;hr&lt;/language&gt;                                                                                                                                                                                                                                                                                                                                                                               <br>
    &lt;CALLID&gt;h323-conf-id%3D4be94b6f-1df1-45bd-b920-1c55185dc3bd&lt;/CALLID&gt;                                                                                                                                                                                                                                                                                                                                  <br>
    &lt;SERVICENUM&gt;h323-prompt-id%3D38518880050&lt;/SERVICENUM&gt;                                                                                                                                                                                                                                                                                                                                                 <br>
    &lt;TRANSACTIONID&gt;h323-ivr-out%3DtransactionID%3A1234&lt;/TRANSACTIONID&gt;                                                                                                                                                                                                                                                                                                                                    <br>
    &lt;auto_hunt&gt;true&lt;/auto_hunt&gt;                                                                                                                                                                                                                                                                                                                                                                           <br>
    &lt;CALLINGNUMBER&gt;38515492122&lt;/CALLINGNUMBER&gt;                                                                                                                                                                                                                                                                                                                                                            <br>
    &lt;billing_model&gt;h323-billing-model%3D0&lt;/billing_model&gt;                                                                                                                                                                                                                                                                                                                                                 <br>
    &lt;return_code&gt;h323-return-code%3D0&lt;/return_code&gt;                                                                                                                                                                                                                                                                                                                                                       <br>
    &lt;ANI_AUTH_RESULT&gt;OK&lt;/ANI_AUTH_RESULT&gt;                                                                                                                                                                                                                                                                                                                                                                 <br>
    &lt;UNAME&gt;38515492122&lt;/UNAME&gt;                                                                                                                                                                                                                                                                                                                                                                            <br>
    &lt;PASSWD&gt;1234&lt;/PASSWD&gt;                                                                                                                                                                                                                                                                                                                                                                                 <br>
    &lt;export_vars&gt;myDNIS,UNAME,PASSWD&lt;/export_vars&gt;                                                                                                                                                                                                                                                                                                                                                        <br>
    &lt;sound_prefix&gt;/usr/local/freeswitch/sounds/hr/HR/teta1&lt;/sound_prefix&gt;                                                                                                                                                                                                                                                                                                                                 <br>
    &lt;ENTER_DEST_PR&gt;tone_stream%3A//%25(200,300,425,425)%3B%25(700,800,425,425)%3Bloops%3D5&lt;/ENTER_DEST_PR&gt;                                                                                                                                                                                                                                                                                                <br>
    &lt;DST_TIMEOUT&gt;1000&lt;/DST_TIMEOUT&gt;                                                                                                                                                                                                                                                                                                                                                                       <br>
    &lt;playback_seconds&gt;0&lt;/playback_seconds&gt;                                                                                                                                                                                                                                                                                                                                                                <br>
    &lt;playback_ms&gt;0&lt;/playback_ms&gt;                                                                                                                                                                                                                                                                                                                                                                          <br>
    &lt;playback_samples&gt;0&lt;/playback_samples&gt;                                                                                                                                                                                                                                                                                                                                                                <br>
    &lt;read_result&gt;failure&lt;/read_result&gt;                                                                                                                                                                                                                                                                                                                                                                    <br>
    &lt;DN_INT&gt;false&lt;/DN_INT&gt;                                                                                                                                                                                                                                                                                                                                                                                <br>
    &lt;DN_NAT&gt;false&lt;/DN_NAT&gt;                                                                                                                                                                                                                                                                                                                                                                                <br>
    &lt;DN_LOC&gt;false&lt;/DN_LOC&gt;                                                                                                                                                                                                                                                                                                                                                                                <br>
    &lt;DST_ERR_PR&gt;ivr/_no_dest_entered2.wav&lt;/DST_ERR_PR&gt;                                                                                                                                                                                                                                                                                                                                                    <br>
    &lt;DST_RETRIES&gt;2&lt;/DST_RETRIES&gt;                                                                                                                                                                                                                                                                                                                                                                          <br>
    &lt;bind_meta_key&gt;&lt;/bind_meta_key&gt;                                                                                                                                                                                                                                                                                                                                                                       <br>
    &lt;playback_delimiter&gt;!&lt;/playback_delimiter&gt;                                                                                                                                                                                                                                                                                                                                                            <br>
    &lt;playback_terminators&gt;%23*0123456789&lt;/playback_terminators&gt;                                                                                                                                                                                                                                                                                                                                           <br>
    &lt;current_application_data&gt;6%2020%20ivr/_no_dest_entered2.wav!tone_stream%3A//%25(200,300,425,425)%3B%25(700,800,425,425)%3Bloops%3D5%20DN%201000%20*&lt;/current_application_data&gt;                                                                                                                                                                                                                       <br>
    &lt;current_application&gt;read&lt;/current_application&gt;                                                                                                                                                                                                                                                                                                                                                       <br>
  &lt;/variables&gt;                                                                                                                                                                                                                                                                                                                                                                                            <br>
  &lt;app_log&gt;                                                                                                                                                                                                                                                                                                                                                                                               <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;outside_call=true&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                               <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;domain_name=195.88.212.31&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                       <br>
    &lt;application app_name=&quot;transfer&quot; app_data=&quot;38518880050 XML default&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                    <br>
    &lt;application app_name=&quot;export&quot; app_data=&quot;myDNIS=38518880050&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                           <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;playback_terminators=#*0123456789&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                               <br>
    &lt;application app_name=&quot;answer&quot; app_data=&quot;&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                             <br>
    &lt;application app_name=&quot;sleep&quot; app_data=&quot;100&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                           <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;language=hr&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                     <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;CALLID=h323-conf-id=4be94b6f-1df1-45bd-b920-1c55185dc3bd&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                        <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;SERVICENUM=h323-prompt-id=38518880050&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                           <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;TRANSACTIONID=h323-ivr-out=transactionID:1234&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                   <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;auto_hunt=true&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                  <br>
    &lt;application app_name=&quot;execute_extension&quot; app_data=&quot;ANIorPIN XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                <br>
    &lt;application app_name=&quot;export&quot; app_data=&quot;DIALED_NUMBER=&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                               <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;CALLINGNUMBER=38515492122&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                       <br>
    &lt;application app_name=&quot;auth_function&quot; app_data=&quot;in , in 38515492122, in 1234, out ANI_AUTH_RESULT&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                     <br>
    &lt;application app_name=&quot;execute_extension&quot; app_data=&quot;CheckANI XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                <br>
    &lt;application app_name=&quot;export&quot; app_data=&quot;UNAME=38515492122&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                            <br>
    &lt;application app_name=&quot;export&quot; app_data=&quot;PASSWD=1234&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                  <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;sound_prefix=/usr/local/freeswitch/sounds/hr/HR/teta1&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                           <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;ENTER_DEST_PR=tone_stream://%(200,300,425,425);%(700,800,425,425);loops=5&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                       <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;DST_TIMEOUT=1000&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                <br>
    &lt;application app_name=&quot;execute_extension&quot; app_data=&quot;GetDstNum XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                               <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;DST_RETRIES=1&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                   <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;bind_meta_key=#&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                 <br>
    &lt;application app_name=&quot;bind_meta_app&quot; app_data=&quot;0 a a transfer::LongDTMF XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                    <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;playback_delimiter=!&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                            <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;playback_terminators=#*0123456789&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                               <br>
    &lt;application app_name=&quot;start_dtmf&quot; app_data=&quot;&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                         <br>
    &lt;application app_name=&quot;read&quot; app_data=&quot;6 20 !tone_stream://%(200,300,425,425);%(700,800,425,425);loops=5 DN 1000 *&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                    <br>
    &lt;application app_name=&quot;stop_dtmf&quot; app_data=&quot;&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                          <br>
    &lt;application app_name=&quot;execute_extension&quot; app_data=&quot;TranslateLocal XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                          <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;DN_INT=false&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                    <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;DN_NAT=false&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                    <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;DN_LOC=false&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                    <br>
    &lt;application app_name=&quot;export&quot; app_data=&quot;DIALED_NUMBER=&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                               <br>
    &lt;application app_name=&quot;export&quot; app_data=&quot;DIALED_NUMBER=&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                               <br>
    &lt;application app_name=&quot;export&quot; app_data=&quot;DIALED_NUMBER=&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                               <br>
    &lt;application app_name=&quot;execute_extension&quot; app_data=&quot;ParseDN XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                 <br>
    &lt;application app_name=&quot;log&quot; app_data=&quot;INFO ################# EMPTY DESTINATION ################                                                                                                                                                                                                                                                                                                       <br>
&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                                                                          <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;DST_ERR_PR=ivr/_no_dest_entered2.wav&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                            <br>
    &lt;application app_name=&quot;execute_extension&quot; app_data=&quot;DstRetries XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                              <br>
    &lt;application app_name=&quot;execute_extension&quot; app_data=&quot;GetDstNum XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                               <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;DST_RETRIES=2&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                   <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;bind_meta_key=#&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                 <br>
    &lt;application app_name=&quot;bind_meta_app&quot; app_data=&quot;0 a a transfer::LongDTMF XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                    <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;playback_delimiter=!&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                            <br>
    &lt;application app_name=&quot;set&quot; app_data=&quot;playback_terminators=#*0123456789&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                               <br>
    &lt;application app_name=&quot;start_dtmf&quot; app_data=&quot;&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                         <br>
    &lt;application app_name=&quot;read&quot; app_data=&quot;6 20 ivr/_no_dest_entered2.wav!tone_stream://%(200,300,425,425);%(700,800,425,425);loops=5 DN 1000 *&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                           <br>
  &lt;/app_log&gt;                                                                                                                                                                                                                                                                                                                                                                                              <br>
  &lt;callflow dialplan=&quot;XML&quot;&gt;                                                                                                                                                                                                                                                                                                                                                                               <br>
    &lt;extension name=&quot;GetDstNum&quot; number=&quot;GetDstNum&quot; current_app=&quot;read&quot;&gt;                                                                                                                                                                                                                                                                                                                                    <br>
      &lt;application app_name=&quot;set&quot; app_data=&quot;bind_meta_key=#&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                               <br>
      &lt;application app_name=&quot;bind_meta_app&quot; app_data=&quot;0 a a transfer::LongDTMF XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                  <br>
      &lt;application app_name=&quot;set&quot; app_data=&quot;playback_delimiter=!&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                          <br>
      &lt;application app_name=&quot;set&quot; app_data=&quot;playback_terminators=#*0123456789&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                             <br>
      &lt;application app_name=&quot;start_dtmf&quot; app_data=&quot;&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                       <br>
      &lt;application last_executed=&quot;true&quot; app_name=&quot;read&quot; app_data=&quot;${DST_MIN_DIG} ${DST_MAX_DIG} ${DST_ERR_PR}!${ENTER_DEST_PR} DN ${DST_TIMEOUT} *&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                        <br>
      &lt;application app_name=&quot;stop_dtmf&quot; app_data=&quot;&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                                                        <br>
      &lt;application app_name=&quot;execute_extension&quot; app_data=&quot;TranslateLocal XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                        <br>
      &lt;application app_name=&quot;execute_extension&quot; app_data=&quot;ParseDN XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                               <br>
      &lt;application app_name=&quot;auth_function&quot; app_data=&quot;in ${DIALED_NUMBER}, in ${UNAME}, in ${PASSWD}, out AUTH_RESULT&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                     <br>
      &lt;application app_name=&quot;set&quot; app_data=&quot;CALLINGNUMBER=${caller_id_number}&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                             <br>
      &lt;application app_name=&quot;execute_extension&quot; app_data=&quot;PARSE_RET_CODE XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                        <br>
      &lt;application app_name=&quot;execute_extension&quot; app_data=&quot;CheckDstNum XML NXIVR&quot;&gt;&lt;/application&gt;                                                                                                                                                                                                                                                                                                           <br>
    &lt;/extension&gt;                                                                                                                                                                                                                                                                                                                                                                                          <br>
    &lt;caller_profile&gt;                                                                                                                                                                                                                                                                                                                                                                                      <br>
      &lt;username&gt;38515492122&lt;/username&gt;                                                                                                                                                                                                                                                                                                                                                                    <br>
      &lt;dialplan&gt;XML&lt;/dialplan&gt;                                                                                                                                                                                                                                                                                                                                                                            <br>
      &lt;caller_id_name&gt;38515492122&lt;/caller_id_name&gt;                                                                                                                                                                                                                                                                                                                                                        <br>
      &lt;ani&gt;38515492122&lt;/ani&gt;                                                                                                                                                                                                                                                                                                                                                                              <br>
      &lt;aniii&gt;&lt;/aniii&gt;                                                                                                                                                                                                                                                                                                                                                                                     <br>
      &lt;caller_id_number&gt;38515492122&lt;/caller_id_number&gt;                                                                                                                                                                                                                                                                                                                                                    <br>
      &lt;network_addr&gt;195.88.212.39&lt;/network_addr&gt;                                                                                                                                                                                                                                                                                                                                                          <br>
      &lt;rdnis&gt;38518880050&lt;/rdnis&gt;                                                                                                                                                                                                                                                                                                                                                                          <br>
      &lt;destination_number&gt;GetDstNum&lt;/destination_number&gt;                                                                                                                                                                                                                                                                                                                                                  <br>
      &lt;uuid&gt;4be94b6f-1df1-45bd-b920-1c55185dc3bd&lt;/uuid&gt;                                                                                                                                                                                                                                                                                                                                                   <br>
      &lt;source&gt;mod_sofia&lt;/source&gt;                                                                                                                                                                                                                                                                                                                                                                          <br>
      &lt;context&gt;NXIVR&lt;/context&gt;                                                                                                                                                                                                                                                                                                                                                                            <br>
      &lt;chan_name&gt;sofia/external/<a href="mailto:38515492122@195.88.212.39">38515492122@195.88.212.39</a>&lt;/chan_name&gt;                                                                                                                                                                                                                                                                                                                                     <br>
    &lt;/caller_profile&gt;                                                                                                                                                                                                                                                                                                                                                                                     <br>
  &lt;/callflow&gt;                                                                                                                                                                                                                                                                                                                                                                                             <br>
&lt;/cdr&gt;                                                                                                                                                                                                                                                                                                                                                                                                    <br>
<br><br><br><br>is we have full info of the call ... and still no joy :)<br><br>well, its time for the update i guess... a lot of pain in the next hours.<br><br><br><br><br><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 1:32 PM, Tihomir Culjaga <span dir="ltr">&lt;<a href="mailto:tculjaga@gmail.com">tculjaga@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">hmmm, <br><br><br>it should be working :P<br><br><br><br>void sofia_glue_tech_track(sofia_profile_t *profile, switch_core_session_t *session)<br>
{<br>        switch_event_t *event;<br>        private_object_t *tech_pvt = (private_object_t *) switch_core_session_get_private(session);<br>
<br>        if (!sofia_test_pflag(profile, PFLAG_TRACK_CALLS) || sofia_test_flag(tech_pvt, TFLAG_RECOVERING)) {<br>                return;<br>        }<br><br>        if (sofia_test_flag(tech_pvt, TFLAG_TRACKED)) {<br>                sofia_glue_tech_untrack(profile, session, SWITCH_TRUE);<br>

        }<br><br>        if (switch_event_create(&amp;event, SWITCH_EVENT_CHANNEL_DATA) == SWITCH_STATUS_SUCCESS) {<br>                switch_xml_t cdr = NULL;<br>                char *xml_cdr_text = NULL;<br><br>                if (switch_ivr_generate_xml_cdr(session, &amp;cdr) == SWITCH_STATUS_SUCCESS) {<br>

                        xml_cdr_text = switch_xml_toxml(cdr, SWITCH_FALSE);<br>                        switch_xml_free(cdr);<br>                }<br><br>                if (xml_cdr_text) {<br>                        char *sql;<br>

                        sql = switch_mprintf(&quot;insert into sip_recovery (runtime_uuid, profile_name, hostname, uuid, metadata) values<br> (&#39;%q&#39;,&#39;%q&#39;,&#39;%q&#39;,&#39;%q&#39;,&#39;%q&#39;)&quot;,<br>                                                                 switch_core_get_uuid(), profile-&gt;name, mod_sofia_globals.hostname,<br>

switch_core_session_get_uuid(session), xml_cdr_text);<br><br>                        sofia_glue_execute_sql_now(profile, &amp;sql, SWITCH_TRUE);<br>                        free(xml_cdr_text);<br>                        sofia_set_flag(tech_pvt, TFLAG_TRACKED);<br>

                }<br><br>        }<br><br>}<br><br><br>im gonna dig why xml_cdr_text is empty.<div><div></div><div class="h5"><br><br><br><br><br><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 1:20 PM, Tihomir Culjaga <span dir="ltr">&lt;<a href="mailto:tculjaga@gmail.com" target="_blank">tculjaga@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">dam,  your metadata is awesome ... now i see the difference.<br><br>i do have track calls enabled on both profiles (internal &amp; external) and i have odbc configured as well. <br>

<br><br><br>but my version is:<br><br>freeswitch@cxss01&gt; version<br>

<br>
FreeSWITCH Version 1.0.6 (svn-exported)<br>
<br>
freeswitch@cxss01&gt;<br>
<br>
<br>
<br>
how can i make sure it is because of the version ? <br>
<br><br><br><br><br>freeswitch@cxss01&gt; <br>freeswitch@cxss01&gt; <br>freeswitch@cxss01&gt; sofia profile external start<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 debug [0]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 sip-trace [no]<br>


<b>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 track-calls [true]</b><br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 rfc2833-pt [101]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 sip-port [5080]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 dialplan [XML]<br>


2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 context [public]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 dtmf-duration [70]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:3279 Duration out of bounds, using default of 2000!<br>


2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 dtmf-type [inband]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 inbound-codec-prefs [PCMA,GSM]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 outbound-codec-prefs [PCMA,GSM]<br>


2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 hold-music [local_stream://moh]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 rtp-timer-name [soft]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 local-network-acl [localnet.auto]<br>


2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 manage-presence [false]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 inbound-codec-negotiation [generous]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 nonce-ttl [60]<br>


2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 auth-calls [false]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 rtp-ip [195.88.212.30]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 sip-ip [195.88.212.30]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 ext-rtp-ip [auto-nat]<br>


2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 ext-sip-ip [auto-nat]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 rtp-timeout-sec [300]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 rtp-hold-timeout-sec [1800]<br>


2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 tls [false]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 tls-bind-params [transport=tls]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 tls-sip-port [5081]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 tls-cert-dir [/usr/local/freeswitch/conf/ssl]<br>


2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 tls-version [tlsv1]<br>2011-01-26 13:14:11.423588 [DEBUG] sofia.c:2755 odbc-dsn [COREFSdrv:adminfs:4F0s8wj]<br>2011-01-26 13:14:11.423588 [NOTICE] sofia_reg.c:2451 Added gateway &#39;<a href="http://example.com" target="_blank">example.com</a>&#39; to profile &#39;external&#39;<br>


2011-01-26 13:14:11.423588 [NOTICE] sofia.c:3535 Connecting ODBC Profile external [sofia_reg_external]<br>2011-01-26 13:14:11.424818 [DEBUG] sofia.c:1317 Creating agent for external<br>2011-01-26 13:14:11.438512 [INFO] sofia_glue.c:4569 Connected ODBC DSN: COREFSdrv<br>


2011-01-26 13:14:11.459433 [DEBUG] sofia.c:1353 Created agent for external<br>2011-01-26 13:14:11.459433 [DEBUG] sofia.c:1389 Set params for external<br>2011-01-26 13:14:11.459433 [DEBUG] sofia.c:1412 Activated db for external<br>


2011-01-26 13:14:11.460603 [DEBUG] sofia.c:1439 Starting thread for external<br><br>external started successfully<br><br>freeswitch@cxss01&gt; <br>freeswitch@cxss01&gt; <br>freeswitch@cxss01&gt; <br>freeswitch@cxss01&gt; sofia profile internal start<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 debug [0]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 sip-trace [no]<br><b>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 track-calls [true]</b><br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 log-auth-failures [true]<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 context [public]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 rfc2833-pt [101]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 sip-port [5060]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 dialplan [XML]<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 dtmf-duration [70]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:3279 Duration out of bounds, using default of 2000!<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 inbound-codec-prefs [PCMA,GSM]<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 outbound-codec-prefs [PCMA,GSM]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 rtp-timer-name [soft]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 rtp-ip [195.88.212.30]<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 sip-ip [195.88.212.30]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 hold-music [local_stream://moh]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 apply-nat-acl [nat.auto]<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 apply-inbound-acl [domains]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 local-network-acl [localnet.auto]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 dtmf-type [inband]<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 record-path [/usr/local/freeswitch/recordings]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 record-template [${caller_id_number}.${target_domain}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav]<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 manage-presence [true]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 inbound-codec-negotiation [generous]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 tls [false]<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 tls-bind-params [transport=tls]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 tls-sip-port [5061]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 tls-cert-dir [/usr/local/freeswitch/conf/ssl]<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 tls-version [tlsv1]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 odbc-dsn [COREFSdrv:adminfs:4F0s8wj]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 inbound-late-negotiation [true]<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 nonce-ttl [60]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 auth-calls [true]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 inbound-reg-force-matching-username [true]<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 auth-all-packets [false]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 ext-rtp-ip [auto-nat]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 ext-sip-ip [auto-nat]<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 rtp-timeout-sec [300]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 rtp-hold-timeout-sec [1800]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 force-register-domain [195.88.212.31]<br>


2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 force-subscription-domain [195.88.212.31]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 force-register-db-domain [195.88.212.31]<br>2011-01-26 13:14:16.440442 [DEBUG] sofia.c:2755 challenge-realm [auto_from]<br>


2011-01-26 13:14:16.440442 [NOTICE] sofia_reg.c:2451 Added gateway &#39;hr-sbc01&#39; to profile &#39;internal&#39;<br>2011-01-26 13:14:16.441444 [NOTICE] sofia_reg.c:2451 Added gateway &#39;hr-sbc02&#39; to profile &#39;internal&#39;<br>


2011-01-26 13:14:16.441444 [NOTICE] sofia.c:2040 Adding Alias [195.88.212.31] for profile [internal]<br>2011-01-26 13:14:16.441444 [NOTICE] sofia.c:3535 Connecting ODBC Profile internal [sofia_reg_internal]<br>2011-01-26 13:14:16.441444 [DEBUG] sofia.c:1317 Creating agent for internal<br>


2011-01-26 13:14:16.455326 [INFO] sofia_glue.c:4569 Connected ODBC DSN: COREFSdrv<br>2011-01-26 13:14:16.476319 [DEBUG] sofia.c:1353 Created agent for internal<br>2011-01-26 13:14:16.476319 [DEBUG] sofia.c:1389 Set params for internal<br>


2011-01-26 13:14:16.476319 [DEBUG] sofia.c:1412 Activated db for internal<br>2011-01-26 13:14:16.476319 [DEBUG] sofia.c:1439 Starting thread for internal<br><br>internal started successfully<br><br><br><br><br><br>i do have track-calls enabled on the sip profiles.<br>


<br><br>and yes, FS is quite outdated:<br><br>freeswitch@cxss01&gt; version<br>
<br>
FreeSWITCH Version 1.0.6 (svn-exported)<br>
<br>
freeswitch@cxss01&gt;<br>
<br>
<br>
<br>
<br><br><br><br>
<br><br><br><div class="gmail_quote"><div><div></div><div>On Wed, Jan 26, 2011 at 1:00 PM, Avi Marcus <span dir="ltr">&lt;<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>
<div dir="ltr">The sip recovery table should have a LOT more data than that, all stuffed into a single column.<div>Do you have track calls on in all the involved profiles? I suppose it really wouldn&#39;t be here otherwise.</div>




<div><br></div><div>e.g. my sip_recovery table has this in the metadata field for a &quot;simple&quot; MOH call. Does yours?</div><div><br></div><div><br></div><div><div>&lt;cdr&gt;</div><div>  &lt;channel_data&gt;</div>



<div>
    &lt;state&gt;CS_EXECUTE&lt;/state&gt;</div><div>    &lt;direction&gt;inbound&lt;/direction&gt;</div><div>    &lt;state_number&gt;4&lt;/state_number&gt;</div><div>    &lt;flags&gt;0=1;1=1;3=1;35=1;41=1;51=1&lt;/flags&gt;</div>




<div>    &lt;caps&gt;1=1;2=1;3=1;4=1;5=1&lt;/caps&gt;</div><div>  &lt;/channel_data&gt;</div><div>  &lt;variables&gt;</div><div>    &lt;direction&gt;inbound&lt;/direction&gt;</div><div>    &lt;uuid&gt;6cda8922-2943-11e0-b622-639ef8e43974&lt;/uuid&gt;</div>




<div>    &lt;sip_local_network_addr&gt;178.79.147.47&lt;/sip_local_network_addr&gt;</div><div>    &lt;sip_network_ip&gt;79.176.185.32&lt;/sip_network_ip&gt;</div><div>    &lt;sip_network_port&gt;5072&lt;/sip_network_port&gt;</div>




<div>    &lt;sip_received_ip&gt;79.176.yyy.32&lt;/sip_received_ip&gt;</div><div>    &lt;sip_received_port&gt;5072&lt;/sip_received_port&gt;</div><div>    &lt;sip_via_protocol&gt;udp&lt;/sip_via_protocol&gt;</div><div>    &lt;sip_authorized&gt;true&lt;/sip_authorized&gt;</div>




<div>    &lt;sip_number_alias&gt;1000&lt;/sip_number_alias&gt;</div><div>    &lt;sip_auth_username&gt;1000&lt;/sip_auth_username&gt;</div><div>    &lt;sip_auth_realm&gt;<a href="http://sip-ha.yyy.com" target="_blank">sip-ha.yyy.com</a>&lt;/sip_auth_realm&gt;</div>




<div>    &lt;number_alias&gt;1000&lt;/number_alias&gt;</div><div>    &lt;user_name&gt;1000&lt;/user_name&gt;</div><div>    &lt;domain_name&gt;<a href="http://sip.yyy.com" target="_blank">sip.yyy.com</a>&lt;/domain_name&gt;</div>


<div>    &lt;record_stereo&gt;true&lt;/record_stereo&gt;</div>

<div>    &lt;default_areacode&gt;208&lt;/default_areacode&gt;</div><div>    &lt;transfer_fallback_extension&gt;operator&lt;/transfer_fallback_extension&gt;</div><div>    &lt;accountcode&gt;1000&lt;/accountcode&gt;</div><div>




    &lt;user_context&gt;default&lt;/user_context&gt;</div><div>    &lt;effective_caller_id_name&gt;Avi%20Marcus&lt;/effective_caller_id_name&gt;</div><div>    &lt;effective_caller_id_number&gt;12013554419&lt;/effective_caller_id_number&gt;</div>




<div>    &lt;outbound_caller_id_name&gt;Avi%20Marcus&lt;/outbound_caller_id_name&gt;</div><div>    &lt;outbound_caller_id_number&gt;12013554419&lt;/outbound_caller_id_number&gt;</div><div>    &lt;nibble_account&gt;1000&lt;/nibble_account&gt;</div>




<div>    &lt;sip_from_user&gt;1000&lt;/sip_from_user&gt;</div><div>    &lt;sip_from_uri&gt;1000%<a href="http://40sip-ha.yyy.com" target="_blank">40sip-ha.yyy.com</a>&lt;/sip_from_uri&gt;</div><div>    &lt;sip_from_host&gt;<a href="http://sip-ha.yyy.com" target="_blank">sip-ha.yyy.com</a>&lt;/sip_from_host&gt;</div>




<div>    &lt;sip_from_user_stripped&gt;1000&lt;/sip_from_user_stripped&gt;</div><div>    &lt;sofia_profile_name&gt;internal&lt;/sofia_profile_name&gt;</div><div>    &lt;sip_Remote-Party-ID&gt;%3Csip%3A1000%<a href="http://40sip-ha.yyy.com" target="_blank">40sip-ha.yyy.com</a>%3E%3Bscreen%3Dyes%3Bparty%3Dcalling&lt;/sip_Remote-Party-ID&gt;</div>




<div>    &lt;sip_cid_type&gt;rpid&lt;/sip_cid_type&gt;</div><div>    &lt;sip_full_via&gt;SIP/2.0/UDP%20192.168.1.5%3A5072%3Bbranch%3Dz9hG4bK-329da816%3Brport%3D5072%3Breceived%3D79.176.185.32&lt;/sip_full_via&gt;</div><div>




    &lt;sip_req_user&gt;*9664&lt;/sip_req_user&gt;</div><div>    &lt;sip_req_uri&gt;*9664%<a href="http://40sip-ha.yyy.com" target="_blank">40sip-ha.yyy.com</a>&lt;/sip_req_uri&gt;</div><div>    &lt;sip_req_host&gt;<a href="http://sip-ha.yyy.com" target="_blank">sip-ha.yyy.com</a>&lt;/sip_req_host&gt;</div>




<div>    &lt;sip_to_user&gt;*9664&lt;/sip_to_user&gt;</div><div>    &lt;sip_to_uri&gt;*9664%<a href="http://40sip-ha.yyy.com" target="_blank">40sip-ha.yyy.com</a>&lt;/sip_to_uri&gt;</div><div>    &lt;sip_to_host&gt;<a href="http://sip-ha.yyy.com" target="_blank">sip-ha.yyy.com</a>&lt;/sip_to_host&gt;</div>




<div>    &lt;sip_contact_user&gt;1000&lt;/sip_contact_user&gt;</div><div>    &lt;sip_contact_port&gt;5072&lt;/sip_contact_port&gt;</div><div>    &lt;sip_contact_uri&gt;1000%4079.176.yyy.32%3A5072&lt;/sip_contact_uri&gt;</div>




<div>    &lt;sip_contact_host&gt;79.176.yyy.32&lt;/sip_contact_host&gt;</div><div>    &lt;channel_name&gt;sofia/internal/1000%<a href="http://40sip-ha.yyy.com" target="_blank">40sip-ha.yyy.com</a>&lt;/channel_name&gt;</div>


<div>    &lt;sip_user_agent&gt;Linksys/SPA2102-5.2.10&lt;/sip_user_agent&gt;</div>

<div>    &lt;sip_via_host&gt;192.168.1.5&lt;/sip_via_host&gt;</div><div>    &lt;sip_via_port&gt;5072&lt;/sip_via_port&gt;</div><div>    &lt;sip_via_rport&gt;5072&lt;/sip_via_rport&gt;</div><div>    &lt;max_forwards&gt;70&lt;/max_forwards&gt;</div>




<div>    &lt;presence_id&gt;1000%<a href="http://40sip-ha.yyy.com" target="_blank">40sip-ha.yyy.com</a>&lt;/presence_id&gt;</div><div>    &lt;switch_r_sdp&gt;v%3D0%0D%0Ao%3D-%2033038436%2033038436%20IN%20IP4%2079.176.185.32%0D%0As%3D-%0D%0Ac%3DIN%20IP4%2079.176.185.32%0D%0At%3D0%200%0D%0Am%3Daudio%2016422%20RTP/AVP%2018%200%202%204%208%2096%2097%2098%20100%20101%0D%0Aa%3Drtpmap%3A18%20G729/8000%0D%0Aa%3Drtpmap%3A0%20PCMU/8000%0D%0Aa%3Drtpmap%3A2%20G726-32/8000%0D%0Aa%3Drtpmap%3A4%20G723/8000%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%0Aa%3Drtpmap%3A96%20G726-40/8000%0D%0Aa%3Drtpmap%3A97%20G726-24/8000%0D%0Aa%3Drtpmap%3A98%20G726-16/8000%0D%0Aa%3Drtpmap%3A100%20NSE/8000%0D%0Aa%3Dfmtp%3A100%20192-193%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0Aa%3Dptime%3A20%0D%0A&lt;/switch_r_sdp&gt;</div>




<div>    &lt;ep_codec_string&gt;PCMU%408000h%4020i%4064000b,PCMA%408000h%4020i%4064000b&lt;/ep_codec_string&gt;</div><div>    &lt;nibble_current_balance&gt;0.000000&lt;/nibble_current_balance&gt;</div><div>    &lt;RFC2822_DATE&gt;Wed,%2026%20Jan%202011%2013%3A57%3A18%20%2B0200&lt;/RFC2822_DATE&gt;</div>




<div>    &lt;zrtp_secure_media&gt;true&lt;/zrtp_secure_media&gt;</div><div>    &lt;sip_use_codec_name&gt;PCMU&lt;/sip_use_codec_name&gt;</div><div>    &lt;sip_use_codec_rate&gt;8000&lt;/sip_use_codec_rate&gt;</div><div>    &lt;sip_use_codec_ptime&gt;20&lt;/sip_use_codec_ptime&gt;</div>




<div>    &lt;read_codec&gt;PCMU&lt;/read_codec&gt;</div><div>    &lt;read_rate&gt;8000&lt;/read_rate&gt;</div><div>    &lt;write_codec&gt;PCMU&lt;/write_codec&gt;</div><div>    &lt;write_rate&gt;8000&lt;/write_rate&gt;</div>




<div>    &lt;local_media_ip&gt;178.79.yyy.47&lt;/local_media_ip&gt;</div><div>    &lt;local_media_port&gt;19600&lt;/local_media_port&gt;</div><div>    &lt;sip_use_pt&gt;0&lt;/sip_use_pt&gt;</div><div>    &lt;rtp_use_ssrc&gt;922702377&lt;/rtp_use_ssrc&gt;</div>




<div>    &lt;remote_media_ip&gt;79.176.185.32&lt;/remote_media_ip&gt;</div><div>    &lt;remote_media_port&gt;16422&lt;/remote_media_port&gt;</div><div>    &lt;sip_local_sdp_str&gt;v%3D0%0Ao%3DFreeSWITCH%201296023438%201296023439%20IN%20IP4%20178.79.147.47%0As%3DFreeSWITCH%0Ac%3DIN%20IP4%20178.79.147.47%0At%3D0%200%0Am%3Daudio%2019600%20RTP/AVP%200%20101%0Aa%3Drtpmap%3A0%20PCMU/8000%0Aa%3Drtpmap%3A101%20telephone-event/8000%0Aa%3Dfmtp%3A101%200-16%0Aa%3DsilenceSupp%3Aoff%20-%20-%20-%20-%0Aa%3Dptime%3A20%0Aa%3Dsendrecv%0A&lt;/sip_local_sdp_str&gt;</div>




<div>    &lt;endpoint_disposition&gt;ANSWER&lt;/endpoint_disposition&gt;</div><div>    &lt;sip_to_tag&gt;vgcH82ctg6QaD&lt;/sip_to_tag&gt;</div><div>    &lt;sip_from_tag&gt;9241a2573e4f702o0&lt;/sip_from_tag&gt;</div><div>




    &lt;sip_cseq&gt;102&lt;/sip_cseq&gt;</div><div>    &lt;sip_call_id&gt;17217721-3d90de36%40192.168.1.5&lt;/sip_call_id&gt;</div><div>    &lt;sip_full_from&gt;%3Csip%3A1000%<a href="http://40sip-ha.yyy.com" target="_blank">40sip-ha.yyy.com</a>%3E%3Btag%3D9241a2573e4f702o0&lt;/sip_full_from&gt;</div>




<div>    &lt;sip_full_to&gt;%3Csip%3A*9664%<a href="http://40sip-ha.yyy.com" target="_blank">40sip-ha.yyy.com</a>%3E%3Btag%3DvgcH82ctg6QaD&lt;/sip_full_to&gt;</div><div>    &lt;playback_seconds&gt;2&lt;/playback_seconds&gt;</div>


<div>    &lt;playback_ms&gt;2000&lt;/playback_ms&gt;</div>

<div>    &lt;playback_samples&gt;16000&lt;/playback_samples&gt;</div><div>    &lt;current_application_data&gt;local_stream%3A//moh&lt;/current_application_data&gt;</div><div>    &lt;current_application&gt;playback&lt;/current_application&gt;</div>




<div>  &lt;/variables&gt;</div><div>  &lt;app_log&gt;</div><div>    &lt;application app_name=&quot;hash&quot; app_data=&quot;insert/sip.yyy.com-spymap/1000/6cda8922-2943-11e0-b622-639ef8e43974&quot;&gt;&lt;/application&gt;</div>




<div>    &lt;application app_name=&quot;hash&quot; app_data=&quot;insert/sip.yyy.com-last_dial/1000/*9664&quot;&gt;&lt;/application&gt;</div><div>    &lt;application app_name=&quot;hash&quot; app_data=&quot;insert/sip.yyy.com-last_dial/global/6cda8922-2943-11e0-b622-639ef8e43974&quot;&gt;&lt;/application&gt;</div>




<div>    &lt;application app_name=&quot;set&quot; app_data=&quot;RFC2822_DATE=Wed, 26 Jan 2011 13:57:18 +0200&quot;&gt;&lt;/application&gt;</div><div>    &lt;application app_name=&quot;set&quot; app_data=&quot;zrtp_secure_media=true&quot;&gt;&lt;/application&gt;</div>




<div>    &lt;application app_name=&quot;answer&quot; app_data=&quot;&quot;&gt;&lt;/application&gt;</div><div>    &lt;application app_name=&quot;playback&quot; app_data=&quot;silence_stream://2000&quot;&gt;&lt;/application&gt;</div>




<div>    &lt;application app_name=&quot;execute_extension&quot; app_data=&quot;is_zrtp_secure XML features&quot;&gt;&lt;/application&gt;</div><div>    &lt;application app_name=&quot;eval&quot; app_data=&quot;not_secure&quot;&gt;&lt;/application&gt;</div>




<div>    &lt;application app_name=&quot;playback&quot; app_data=&quot;local_stream://moh&quot;&gt;&lt;/application&gt;</div><div>  &lt;/app_log&gt;</div><div>  &lt;callflow dialplan=&quot;XML&quot; profile_index=&quot;1&quot;&gt;</div>




<div>    &lt;extension name=&quot;global&quot; number=&quot;*9664&quot;&gt;</div><div>      &lt;application app_name=&quot;hash&quot; app_data=&quot;insert/${domain_name}-spymap/${caller_id_number}/${uuid}&quot;&gt;&lt;/application&gt;</div>




<div>      &lt;application app_name=&quot;hash&quot; app_data=&quot;insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}&quot;&gt;&lt;/application&gt;</div><div>      &lt;application app_name=&quot;hash&quot; app_data=&quot;insert/${domain_name}-last_dial/global/${uuid}&quot;&gt;&lt;/application&gt;</div>




<div>      &lt;application app_name=&quot;set&quot; app_data=&quot;RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)}&quot;&gt;&lt;/application&gt;</div><div>      &lt;application app_name=&quot;set&quot; app_data=&quot;zrtp_secure_media=true&quot;&gt;&lt;/application&gt;</div>




<div>      &lt;application app_name=&quot;answer&quot; app_data=&quot;&quot;&gt;&lt;/application&gt;</div><div>      &lt;application app_name=&quot;playback&quot; app_data=&quot;silence_stream://2000&quot;&gt;&lt;/application&gt;</div>




<div>      &lt;application app_name=&quot;execute_extension&quot; app_data=&quot;is_zrtp_secure XML features&quot;&gt;&lt;/application&gt;</div><div>      &lt;application app_name=&quot;playback&quot; app_data=&quot;local_stream://moh&quot;&gt;&lt;/application&gt;</div>




<div>      &lt;sub_extensions&gt;</div><div>        &lt;extension name=&quot;is_zrtp_secure&quot; number=&quot;is_zrtp_secure&quot; dialplan=&quot;XML&quot;&gt;</div><div>          &lt;application app_name=&quot;eval&quot; app_data=&quot;not_secure&quot;&gt;&lt;/application&gt;</div>




<div>        &lt;/extension&gt;</div><div>      &lt;/sub_extensions&gt;</div><div>    &lt;/extension&gt;</div><div>    &lt;caller_profile&gt;</div><div>      &lt;username&gt;1000&lt;/username&gt;</div><div>      &lt;dialplan&gt;XML&lt;/dialplan&gt;</div>




<div>      &lt;caller_id_name&gt;1000&lt;/caller_id_name&gt;</div><div>      &lt;ani&gt;1000&lt;/ani&gt;</div><div>      &lt;aniii&gt;&lt;/aniii&gt;</div><div>      &lt;caller_id_number&gt;1000&lt;/caller_id_number&gt;</div>




<div>      &lt;network_addr&gt;79.176.yyy.32&lt;/network_addr&gt;</div><div>      &lt;rdnis&gt;&lt;/rdnis&gt;</div><div>      &lt;destination_number&gt;*9664&lt;/destination_number&gt;</div><div>      &lt;uuid&gt;6cda8922-2943-11e0-b622-639ef8e43974&lt;/uuid&gt;</div>




<div>      &lt;source&gt;mod_sofia&lt;/source&gt;</div><div>      &lt;context&gt;default&lt;/context&gt;</div><div>      &lt;chan_name&gt;sofia/internal/<a href="mailto:1000@sip-ha.yyy.com" target="_blank">1000@sip-ha.yyy.com</a>&lt;/chan_name&gt;</div>




<div>    &lt;/caller_profile&gt;</div><div>    &lt;times&gt;</div><div>      &lt;created_time&gt;1296043038692089&lt;/created_time&gt;</div><div>      &lt;profile_created_time&gt;1296043038692089&lt;/profile_created_time&gt;</div>




<div>      &lt;progress_time&gt;0&lt;/progress_time&gt;</div><div>      &lt;progress_media_time&gt;1296043038708572&lt;/progress_media_time&gt;</div><div>      &lt;answered_time&gt;1296043038708572&lt;/answered_time&gt;</div>




<div>      &lt;hangup_time&gt;0&lt;/hangup_time&gt;</div><div>      &lt;resurrect_time&gt;0&lt;/resurrect_time&gt;</div><div>      &lt;transfer_time&gt;0&lt;/transfer_time&gt;</div><div>    &lt;/times&gt;</div><div>  &lt;/callflow&gt;</div>




<div>&lt;/cdr&gt;</div></div><div><div></div><div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 12:53 PM, Tihomir Culjaga <span dir="ltr">&lt;<a href="mailto:tculjaga@gmail.com" target="_blank">tculjaga@gmail.com</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">hello Anthony, <br><br>ya, i was afraid of that... this means moving all my modules &amp; patches to the latest git...<br>




<br>radius cdr interface<br>odbc cdr interface<br><br>within mod_xml_cdr &lt;= i can share this as a patch... if you are interested.<br>
<br><br>mod_say_hr - really bad programming .. needs big re-factoring but lack of time :(<br>patches for mod_say_de &amp; mod_say_fr - because wrong playing in some scenarios<br><br>and some small stuff i made within mod_commands... anyhow this was on the road.<br>





<br><br>anyhow i was really into understanding the way the call context replication works... this may be the DB connection issue as the ODBC connection is reset on switchover (im switching entire resource .. floating IP, &amp; database)<br>





<br><br>so what really happens is the FS on 2nd node just getting sessions from sip_recovery <br><br>from sofia_glue_recover: i see you are selecting sip_recovery table.<br><br><br>select * from sip_recovery;<br>
 <table width="1135" border="0" cellpadding="0" cellspacing="0" height="123"><colgroup><col style="width: 187pt;" width="249">
 <col style="width: 64pt;" width="86">
 <col style="width: 49pt;" width="66">
 <col style="width: 196pt;" width="261">
 <col style="width: 48pt;" width="64">
 </colgroup><tbody><tr style="min-height: 14.4pt;" height="19">
  <td style="min-height: 14.4pt; width: 187pt;" width="249" height="19">runtime_uuid</td>
  <td style="border-left: medium none; width: 64pt;" width="86">profile_name</td>
  <td style="border-left: medium none; width: 49pt;" width="66">hostname</td>
  <td style="border-left: medium none; width: 196pt;" width="261">uuid</td>
  <td style="border-left: medium none; width: 48pt;" width="64">metadata</td>
 </tr>
 <tr style="min-height: 14.4pt;" height="19">
  <td style="min-height: 14.4pt; border-top: medium none;" height="19">24f77a1f-f315-4beb-904f-f779e8767c75</td>
  <td style="border-top: medium none; border-left: medium none;">internal</td>
  <td style="border-top: medium none; border-left: medium none;">cxss01</td>
  <td style="border-top: medium none; border-left: medium none;">102b2c7f-466f-4b6d-a795-e2cc25630e78</td>
  <td style="border-top: medium none; border-left: medium none;"> </td>
 </tr>
 <tr style="min-height: 14.4pt;" height="19">
  <td style="min-height: 14.4pt; border-top: medium none;" height="19">24f77a1f-f315-4beb-904f-f779e8767c75</td>
  <td style="border-top: medium none; border-left: medium none;">external</td>
  <td style="border-top: medium none; border-left: medium none;">cxss01</td>
  <td style="border-top: medium none; border-left: medium none;">52834d99-c1be-4832-bee9-7ba05238871d</td>
  <td style="border-top: medium none; border-left: medium none;"> </td>
 </tr>
</tbody></table><br><br><br><br>so, what do you do afterward?<br><br><br>on the recovering node i see some portion of dialplan is executed and re-INVITEs being sent ... where do you get the DSP info for the recovering re-INVITE ?<br>





<br><br><br><br>thanks for your help,<br>Tihomir.<br><br><br></blockquote></div></div></div></div></div>
<br></div></div><div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></div></blockquote></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>