0
votes

I have tried to originate a call from cli, My call file will hit two Java applications at a time so that they starts communicating to each other. Now My requirement is to originate multiple calls at once so that multiple threads run at same time. and Thus I can test the load etc. I have tried following for originating single call It works fine.

originate loopback/1234/default &bridge({ignore_early_media=true}sofia/internal/[email protected])

The above file can only be executed once, If I run it in a loop even then only one call is invoked. Please suggest me some way how to originate more number of calls in freeswitch

2

2 Answers

1
votes

Your code is getting stuck waiting for the result -- 'api' commands are blocking

If you execute this as 'bgapi originate....' then it will be a background execution (bg) and be non-blocking -- it will return a job uuid, and let you execute more commands.

See:

0
votes

bgapi returns only Job-UUID, but not call uuid. what to do next?