Project

General

Profile

Actions

Support #4267

closed

figure out effects of blocking in dialplan.py / smpp.py

Added by neels over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Target version:
-
Start date:
11/14/2019
Due date:
% Done:

100%

Spec Reference:

Description

the idea so far is to do an mDNS lookup from the FreeSwitch dialplan.py integration and the smpp.py SMPP handler.
But what happens if the dialplan.py or smpp.py blocks for a whole second or more (just to find that an MSISDN is not connected)?
How does this scale?


Checklist

  • calls
  • sms (smpp.py/esme.py)
Actions #1

Updated by neels over 4 years ago

  • Assignee set to osmith

osmith, can you try to test whether FreeSwitch is able to service other calls while it is waiting for an MSISDN to resolve?

If we block FreeSwitch completely, that might be a reason to after all do mslookup from another component (one where we can easily wait asynchronously)... :/

Actions #2

Updated by osmith over 4 years ago

neels wrote:

osmith, can you try to test whether FreeSwitch is able to service other calls while it is waiting for an MSISDN to resolve?

This is possible. I've added a 10 second sleep to our dialplan, started a call with one phone, and another call with another phone before the first call was resolved. It started the lookup for the second msisdn just fine, without waiting until the first one was done.

Actions #3

Updated by osmith over 4 years ago

  • Checklist item calls added
  • Checklist item sms (smpp.py/esme.py) added
  • % Done changed from 0 to 50
Actions #4

Updated by laforge over 4 years ago

On Thu, Nov 14, 2019 at 11:08:33AM +0000, osmith [REDMINE] wrote:

This is possible. I've added a 10 second sleep to our dialplan, started a call with one phone, and another call with another phone before the first call was resolved. It started the lookup for the second msisdn just fine, without waiting until the first one was done.

what a relief. To be honest, I would have been seriously surprised about anything else, given
freeswitch is a widely used and professionalyl deployed system.

Actions #5

Updated by osmith over 4 years ago

  • Checklist item sms (smpp.py/esme.py) set to Done
  • Status changed from New to Resolved
  • % Done changed from 50 to 100

No problem in the smpp handler, if it uses threading (like the example one created for #4254).

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)