[asterisk-dev] Placing a new outbound call using C
Wai Wu
wkwu at calltrol.com
Thu Mar 8 19:53:58 MST 2007
You are right. However, he still has to have some kind of user interface or an external application to talk to that code or have the code directly poll numbers from a database. I say just use a scheduler to create the .call files since as soon as the files get to the outbound directory, Asterisk will just eat them.
-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com on behalf of Moises Silva
Sent: Thu 3/8/2007 8:41 PM
To: Asterisk Developers Mailing List
Subject: Re: [asterisk-dev] Placing a new outbound call using C
I think I understand now what you want. You may want to take a look at
pbx/pbx_spool.c , and implement there a list of "struct outgoing"s and
a method to enqueue outgoing calls there for specific times in the
future. So you can use the same thread that scans the .call files to
search in that list and generate the calls.
The important function there is launch_service(struct outgoing* )
Let me know if you have more questions.
Regards
On 3/8/07, Joel <jjshoe at gmail.com> wrote:
> Steve,
>
> It's simple, I want to create a call from C without using ami or .call
> files. That would mean a specific method in the code somewhere for
> initiating calls. I'm not sure how I can break that down for you further.
>
> -J
>
>
> On 3/8/07, Steve Edwards <asterisk.org at sedwards.com> wrote:
> > On Thu, 8 Mar 2007, Joel wrote:
> >
> > > Re-iterating one more time, since it's not clear
> > >
> > > Specifics: Create a call from C without using .call files
> > > Specifics: Create a call from C without using .call files
> > > Specifics: Create a call from C without using .call files
> >
> > Take a breath, I'm getting frustrated too :)
> >
> > Without some specifics, we're not going to be able to help you.
> >
> > If you take away files (call files) and networking (AMI), how can your
> > process commuicate with Asterisk?
> >
> > Give us something to chew on -- describe your application in detail
> > please.
> >
> > Thanks in advance,
> >
> ------------------------------------------------------------------------
> > Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
> > Newline Fax:
> +1-760-731-3000
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > asterisk-dev mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-dev
> >
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
>
--
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 4439 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20070308/ccbe2da1/winmail.bin
More information about the asterisk-dev
mailing list