I'd do that on the application level. i.e., receive the SMS, invoke a PHP script that do a file_get_contents() to a second URL, or maybe queue the request in a MySQL table and run a separate process that reads the rows and makes the requests to the second server (and deletes them only when they are succesfully processed).
Hope it helps, On 2/2/06, Lars-Hendrik Schneider <[EMAIL PROTECTED]> wrote: > Hi Rodrigo, > > Rodrigo Cremaschi schrieb: > > Hi Lars, > > > > Did you try to invoke storeIt.php from doIt.php? > > (Just a thought) > > > > Rodrigo. > > > > that is possible if I would intend to run it on the same machine. But I > think of delivering the SMS to another server while copying the raw data > to my local database (or send me an e-mail about an incoming SMS) > without touching the remote script. So I thought of > > SMS comes in > - matches the keyword in the first sms-service > - gets URL and responds > - then matches the same keyword in the next sms-service again > - gets URL of the second service, but sends no reply this time. > > Otherwise I have to think of writing a php-script that will keep the > keyword(s) and does the different jobs for me (I think of a small > databased management system to configure new services including answers, > send an e-mail and backup raw data) in order to have a better control > over my different sms based measurement devices in the field. Therefore > I thought of simply adding another service that makes me independend of > the existing scripts... > > Lars-Hendrik > > BTW: "Like in accepted-smsc, Kannel still searches for other service > which accepts the message. This way there could be several services with > the same keyword and different results." This is written beneath the > SMS-Service configuration chapter in the documentation. The last > sentence expresses my wishes in a way :-) - also I don't know what it > means so far :-(. > > > > On 2/2/06, Lars-Hendrik Schneider <[EMAIL PROTECTED]> wrote: > > > >>Hello, > >> > >>one short question: > >> > >>I am wondering how to start more than one get-url requests for a > >>keyword. I think about triggering one URL doing the main job and > >>answering to the incoming SMS and another URL e.g. for storing the SMS > >>in a database or sending a mail. > >> > >>Is ist possible to define one service with max-messages > 0 for > >>answering and another service with max-messages=0 that will not re-send > >>a SMS, or is there another way to do it? > >> > >>Example (describing my thoughts): > >> > >>+++++++++++ > >>group = sms-service > >>keyword = G > >>get-url = "http://remotehost/doIt.php?smsbody=%s" > >>strip-keyword = true > >>max-messages = 3 > >>concatenation = true > >> > >>group = sms-service > >>keyword = G > >>get-url = "http://localhost/storeIt.php?smsbody=%s" > >>strip-keyword = true > >>max-messages = 0 > >>++++++++++++ > >> > >>Is that possible or will the second service be discarded? Perhaps > >>someone knows a hint. > >> > >>greetz, > >>Lars-Hendrik > >> > >> > > > -- > ********************************************** > > terrestris Till Adams & Hinrich Paulsen GbR > > Lars-Hendrik Schneider > Diplom-Geograph > > Siemensstr. 8 > D-53121 Bonn > > Telefon: +49 (0)228 - 962 899 51 > Fax: +49 (0)228 - 962 899 57 > E-Mail: [EMAIL PROTECTED] > Internet: http://www.terrestris.de > > ********************************************** > > -- Alejandro Guerrieri Magicom http://www.magicom-bcn.net/