<div dir="ltr">Hi,<div><br></div><div> can you capture what fs is trying to save ?<div>do you have a sip message capture in wireshark ?</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 March 2018 at 20:14, Roman Dissauer <span dir="ltr"><<a href="mailto:roman@dissauer.net" target="_blank">roman@dissauer.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hi,<div><br></div><div>we have about 800 connected users, 150 simultaneous calls and some user agents send sip messages with non UTF-8 characters.</div><div>When FreeSWITCH tries to alter the channel information in the postgres db it throughs an error:</div><div><br></div><div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;color:rgb(177,37,19);background-color:rgb(223,219,195)"><span style="font-variant-ligatures:no-common-ligatures">2018-03-29 15:47:46.794346 [ERR] switch_pgsql.c:656 Error executing query:</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;color:rgb(177,37,19);background-color:rgb(223,219,195)"><span style="font-variant-ligatures:no-common-ligatures">ERROR:  invalid byte sequence for encoding "UTF8": 0xf6 0x63 0x68 0x6c</span></div></div><div><br></div><div>The Problem now is that we see some calls in the database which do not exist anymore (uuid_exists returns false). This are other calls, not the one which cause the error above!</div><div>It seems that everytime the error happens, Freeswitch cannot delete other channels from db when the bye is arriving +/- 100ms near the error.</div><div><br></div><div>We tried to set client_encoding in the postgres connection string to some options e.g. LATIN1 but that didn’t solve our problem. Whichever client_encoding we used, we always had some user agents with some unknown characters.</div><div><br></div><div>How should we deal with that?</div><div><br></div><div>Thanks,</div><div>Roman</div><div><div><br></div><div><div><font face="GillSans-SemiBold" color="#53655a"><b>RDI SOLUTIONS e.U.</b></font></div><div><font color="#4d4e4c" face="GillSans-Light">Hollenthon 105</font></div><div><font face="GillSans-Light" color="#4d4e4c">2812 Hollenthon, Österreich</font></div><div><font face="GillSans-Light" color="#4d4e4c">T: <a href="tel:+43%201%203530349" value="+4313530349" target="_blank">+43 1 3530349</a> - 10</font></div><div><font face="GillSans-Light" color="#4d4e4c">F: <a href="tel:+43%201%203530349" value="+4313530349" target="_blank">+43 1 3530349</a> - 99</font></div><div><font face="GillSans-Light" color="#4d4e4c"><a href="mailto:roman.dissauer@rdi.at" target="_blank">roman.dissauer@rdi.at</a></font></div><div><font color="#4d4e4c" face="GillSans-SemiBold"><b><a href="http://www.rdi.at" target="_blank">www.rdi.at</a></b></font></div></div></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>