[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Partysip-dev] Originating calls from a plugin

From: Peter Lord
Subject: Re: [Partysip-dev] Originating calls from a plugin
Date: Wed, 25 Jun 2003 11:57:23 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030617

Aymeric Moizard wrote:

On Wed, 25 Jun 2003, Peter Lord wrote:
Hi All,

Is it possible to originate calls from a plugin ?  For example, I
would like to write something that does an alarm call.... with would
need to (at the right time of day) initiate a call to the party and
connect them to a terminal which would send the message.

Plugins are only called when a new request is received... But, when you
initiate a plugin, you could possibly start a thread that will do the

The issue is more about initiating calls: partysip have no way to initiate
outgoing requests without receiving one. The only way is to allocate a new
osip instance, attach new callbacks and all...

I really need to access the functionality of partysip in some cases (ie manage and control a call orginated externally) but in other cases initiate calls (and then manage them). I can of course use the partysip plugins for one part and osip directly for the others, but I was just wondering if I could use just partysip for all.

I guess my question is really this - assuming I can solve the problem of kicking off the call (by for example, as you suggest, creating a seperate thread on startup), is there a partysip api to create a new call ? Or is the only option to write directly to osip ?

In fact, you surely don't need this in a plugin but you should instead
write a new application. If you need info from partysip, then you can
write info in a database updated by the new 'alarm' plugin. Then your new
application will use this info to send messages or whatever...

A sql plugin for writing info about users is already available in
partysip. You can probably extend it to write the additionnal info you
need and use this info in the external application.

Yes, thats a posibility, but I would like to avoid going through a database.

I surely appreciate to see such application released in GPL :)

Of course :-), but still thinking through whats the best way forward for me,

Thanks for your response, much appreciated !


reply via email to

[Prev in Thread] Current Thread [Next in Thread]