I'm trying to invoke a program to send a received
fax. I'd like to *safely* pass the value of ${CALLERID(all)} as an
argument to the program, executed by System(...). The problem is that
the callerid can have quotes or other dangerous characters as far as
the shell is concerned.
For example, the test-fax service that I'm using sets the callerid to
"UNAVAILABLE " <888NNNNNNN>
(I forget the actual N digits, that's unimportant). What's important
is the quotation marks.
I haven't been able to figure out a way using the QUOTE function to
accomplish what I want. I either get too few or too many quotes, both
resulting in multiple arguments being passed to my program instead of one.
I can paste some logging output if that would help.
Any suggestions would be appreciated.
--
Eric Cooper e c c @ c m u . e d u
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users