Hi,

Changing the | to , worked. The rest was set correctly already.

Does it mean that in all applications the | can be safely changed to , ?


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mikael
Bjerkeland
Sent: Monday, October 01, 2007 2:48 PM
To: Users Mailing List - Non-Commercial Discussion
Subject: Re: [Callweaver-users] ogi scripts not working ?

man, 01.10.2007 kl. 09.34 +0800, skrev Walter Klomp:
> Hi,
> 
> I migrated my agi scripts to ogi (it's to remove garbage from
dial-strings,
> which some Nokia E61's sometimes throw in, like spaces), but for some
reason
> my callwaver RC snapshot from 20070927 doesn't like it...
> 
> res_ogi.c:240 launch_script: OGI script does not exists or not in
executable
> format: /usr/local/share/callweaver/ogi/removespace.ogi|6562807512
> 
> I can confirm that the file does exist and is executable.
> 
> -rwxr-xr-x 1 asterisk asterisk 292 2007-10-01 09:11 removespace.ogi
> 
> >From my shell it runs as expected. Callweaver runs as user asterisk.
> 
> Here are the contents:
> 
> #!/usr/bin/perl
> 
> use CallWeaver::OGI;
> 
> $OGI = new CallWeaver::OGI;
> 
> my %input = $OGI->ReadParse();
> my($number);
> 
> ($number = $ARGV[0]) =~ s/\ //g;
> $number =~ s/\%20//g;
> $number =~ tr/0-9//cd;
> $OGI->verbose("Removespace: $ARGV[0] -> $number ...",1);
> $OGI->set_variable(todial,$number);
> exit 0;
> 
> and here is how I call it from extensions.conf...
> 
> exten => s,n,OGI(removespace.ogi|${ARG1})
> 
> 
> 
> Is there anything I am overlooking?
Yes, take a look at "cwogidir" in callweaver.conf. This option lets you
set the directory ogi scripts reside in. This might be the cause of your
problem.

And please use commas to separate arguments in CW. Future version will
not let you use the pipe character.

> 
> Warmest Regards,
> Walter Klomp
> 
> DISCLAIMER:
> This e-mail and any attachment is intended only for the exclusive and
> confidential use of the addressee(s). If you are not the intended
recipient,
> any use, interference with, disclosure or copying of this material is
> unauthorised and prohibited. If you have received this message in error,
> please notify the sender by return e-mail immediately and delete the
message
> from your computer without making any copies.
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of CtRiX
> Sent: Saturday, September 29, 2007 5:02 PM
> To: Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Callweaver-users] context from realtime
> 
> Walter Klomp wrote:
> > Hi,
> >
> >  
> >
> > I am migrating from Asterisk-1.2 to Callweaver-1.2RC4 for obvious
reasons
> J
> >
> >   
> Don't use RC4. We have warned several times.
> Use tarballs from here: http://devs.callweaver.org/1.2_snapshots/
> or from svn...
> 
> RC4 was very buggy.
> Actually i believe i should remove the tarball from the website.
> 
> Max
> 
> _______________________________________________
> Callweaver-users mailing list
> [email protected]
> http://lists.callweaver.org/mailman/listinfo/callweaver-users
> 
> _______________________________________________
> Callweaver-users mailing list
> [email protected]
> http://lists.callweaver.org/mailman/listinfo/callweaver-users

_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to