starting bearerbox gives me errors (attached)

2011-09-01 Thread Napoleon Quashie
I am using ubuntu 10.04. lsusb gives me :

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640
USB-2.0 TetraHub
Bus 001 Device 002: ID 12d1:1446 Huawei Technologies Co., Ltd.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

which leads me to think that my Huawei dongle is connected to /dev/ttyUSB2.
However when I do : ls -l /dev/ttyUSB*
ls: cannot access /dev/ttyUSB*: No such file or directory. I have attached a
copy of my bearerbox.log file and my kannel.conf file.

Hope someone can help. Thanks.


bearerbox.log
Description: Binary data


kannel.conf
Description: Binary data


Re: meta-data parameters

2011-09-01 Thread Monchanin Eric

Sorry for bumping this up, I'm really struggling with this.
I am using a php script to query the sendsms interface, my query looks 
like this :


http://my.url.com:13013/cgi-bin/sendsms?user=foopass=barfrom=123456to=19876543210smsc=smsctest1text=This+is+a+test+from+Ericdlr-mask=31dlr-url=http%3A%2F%2Fdlr.url.com%2Fdlr.php%3Fid%3DKANNEL-150-DRY1y0KX%26state%3D%25dmeta-data=%3Fsmpp%3Fprogram_id%3Denterprisemms000%26carrier_id%3D41

the important this is the meta-data part,
meta-data=%3Fsmpp%3Fprogram_id%3Dmyprgmid%26carrier_id%3D41

Which according to the doc should be fine.
the data should be coded using the following format, where URLENCODE() 
implies that the data between parentheses should be urlencoded:

?URLENCODE(smsc-type1)?URLENCODE(key1)=URLENCODE(value1)URLENCODE(key2)=URLENCODE(value2)...

in our case ...
?smpp?program_id=mypromidcarrier_id=41



my bearerbox.log shows :

2011-09-01 12:08:56 [19840] [11] DEBUG:   carrier_id: 41
2011-09-01 12:08:56 [19840] [11] DEBUG:   program_id: mypromid
2011-09-01 12:08:56 [19840] [11] DEBUG: SMPP PDU dump ends.
2011-09-01 12:08:56 [19840] [11] DEBUG: SMPP[smsctest1]: throughput 
(1.00,10.00)
2011-09-01 12:08:56 [19840] [11] DEBUG: SMPP[smsctest1]: throughput 
(1.00,10.00)

2011-09-01 12:08:56 [19840] [11] DEBUG: SMPP[smsctest1]: Got PDU:
2011-09-01 12:08:56 [19840] [11] DEBUG: SMPP PDU 0xa1cf0c8 dump:
2011-09-01 12:08:56 [19840] [11] DEBUG:   type_name: submit_sm_resp
2011-09-01 12:08:56 [19840] [11] DEBUG:   command_id: 2147483652 = 
0x8004

2011-09-01 12:08:56 [19840] [11] DEBUG:   command_status: 69 = 0x0045
2011-09-01 12:08:56 [19840] [11] DEBUG:   sequence_number: 4215 = 0x1077
2011-09-01 12:08:56 [19840] [11] DEBUG:   message_id: NULL
2011-09-01 12:08:56 [19840] [11] DEBUG: SMPP PDU dump ends.
2011-09-01 12:08:56 [19840] [11] ERROR: SMPP[smsctest1]: SMSC returned 
error code 0x0045 (Submit failed) in response to submit_sm.
2011-09-01 12:08:56 [19840] [11] DEBUG: SMSC[smsctest1]: creating DLR 
message
2011-09-01 12:08:56 [19840] [11] DEBUG: SMSC[smsctest1]: DLR = 
http://dlr.url.com/dlr.php?id=KANNEL-150-6C3qGeLgstate=%d
2011-09-01 12:08:56 [19840] [27] DEBUG: send_msg: sending msg to box: 
127.0.0.1
2011-09-01 12:08:56 [19840] [27] DEBUG: boxc_sender: sent message to 
127.0.0.1
2011-09-01 12:08:56 [19840] [11] DEBUG: SMPP[smsctest1]: throughput 
(1.00,10.00)



Is my sendsms request incorrect, or Openmarket not understanding the 
smpp request ?


Thanks for any help -


Le 24/08/2011 22:13, Monchanin Eric a écrit :

Dear all,

We are working with Openmarket SMPP smsc, and they support TLV
parameters, our kannel config is correct so far :) we configure those
extra parameters and try to pass them thru the sendsms CGI interface.

So far, we successfully pass 1 parameter, using the meta-data=
urlencode ( ?smpp?param=value )

For various reasons, I would like to pass 2 parameters, but I haven't
so far, found a way to do that without seeing the message being
rejected, or just never being delivered.

[META:?smpp?param1=value1param2=value2]

this gets an immediate failure
[msg:29:NACK/0x0045/Submit failed]


I tried different separation chars, with no luck,

[META:?smpp?param1=value1;param2=value2]

[META:?smpp?param1=value1?param2=value2]

Those don't get rejected, but just aren't delivered.

Maybe you will see something really obvious here, maybe I'm correct
when assuming this is only a separation char issue ? or maybe
something more complex ...

Cheers to you all,

Eric



--
Skycore LLC
214 Lincoln St Suite 360
Allston, MA 02134   Eric Monchanin
i...@skycore.com
(+1) 617-314-7688   emoncha...@skycore.com
(+33) 6-22-96-71-10