[Freeswitch-users] Invalid UTF-8 character to ampersand, skip it

Rodney notlikeme75 at yahoo.com
Sat Jan 7 20:48:31 MSK 2012


this is doing the same for me but only when they press my option for the Conference Call Count extension. did have any problems with the november msi (english windows version) still hoping it gets fixed.


________________________________
 From: "freeswitch-users-request at lists.freeswitch.org" <freeswitch-users-request at lists.freeswitch.org>
To: freeswitch-users at lists.freeswitch.org 
Sent: Saturday, January 7, 2012 12:41 PM
Subject: FreeSWITCH-users Digest, Vol 67, Issue 62
 
----- Forwarded Message -----

Send FreeSWITCH-users mailing list submissions to
    freeswitch-users at lists.freeswitch.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
or, via email, send a message with subject or body 'help' to
    freeswitch-users-request at lists.freeswitch.org

You can reach the person managing the list at
    freeswitch-users-owner at lists.freeswitch.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of FreeSWITCH-users digest..."

Today's Topics:

   1. Re: Invalid UTF-8 character to ampersand, skip it
      (Juan Antonio Iba?ez Santorum)
   2. Out of event dispatch threads! Slowing things    down.
      (Stephen Wilde)
   3. Need help using api_hangup_hook and    session_in_hangup_hook
      (Herman Griffin)
   4. 407 undefined? sip port 5060 (Rodney)

Try to update to last git. There are some not supported chars at german language files.

Regards


2012/1/7 Ryan How <rhow at exemail.com.au>

Hi,
>
>I've just installed freeswitch on windows using the binary install
>(FreeSWITCH Version 1.0.head (git-6ab3f56 2011-12-28 16-52-30 -0600).
>Whenever a call is made the log fills up with about 42 "Invalid UTF-8
>character to ampersand, skip it". I haven't changed any config from the
>default. Any pointers ?
>
>Thanks!
>
>Ryan
>
>
>_________________________________________________________________________
>Professional FreeSWITCH Consulting Services:
>consulting at freeswitch.org
>http://www.freeswitchsolutions.com
>
>
>
>
>Official FreeSWITCH Sites
>http://www.freeswitch.org
>http://wiki.freeswitch.org
>http://www.cluecon.com
>
>FreeSWITCH-users mailing list
>FreeSWITCH-users at lists.freeswitch.org
>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>http://www.freeswitch.org
>

Hi,
my system is showing in the log the following critical errors:


2012-01-07 18:13:34.978566 [CRIT] switch_event.c:360 Out of event dispatch threads! Slowing things down.
2012-01-07 18:13:35.981506 [CRIT] switch_event.c:339 Event system overloading. Taking a 10 second break
2012-01-07 18:13:36.975496 [CRIT] switch_event.c:360 Out of event dispatch threads! Slowing things down.
2012-01-07 18:13:37.974385 [CRIT] switch_event.c:339 Event system overloading. Taking a 10 second break
2012-01-07 18:13:38.977286 [CRIT] switch_event.c:360 Out of event dispatch threads! Slowing things down.
2012-01-07 18:13:39.983208 [CRIT] switch_event.c:339 Event system overloading. Taking a 10 second break
2012-01-07 18:13:40.999186 [CRIT] switch_event.c:360 Out of event dispatch threads! Slowing things down.
2012-01-07 18:13:42.003136 [CRIT] switch_event.c:360 Out of event dispatch threads! Slowing things down.
2012-01-07 18:14:27.210316 [CRIT] switch_event.c:360 Out of event dispatch threads! Slowing things down.
2012-01-07 18:14:28.214168 [CRIT] switch_event.c:360 Out of event dispatch threads! Slowing things down.
2012-01-07 18:14:29.211205 [CRIT] switch_event.c:339 Event system overloading. Taking a 10 second break
2012-01-07 18:14:30.208196 [CRIT] switch_event.c:360 Out of event dispatch threads! Slowing things down.
2012-01-07 18:14:31.210143 [CRIT] switch_event.c:339 Event system overloading. Taking a 10 second break

The CPU is running at 40%-50% of load and the number of sessions in below the limit, the same for sessions per seconds.

There is any parameter that I have to adjust?

StephenHello,

I'm using the api_hangup_hook and session_in_hangup variables with a
pyrun. How do I access the session object from inside the python
module?

---------------------------------
Here are some logs :

Dialplan: sofia/external/3105795721 at 72.37.252.18 Absolute Condition [emergency]
Dialplan: sofia/external/3105795721 at 72.37.252.18 Action
set(session_in_hangup_hook=true)
Dialplan: sofia/external/3105795721 at 72.37.252.18 Action
set(api_hangup_hook=pyrun emergency.hangup)
Dialplan: sofia/external/3105795721 at 72.37.252.18 Absolute Condition [emergency]
.
.
2012-01-07 09:21:57.693488 [DEBUG] mod_python.c:281 Call python script
2012-01-07 09:21:57.693488 [DEBUG] mod_python.c:284 Finished calling
python script
2012-01-07 09:21:57.693488 [ERR] mod_python.c:293 Error calling python script
2012-01-07 09:21:57.693488 [ERR] mod_python.c:164 Python Error by
calling script "emergency.hangup": <type 'exceptions.NameError'>
Message: global name 'session' is not defined
Exception: None

Traceback (most recent call last)
    File: "/usr/local/freeswitch/scripts/python/emergency/hangup.py",
line 34, in runtime



----------------------------------------------------------
Here is the simple script

python module emergency.hangup:

from freeswitch import *

def runtime(arg):
    consoleLog("info", print(dir(session)))



Thanks,
Herman



Vitalie,

I asked my provider to switch up to port 5080 and everything is negotiating perfectly. thanks for your help.




________________________________
 From: "freeswitch-users-request at lists.freeswitch.org" <freeswitch-users-request at lists.freeswitch.org>
To: freeswitch-users at lists.freeswitch.org 
Sent: Friday, January 6, 2012 11:54 PM
Subject: FreeSWITCH-users Digest, Vol 67, Issue 58
 
----- Forwarded Message -----

Send FreeSWITCH-users mailing list submissions to
    freeswitch-users at lists.freeswitch.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
or, via email, send a message with subject or body 'help' to
    freeswitch-users-request at lists.freeswitch.org

You can reach the person managing the list at
    freeswitch-users-owner at lists.freeswitch.org

When replying, please edit your Subject line so it is more specific
than "Re:
 Contents of FreeSWITCH-users digest..."

Today's Topics:

   1. 407 undefined? sip port 5060 (Rodney)
   2.  Why database is locked? (Valery Kalinin)
   3. Re: Why database is locked? (Ken Rice)
   4. Re: 407 undefined? sip port 5060 (Vitalie Colosov)

I currently have external profile ipkall working on port 5080 but now i am testing RNK carrier services and they are sending to me on port 5060. I do not notice anything on the console but they are saying they are sending to my server and getting this response: 

2012-01-06 21:52:46.0 000000000   614???????      6174530953 (          DID-IN:RNK) (H1 usinteractive-nextdi)   407       undefined 




I have the following gateway setup in C:\Program Files\FreeSWITCH\conf\sip_profiles\external


<include>
    <gateway name="RNK_Test">
      <param name="username" value="superadmin"/>
      <param name="password" value="fusionpbx"/>
      <param name="proxy" value="76.181.53.231:5060"/>
      <param name="expire-seconds" value="800"/>
      <param name="register" value="false"/>
      <param name="retry-seconds" value="60"/>
      <param name="context" value="default"/>
    </gateway>
</include>

It is exactly the same as my IPkall except for the gateway name and proxy port. How do I make sure I can accept on this port. Is there somewhere else I need to be adding this 5060 port information.

thank you.


> Are you running the latest version of FS?

FreeSWITCH Version 1.0.head (git-4cd616c 2011-12-15 23-36-20 -0500)

> Also are you doing anything externally to mess with the sql db files?

No.

> Another possibility is a slow filesystem, we used to have people get this
problem on suse linux.

CentOS release 5.5 (Final)

> You could try running your db dir in a ramdisk.

These problems appeared after the upgrade version of FS.


Thank you in advance...

Re: [Freeswitch-users]  Why database is locked? 
Blow away all the files in freeswitch/db and restart freeswitch

Save the voicemail.db file if you don’t wanna lose all the voicemails and give that a try.

That will force a reset of the all the databases and should clear any errors... 


On 1/6/12 10:00 PM, "Valery Kalinin" <valery.kalinin at gmail.com> wrote:


> Are you running the latest version of FS?
>
>FreeSWITCH Version 1.0.head (git-4cd616c 2011-12-15 23-36-20 -0500)
>
>> Also are you doing anything externally to mess with the sql db files?
>
>No.
>
>> Another possibility is a slow filesystem, we used to have people get this
>problem on suse linux.
>
>CentOS release 5.5 (Final)
>
>> You could try running your db dir in a ramdisk.
>
>These problems appeared after the upgrade version of FS.
>
>
>Thank you in advance...
>
>>________________________________
>_________________________________________________________________________
>Professional FreeSWITCH Consulting Services:
>consulting at freeswitch.org
>http://www.freeswitchsolutions.com
>
>
>
>
>Official FreeSWITCH Sites
>http://www.freeswitch.org
>http://wiki.freeswitch.org
>http://www.cluecon.com
>
>FreeSWITCH-users mailing list
>FreeSWITCH-users at lists.freeswitch.org
>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>http://www.freeswitch.org
>
Ask your provider to send sip packets to 5080, instead of 5060.
Every good provider should allow you to select the port YOU want, and not THEY want.

If it will not help, then you need to make external profile listen to 5060, instead of 5080.
So, you will be sending and receiving sip messages between you and provider, using port 5060 (which is usually used only for your internal profile and your clients).

To change this, you need to modify conf/sip_profiles/external.xml
<param name="sip-port" value="5080"/> replace to "5060"

In this case, you will have to reconfigure internal profile to be on a different port, say 5062, and ask your clients to add :5062 to the sip server address when they configure their softphone/sip adapter.

Maybe another option would be to consider provider as one of your internal clients, and allow password-less communication from his IP, but this is way too crazy to consider as a good option.

Vitalie






2012/1/6 Rodney <notlikeme75 at yahoo.com>

I currently have external profile ipkall working on port 5080 but now i am testing RNK carrier services and they are sending to me on port 5060. I do not notice anything on the console but they are saying they are sending to my server and getting this response: 
>
>
>2012-01-06 21:52:46.0 000000000   614???????      6174530953 (          DID-IN:RNK) (H1 usinteractive-nextdi)   407       undefined 
>
>
>
>
>
>
>
>I have the following gateway setup in C:\Program Files\FreeSWITCH\conf\sip_profiles\external
>
>
>
>
><include>
>    <gateway name="RNK_Test">
>      <param name="username" value="superadmin"/>
>      <param name="password" value="fusionpbx"/>
>      <param name="proxy" value="76.181.53.231:5060"/>
>      <param name="expire-seconds" value="800"/>
>      <param name="register" value="false"/>
>      <param name="retry-seconds" value="60"/>
>      <param name="context" value="default"/>
>    </gateway>
></include>
>
>
>It is exactly the same as my IPkall except for the gateway name and proxy port. How do I make sure I can accept on this port. Is there somewhere else I need to be adding this 5060 port information.
>
>
>thank you.
>
>
>
>
>_________________________________________________________________________
>Professional FreeSWITCH Consulting Services:
>consulting at freeswitch.org
>http://www.freeswitchsolutions.com
>
>
>
>
>Official FreeSWITCH Sites
>http://www.freeswitch.org
>http://wiki.freeswitch.org
>http://www.cluecon.com
>
>FreeSWITCH-users mailing list
>FreeSWITCH-users at lists.freeswitch.org
>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>http://www.freeswitch.org
>
>

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120107/1b169a57/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list