[OpenSIPS-Users] FIFO from scripts

Saúl Ibarra Corretgé saul at ag-projects.com
Mon Nov 4 17:46:30 CET 2013


Hi!

On Nov 4, 2013, at 4:49 PM, Andreas Sikkema <h323 at ramdyne.nl> wrote:

> Hi,
> 
> What are OpenSIPS users using to talk to OpenSIPS (FIFO probably)?
> 

We use FIFO.

> I want to run a cron job every now and then to check if there are calls running for a very long time and close them.
> 
> I can do this by hand and than it's not difficult. I'd *love* to do this using a python script.

> Does anyone have an example on how to talk to the FIFO from python?

Have a look at this: http://mediaproxy.ag-projects.com/projects/mediaproxy/repository/entry/mediaproxy/interfaces/opensips.py

that's how MediaProxy communicates with OpenSIPS for ending dialogs. Extending it to support other fifo methods should be pretty straightforward.


Cheers,

--
Saúl Ibarra Corretgé
AG Projects






More information about the Users mailing list