Re: [PATCH] SMPP Optional Parameters

2007-11-26 Thread Kyriacos Sakkas
hi All, That seems to have sorted the parameters missing from PDU error, but as seen below something dies after I submit one or two messages. looking into it, as I had some minor issues still pending here with some TLVs, but if something pops to mind please let me know 2007-11-26 16:46:33 [51

Re: [PATCH] SMPP Optional Parameters

2007-11-26 Thread Alexander Malysh
Please read carefully :) Kyriacos Sakkas wrote: > Call: (Relevant values inserted of courser) >$post .= "X-Kannel-Meta-Data: > ?smpp-tlv?MBbilling=".$bill."&MBoperator=". ^^ group should be ?smpp? instead if ?smpp-tlv? > $operatorid."&MBcontentType=100&MBcommand=START&MBsubDate=

Re: [PATCH] SMPP Optional Parameters

2007-11-26 Thread Juan Nin
That's what Alexandar just said... You're using: ?smpp-tlv?MBbilling= and it should be: ?smpp?MBbilling= regards, Juan On Nov 26, 2007 12:33 PM, Kyriacos Sakkas <[EMAIL PROTECTED]> wrote: > Call: (Relevant values inserted of courser) >$post .= "X-Kannel-Meta-Data: > ?smpp-tlv?MBbillin

Re: [PATCH] SMPP Optional Parameters

2007-11-26 Thread Kyriacos Sakkas
Call: (Relevant values inserted of courser) $post .= "X-Kannel-Meta-Data: ?smpp-tlv?MBbilling=".$bill."&MBoperator=".$operatorid."&MBcontentType=100&MBcommand=START&MBsubDate=".date('U000')."&MBserviceId=XXX\r\n"; Definitions: (Had all as octstring, switched to nullterm for those with no d

Re: [PATCH] SMPP Optional Parameters

2007-11-26 Thread Alexander Malysh
Hi, I suppose you didn't defined TLVs in the config and group in meta_data named smpp instead of smpp-tlv. Example: In the config group = smpp-tlv name = MBbilling tag = 0x1601 type = integer|nulterminated|octetstring length = 4 meta_data=?smpp?MBbilling=XXX&... Kyriacos Sakkas wrote: >

Re: [PATCH] SMPP Optional Parameters

2007-11-26 Thread Kyriacos Sakkas
If my packet capturing is correct, everything is parsed ok, but the TLVs do not get added to the PDU. Also my log file: 2007-11-26 15:58:08 [4930] [6] DEBUG: SMPP PDU 0x667eb0 dump: 2007-11-26 15:58:08 [4930] [6] DEBUG: type_name: enquire_link_resp 2007-11-26 15:58:08 [4930] [6] DEBUG: comman

Re: [PATCH] SMPP Optional Parameters

2007-11-26 Thread Kyriacos Sakkas
Hi, I just recompiled, and it looks stable, the difference was that up to now I had been using "--with-mysql" on the configure, which to be honest I did not need in this instance, just a force of habit. Anyway I will now test and if anything comes up I will let you know, but it does look like

Re: [PATCH] SMPP Optional Parameters

2007-11-26 Thread Kyriacos Sakkas
Hi Alexander, So us to be clear, me programing credential are not great, so I will give the backtrace a go, but if you thing some specials parameters to gdb would help, please let me know. Anyway the segfault is at run time, I will try and post a backtrace shortly. Kyriacos Sakkas Alexander Mal

Re: [PATCH] SMPP Optional Parameters

2007-11-26 Thread Alexander Malysh
Hi, the warnings while compile are OK. When kannel segfaults? when compile or starting kannel? If when starting kannel please provide backtrace. Kyriacos Sakkas wrote: > Minus attachments. > > > Kyriacos Sakkas wrote: >> Hi, >> Trying to compile against cvs, I segfault. Diring compile the

Re: [PATCH] SMPP Optional Parameters

2007-11-13 Thread Kyriacos Sakkas
Minus attachments. Kyriacos Sakkas wrote: > Hi, > Trying to compile against cvs, I segfault. Diring compile the only > "error" is: > > gw/meta_data.c: In function âmeta_data_set_valueâ: > gw/meta_data.c:338: warning: passing argument 2 of âdict_putâ discards > qualifiers from pointer target t

Re: [PATCH] SMPP Optional Parameters

2007-11-09 Thread Juan Nin
i agree doing it separately as to integrate it with the kannel regular code would be more difficult? On Nov 9, 2007 3:02 PM, Alexander Malysh <[EMAIL PROTECTED]> wrote: > Hi, > > I will try to look into this when I have some spare time but it was not the > intention of the patch. The patch was o

Re: [PATCH] SMPP Optional Parameters

2007-11-09 Thread Alexander Malysh
Hi, I will try to look into this when I have some spare time but it was not the intention of the patch. The patch was only to allow operator specific TLVs. TLVs from SMPP spec. should be handled by kannel on regular basis (IMHO). Juan Nin wrote: > oks, great! :) > > to be able to plan my stuf

Re: [PATCH] SMPP Optional Parameters

2007-11-09 Thread Juan Nin
oks, great! :) to be able to plan my stuff, when do you think you can have some time to do it? thnx again On Nov 9, 2007 1:31 PM, Alexander Malysh <[EMAIL PROTECTED]> wrote: > It's easier for me todo it myself instead of write how to do it :) > > > Juan Nin wrote: > > > oks, can u give me any c

Re: [PATCH] SMPP Optional Parameters

2007-11-09 Thread Alexander Malysh
It's easier for me todo it myself instead of write how to do it :) Juan Nin wrote: > oks, can u give me any clue on how to expand it to all TLVs? > > not sure if I'll be able to do it, I'm not too much of a C programmer, > but if not much has to be touched, maybe I can do it... > > thnx again!

Re: [PATCH] SMPP Optional Parameters

2007-11-09 Thread Juan Nin
oks, can u give me any clue on how to expand it to all TLVs? not sure if I'll be able to do it, I'm not too much of a C programmer, but if not much has to be touched, maybe I can do it... thnx again! Juan On Nov 9, 2007 12:55 PM, Alexander Malysh <[EMAIL PROTECTED]> wrote: > Hi again, > > in m

Re: [PATCH] SMPP Optional Parameters

2007-11-09 Thread Alexander Malysh
Hi again, in metadata you will receive only vendor specific TLVs. It could be expanded to all TLVs if needed. Juan Nin wrote: > On Nov 9, 2007 11:54 AM, Alexander Malysh <[EMAIL PROTECTED]> wrote: >> Hi, >> >> seems I just forgot about DLRs and data_sm :) >> >> Please try attached patch instead

Re: [PATCH] SMPP Optional Parameters

2007-11-09 Thread Juan Nin
On Nov 9, 2007 11:54 AM, Alexander Malysh <[EMAIL PROTECTED]> wrote: > Hi, > > seems I just forgot about DLRs and data_sm :) > > Please try attached patch instead of previous one. cool! :) I just tried it, and now it's passing it! BUT, it's not passing back all of the received optional parameter

Re: [PATCH] SMPP Optional Parameters

2007-11-09 Thread Alexander Malysh
Hi, seems I just forgot about DLRs and data_sm :) Please try attached patch instead of previous one. Juan Nin wrote: > any feedback on this? > > thnx again! > > Juan > > > On Nov 8, 2007 3:17 PM, Juan Nin <[EMAIL PROTECTED]> wrote: >> Hi Alexander! >> >> I've made some tests with your patc

Re: [PATCH] SMPP Optional Parameters

2007-11-09 Thread Juan Nin
any feedback on this? thnx again! Juan On Nov 8, 2007 3:17 PM, Juan Nin <[EMAIL PROTECTED]> wrote: > Hi Alexander! > > I've made some tests with your patch. > These are the Optional SMPP parameters I've configured: > > > # Specifies if message must or not be billed > group = smpp-tlv > name

Re: [PATCH] SMPP Optional Parameters

2007-11-08 Thread Juan Nin
Hi Alexander! I've made some tests with your patch. These are the Optional SMPP parameters I've configured: # Specifies if message must or not be billed group = smpp-tlv name = charge_type tag= 0x2151 type = integer length = 1 # Specifies amount to be billed group = smpp-tlv name =

Re: [PATCH] SMPP Optional Parameters

2007-11-07 Thread Juan Nin
Hi! 3 months have passed by, and just today I was able to start testing this!!! Haven't been able to test too much yet though I've sent some premium messages, making them billable and setting it's pricepoints via TLVs and everything went ok Tomorrow I'm going to make more tests, I want to test it

Re: [PATCH] SMPP Optional Parameters

2007-11-02 Thread Alexander Malysh
Hi, yes, the format is OK. I'm not sure whether the value of HTTP header should be url-encoded? If it doesn't work post the whole debug log (smsbox + bearerbox). Kyriacos Sakkas wrote: > Hi, > Anybody has some extra info on how to us with post? > (X-Kannel-Meta-Data). I am trying but not ab

Re: [PATCH] SMPP Optional Parameters

2007-11-02 Thread Kyriacos Sakkas
Hi, Anybody has some extra info on how to us with post? (X-Kannel-Meta-Data). I am trying but not able it seems to get the proper format. Would this be considered ok? X-Kannel-Meta-Data: ?smpp?mytag=12 Definition is: group = smpp-tlv name = mytag tag = 0x1521 type = octetstring length = 32 Th

Re: [PATCH] SMPP Optional Parameters

2007-10-22 Thread Kyriacos Sakkas
Hi, If this is known to somebody, please tell: Will this patch work for capturing optional parameters presend in DLR messages ? That is can I use &meta-data=%D in my DLR-URL? Thanks, Kyriacos Sakkas Alexander Malysh wrote: > Hi, > > any progress on testing and userguide :)? > > Al

Re: [PATCH] SMPP Optional Parameters

2007-09-27 Thread Juan Nin
Hi Alex! Unfortunately I haven't been able to test it yet... :( I'm opening a new company, and starting this monday, so I've been very busy! Compiled Kannel with the patch with no problem On tuesday a partner of mine from the US is comming down here, so during the week I'll make tests with his

Re: [PATCH] SMPP Optional Parameters

2007-09-27 Thread Alexander Malysh
Hi, any progress on testing and userguide :)? Alejandro Guerrieri wrote: > So far I've tested the sendsms -> SMSC portion using Logica SMSC > simulator and it works like a charm! Great job Alex! > > I've also made a patch for Sqlbox-standalone (already sent to dev list). > > I'll test the SMSC

Re: [PATCH] SMPP Optional Parameters

2007-08-06 Thread Alejandro Guerrieri
So far I've tested the sendsms -> SMSC portion using Logica SMSC simulator and it works like a charm! Great job Alex! I've also made a patch for Sqlbox-standalone (already sent to dev list). I'll test the SMSC -> Kannel portion as soon as I can get a hand on a SMSC and/or Simulator capable of sen

Re: [PATCH] SMPP Optional Parameters

2007-08-06 Thread Alejandro Guerrieri
I think I can do the mods if Martin is too busy. Alex, _great_ job and thanks a lot for making this a reality. Regards, Alejandro On 8/6/07, Juan Nin <[EMAIL PROTECTED]> wrote: > > On 8/6/07, Alexander Malysh <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Juan Nin wrote: > > > > > Alexander. > > >

Re: [PATCH] SMPP Optional Parameters

2007-08-06 Thread Juan Nin
On 8/6/07, Alexander Malysh <[EMAIL PROTECTED]> wrote: > > Hi, > > Juan Nin wrote: > > > Alexander. > > > > First of all, many many thanks for this :) > > Long awaited patch! > > > > I will be setting up a test SMPP connection with OpenMarket from the US, > I > > hope this week, so I'll te

Re: [PATCH] SMPP Optional Parameters

2007-08-06 Thread Alexander Malysh
Hi, Juan Nin wrote: > Alexander. > > First of all, many many thanks for this :) > Long awaited patch! > > I will be setting up a test SMPP connection with OpenMarket from the US, I > hope this week, so I'll test it with them. > Will let you know about the results!!! > > Question, will

Re: [PATCH] SMPP Optional Parameters

2007-08-06 Thread Juan Nin
Alexander. First of all, many many thanks for this :) Long awaited patch! I will be setting up a test SMPP connection with OpenMarket from the US, I hope this week, so I'll test it with them. Will let you know about the results!!! Question, will it compile against Kannel 1.4.1 or needs

[PATCH] SMPP Optional Parameters

2007-08-06 Thread Alexander Malysh
Hello all, as promised I rebased my SMPP TLV patch and post is here for review. Please anybody if possible, write a userguide because I don't have time to do it and without userguide this patch will not get into mainline. Short description...         In the config group = smpp-tlv name = some-na