Re[3]: smsc message ID
each request, either to the send-sms interface, either the sql injection in the sqlbox send_sms table should be with its unique dlr-url value you may achieve that with adding some extra parameters in the dlr-url .. as i am repeating myself , read the post bellow... / track the value of smsID, you will see its identical in all the dlr-url values .. / -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 10 Юни 2008 г. To: seik Subject:smsc message ID M. Seik, How to set an unique drl-url per MT message De : [EMAIL PROTECTED] Date : 09/06/08 22:43:46 A : users@kannel.org Sujet : Re: smsc message ID you do not need the smsc id all you need is to set YOUR unique dlr-url per MT message to achieve that, add in the dlr-url something like MysmsID=6be1268d3d7d99e6ec99e9138e77d6ea make sure the value of the MysmsID sould is unique and use it to trace the status of the MT message. the db based dlr queue has nothing to do with the delivery reports per message ... it just saves the queue in a db, to avoid loss of data in case of OS crash ... example of dlr-url: http://localhost/dlr.pgsql.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts=%TsmsID=07fceb25372fcc4cb847c7099008500echarset=%Ckannel_id=%I; resulting dlr-url: 127.0.0.1 - - [09/Jun/2008:22:45:37 +0300] GET /dlr.pgsql.php?smscID=mteldlr=8answer=ACK%2Fto=%2B3591from=1916ts=1213040737smsID=nonfd9c1ff6b66bc510c785ffac6fb0b754charset=ISO-8859-1kannel_id=a890dfe9-72a9-48db-b98d-cd7c533c5958 HTTP/1.1 200 1 - Kannel/cvs-20070627 127.0.0.1 - - [09/Jun/2008:22:45:45 +0300] GET /dlr.pgsql.php?smscID=mteldlr=1answer=id%3A0302419579+sub%3A001+dlvrd%3A001+submit+date%3A0806092245+done+date%3A0806092245+stat%3ADELIVRD+err%3A000+text%3ABlagodarim+Vi+za+Vasto=%2B3591from=1916ts=1213040745smsID=nonfd9c1ff6b66bc510c785ffac6fb0b754charset=ISO-8859-1kannel_id=41e9cd46-90ad-4014-b08f-91d152fd0388 HTTP/1.1 200 1 - Kannel/cvs-20070627 i think you will deal from here -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 09 ??? 2008 ?. To: seik Subject:smsc message ID Hello everybody, I am currently working on getting delivery receipts on my dlr-url. When I query the sendsms cgi-bin interface : http://localhost/cgi-bin/sendsms?user=usernamepass=passwordfrom=xxxto=xxxsmsc=mysmsctext=some+textmclass=1dlr-mask=31dlr-url=http%3A%2F%2Flocalhost%2Fdlr.php%3Fid%3DArdn6lE4%26state%3D%25d%26smsid%3D%25I dlr-url looking like that: http://localhost/dlr.php?id=Ardn6lstate=%dsmsid=%I The %I only gives me the internal message ID kannel generated. I would like the actual (aggregator) smsc message ID On a side not, I am using a pgsql dlr queue, and I can see my message ID being stored into the ts (timestamp) field. Thank you for your help, Eric My...o? ? You...quoi ? Face...qui ?... Vous ne savez plus comment ?tre vous-m?me ? Pour Cr?er, Partager et enfin Gagner ... D?couvrez iDOO en vid?o
SMPP How to add alt-host
Hi, Can anyone tell me how to add alternative SMPP SMSC Host. My Operator is providing me with 2 hostname. 1. Primary. 2. Failover. Thanks, Madan KN
Re: automatically restarting kannel when in PANIC
Hi, I know of the parachute attribute, but does it work when kannel gets an ERROR, because i've been getting pdu_extract errors intemittently, and looks like after a restart things go back to normal Hi, why not just start kannel as daemon and use parachute code? /path/to/bin/bearerbox --daemon --parachute This will restart kannel if it crached. Optionally you can start some script to send e.g. email when kannel crached: /path/to/bin/bearerbox --daemon --parachute --panic-script /path/to/script Thanks, Alex Eric Beda schrieb: Thanks, i'll appreciate a quick howto in setting up kannel to work with daemon tools,,, i'm going to try out daemon tools tomorro How can i automatically restart kannel or reset whe kannel PANICS or gets an error i use daemontools to monitor kannel (and other services). i run it on FreeBSD 6.3 and it works very nicely cheers iain
RE:Re: smsc message ID
M. Seik, How to set an unique drl-url per MT message De : [EMAIL PROTECTED] Date : 09/06/08 22:43:46 A : users@kannel.org Sujet : Re: smsc message ID you do not need the smsc id all you need is to set YOUR unique dlr-url per MT message to achieve that, add in the dlr-url something like MysmsID=6be1268d3d7d99e6ec99e9138e77d6ea make sure the value of the MysmsID sould is unique and use it to trace the status of the MT message. the db based dlr queue has nothing to do with the delivery reports per message ... it just saves the queue in a db, to avoid loss of data in case of OS crash ... example of dlr-url: http://localhost/dlr.pgsql.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts=%TsmsID=07fceb25372fcc4cb847c7099008500echarset=%Ckannel_id=%I; resulting dlr-url: 127.0.0.1 - - [09/Jun/2008:22:45:37 +0300] GET /dlr.pgsql.php?smscID=mteldlr=8answer=ACK%2Fto=%2B3591from=1916ts=1213040737smsID=nonfd9c1ff6b66bc510c785ffac6fb0b754charset=ISO-8859-1kannel_id=a890dfe9-72a9-48db-b98d-cd7c533c5958 HTTP/1.1 200 1 - Kannel/cvs-20070627 127.0.0.1 - - [09/Jun/2008:22:45:45 +0300] GET /dlr.pgsql.php?smscID=mteldlr=1answer=id%3A0302419579+sub%3A001+dlvrd%3A001+submit+date%3A0806092245+done+date%3A0806092245+stat%3ADELIVRD+err%3A000+text%3ABlagodarim+Vi+za+Vasto=%2B3591from=1916ts=1213040745smsID=nonfd9c1ff6b66bc510c785ffac6fb0b754charset=ISO-8859-1kannel_id=41e9cd46-90ad-4014-b08f-91d152fd0388 HTTP/1.1 200 1 - Kannel/cvs-20070627 i think you will deal from here -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 09 ??? 2008 ?. To: seik Subject:smsc message ID Hello everybody, I am currently working on getting delivery receipts on my dlr-url. When I query the sendsms cgi-bin interface : http://localhost/cgi-bin/sendsms?user=usernamepass=passwordfrom=xxxto=xxxsmsc=mysmsctext=some+textmclass=1dlr-mask=31dlr-url=http%3A%2F%2Flocalhost%2Fdlr.php%3Fid%3DArdn6lE4%26state%3D%25d%26smsid%3D%25I dlr-url looking like that: http://localhost/dlr.php?id=Ardn6lstate=%dsmsid=%I The %I only gives me the internal message ID kannel generated. I would like the actual (aggregator) smsc message ID On a side not, I am using a pgsql dlr queue, and I can see my message ID being stored into the ts (timestamp) field. Thank you for your help, Eric My...o� ? You...quoi ? Face...qui ?... Vous ne savez plus comment �tre vous-m�me ? Pour Cr�er, Partager et enfin Gagner ... D�couvrez iDOO en vid�o http://www.idoo.com/fr/videomark.php
PL2303
Guys, Does all PL2303 means it is a GSM Modem enabled device? Regards, Willy
Re: Problem compiling last CVS checkout
An extra note... I'm compiling with mysql support. When not using mysql it will compile ok. Eduardo On Tue, Jun 10, 2008 at 11:01 AM, Eduardo Raad [EMAIL PROTECTED] wrote: Dear list I just checked out the last version of Kannel and got this error when compiling (it was the last line): gw/smsbox.c: In function 'init_smsbox': gw/smsbox.c:3358: error: 'bearerbox_is_sqlbox' undeclared (first use in this function) gw/smsbox.c:3358: error: (Each undeclared identifier is reported only once gw/smsbox.c:3358: error: for each function it appears in.) make: *** [gw/smsbox.o] Error 1 Any ideas on what it is? -- Eduardo Raad Gerente General Metromovil móvil + 593 9397 oficina + 593 42329455 x 1099 Av. 10 de Agosto 511 y Chimborazo Edificio Equinoxcorp, Piso 3 Guayaquil, Ecuador -- Eduardo Raad Gerente General Metromovil móvil + 593 9397 oficina + 593 42329455 x 1099 Av. 10 de Agosto 511 y Chimborazo Edificio Equinoxcorp, Piso 3 Guayaquil, Ecuador
Problem compiling last CVS checkout
Dear list I just checked out the last version of Kannel and got this error when compiling (it was the last line): gw/smsbox.c: In function 'init_smsbox': gw/smsbox.c:3358: error: 'bearerbox_is_sqlbox' undeclared (first use in this function) gw/smsbox.c:3358: error: (Each undeclared identifier is reported only once gw/smsbox.c:3358: error: for each function it appears in.) make: *** [gw/smsbox.o] Error 1 Any ideas on what it is? -- Eduardo Raad Gerente General Metromovil móvil + 593 9397 oficina + 593 42329455 x 1099 Av. 10 de Agosto 511 y Chimborazo Edificio Equinoxcorp, Piso 3 Guayaquil, Ecuador
Kannel SMS service queue
Dear List, I have noted that when an SMS service fails to connect to the provided URL, the SMS message in question is discarded. Is there any way to queue this message until the SMS service URL becomes available? Thanks. Eduardo
FW: mail2sms script
I have something like this setup. I send email to a certine user (I created sms user on the kannel box). Then via cronjob, I use perl to read the email, and send it to the http. Here is the perl script (found it somewhere on the web, modified it a bit) : Please change the yellow to suite your needs: #!/usr/local/bin/perl -w use Net::POP3; use strict; use LWP::UserAgent; # Connect to pop3 server my $pop3 = Net::POP3-new(Kannel_server) || die Error : Couldn't log+on to server; # Login to pop3 server my $Num_Message = $pop3-login(mailbox_username, mailbox_passwd); my $Messages = $pop3-list(); my ($MsgDel,$MsgNo); my ($MsgId, $MsgDate, $MsgFrom, $MsgTo, $MsgCc, $MsgSub); my ($MsgAttach, $MsgSize, $MsgHeader, $MsgHeadFlg, $MsgBody); foreach $MsgNo (keys %$Messages) { my $MsgContent = $pop3-get($MsgNo); my $count = 0; $MsgHeadFlg = 0; $MsgBody = ; $MsgSize = $pop3-list($MsgNo); # Process message data while() { # Exit if last line of mail if ($count = scalar(@$MsgContent)) { last; } # Check if end of mail header if (@$MsgContent[$count] =~ /^\n/) { $MsgHeadFlg = 1; } # Proceed if message header not processed if (not $MsgHeadFlg) { # Split the line my @LineContent = split /: /, @$MsgContent[$count]; # Check Header Info SWITCH: { # Get message date $LineContent[0] =~ /Date/i do { $MsgDate = $LineContent[1]; last SWITCH; }; # Get message id $LineContent[0] =~ /Message-ID/i do { $MsgId = $LineContent[1]; last SWITCH; }; # Get message from $LineContent[0] =~ /From/i do { $MsgFrom = $LineContent[1]; last SWITCH; }; # Get message to $LineContent[0] =~ /To/i do { $MsgTo = $LineContent[1]; last SWITCH; }; # Get message cc $LineContent[0] =~ /Cc/i do { $MsgCc = $LineContent[1]; last SWITCH; }; # Get message subject $LineContent[0] =~ /Subject/i do { $MsgSub = $LineContent[1]; last SWITCH; }; } } else { # Process message body $MsgBody .= @$MsgContent[$count]; } $count++; } my $ua = new LWP::UserAgent; $ua-timeout(120); my $result = `ps | grep -v grep|grep smsbox |awk \'{print \$1}\'`; if ( $result 0 ) { my $url=http://kannel_server:kannel_port/cgi-bin/sendsms?username=xxxpassword=xxxto=$MsgSubtext=$MsgBody;; my $request = new HTTP::Request('GET', $url); my $response = $ua-request($request); my $content = $response-content(); $MsgDel = $pop3-delete($MsgNo) } } # Disconnect from pop3 server $pop3-quit(); -Original Message- From: Niels Przybilla [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2008 8:25 AM To: users@kannel.org Subject: mail2sms script Hi, is there any current development for a script that parses mails and sends them with kannel via sms ? Thanks and best regards Niels
Re[2]: smsc message ID
yes unique dlr-url per MT message NOTE: the your request bellow is wrong the request to the cgi-bin/send-sms should be as usual , just the value of the dlr-rul should be urlencoded unique dlrurl ... fixed request based on the one bellow http://147.120.203.99:17018/cgi-bin/sendsms?username=apassword=ato=67436from=990text=test+msgdlr-mask=31mclass=0dlr-url=http%3A%2F%2Flocalhost%2Fdlr.pgsql.php%3FsmscID%3D%25i%26dlr%3D%25d%26answer%3D%25A%26to%3D%25p%26from%3D%25P%26ts%3D%25T%26smsID%3D07fceb25372fcc4cb847c7099008500e%26charset%3D%25C%26kannel_id%3D%25I; -Original Message- From: Tharanga [EMAIL PROTECTED] Sent: 11 ??? 2008 ?. To: seik Subject:smsc message ID Hi seik, iam having the same problem. actually what u mean by unique dlr-url per message ? is it means when i sending i need to use a uniquq url for every message. http://147.120.203.99:17018/cgi-bin/sendsms?username=apassword=ato=67436f rom=990text=test msgdlr-mask=31mclass=0smsID=345677 many thanks, Tharanga - Original Message - From: seik [EMAIL PROTECTED] To: users@kannel.org Sent: Tuesday, June 10, 2008 1:20 AM Subject: Re: smsc message ID you do not need the smsc id all you need is to set YOUR unique dlr-url per MT message to achieve that, add in the dlr-url something like MysmsID=6be1268d3d7d99e6ec99e9138e77d6ea make sure the value of the MysmsID sould is unique and use it to trace the status of the MT message. the db based dlr queue has nothing to do with the delivery reports per message ... it just saves the queue in a db, to avoid loss of data in case of OS crash ... example of dlr-url: http://localhost/dlr.pgsql.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts= %TsmsID=07fceb25372fcc4cb847c7099008500echarset=%Ckannel_id=%I resulting dlr-url: 127.0.0.1 - - [09/Jun/2008:22:45:37 +0300] GET /dlr.pgsql.php?smscID=mteldlr=8answer=ACK%2Fto=%2B3591from=1916 ts=1213040737smsID=nonfd9c1ff6b66bc510c785ffac6fb0b754charset=ISO-8859-1k annel_id=a890dfe9-72a9-48db-b98d-cd7c533c5958 HTTP/1.1 200 1 - Kannel/cvs-20070627 127.0.0.1 - - [09/Jun/2008:22:45:45 +0300] GET /dlr.pgsql.php?smscID=mteldlr=1answer=id%3A0302419579+sub%3A001+dlvrd%3A00 1+submit+date%3A0806092245+done+date%3A0806092245+stat%3ADELIVRD+err%3A000+t ext%3ABlagodarim+Vi+za+Vasto=%2B3591from=1916ts=1213040745smsID= nonfd9c1ff6b66bc510c785ffac6fb0b754charset=ISO-8859-1kannel_id=41e9cd46-90 ad-4014-b08f-91d152fd0388 HTTP/1.1 200 1 - Kannel/cvs-20070627 i think you will deal from here -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 09 ??? 2008 ?. To: seik Subject:smsc message ID Hello everybody, I am currently working on getting delivery receipts on my dlr-url. When I query the sendsms cgi-bin interface : http://localhost/cgi-bin/sendsms?user=usernamepass=passwordfrom=xxxto =xxxsmsc=mysmsctext=some+textmclass=1dlr-mask=31dlr-url=http%3A %2F%2Flocalhost%2Fdlr.php%3Fid%3DArdn6lE4%26state%3D%25d%26smsid%3D%25I dlr-url looking like that: http://localhost/dlr.php?id=Ardn6lstate=%dsmsid=%I The %I only gives me the internal message ID kannel generated. I would like the actual (aggregator) smsc message ID On a side not, I am using a pgsql dlr queue, and I can see my message ID being stored into the ts (timestamp) field. Thank you for your help, Eric
Re[4]: smsc message ID
the id ups to you. regarding the dlr-url: http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4306 Table 6-16. SMS Push (send-sms) CGI Variables -Original Message- From: Tharanga [EMAIL PROTECTED] Sent: 11 ??? 2008 ?. To: seik Subject:smsc message ID H, Thxs for the mail . can i use a simple id like 12345689 ? encoded-url is a must ?. now iam getting wrong delivered pending results.. thanks, Tharanga - Original Message - From: seik [EMAIL PROTECTED] To: Tharanga [EMAIL PROTECTED] Cc: users@kannel.org Sent: Wednesday, June 11, 2008 4:18 PM Subject: Re[2]: smsc message ID yes unique dlr-url per MT message NOTE: the your request bellow is wrong the request to the cgi-bin/send-sms should be as usual , just the value of the dlr-rul should be urlencoded unique dlrurl ... fixed request based on the one bellow http://147.120.203.99:17018/cgi-bin/sendsms?username=apassword=ato=67436f rom=990text=test+msgdlr-mask=31mclass=0dlr-url=http%3A%2F%2Flocalhost%2F dlr.pgsql.php%3FsmscID%3D%25i%26dlr%3D%25d%26answer%3D%25A%26to%3D%25p%26fro m%3D%25P%26ts%3D%25T%26smsID%3D07fceb25372fcc4cb847c7099008500e%26charset%3D %25C%26kannel_id%3D%25I -Original Message- From: Tharanga [EMAIL PROTECTED] Sent: 11 ??? 2008 ?. To: seik Subject:smsc message ID Hi seik, iam having the same problem. actually what u mean by unique dlr-url per message ? is it means when i sending i need to use a uniquq url for every message. http://147.120.203.99:17018/cgi-bin/sendsms?username=apassword=ato=67436f rom=990text=test msgdlr-mask=31mclass=0smsID=345677 many thanks, Tharanga - Original Message - From: seik [EMAIL PROTECTED] To: users@kannel.org Sent: Tuesday, June 10, 2008 1:20 AM Subject: Re: smsc message ID you do not need the smsc id all you need is to set YOUR unique dlr-url per MT message to achieve that, add in the dlr-url something like MysmsID=6be1268d3d7d99e6ec99e9138e77d6ea make sure the value of the MysmsID sould is unique and use it to trace the status of the MT message. the db based dlr queue has nothing to do with the delivery reports per message ... it just saves the queue in a db, to avoid loss of data in case of OS crash ... example of dlr-url: http://localhost/dlr.pgsql.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts= %TsmsID=07fceb25372fcc4cb847c7099008500echarset=%Ckannel_id=%I resulting dlr-url: 127.0.0.1 - - [09/Jun/2008:22:45:37 +0300] GET /dlr.pgsql.php?smscID=mteldlr=8answer=ACK%2Fto=%2B3591from=1916 ts=1213040737smsID=nonfd9c1ff6b66bc510c785ffac6fb0b754charset=ISO-8859-1k annel_id=a890dfe9-72a9-48db-b98d-cd7c533c5958 HTTP/1.1 200 1 - Kannel/cvs-20070627 127.0.0.1 - - [09/Jun/2008:22:45:45 +0300] GET /dlr.pgsql.php?smscID=mteldlr=1answer=id%3A0302419579+sub%3A001+dlvrd%3A00 1+submit+date%3A0806092245+done+date%3A0806092245+stat%3ADELIVRD+err%3A000+t ext%3ABlagodarim+Vi+za+Vasto=%2B3591from=1916ts=1213040745smsID= nonfd9c1ff6b66bc510c785ffac6fb0b754charset=ISO-8859-1kannel_id=41e9cd46-90 ad-4014-b08f-91d152fd0388 HTTP/1.1 200 1 - Kannel/cvs-20070627 i think you will deal from here -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 09 ??? 2008 ?. To: seik Subject:smsc message ID Hello everybody, I am currently working on getting delivery receipts on my dlr-url. When I query the sendsms cgi-bin interface : http://localhost/cgi-bin/sendsms?user=usernamepass=passwordfrom=xxxto =xxxsmsc=mysmsctext=some+textmclass=1dlr-mask=31dlr-url=http%3A %2F%2Flocalhost%2Fdlr.php%3Fid%3DArdn6lE4%26state%3D%25d%26smsid%3D%25I dlr-url looking like that: http://localhost/dlr.php?id=Ardn6lstate=%dsmsid=%I The %I only gives me the internal message ID kannel generated. I would like the actual (aggregator) smsc message ID On a side not, I am using a pgsql dlr queue, and I can see my message ID being stored into the ts (timestamp) field. Thank you for your help, Eric
Help with mblox
Hi, I need kannel version 1.4.1 to work with mblox. What do I need to do? I found something for version 1.4.0 but does not seem to work on 1.4.1. Thanks in advance.
Simulate kannel
Hello all, I got some particular script in php that are supposing to simulate a kannel gateway. So when I sent a SMS, it answered 0: Accepted for delivery. I would like my kannel gateway saw this script as another kannel gw. Right now all the sms sent by my original gw are sent correctly (the php code is correctly requested) but the kannel gw saw them as failed. I assume it could be because of the 0: Accepted for delivery. Does it need some carriage return or a specific http code (like 200) ? Any help will be appreciate. regards
How to receive MMS with kannel
Hi List I know that for sending MMS I´ll need to use mbuni in addition to kannel; however, I´ll like to know if it is possible to just RECEIVE MMS (pictures) through kannel and store them to a database. I do not want to send any mms but only receive them. Is it possible? Any ideas?? Regards
How to receive MMS with kannel
Hi List I know that for sending MMS I´ll need to use mbuni in addition to kannel; however, I´ll like to know if it is possible to just RECEIVE MMS (pictures) through kannel and store them to a database. Is it possible? Any ideas?? Regards attachment: winmail.dat
Re: SMS Premium MT
Hello, The carrier do not support DLR. They use query_sm. Kannel support query_sm? Thanks Daniel On Mon, May 19, 2008 at 10:31 AM, [EMAIL PROTECTED] wrote: get the DLR report for each MT message -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 19 ??? 2008 ?. To: [EMAIL PROTECTED] Subject:SMS Premium MT Hello, I'm new in this list. Currently I'm working in a payment with SMS MO, all incoming SMS are billed. The payment is going to change to SMS MT. How can I know if the user was charged? There is a standard to manage this kind of billing? Thank you Daniel
unsubscribe
Unsubscribe This e-mail and all material transmitted with it are for the use of the intended recipient(s) ONLY and contains confidential and/or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken pursuant to the contents of the present e-mail is strictly prohibited and is unlawful. The recipient acknowledges that Bharti Telesoft Limited or its management or directors, are unable to exercise control or ensure the integrity over /of the contents of the information contained in e-mail. Any views expressed herein are those of the individual sender only and no binding nature of the contents shall be implied or assumed unless the sender does so expressly with due authority of Bharti Telesoft Limited. E-mail and any contents transmitted with it are prone to viruses and related defects despite all efforts to avoid such by Bharti Telesoft Limited.
Re: Re[3]: smsc message ID
Hey guys, Finally i have successfully completed the mission of dilervery report nottifications using the unique dlr-url for each sms. if any one need it i can send my script. special thank goes to the seik and the mailing list members . thanks guys --Tharanga- - Original Message - From: seik [EMAIL PROTECTED] To: users@kannel.org Sent: Tuesday, June 10, 2008 2:33 PM Subject: Re[3]: smsc message ID each request, either to the send-sms interface, either the sql injection in the sqlbox send_sms table should be with its unique dlr-url value you may achieve that with adding some extra parameters in the dlr-url .. as i am repeating myself , read the post bellow... / track the value of smsID, you will see its identical in all the dlr-url values .. / -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 10 Юни 2008 г. To: seik Subject:smsc message ID M. Seik, How to set an unique drl-url per MT message De : [EMAIL PROTECTED] Date : 09/06/08 22:43:46 A : users@kannel.org Sujet : Re: smsc message ID you do not need the smsc id all you need is to set YOUR unique dlr-url per MT message to achieve that, add in the dlr-url something like MysmsID=6be1268d3d7d99e6ec99e9138e77d6ea make sure the value of the MysmsID sould is unique and use it to trace the status of the MT message. the db based dlr queue has nothing to do with the delivery reports per message ... it just saves the queue in a db, to avoid loss of data in case of OS crash ... example of dlr-url: http://localhost/dlr.pgsql.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts= %TsmsID=07fceb25372fcc4cb847c7099008500echarset=%Ckannel_id=%I resulting dlr-url: 127.0.0.1 - - [09/Jun/2008:22:45:37 +0300] GET /dlr.pgsql.php?smscID=mteldlr=8answer=ACK%2Fto=%2B3591from=1916 ts=1213040737smsID=nonfd9c1ff6b66bc510c785ffac6fb0b754charset=ISO-8859-1k annel_id=a890dfe9-72a9-48db-b98d-cd7c533c5958 HTTP/1.1 200 1 - Kannel/cvs-20070627 127.0.0.1 - - [09/Jun/2008:22:45:45 +0300] GET /dlr.pgsql.php?smscID=mteldlr=1answer=id%3A0302419579+sub%3A001+dlvrd%3A00 1+submit+date%3A0806092245+done+date%3A0806092245+stat%3ADELIVRD+err%3A000+t ext%3ABlagodarim+Vi+za+Vasto=%2B3591from=1916ts=1213040745smsID= nonfd9c1ff6b66bc510c785ffac6fb0b754charset=ISO-8859-1kannel_id=41e9cd46-90 ad-4014-b08f-91d152fd0388 HTTP/1.1 200 1 - Kannel/cvs-20070627 i think you will deal from here -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 09 ??? 2008 ?. To: seik Subject:smsc message ID Hello everybody, I am currently working on getting delivery receipts on my dlr-url. When I query the sendsms cgi-bin interface : http://localhost/cgi-bin/sendsms?user=usernamepass=passwordfrom=xxxto =xxxsmsc=mysmsctext=some+textmclass=1dlr-mask=31dlr-url=http%3A %2F%2Flocalhost%2Fdlr.php%3Fid%3DArdn6lE4%26state%3D%25d%26smsid%3D%25I dlr-url looking like that: http://localhost/dlr.php?id=Ardn6lstate=%dsmsid=%I The %I only gives me the internal message ID kannel generated. I would like the actual (aggregator) smsc message ID On a side not, I am using a pgsql dlr queue, and I can see my message ID being stored into the ts (timestamp) field. Thank you for your help, Eric My...o? ? You...quoi ? Face...qui ?... Vous ne savez plus comment ?tre vous-m?me ? Pour Cr?er, Partager et enfin Gagner ... D?couvrez iDOO en vid?o
Re: SMS Premium MT
Same problem here! Daniel, what carrier are you using, in what country? Maybe we are facing the same problem. Daniel wrote: Hello, The carrier do not support DLR. They use query_sm. Kannel support query_sm? Thanks Daniel On Mon, May 19, 2008 at 10:31 AM, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: get the DLR report for each MT message -Original Message- From: users@kannel.org mailto:users@kannel.org [EMAIL PROTECTED] mailto:users@kannel.org] Sent: 19 ??? 2008 ?. To: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Subject:SMS Premium MT Hello, I'm new in this list. Currently I'm working in a payment with SMS MO, all incoming SMS are billed. The payment is going to change to SMS MT. How can I know if the user was charged? There is a standard to manage this kind of billing? Thank you Daniel
Re: Kannel SMS service queue
On Tue, Jun 10, 2008 at 7:10 PM, Eduardo Raad [EMAIL PROTECTED] wrote: Dear List, I have noted that when an SMS service fails to connect to the provided URL, the SMS message in question is discarded. Is there any way to queue this message until the SMS service URL becomes available? Not in Kannel, but you can create retry mechanism on your own. Write a url handler (php script for example) on your local machine, that will prepare the URL to which the SMS should be forwarded. After the url is prepared try to connect to it, if the you get an error (url is not available) then store the whole url to database. Write another script which will read from the database and try to execute the url. If the execution is successful delete that url from the database. Schedule(cron for i.e.) this script to execute on some time interval. Be aware that the interval should be long enough so that there will be no overlapping in script execution, script should not be stared if there is one already running. This way some of the messages won't be are sent twice or more times. GREETZ, Jovan
Re: How to receive MMS with kannel
by my knowledge, kannel will not handle the extraction of the MMS ... another approach, which is not suitable for high traffic load ..: use mms capable mobile device to receive the MMS body, save it as a picture, so from the file system you may get the MMS either via data cable either via bluetooth ... once having the picture .. you may store wherever you want ...:) good luck with that -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 12 ??? 2008 ?. To: seik Subject:How to receive MMS with kannel Hi List I know that for sending MMS I´ll need to use mbuni in addition to kannel; however, I´ll like to know if it is possible to just RECEIVE MMS (pictures) through kannel and store them to a database. I do not want to send any mms but only receive them. Is it possible? Any ideas?? Regards
Small DLR notification tutorial - mysql + php + kannel
Hi, First I like to thank all Active subscribers, for their great support and knowledge sharing first u need to create a unique smsID for the message. this is a sample URL (u need to generate this URL, i have used Java ) http://147.120.203.99:17018/cgi-bin/sendsms?username=testerpassword=thato=94xxfrom=44xtext=test msgdlr-mask=31dlr-url=http%3A%2F%2Flocalhost%2Fdlr.php%3FsmscID%3D%25i%26dlr%3D%25d%26answer%3D%25A%26to%3D%25p%26from%3D%25P%26ts%3D%25T%26smsID%3D120343994592%26charset%3D%25C%26kannel_id%3D%25I (some parameters are not needed. above is my parameter list.) u need to encode (this is a must ) the url after the dlr-url= parameter. ( u can use php urlencode function or java urlencode method for that). for the smsID i have used a timestamp. (unique one) kannel.conf looks like this (otherpart of the kannel config is ignored) # SEND-SMS USERS dlr-url = http://147.120.203.99/sms/dlr.php?dlr=%ddest=%preport=%A; group = sendsms-user username = x password = yy this script will update my database. (Mysql database) database fields (db name sms) destinationvarchar(40) statusint(10) status2 varchar(400) server_datevarchar(20) delilver_date varchar(20) sms_id varchar(200) db.inc contains the logic to connect to mysql database. dlr.php script include('db.inc'); $val=$_GET['dlr']; $dst=$_GET['to']; echo $sms_id=$_GET['smsID']; //$ts=$_GET['ts']; //$report=$_GET['report']; //$regex= preg_match(/\stat%3ADELIVRD\b/i,$report); if($val==8) { $report='Pending'; $dt = date(Y-m-d); $ti = date(H:i:s); $timewsha1=$dt. .$ti; $query = insert into sms values('$dst','$val','$report','$timewsha1','Pending','$smsID'); $result = mysql_query($query) or die(Query failed : . mysql_error()); } if ($val==1) { $dt = date(Y-m-d); $ti = date(H:i:s); $timewsha1=$dt. .$ti; $query_update=update sms set status=$val , status2='Delivered' , delilver_date='$timewsha1' where sms_id=$sms_id and destination=$dst; $result_update = mysql_query($query_update) or die(Query failed : . mysql_error()); } Regards, Tharanga Abeyseela - Original Message - From: Pavan Ramdhani To: Tharanga Sent: Friday, June 13, 2008 3:11 PM Subject: Re: Re[3]: smsc message ID Hi Tharanga, Please could u send your delivery report script! Thank you so much, Pavan. On Fri, Jun 13, 2008 at 11:37 AM, Tharanga [EMAIL PROTECTED] wrote: Hey guys, Finally i have successfully completed the mission of dilervery report nottifications using the unique dlr-url for each sms. if any one need it i can send my script. special thank goes to the seik and the mailing list members . thanks guys --Tharanga- - Original Message - From: seik [EMAIL PROTECTED] To: users@kannel.org Sent: Tuesday, June 10, 2008 2:33 PM Subject: Re[3]: smsc message ID each request, either to the send-sms interface, either the sql injection in the sqlbox send_sms table should be with its unique dlr-url value you may achieve that with adding some extra parameters in the dlr-url .. as i am repeating myself , read the post bellow... / track the value of smsID, you will see its identical in all the dlr-url values .. / -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 10 Юни 2008 г. To: seik Subject:smsc message ID M. Seik, How to set an unique drl-url per MT message De : [EMAIL PROTECTED] Date : 09/06/08 22:43:46 A : users@kannel.org Sujet : Re: smsc message ID you do not need the smsc id all you need is to set YOUR unique dlr-url per MT message to achieve that, add in the dlr-url something like MysmsID=6be1268d3d7d99e6ec99e9138e77d6ea make sure the value of the MysmsID sould is unique and use it to trace the status of the MT message. the db based dlr queue has nothing to do with the delivery reports per message ... it just saves the queue in a db, to avoid loss of data in case of OS crash ... example of dlr-url: http://localhost/dlr.pgsql.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts= %TsmsID=07fceb25372fcc4cb847c7099008500echarset=%Ckannel_id=%I resulting dlr-url: 127.0.0.1 - -
Small DLR notification tutorial - mysql + php + kannel - Version 2
Hi, First I like to thank all Active subscribers, for their great support and knowledge sharing first u need to create a unique smsID for the message. this is a sample URL (u need to generate this URL, i have used Java ) dlr-url=http://localhost/dlr.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts =%TsmsID=07fceb25372fcc4cb847c7099008500echarset=%Ckannel_id=%I (above url after the = should be encoded) resulting URL is as follows. http://147.120.203.99:17018/cgi-bin/sendsms?username=testerpassword=thato= 94xxfrom=44xtext=test msgdlr-mask=31dlr-url=http%3A%2F%2Flocalhost%2Fdlr.php%3FsmscID%3D%25i%26d lr%3D%25d%26answer%3D%25A%26to%3D%25p%26from%3D%25P%26ts%3D%25T%26smsID%3D12 0343994592%26charset%3D%25C%26kannel_id%3D%25I (some parameters are not needed. above is my parameter list.) u need to encode (this is a must ) the url after the dlr-url= parameter. ( u can use php urlencode function or java urlencode method for that). for the smsID i have used a timestamp. (unique one) kannel.conf looks like this (otherpart of the kannel config is ignored) # SEND-SMS USERS dlr-url = http://147.120.203.99/sms/dlr.php?dlr=%ddest=%preport=%A; group = sendsms-user username = x password = yy this script will update my database. (Mysql database) database fields (db name sms) destinationvarchar(40) statusint(10) status2 varchar(400) server_datevarchar(20) delilver_date varchar(20) sms_id varchar(200) db.inc contains the logic to connect to mysql database. dlr.php script include('db.inc'); $val=$_GET['dlr']; $dst=$_GET['to']; echo $sms_id=$_GET['smsID']; //$ts=$_GET['ts']; //$report=$_GET['report']; //$regex= preg_match(/\stat%3ADELIVRD\b/i,$report); if($val==8) { $report='Pending'; $dt = date(Y-m-d); $ti = date(H:i:s); $timewsha1=$dt. .$ti; $query = insert into sms values('$dst','$val','$report','$timewsha1','Pending','$smsID'); $result = mysql_query($query) or die(Query failed : . mysql_error()); } if ($val==1) { $dt = date(Y-m-d); $ti = date(H:i:s); $timewsha1=$dt. .$ti; $query_update=update sms set status=$val , status2='Delivered' , delilver_date='$timewsha1' where sms_id=$sms_id and destination=$dst; $result_update = mysql_query($query_update) or die(Query failed : . mysql_error()); } Regards, Tharanga Abeyseela
Re: Simulate kannel
On Thu, Jun 12, 2008 at 3:10 AM, info.ubichip [EMAIL PROTECTED] wrote: I would like my kannel gateway saw this script as another kannel gw. What are you trying to achieve? Do you want to make some bridge connection between the Kannel GW and you php script, so they can communicate between each other? BR, Jovan
Re: SMPP How to add alt-host
On Tue, Jun 10, 2008 at 10:04 AM, Madan KN [EMAIL PROTECTED] wrote: Hi, Can anyone tell me how to add alternative SMPP SMSC Host. My Operator is providing me with 2 hostname. 1. Primary.tar 2. Failover. Interesting one ;) There is no way to do this automatically by Kannel. In order to do this you'll have to change the configuration and restart the bearerbox and smsbox (if you use Kannel as smsgw). You should monitor the bearerbox state, if it fails to connect to the primary node, change the smsc configuration and restart the bearerbox and smsbox. When you loose the connection with the SMSC in the bearerbox.log you'll get something like: 2006-08-23 14:39:16 [32448] [40] ERROR: SMPP[SMSC_ID]: I/O error or other error. Re-connecting. 2006-08-23 14:39:16 [32448] [40] ERROR: SMPP[SMSC_ID]: Couldn't connect to SMS center (retrying in 10 seconds). Maybe by monitoring the log file for this messages, especially the second one, counting the number of apereances and calling a shell script would do the trick. I was using this[1] php script to monitor log files. It's easy configurable, you set the log file, string (log line) and it can send e-mail and call shell script. In the shell script you should change the smsc settings from primary to failover and restart the bearerbox and smsbox. The script runs as daemon and you can set the time interval on which it checks the logs. [1]http://www.moongate.ro/products/PHPLog/ HTH, Jovan
Re[2]: Problem compiling last CVS checkout
Title: Re[2]: Problem compiling last CVS checkout Hello Eduardo, bearerbox_is_sqlbox is a config keyword from the old sqlbox patch. Check out a fresh copy of kannel and use the sqlbox standalone module instead of the patch. Tuesday, June 10, 2008, 6:14:25 PM, you wrote: An extra note... I'm compiling with mysql support. When not using mysql it will compile ok. Eduardo On Tue, Jun 10, 2008 at 11:01 AM, Eduardo Raad [EMAIL PROTECTED] wrote: Dear list I just checked out the last version of Kannel and got this error when compiling (it was the last line): gw/smsbox.c: In function 'init_smsbox': gw/smsbox.c:3358: error: 'bearerbox_is_sqlbox' undeclared (first use in this function) gw/smsbox.c:3358: error: (Each undeclared identifier is reported only once gw/smsbox.c:3358: error: for each function it appears in.) make: *** [gw/smsbox.o] Error 1 Any ideas on what it is? -- Eduardo Raad Gerente General Metromovil móvil + 593 9397 oficina + 593 42329455 x 1099 Av. 10 de Agosto 511 y Chimborazo Edificio Equinoxcorp, Piso 3 Guayaquil, Ecuador -- Eduardo Raad Gerente General Metromovil móvil + 593 9397 oficina + 593 42329455 x 1099 Av. 10 de Agosto 511 y Chimborazo Edificio Equinoxcorp, Piso 3 Guayaquil, Ecuador -- Best regards, Thomas mailto:[EMAIL PROTECTED]
Re: Re[3]: smsc message ID
Hi Tharanga, Perhaps you can put the script here for others to use if the need arise. Thanks. azlinux On Fri, Jun 13, 2008 at 5:37 PM, Tharanga [EMAIL PROTECTED] wrote: Hey guys, Finally i have successfully completed the mission of dilervery report nottifications using the unique dlr-url for each sms. if any one need it i can send my script. special thank goes to the seik and the mailing list members . thanks guys --Tharanga- - Original Message - From: seik [EMAIL PROTECTED] To: users@kannel.org Sent: Tuesday, June 10, 2008 2:33 PM Subject: Re[3]: smsc message ID each request, either to the send-sms interface, either the sql injection in the sqlbox send_sms table should be with its unique dlr-url value you may achieve that with adding some extra parameters in the dlr-url .. as i am repeating myself , read the post bellow... / track the value of smsID, you will see its identical in all the dlr-url values .. / -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 10 Юни 2008 г. To: seik Subject:smsc message ID M. Seik, How to set an unique drl-url per MT message De : [EMAIL PROTECTED] Date : 09/06/08 22:43:46 A : users@kannel.org Sujet : Re: smsc message ID you do not need the smsc id all you need is to set YOUR unique dlr-url per MT message to achieve that, add in the dlr-url something like MysmsID=6be1268d3d7d99e6ec99e9138e77d6ea make sure the value of the MysmsID sould is unique and use it to trace the status of the MT message. the db based dlr queue has nothing to do with the delivery reports per message ... it just saves the queue in a db, to avoid loss of data in case of OS crash ... example of dlr-url: http://localhost/dlr.pgsql.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts= %TsmsID=07fceb25372fcc4cb847c7099008500echarset=%Ckannel_id=%Ihttp://localhost/dlr.pgsql.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts=%TsmsID=07fceb25372fcc4cb847c7099008500echarset=%Ckannel_id=%I resulting dlr-url: 127.0.0.1 - - [09/Jun/2008:22:45:37 +0300] GET /dlr.pgsql.php?smscID=mteldlr=8answer=ACK%2Fto=%2B3591from=1916 ts=1213040737smsID=nonfd9c1ff6b66bc510c785ffac6fb0b754charset=ISO-8859-1k annel_id=a890dfe9-72a9-48db-b98d-cd7c533c5958 HTTP/1.1 200 1 - Kannel/cvs-20070627 127.0.0.1 - - [09/Jun/2008:22:45:45 +0300] GET /dlr.pgsql.php?smscID=mteldlr=1answer=id%3A0302419579+sub%3A001+dlvrd%3A00 1+submit+date%3A0806092245+done+date%3A0806092245+stat%3ADELIVRD+err%3A000+t ext%3ABlagodarim+Vi+za+Vasto=%2B3591from=1916ts=1213040745smsID= nonfd9c1ff6b66bc510c785ffac6fb0b754charset=ISO-8859-1kannel_id=41e9cd46-90 ad-4014-b08f-91d152fd0388 HTTP/1.1 200 1 - Kannel/cvs-20070627 i think you will deal from here -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 09 ??? 2008 ?. To: seik Subject:smsc message ID Hello everybody, I am currently working on getting delivery receipts on my dlr-url. When I query the sendsms cgi-bin interface : http://localhost/cgi-bin/sendsms?user=usernamepass=passwordfrom=xxxto =xxxsmsc=mysmsctext=some+textmclass=1dlr-mask=31dlr-url=http%3Ahttp://localhost/cgi-bin/sendsms?user=usernamepass=passwordfrom=xxxto=xxxsmsc=mysmsctext=some+textmclass=1dlr-mask=31dlr-url=http%3A %2F%2Flocalhost%2Fdlr.php%3Fid%3DArdn6lE4%26state%3D%25d%26smsid%3D%25I dlr-url looking like that: http://localhost/dlr.php?id=Ardn6lstate=%dsmsid=%I The %I only gives me the internal message ID kannel generated. I would like the actual (aggregator) smsc message ID On a side not, I am using a pgsql dlr queue, and I can see my message ID being stored into the ts (timestamp) field. Thank you for your help, Eric My...o? ? You...quoi ? Face...qui ?... Vous ne savez plus comment ?tre vous-m?me ? Pour Cr?er, Partager et enfin Gagner ... D?couvrez iDOO en vid?o
RE: Basic SMS tests
yes, it is a good way to know the maximum capacity of your system _ From: regme please [mailto:[EMAIL PROTECTED] Sent: vendredi 13 juin 2008 09:36 To: users@kannel.org Subject: Basic SMS tests Hello all. I'd like to make an all-local test system, that is with no real SMSC or phone. The idea is to see things happening just in the logs. How can I use the fake SMSC in order to inject messages? Thanks.
Http relay issue with kannel
Hello, I would like to achieve the following schema to send sms: app --- kannel gw 1--- php code I would like the php code is seen as another kannel gw by the kannel gw #1. In the php code, I wrote some code answering 0: Accepted for delivery or Sent. but the GW1 saw it as NACK and so make it as failed in the kannel database. I take a look in the kannel source and I found that in the /gw/smsc/smsc_http.c : static void kannel_parse_reply(SMSCConn *conn, Msg *msg, int status, List *headers, Octstr *body) { /* Test on three cases: * 1. an smsbox reply of an remote kannel instance * 2. an smsc_http response (if used for MT to MO looping) * 3. an smsbox reply of partly successful sendings */ if ((status == HTTP_OK || status == HTTP_ACCEPTED) (octstr_case_compare(body, octstr_imm(Sent.)) == 0 || octstr_case_compare(body, octstr_imm(Ok.)) == 0 || octstr_ncompare(body, octstr_imm(Result: OK),10) == 0)) { bb_smscconn_sent(conn, msg, NULL); } else { bb_smscconn_send_failed(conn, msg, SMSCCONN_FAILED_MALFORMED, octstr_duplicate(body)); } } So I assume kannel saw a good transmission when it receive a HTTP OK and a message like Sent. or Ok. Does I forget something ? Does someone got similar issue ? Regards