Hi,

This is the expected output. smsbox urlencodes these arguments since most of the time it sends them to a url fom an sms-service. Besides, some of these chars "*", "&", "+" are meaningfull to the shell, and it is not a bad idea to urlencode them. Perl has zillions of functions to urldecode text. Just use one of them. You can also try:

exec = perl test.pl %p %k

BR,
Nikos
----- Original Message ----- From: Scott Geller
To: users
Sent: Saturday, July 24, 2010 6:10 AM
Subject: Unwanted characters in sender phone number escape code output %q and %p




Hi All


I'm getting unusual output in my escape codes %q and %p and I'd appreciate some help if possible


from my conf file:


group = sms-service
keyword = test
exec = perl test.pl %q %k
omit-empty = true


(I know it's a bad idea to execute - i'll look into URL once I get this working)


From my smsbox log:


2010-07-23 22:58:58 [11450] [4] DEBUG: executing sms-service 'perl test_pizza.pl %2B14437661234 test'


My issue is that I want the %2B dropped from the sender number. A plus (+) would be fine, but the %2B is causing errors. I've tried this with both %q and %p - both have the same problem


Thanks!


Scott

Reply via email to