Hello developers,

I have tried to use the at2 driver and found that there is a usage of a
number 1234:

        /* Put a dummy address in the receiver for now (SMSC requires
 * one) */
        message->sms.receiver = octstr_create_from_data("1234", 4);
        /*message->sms.receiver = destination;*/


app. at line 1209 in cimd_at2.c

In Denmark thats very unfortunate since there is a SMS pay service with
the number...guess: 1234.

Aouch.

Also I have set the core from number to be different than 1234. Still it
forces me into 1234 - why ?

I then changed the:
message->sms.receiver = octstr_create_from_data("1234", 4);

to:
message->sms.receiver = octstr_create_from_data("22701784", 8);

That worked.

Then I tried to experiment:

Here is an example:
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 22701787

group = sms-service
keyword = default
text = "No service specified"
faked-sender = 22701788

group = sendsms-user
username = tester
password = RRRRRR
faked-sender = 22701789

Starting bearerbox...:
2001-12-27 12:52:10 [8] INFO: AT SMSC successfully opened.

Starting smsbox:
2001-12-27 12:52:33 [0] INFO: Connected to bearerbox at localhost port
13001.
2001-12-27 12:59:34 [0] INFO: Service global sender set as '22701787'

Sending the SMS Text message "test" to the phone 22701784 which is my
phone...(dont abuse ;-) )

2001-12-27 12:53:43 [4] INFO: Starting to service <No service specified>
from <4522701784> to <22701784>

Then changing:
message->sms.receiver = octstr_create_from_data("22701784", 8);

To:
message->sms.receiver = octstr_create_from_data("22701789", 8);

Compiling, installing etc...:
2001-12-27 13:03:57 [4] INFO: Starting to service <No service specified>
from <4522701784> to <22701789>

2001-12-27 13:05:58 [3] INFO: sendsms used by <tester>
2001-12-27 13:05:58 [3] INFO: sendsms sender:<tester:22701789>
(127.0.0.1) to:< 4522701784> msg:<testtest>
2001-12-27 13:05:58 [3] DEBUG: Status: 202 Answer: <Sent.>
2001-12-27 13:05:58 [3] DEBUG: HTTP: Destroying HTTPClient area
0x81e5590.
2001-12-27 13:05:58 [3] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.
2001-12-27 13:06:04 [4] INFO: Starting to service <No service specified>
from <4522701784> to <22701789>
2001-12-27 13:06:04 [4] DEBUG: formatted text answer: <No service
specified>
2001-12-27 13:06:11 [4] INFO: Starting to service <testtest> from
<4522701784> to <22701789>

I *can* however change number in smsuser, but it goes back to the number
specified in smsc_at2.c:

2001-12-27 13:12:16 [3] INFO: smsbox: Got HTTP request
</cgi-bin/sendsms> from <127.0.0.1>
2001-12-27 13:12:16 [3] INFO: sendsms used by <tester>
2001-12-27 13:12:16 [3] INFO: sendsms sender:<tester:11111111>
(127.0.0.1) to:<22701784> msg:<nop>
2001-12-27 13:12:16 [3] DEBUG: Status: 202 Answer: <Sent.>
2001-12-27 13:12:16 [3] DEBUG: HTTP: Destroying HTTPClient area
0x81b6650.
2001-12-27 13:12:16 [3] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.
2001-12-27 13:12:23 [4] INFO: Starting to service <No service specified>
from <4522701784> to <22701789>
2001-12-27 13:12:23 [4] DEBUG: formatted text answer: <No service
specified>
2001-12-27 13:12:27 [4] INFO: Starting to service <No service specified>
from <4522701784> to <22701789>
2001-12-27 13:12:27 [4] DEBUG: formatted text answer: <No service
specified>
2001-12-27 13:12:31 [4] INFO: Starting to service <nop> from
<4522701784> to <22701789>
2001-12-27 13:12:31 [4] DEBUG: formatted text answer: <You asked nothing
and I did it!>

-- 
med venlig hilsen / Best Regards
Bernino Lind - [EMAIL PROTECTED]
catpipe Systems ApS - www.catpipe.net
Best done *BSD solutions

Reply via email to