Hello all,

new to the list.



I am trying to send multiple sms in reply to an sms with a keyword from
a client. I am using a php script to do that. I am calling the script
from the smsbox with 'get-url'. 



In the script, when i try to echo back the reply i only get one sms as
a reply. So, i tried calling the script then using the http interface
and calling curl_exec.



The replies are extracted from a database.



Kannel version: 1.4.0 running on whitebox enterprise linux, kernel version 
2.4.21-5.EL

////////////////////////////////

The smsbox is set up as follows:

group = sms-service

keyword = keyword

get-url="http://localhost/site/script.php?dest=%P&origin=%p&telco=%i&contenu=%k&sms=%a";

//////////////////////////////////

Here's the loop that sends the replies:

//////////////////////////////////

while ($row = mysql_fetch_row($result)) {

$link =    
curl_init("http://$gw_host:$gw_port/cgi-bin/sendsms?username=$username&password=$password&from=$from&to=$sender&text=".urlencode($message));



    curl_exec($link);

        //echo $message; 

        }

//////////////////////////////////

If i use the echo message, i get only one sms.

If use the curl_init + curl_exec, i get a "Empty reply from service provider"



awaiting your replies.....




      

Reply via email to