Hi,

i encountered same type of issues,and i have modified the code to
accomplish this requirement. patch and details are as below:


SVN revision to apply patch:5058

patch is attached with this email.

Regards
Amir Ali


> From: Rene Kluwen <[email protected]>
> Date: Tue, Sep 17, 2013 at 9:52 PM
> Subject: RE: smpp pdu dump logging with dlr_url
> To: Abdul Basit <[email protected]>
> Cc: Ahemd Al-saigh <[email protected]>, [email protected],
> Kannel Users <[email protected]>
>
>
> The short answer: No, we cannot.
>
> If you need a dlr-url in your logs, you can handle it in your dlr-url
> script, possibly matching the "foreign_id" field that gets returned in
> recent Kannel versions.
>
>
>
> *From:* Abdul Basit [mailto:[email protected]]
> *Sent:* dinsdag 17 september 2013 18:02
> *To:* Rene Kluwen
> *Cc:* Ahemd Al-saigh; [email protected]; Kannel Users
>
> *Subject:* Re: smpp pdu dump logging with dlr_url
>
>
>
> OK.
> Agree that dlr-url is not part of smpp pdu.
>
> But cannot we extend submit_sm and deliver_sm pdu session to higher layer
> and append in dlr-url?
>
> Or is there any other way out?
>
> My objective is to log sms event data records (EDR) in database.
>
>
>
>
>  --
> regards,
>
>
> abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445
>
>
>
> On Tue, Sep 17, 2013 at 6:41 PM, Rene Kluwen <[email protected]>
> wrote:
>
> The dlr-url is not part of the smpp pdu.
>
> So in a dump, it cannot be displayed.
>
> A higher abstraction layer in Kannel takes care of the dlr-url's.
>
> So in short: If will be difficult to dump, if not impossible.
>
>
>
> == Rene
>
>
>
> *From:* users [mailto:[email protected]] *On Behalf Of *Abdul Basit
> *Sent:* dinsdag 17 september 2013 7:03
> *To:* Ahemd Al-saigh
> *Cc:* [email protected]; [email protected]
> *Subject:* Re: smpp pdu dump logging with dlr_url
>
>
>
> Thank you Ahmed,
>
> Yes these parameters are persistent. But i need to log these parameters
> with each SMS as events as we get pdu dump in debug mode.
>
> Can anyone guide in more detail?
>
>
>
>
> --
> regards,
>
>
> abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445
>
>
>
> On Mon, Sep 16, 2013 at 5:45 PM, Ahemd Al-saigh <
> [email protected]> wrote:
>
> those parameters are persistence per connection . I do c any need to do
>
>
>
> On Mon, Sep 16, 2013 at 1:49 PM, Abdul Basit <[email protected]> wrote:
>
> Dear Users,
>
> I have a situation where i want to log smpp PDU dump in database.
>
> I am already doing submitting available fields with DLR into db using
> dlr_url with smsbox http request.
>
>
>
> As per my understanding, there could be a way to send submit_sm and
> deliver_sm pdu dumps in database if we add additional fields to dlr_url,
> like:
>
> service_type
> source_addr_ton
> source_addr_npi
> source_addr
>
> dest_addr_ton
>
> dest_addr_npi
>
> dest_addr
>
> etc.
>
>
>
> I will appreciate if any one can proved useful pointers/suggestions.
>
>
>  --
> regards,
>
>
> abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445
>
>
>
>
>
> --
>
>
> *_________________________________________________________________________________*
>
>
>
>
>
>
>
> *   _   _                        _   __ _
> _                       *
>
> *  /_\ | |__  _ __ ___   ___  __| | / _\ |__   __ _| |__   __ _ _ __   __
> _ *
>
> * //_\\| '_ \| '_ ` _ \ / _ \/ _` | \ \| '_ \ / _` | '_ \ / _` | '_ \ / _`
> |*
>
> */  _  \ | | | | | | | |  __/ (_| | _\ \ | | | (_| | |_) | (_| | | | | (_|
> |*
>
> *\_/ \_/_| |_|_| |_| |_|\___|\__,_| \__/_| |_|\__,_|_.__/ \__,_|_|
> |_|\__,_|*
>
>
>
>
>
>
>
>
>
>
>
>

Attachment: patch.original_dir2
Description: Binary data

Reply via email to