<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">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">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">40sip-ha.yyy.com</a>&lt;/sip_from_uri&gt;</div><div>    &lt;sip_from_host&gt;<a href="http://sip-ha.yyy.com">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">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">40sip-ha.yyy.com</a>&lt;/sip_req_uri&gt;</div><div>    &lt;sip_req_host&gt;<a href="http://sip-ha.yyy.com">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">40sip-ha.yyy.com</a>&lt;/sip_to_uri&gt;</div><div>    &lt;sip_to_host&gt;<a href="http://sip-ha.yyy.com">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">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">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">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">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">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><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">tculjaga@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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>