**>Subject: Re: Application Port Addressing? **>From: Enver ALTIN <[EMAIL PROTECTED]> **>To: users@kannel.org **>In-Reply-To: <[EMAIL PROTECTED]> **>Date: Thu, 27 Jan 2005 21:32:52 +0200 **> **>On Thu, 2005-01-27 at 19:17 +0800, Davy Chan wrote: **>> Sorry, not possible. You can only use the X-Kannel-UDH **>> HTTP Optional header (and it's corresponding cgi parameter "udh=") **>> for HTTP-based services (get-url or post-url). sms-service's "exec=" **>> parameter only returns the output from the specified program's **>> execution and dumps it directly into the SMS. The smsbox does not **>> evaluate the content in any way. Therefore, there's no way to **>> inform the smsbox it needs to include extra content (like the **>> UDH) into the SMS. **> **>Maybe making the script work via Apache as a CGI script would make this **>possible. Just my $0.02 :)
Yes, I agree. The easiest way would be to change his configuration to use a get-url or post-url. But, in the context of 'exec=', it cannot be done. The question now is whether it is convenient for the original poster can setup and maintain an HTTP server (it doesn't necessarily have to be a full-blown Apache or IIS server) to accomodate his needs. As a matter of fact, this can easily be implemented with a simple shell script wrapper around his exec'ed program being started from inetd. See ya... d.c.