Please disregard. Now I get it. You want to protect against the case that 
someone actually names his smsc as "default" in his configuration.

Looks good. +1.
Nikos
  ----- Original Message ----- 
  From: Nikos Balkanas 
  To: Alexander Malysh 
  Cc: [email protected] 
  Sent: Wednesday, September 02, 2009 1:33 PM
  Subject: Re: [PATCH] add support of smsc-id for smpp-tlv group


  Yes, but octstr_split can return a single member list, same way it would 
handle single smsc-ids configured by the user. I have no reading problems, and 
your comment doesn't explain why you have to use a list of smscs as your 
default, just that ';' can be used as list seperator since it is not allowed in 
the smsc-id name.

  In terms of efficiency i imagine it would take twice as much time to process 
a list of 2, than a list of one. Plus it doesn't look good.

  PS: Can you please fix the Reply-To field in the lists (users+devel)? For the 
past 2 months they don't work right.

  BR,
  Nikos
    ----- Original Message ----- 
    From: Alexander Malysh 
    To: Development mailing list 
    Cc: Nikos Balkanas 
    Sent: Wednesday, September 02, 2009 12:27 PM
    Subject: Re: [PATCH] add support of smsc-id for smpp-tlv group


    Hi, 


    Am 02.09.2009 um 10:13 schrieb Nikos Balkanas:


      Hi Alex,

      Looks good. Some typos:

      Userguide:

      string <-> stringr
      ...this TLV valid <-> ...this TLV is valid(twice).



    fixed in my version...



      gw/smsc/smpp_pdu.c: 69

      +#define DEFAULT_SMSC_ID "def;ault"

      Is this right? Did you mean "default"?



    seems you read only even rows? :)
    /* we use ; in the middle because ; is split char in smsc-id and can'be in 
the smsc-id */
    #define DEFAULT_SMSC_ID "def;ault"





      BR,
      Nikos

      ----- Original Message ----- From: "Alexander Malysh" <[email protected]>
      To: "Development mailing list" <[email protected]>
      Sent: Wednesday, September 02, 2009 12:58 AM
      Subject: [PATCH] add support of smsc-id for smpp-tlv group



        Hi list,



        seems I was to lazy and didn't implement smsc-id support for smpp-tlv

        group :)

        Attached is patch that corrects this.



        The rule to look for smpp-tlv group is as follows:

        1) by start we put smpp-tlv to smsc-id specific Dict if none given to

        default smsc-id.

            smsc-id may be a list splitted by ;

        2) then if we need tlv by name/tag we look first for specific smsc-id

        Dict and if tlv

            not found for default smsc-id



        Comments are welcome.



        Thanks,

        Alexander Malysh







      
--------------------------------------------------------------------------------








Reply via email to