Re: [PATCH] smsc_cimd2.c support for billing and rpi
"Arne K. Haaje" schrieb: > > This patch add support for the binfo and rpi parameters. looks straight foward. +1 and commited to cvs, even while physically untested due to lacking CIMD connections. Stipe mailto:[EMAIL PROTECTED] --- Wapme Systems AG Münsterstr. 248 40470 Düsseldorf, NRW, Germany phone: +49.211.74845.0 fax: +49.211.74845.299 mailto:[EMAIL PROTECTED] http://www.wapme-systems.de/ --- -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v1.2.2 (Cygwin) mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2 nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H g2HyLAEKQIp30Q== =aYCI -END PGP PUBLIC KEY BLOCK-
[PATCH] smsc_cimd2.c support for billing and rpi
This patch add support for the binfo and rpi parameters. -- Med vennlig hilsen, Eurobate ASA Arne K. Haaje Senior Network Engineer Eurobate ASA - Postboks 4589 Nydalen - 0404 Oslo - Norway Phone: +47 23 22 73 73 - Fax: +47 23 22 73 74 - Mob: +47 92 88 44 66 http://www.eurobate.no/ --- /tmp/kannel-snapshot/gw/smsc/smsc_cimd2.c 2003-07-20 18:23:05.0 +0200 +++ smsc_cimd2.c 2003-10-22 13:30:01.0 +0200 @@ -1377,9 +1377,15 @@ /* Turn off reply path as default. * This avoids phones automatically asking for a reply - * However, it is a nice feature and could be enabled through a parameter */ -packet_add_int_parm(packet, P_REPLY_PATH, 0, conn); + if (msg->sms.rpi > 0) + packet_add_int_parm(packet, P_REPLY_PATH, 1, conn); + else + packet_add_int_parm(packet, P_REPLY_PATH, 0, conn); + + /* Use binfo to set the tariff class */ + if (octstr_len(msg->sms.binfo)) + packet_add_parm(packet, P_INT, P_TARIFF_CLASS, msg->sms.binfo, conn); truncated = 0;