Re: [Freeswitch-users] DTMF Digits Lost when Under Load

2009-11-30 Thread Michael Toop
Hi All,

 Thought I would share my solution to this DTMF problem:  it turns out my
ISP was capping my bandwidth & dropping packets to keep the connection &
1Mbps, so the experienced DTMF loss was actually packets being discarded.

 On my way to this discovery I tested Freeswitch & DTMF quite thoroughly &
never actually found any problems even at hundreds of concurrent calls.
Here is how I tested, who knows this might be useful to someone:

   - I used SIPp to generate calls & a Python script to log the received
   DTMF digits
   - SIPp command line:
  - sipp -sf dtmfSenario.xml -d 1 -s 451  -l 96  -mp 5606 -i
  xxx.xxx.xxx.xxx
   - dtmfSenario.xml below
   - Dialplan:
  - 


  
  

  
   - Python:
  - import sys
  from freeswitch import *


  def get_number(session,invalid,num=20):
  digits = session.getDigits(num, "", 15000)

  consoleLog("info","Got '%s' digits from user.\n" % digits)
  if digits == '':
  # Invalid call
  if invalid == 3:
  consoleLog("info","Three invalid
  attempts!!\n")

  
session.streamFile("/usr/local/freeswitch/sounds/en/us/callie/misc/8000/invalid_extension.wav")
  session.hangup()
  sys.exit(0)
  else:

  
session.streamFile("/usr/local/freeswitch/sounds/en/us/callie/misc/8000/invalid_extension.wav")
  get_number(session,invalid + 1)
  else:
  consoleLog("info","Got a valid number: %s,
  proceeding...\n" % digits)
  return digits



  def handler(session, args):

  
session.streamFile("/usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-please_enter_extension_followed_by_pound.wav")
  numberToDial = get_number(session,2,num=10)
  consoleLog('info','Got 10 DTMF digits. Writing "1" to file...\n')
  fo = open('/tmp/dtmfData.csv','a')
  fo.write('"1"\n')
  fo.close()
  # Do some stuff & wait for SIPP to hangup

  
session.streamFile("/usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-please_enter_extension_followed_by_pound.wav")

  
session.streamFile("/usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-please_enter_extension_followed_by_pound.wav")
  return
   - DTMF senario file:
  - # cat dtmfSenario.xml
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  



  


  















  



  







  

  






  

  





  

  





  

  





  

  





  

  





  

  





  

  





  

  





  

  






  











  

Cheers,

Michael

On Mon, Nov 16, 2009 at 5:25 PM, Anthony Minessale <
anthony.miness...@gmail.com> wrote:

> That's a pretty small problem description to be so sure about something.
> It would probably be better to capture some evidence of the exact problem
> you are having since we are using computers and we need to see the computers
> in action doing something specifically incorrect to diagnose any sort of
> problem.  Take the time to describe the origin and destination of your
> calls, the call flow, the hardware in use on both ends of the call, detailed
> console logs on debug level, (maybe even uncomment the 2833 debug ifded in
> switch_rtp.c) and gather something to go on besides "I seem to be losing
> dtmf) maybe a packect capture of the networking interface on both ends of
> these calls.
>
> Also problems should be reported to http://jira.freeswitch.org not this
> mailing list.
> Save us a step if you report a jira and provide all the info above or we
> will just have to ask for it again.
>
>
> On Mon, Nov 16, 2009 at 1:07 AM, Michael Toop <
> micha...@voxcore.voxtelecom.co.za> wrote:
>
>> Hi All,
>>
>>  I have an issue that when my call volumes on my FS IVR box > 30 calls
>> DTMF digits are lost (using RFC2833).  It is definitely load relate

Re: [Freeswitch-users] DTMF Digits Lost when Under Load

2009-11-16 Thread Michael Toop
Hi Anthony,

 Thanks for the input.  I will try & reproduce the problem & give you
something more concrete to work with & log it in Jira.

Thanks again,

Michael

On Mon, Nov 16, 2009 at 5:25 PM, Anthony Minessale <
anthony.miness...@gmail.com> wrote:

> That's a pretty small problem description to be so sure about something.
> It would probably be better to capture some evidence of the exact problem
> you are having since we are using computers and we need to see the computers
> in action doing something specifically incorrect to diagnose any sort of
> problem.  Take the time to describe the origin and destination of your
> calls, the call flow, the hardware in use on both ends of the call, detailed
> console logs on debug level, (maybe even uncomment the 2833 debug ifded in
> switch_rtp.c) and gather something to go on besides "I seem to be losing
> dtmf) maybe a packect capture of the networking interface on both ends of
> these calls.
>
> Also problems should be reported to http://jira.freeswitch.org not this
> mailing list.
> Save us a step if you report a jira and provide all the info above or we
> will just have to ask for it again.
>
>
> On Mon, Nov 16, 2009 at 1:07 AM, Michael Toop <
> micha...@voxcore.voxtelecom.co.za> wrote:
>
>> Hi All,
>>
>>  I have an issue that when my call volumes on my FS IVR box > 30 calls
>> DTMF digits are lost (using RFC2833).  It is definitely load related as it
>> all works perfectly under 30 calls.
>>
>>  Any pointers or a solution to the problem?
>>
>> Thanks,
>>
>> Michael
>> ___
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users@lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> AIM: anthm
> MSN:anthony_miness...@hotmail.com 
> GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:8...@conference.freeswitch.org 
> iax:gu...@conference.freeswitch.org/888
> googletalk:conf+...@conference.freeswitch.org
> pstn:213-799-1400
>
> ___
> FreeSWITCH-users mailing list
> FreeSWITCH-users@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] DTMF Digits Lost when Under Load

2009-11-16 Thread Anthony Minessale
That's a pretty small problem description to be so sure about something.
It would probably be better to capture some evidence of the exact problem
you are having since we are using computers and we need to see the computers
in action doing something specifically incorrect to diagnose any sort of
problem.  Take the time to describe the origin and destination of your
calls, the call flow, the hardware in use on both ends of the call, detailed
console logs on debug level, (maybe even uncomment the 2833 debug ifded in
switch_rtp.c) and gather something to go on besides "I seem to be losing
dtmf) maybe a packect capture of the networking interface on both ends of
these calls.

Also problems should be reported to http://jira.freeswitch.org not this
mailing list.
Save us a step if you report a jira and provide all the info above or we
will just have to ask for it again.


On Mon, Nov 16, 2009 at 1:07 AM, Michael Toop <
micha...@voxcore.voxtelecom.co.za> wrote:

> Hi All,
>
>  I have an issue that when my call volumes on my FS IVR box > 30 calls DTMF
> digits are lost (using RFC2833).  It is definitely load related as it all
> works perfectly under 30 calls.
>
>  Any pointers or a solution to the problem?
>
> Thanks,
>
> Michael
> ___
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_miness...@hotmail.com 
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org 
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.org
pstn:213-799-1400
___
FreeSWITCH-users mailing list
FreeSWITCH-users@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] DTMF Digits Lost when Under Load

2009-11-16 Thread Michael Toop
Hi All,

 I have an issue that when my call volumes on my FS IVR box > 30 calls DTMF
digits are lost (using RFC2833).  It is definitely load related as it all
works perfectly under 30 calls.

 Any pointers or a solution to the problem?

Thanks,

Michael
___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org