You're mixing things.

If you need to use that PHP, deploy it on your WEB SERVER, and hit it from
where the WEB SERVER could get it (usually port 80). That script would then
contact sendsms on port 13013.

If you wish to hit sendsms directly, then hit port 13013, but you won't hit
the PHP on that port, no matter where you put it...

On Thu, Jun 24, 2010 at 12:44 PM, prashant singh
<prashantsing...@gmail.com>wrote:

> i m using the php script provided in the examples of gw folder.
> here i am not clear with the exact syntax for sendsms.php to be provided in
> smsbox group.
> it would be highly appreciated if some one could throw light on sending sms
> though a web browser using example sendsms.php script.
>
> Regards,
> Prashant singh
>
>
>
> On Thu, Jun 24, 2010 at 3:56 PM, Alejandro Guerrieri <
> alejandro.guerri...@gmail.com> wrote:
>
>> http://localhost:13013/sendsms.php ??
>>
>> Kannel doesn't have any php code inside, where did you get that URL from?
>>
>> Assuming you've configured Kannel from the examples, "sendsms" interface
>> is on port 13013:
>>
>> http://localhost:13013/cgi-bin/sendsms
>>
>> So, to send MT you need to hit that URL from your _application_.
>>
>> Regards,
>>
>> Alex
>>
>> On Thu, Jun 24, 2010 at 12:06 PM, prashant singh <
>> prashantsing...@gmail.com> wrote:
>>
>>> i have chnged the port
>>> i dont understand why kannel cannot fetch url. please guide.
>>>
>>> now the sms log says :
>>>
>>> [r...@localhost ~]# ./smsbox -v 0 kannel.conf
>>> bash: ./smsbox: No such file or directory
>>> [r...@localhost ~]# cd /usr/local/kannel/sbin
>>> [r...@localhost sbin]# ./smsbox -v 0 kannel.conf
>>> 2010-06-24 14:19:17 [6775] [0] INFO: Debug_lvl = 0, log_file = <none>,
>>> log_lvl =  0
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG: Kannel smsbox version `1.4.3'.
>>>
>>> Build `Jun 14 2010 14:02:43', compiler `3.4.6 20060404 (Red Hat
>>> 3.4.6-3)'.
>>> System Linux, release 2.6.9-42.EL, version #1 Wed Jul 12 23:16:43 EDT
>>> 2006, mach ine i686.
>>>
>>> Hostname localhost.localdomain, IP 127.0.0.1.
>>> Libxml version 2.6.16.
>>> Using OpenSSL 0.9.7a Feb 19 2003.
>>> Using native malloc.
>>>
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG: Started thread 1
>>> (gwlib/fdset.c:poller)
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG: Started thread 2
>>> (gwlib/http.c:write_reque st_thread)
>>> 2010-06-24 14:19:17 [6775] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
>>> maps to pi d 6775.
>>> 2010-06-24 14:19:17 [6775] [2] DEBUG: Thread 2
>>> (gwlib/http.c:write_request_
>>> threa d) maps to pid 6775.
>>> 2010-06-24 14:19:17 [6775] [2] DEBUG: Queue contains 0 pending requests.
>>> 2010-06-24 14:19:17 [6775] [2] DEBUG: Parsing URL `
>>> http://localhost:13013/sendsm s.php':
>>> 2010-06-24 14:19:17 [6775] [2] DEBUG:   Scheme: http://
>>> 2010-06-24 14:19:17 [6775] [2] DEBUG:   Host: localhost
>>> 2010-06-24 14:19:17 [6775] [2] DEBUG:   Port: 13013
>>> 2010-06-24 14:19:17 [6775] [2] DEBUG:   Username: (null)
>>> 2010-06-24 14:19:17 [6775] [2] DEBUG:   Password: (null)
>>> 2010-06-24 14:19:17 [6775] [2] DEBUG:   Path: /sendsms.php
>>> 2010-06-24 14:19:17 [6775] [2] DEBUG:   Query: (null)
>>> 2010-06-24 14:19:17 [6775] [2] DEBUG:   Fragment: (null)
>>> 2010-06-24 14:19:17 [6775] [2] DEBUG: HTTP: Opening connection to
>>> `localhost:130 13' (fd=10).
>>> 2010-06-24 14:19:17 [6775] [2] DEBUG: Socket connecting
>>> 2010-06-24 14:19:17 [6775] [1] DEBUG: Get info about connecting socket
>>> 2010-06-24 14:19:17 [6775] [1] DEBUG: Socket not connected
>>> *2010-06-24 14:19:17 [6775] [1] ERROR: Couldn't fetch <
>>> http://localhost:13013/sen dsms.php>
>>> 2010-06-24 14:19:17 [6775] [0] ERROR: Cannot load numhash!*
>>> 2010-06-24 14:19:17 [6775] [0] INFO: Starting to log to file
>>> /var/log/kannel/sms box.log level 0
>>> 2010-06-24 14:19:17 [6775] [0] INFO: Added logfile
>>> `/var/log/kannel/smsbox.log' with level `0'.
>>> 2010-06-24 14:19:17 [6775] [0] INFO: Service global sender set as 'test'
>>> 2010-06-24 14:19:17 [6775] [0] INFO: Logging accesses to
>>> '/var/log/kannel/access .log'.
>>> 2010-06-24 14:19:17 [6775] [0] INFO: Started access logfile
>>> `/var/log/kannel/acc ess.log'.
>>> 2010-06-24 14:19:17 [6775] [0] INFO: HTTP: Opening server at port 13013.
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG: Started thread 3
>>> (gwlib/fdset.c:poller)
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG: Started thread 4
>>> (gwlib/http.c:server_thre ad)
>>> 2010-06-24 14:19:17 [6775] [0] INFO: Set up send sms service at port
>>> 13013
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG: Started thread 5
>>> (gw/smsbox.c:sendsms_thre ad)
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG:
>>> ------------------------------------------ ----
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG: Kannel smsbox version 1.4.3
>>> starting
>>> 2010-06-24 14:19:17 [6775] [0] WARNING: bool variable set to strange
>>> value, assu ming 'true'
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG:   dumping group (sendsms-user):
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG:     <group> = <sendsms-user>
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG:     <max-messages> = <10>
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG:     <username> = <yourpassword>
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG:     <concatenation> = <1>
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG:     <password> = <yourpassword>
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG: Started thread 6
>>> (gw/smsbox.c:obey_request _thread)
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG: Started thread 7
>>> (gw/smsbox.c:url_result_t hread)
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG: Started thread 8
>>> (gw/smsbox.c:http_queue_t hread)
>>> 2010-06-24 14:19:17 [6775] [0] INFO: Connected to bearerbox at localhost
>>> port 13 001.
>>> 2010-06-24 14:19:17 [6775] [0] DEBUG: Started thread 9
>>> (gw/heartbeat.c:heartbeat _thread)
>>> 2010-06-24 14:19:17 [6775] [3] DEBUG: Thread 3 (gwlib/fdset.c:poller)
>>> maps to pi d 6775.
>>> 2010-06-24 14:19:17 [6775] [4] DEBUG: Thread 4
>>> (gwlib/http.c:server_thread) maps  to pid 6775.
>>> 2010-06-24 14:19:17 [6775] [5] DEBUG: Thread 5
>>> (gw/smsbox.c:sendsms_thread) maps  to pid 6775.
>>> 2010-06-24 14:19:17 [6775] [6] DEBUG: Thread 6
>>> (gw/smsbox.c:obey_request_thread)  maps to pid 6775.
>>> 2010-06-24 14:19:17 [6775] [7] DEBUG: Thread 7
>>> (gw/smsbox.c:url_result_thread) m aps to pid 6775.
>>> 2010-06-24 14:19:17 [6775] [8] DEBUG: Thread 8
>>> (gw/smsbox.c:http_queue_thread) m aps to pid 6775.
>>> 2010-06-24 14:19:17 [6775] [9] DEBUG: Thread 9
>>> (gw/heartbeat.c:heartbeat_thread)  maps to pid 6775.
>>>
>>>
>>
>

Reply via email to