If i edited smsbox.c do i need to recompile it? if i want to display another php page after the "sent" status how do i implement it? thank you so much for your help it's greatly appreciated! :)
--- Davy Chan <[EMAIL PROTECTED]> wrote: > **>Date: Tue, 1 Mar 2005 07:13:24 +0000 (GMT) > **>From: pAsCaL <[EMAIL PROTECTED]> > **>Subject: sent status in http > **>To: [email protected] > **> > **>hi im a new user of kannel and i would like to > ask if > **>anyone knows what file produces the sent status > in > **>http from sendsms? And could someone explain to > me the > **>process of how one sends sms thru http? Any help > would > **>be greatly appreciated! thanks very much! :) > > The HTTP responses to a sendsms does not come from a > static > file. Instead, the replies are all embedded within > the smsbox. > Look near the end of the source code: > gateway/gw/smsbox.c:smsbox_req_handle() > > The status messages are stored in the Octstr > returnerror. If you > want a list of all possible status strings, just > grep for the > returnerror variable within the smsbox_req_handle() > function. > > If everything went well, then you should get an HTTP > response of: > 202 Sent. > or if the message was split it would append on the > comment: > Message splits: ## > where ## of SMS the original long SMS was split > into. > > As for sending MT (Mobile Terminated or layman > terms, you sending > an SMS to someone else) SMS via an HTTP connection > to Kannel, > you would use the sendsms signature inside the URL > of an HTTP_GET > or HTTP_POST to Kannel's smsbox. The default sendsms > signature is: > /cgi-bin/sendsms > For an HTTP_GET, CGI parameters would contain > information > about the MT SMS. An HTTP_GET would look like this > when presented > to Kannel's smsbox: > GET > /cgi-bin/sendsms?to=####&text=this+is+a+message > HTTP/1.0 > where #### is the destination address (other > person's mobile phone > number). The contents of the SMS would be the value > of the CGI > parameter "text". The whole URL for an HTTP_GET > would be URL-encoded > (hence the conversion of spaces to plus symbols). > > For more information, read the section "Using the > HTTP interface > to send SMS messages" under "Running SMS gateway" in > the Kannel > userguide. > > See ya... > > d.c. > ________________________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html
