submit_multi

Lmwangi <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi all,
 Have been working on submit_multi for the past few days. The basic
scheme of things is to flag msg_to_pdu() to enable it to choose
whether to submit_sm or submit_multi.
lynx --dump "http://localhost:14020/cgi-bin/sendsms?username=mplsafcom1&password=password&to=0123456&text=Hello+world&from=12334&priority=2&submitmulti=1"
vs
lynx --dump "http://localhost:14020/cgi-bin/sendsms?username=mplsafcom1&password=password&to=0123456&text=Hello+world&from=12334&priority=2&submitmulti=0"
of course the default will be submitmulti=0.
All this is dandy till we get the actual encoding.  table 4.5 and
4.5.1.1 throw little light on how to actually encode the submit_multi
pdu. A check on line 1248 of Net-SMPP-1.03 shows that it should be
encoded as an array?? (Does that sound right) vis
+++snip
for (my $i = 0; $i < $pdu->{number_of_dests}; $i++) {
        ($pdu->{dest_flag}[$i]) = unpack 'C', substr($pdu->{data}, $len++);
        if ($pdu->{dest_flag}[$i] == MULTIDESTFLAG_SME_Address) {
            ($pdu->{dest_addr_ton}[$i],
snip+++++
and a check on kannel's smpp_pdu.def  line 273 gives me this
+++snip
    NULTERMINATED(dest_address_es, 254 * 24)
snip++++
Now my question is do i need a struct or something like that?
How will i join the struct/data_struct to dest_address_es?

Any ideas/criticism will be greatly appreciated


Lmwangi
--
Article:
-
    And an unknown college dropout named Bill Gates, together with his
partner Paul Allen, wrote a version of the programming language BASIC
for the Altair, forming a company called Micro-Soft in the process. He
would later drop the hyphen and the capital S, and make billions of
dollars.
--
Comment:
+++
Dammit Slashdot! If you would just drop the capital S, you could be
making billions of dollars too!
+++++
http://slashdot.org/comments.pl?sid=171335&cid=14270286
+++++++
www.opensource.or.ke
submit-multi-partial-patch (application/octet-stream, 27.7 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.