[Serdev] cpl script upload
Richard
mypop3mail at yahoo.com
Thu May 20 10:56:16 UTC 2004
Thanks Bogdan,
That's really helpful!
Best regards,
Richard
--- Bogdan-Andrei IANCU <iancu at fokus.fraunhofer.de>
wrote:
> Hi Richard,
>
> Richard wrote:
> > Hi,
> >
> > I want to write a php script to generate cpl
> scripts
> > and upload to ser database. The reason I prefer
> not to
> > use to CPLEd is that it is too powerful, flexible
> and
> > probably confusing for end users.
>
> From these points of view I agree with you :-).
>
> I have several
> > tested and proven script template. So users can
> fill
> > in some information, e.g. the call redirect
> number.
> > The http server then uploads the script to ser
> > database.
>
> Yes, this is a good approach - most of the cpl users
> get to this.
>
> >
> > A few questions,
> > . Can I just insert the record into mysql ser
> database
> > directly?
> > . Do I have to compile the script to a bin file
> and
> > upload it too? I noticed mysql has two columns,
> > cpl_xml and cpl_bin.
> >
> You can use the FIFO commands exported by cpl-c
> module:
> LOAD_CPL - gets the name of a xml file with a cpl
> script, compile it
> and store both version (bin and xml) into DB;
> GET_CPL - returns the xml script for a user;
> REMOVE_CPL - remove the script for a user;
> More about the syntax of these commands can be found
> in
> modules/cpl-cl/cpl_loader.c.
>
>
> > Any pitfalls?
> >
> No, at least not known ;-)
>
>
> Regards,
> Bogdan
> >
> >
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Domains Claim yours for only $14.70/year
> > http://smallbusiness.promotions.yahoo.com/offer
> >
> > _______________________________________________
> > Serdev mailing list
> > serdev at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serdev
>
__________________________________
Do you Yahoo!?
Yahoo! Domains Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer
More information about the Serdev
mailing list