[Asterisk-Users] Using ',' character in applications data

Steven Critchfield critch at basesys.com
Mon Apr 26 12:35:52 MST 2004


On Tue, 2004-04-27 at 14:03, Jeremy McNamara wrote:
> GUSTAVO GARCIA BERNARDO wrote:
> 
> >I'm developping an application for asterisk and i need to pass SQL querys with ',' character as data.
> >exten => 1,1,Sql(SELECT info,user FROM.....
> >  
> >
> 
> Come on....build the application properly. There is absolutely no need 
> for one to have SQL statements in your extensions.conf file. Just pass 
> in the required info to your application and build the SQL statement in 
> the application, then set channel variable(s) if necessary.
> 
> You have to be smarter than what your working on.

I actually use the postgres app for our oncall rotation. I know I could
have coded this in perl and AGI, but I wanted to use the PSQL app. I
also used it for a random quote file once.  
-- 
Steven Critchfield  <critch at basesys.com>




More information about the asterisk-users mailing list