Ok nevermind guys :)
Everything is correct in both kannel and my config, the only thing wrong
was the value I was passing in the "carrier_id" field.
My message was rejected because it wasn't matching with the phone
number's carrier id value.
Sorry for the bother,
PS: the correct form for multiple meta-data
?URLENCODE(<smsc-type1>)?URLENCODE(key1)=URLENCODE(value1)&URLENCODE(key2)=URLENCODE(value2)&...
passing it in the sendsms URL using meta-data=urlencode ( ..... )
Bests,
Eric
Le 01/09/2011 18:45, Monchanin Eric a écrit :
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=foo&pass=bar&from=123456&to=19876543210&smsc=smsctest1&text=This+is+a+test+from+Eric&dlr-mask=31&dlr-url=http%3A%2F%2Fdlr.url.com%2Fdlr.php%3Fid%3DKANNEL-150-DRY1y0KX%26state%3D%25d&meta-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=mypromid&carrier_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 =
0x80000004
2011-09-01 12:08:56 [19840] [11] DEBUG: command_status: 69 = 0x00000045
2011-09-01 12:08:56 [19840] [11] DEBUG: sequence_number: 4215 =
0x00001077
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 0x00000045 (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-6C3qGeLg&state=%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=value1¶m2=value2]
this gets an immediate failure
[msg:29:NACK/0x00000045/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