Re: [-] Re: non standard message_id breaks DLR

"David Tully" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <00b501c3415e$151ed7e0$0201a8c0@DELLLAPTOP>
Hey there.

I'm having a bit of a nightmare with this code mod..

I've a program that strips out the bit I need, but I can't figure out how to
work with the struct octstr..
Could someone help me out please?


Here's the program that'll strip out the hex message_id..


#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int, char **);

int main(int argc, char **argv)
{

  char *start, *end;

  if(argc != 2)
  {
    printf("1 arg please\n");
    exit(1);
  }

  start = index(argv[1], '/');
  if (start != 0)
  {
    start++;
    start = index(start, '/');
  }

  if (start == 0)
  {
    printf("start not found\n");
    exit(1);
  }

  start++;

  end = index(start, '/');

  if (end == 0)
  {
    printf("end not found\n");
    exit(1);
  }

  end[0] = '\0';

  printf("thingy = '%s'\n", start);

  exit(0);
}


Regards,

David.




----- Original Message -----
From: "Stipe Tolj" <[email protected]>
To: "Alexander Malysh" <[email protected]>
Cc: "David Tully" <[email protected]>; <[email protected]>
Sent: Thursday, June 26, 2003 4:41 PM
Subject: [-] Re: non standard message_id breaks DLR


> Alexander Malysh wrote:
> >
> > Hi David,
> >
> > strange...
> >
> > I have not never seen such message_id! One think i can say, SMSC is
soooo
> > buggy! It's not allowed to get one message id in submit_sm_resp and
another
> > one or part of them in delivery receipt. I would propose, you contact
your
> > operator and give him a hint to look in SMPP spec. ;)
> >
> > You can do only one here, write workaround for this...
>
> and ask your SMPP provider to tell you which SMSC vendor they use, so
> we'll put it on the black-list ;)
>
> Stipe
>
> [email protected]
> -------------------------------------------------------------------
> Wapme Systems AG
>
> Vogelsanger Weg 80
> 40470 Düsseldorf
>
> Tel: +49-211-74845-0
> Fax: +49-211-74845-299
>
> E-Mail: [email protected]
> Internet: http://www.wapme-systems.de
> -------------------------------------------------------------------
> wapme.net - wherever you are
>
>
>
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.