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.<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">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 class="h5">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 class="h5">
<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 class="im">_______________________________________________<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>