Re: Kannel Web Administration

2006-08-30 Thread fred



the admin commands are all http requests, you can roll your 
own web page with these requests embedded in it.
eg http://localhost:$port/status?password=$password"
 
read the manual, its documents all the requests "http 
administration"
 

  - Original Message - 
  From: 
  Divyesh Amipara 
  To: users@kannel.org 
  Sent: Wednesday, August 30, 2006 7:29 
  PM
  Subject: Kannel Web Administration
  
  
  Dear 
  All,
   
  Does any one have idea about how 
  to administrate Kannel using web based interface.
   
  It will be great if some one point 
  out webmin module or related package.
   
  I need all the configuration to be 
  done via interface not manually.
   
  Thanks,
  >> Divyesh 
  A.


Re: Kannel Log Parser

2006-08-30 Thread fred
heres a bit of perly parsing for access log, pipe it to the stdin
hope it helps to get you started to do what you want.


my %trDLRs;
$countMT=0;
$countMO=0;
$countDLRs=0;
while($line = ) 
{
 $linenum++;
 chop($line);
 if( $line =~ /Sent SMS/)
 {
  $countMT++;
 }
 if( $line =~ /Receive SMS/)
 {
  $countMO++;
 }
 if( $line =~ /DLR SMS/ ) 
 {
  $countDLRs++;

   @args = split(/\[/,$line);
   $i=0;
   $dlrinfo= 0;
   $tid = 0;
   foreach $ar (@args) 
   {
$args[$i] =~ s/\]//;
#print "'".$args[$i]."'\n";
if ($ar =~ /flags/) {
  @fields = split(/:/,$ar);
  $fields[5] =~ s/[ \t]//;
  if($fields[5] =~ /x.*/) {
 $dlrinfo = oct($fields[5]);
  }
  else {
$dlrinfo = int($fields[5]);
  }
}
if ($ar =~ /tid/) {
  @fields = split(/:/,$ar);
  $fields[1] =~ s/[ \t]//;
  $tid = int( $fields[1]); 
}
$i++;
   }

   if ($DEBUG) {print "tid=".$tid.",dlr=".$dlrinfo."\n";}

   if (exists($trDLRs{$tid})) 
   {
 $trDLRs{$tid} = $trDLRs{$tid} | $dlrinfo;
   }
   else
   {
 $trDLRs{$tid} =  $dlrinfo;
   }

 }

}



- Original Message - 
From: Divyesh Amipara 
To: users@kannel.org 
Sent: Wednesday, August 30, 2006 7:32 PM
Subject: Kannel Log Parser


Dear all,
 
Please if any one has kannel log parser written in perl or C, share it.
 
Will appreciate.
 
Thanks,
>> Divyesh A.



Re: problem in long messages

2006-08-30 Thread Jyothi rao
i got the problem solved.

i had given the max-messages=10 in the service configuration

but i had not given in sendsms-user conf.

that was the reason for the problem.



when i set it for the sendsms-user group, the messages were sent properly.



thanks for ur help.

--jyothi
On 8/26/06, Stipe Tolj <[EMAIL PROTECTED]> wrote:
Jyothi rao wrote:> Hi,>> I have a problem with sending long messages.> If I am sending messages longer than 160 characters then the message is> truncated and the receiving mobile
> is not able to get the complete message.>> I have set the concatenation parameter=true and the max-messages=10> can anyone say what may be the problem.can you please send us the PDUs of bearerbox.log
 in debig log-level for review...Stipe---Kölner Landstrasse 41940589 Düsseldorf, NRW, Germanytolj.org
 system architecture  Kannel Software Foundation (KSF)http://www.tolj.org/  http://www.kannel.org/mailto:
st_{at}_tolj.org   mailto:stolj_{at}_kannel.org- 
Jyothi Rao


Getting the PDU sequence number or any identification number..

2006-08-30 Thread Raul Martinez

My app will work as a middle-man.

diagram:

(1.1) user1-phone -> [smsc1] -> MYAPP -> [smsc2] -> user2-phone
(1.2) user2-phone <- [smsc1] <-  MYAPP <- [smsc2] <- user2-phone


(2.1) user3-phone -> [smsc1] -> MYAPP -> [smsc2] -> user2-phone
(2.2) user3-phone <- [smsc1] <-  MYAPP <- [smsc2] <- user2-phone



Is there a way to getting some sort of identification or sequence 
numbers so that I can identify whose number to send a messages coming 
from another number. Like in the diagram above, I will know that 
whenever user2-phone sends a reply (without special commands, just 
normal reply text) to a message sent by user3-phone it is user3-phone 
that will really receives it and not user1.






Kannel on CDMA

2006-08-30 Thread Real World
Hi .      How about , Kannel smsgateway & wapgateway behave on CDMA ? Can we use the same setup on CDMA as well ?     Thank you,  Mark. 
		Stay in the know. Pulse on the new Yahoo.com.  Check it out. 


Re: messages are sent or not

2006-08-30 Thread Alejandro Guerrieri

You should use DLR's for that. It's not part of sqlbox itself, sqlbox
it's just an alternate method to QUEUE messages, but not to DELIVER
them.

Hope it helps

On 8/29/06, Hofferek Attila <[EMAIL PROTECTED]> wrote:

Hi all!

How can I decide through sqlbox, if a message is really sent, and
positively acknowledged by remote smsc?
I saw, if a message is moved from send_sms to sent_sms means nothing,
from my point of view.

tia
--
Hofferek Attila





--
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/
LinkedIn: http://www.linkedin.com/in/aguerrieri



unsubscribe

2006-08-30 Thread Josué Marchiani








 

 


 
  
  
   



   
  
  World
  Tel Fax Electronics C. A.
  Josué Marchiani
  Ingeniero de Proyectos
  [EMAIL PROTECTED]
  tel: +58-212-9077330
  fax: +58-212-9760193
  mobile: +58-414-1295578
  http://www.wtfe.com 
  
 


 





-- 
Este mensaje ha sido analizado por 
MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.



unsubscribe

2006-08-30 Thread Juan Carlos Azogue Claure








 

 

 








Re: Missed call notification

2006-08-30 Thread Eric Carlson
On Wed, 30 Aug 2006 11:02:50 +0100, you wrote:

>I've used Kannel for OTA very sucessfully. Now I see some UK services
>(hotxt, txt2me) which push a "Missed call" message to the handset to
>alert the user to run an onboard java app to fetch their messages. The
>thing is, these are very low cost, in fact txt2me is totally free and
>doesn't even push ads. This suggests the missed call push is free, or
>they would use regular SMS which isn't. 
>
>So could anyone point me to the format of a missed call push and also
>does anyone know if they really are free/lower cost in the UK please?
>Thanks.

Hang on...isn't the message just a by product of the operators
recognising the call wasn't answered, so they send the SMS? And even
so, sometimes there is no message so the handset just shows "missed
call" with no SMS. They are "free" because the caller drops the call
just in time, i.e. after 1 ring exactly. So the question is how would
you do this in Kannel please?



Re: Push messages using java

2006-08-30 Thread Aarno Syvänen
Hi Kavuri, that is good. You really need only Contatet-Type headers .AarnoOn 30 Aug 2006, at 10:22, Kavuri Prasad wrote:Hi Aarno, I have solved my problem with some other (Kannel user) code. The problem is in sending the Headers. I can post the java code, if any one needs it.thanks,Prasad On 8/28/06, Aarno Syvänen <[EMAIL PROTECTED]> wrote: Hi Kavuri,indeed, if you send exactly same headers as test_ppg, and PPG does not accept them, your script language (?) does strange things with headers. Try tcpdump to see exactly what you are sending to PPG.AarnoOn 28 Aug 2006, at 10:39, Kavuri Prasad wrote: Dear Aarno,    My only problem with Headers. I am trying to add headers in the same format as test_ppg do. But I am not sure whether my Java application processing it properly or not.    I am getting    WARNING : PPG: headers_acceptable : got unacceptable push headers   WARNING : PPG: Unparsable push headers, the request unacceptable.    I strongly beleive that it is some thing to work on sending headers properly.    thanks, Prasad  

Re: CMS Error help !

2006-08-30 Thread Tristan Koen
Hi Vaibhav,I had a similar problem using the AT driver when using a Sony Ericsson T68i. When I set the phone to send SMS messages via GPRS, I got the error (CMS 500). When I changed the phone settings to send the messages using GSM, the problem went away and everything worked fine *shrug*. OK, so message transmission over GSM is quite a bit slower than GPRS, but I have a number of old T68 phones that I can throw at the probkem ;o)Regards,TristanVaibhav Solanki <[EMAIL PROTECTED]> wrote: Hi all,   My Falcom (Samba55 USB) finally got connected to the box... But theres another error which am not able to rectify.   While sending sms i get: 2006-08-22 17:58:53 [4053] [10] DEBUG: boxc_receiver: sms received2006-08-22
 17:58:54 [4053] [10] DEBUG: send_msg: sending msg to box: <127.0.0.1>2006-08-22 17:58:56 [4053] [8] DEBUG: AT2[/dev/ttyUSB0]: TP-Validity-Period:  24.0 hours2006-08-22 17:58:56 [4053] [8] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CMGS=14^M2006-08-22 17:58:56 [4053] [8] DEBUG: AT2[/dev/ttyUSB0]: <-- >2006-08-22 17:58:56 [4053] [8] DEBUG: AT2[/dev/ttyUSB0]: send command status: 1 2006-08-22 17:58:56 [4053] [8] DEBUG: AT2[/dev/ttyUSB0]: --> 11000A818962200364A701332006-08-22 17:58:56 [4053] [8] DEBUG: AT2[/dev/ttyUSB0]: --> ^Z2006-08-22 17:58:56 [4053] [8] DEBUG: AT2[/dev/ttyUSB0]: <-- > 2006-08-22 17:58:56 [4053] [8] DEBUG: AT2[/dev/ttyUSB0]: <-- +CMS ERROR: 5002006-08-22 17:58:56 [4053] [8] ERROR: AT2[/dev/ttyUSB0]: CMS ERROR: +CMS ERROR: 500 (Unknown error. -> maybe Sim storage is full? I'll have a look at it.)    I checked the SIM storage and tried
 other SIM also, but same error   Pls help  
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates. 
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

Missed call notification

2006-08-30 Thread Eric Carlson
I've used Kannel for OTA very sucessfully. Now I see some UK services
(hotxt, txt2me) which push a "Missed call" message to the handset to
alert the user to run an onboard java app to fetch their messages. The
thing is, these are very low cost, in fact txt2me is totally free and
doesn't even push ads. This suggests the missed call push is free, or
they would use regular SMS which isn't. 

So could anyone point me to the format of a missed call push and also
does anyone know if they really are free/lower cost in the UK please?
Thanks.




Re: Kannel Log Parser

2006-08-30 Thread Mihai Zsigmond



Hi,
 
You can find such a parser  written in perl in 
the distribution of Kannel in the test folder.
 
Mihai

  - Original Message - 
  From: 
  Divyesh Amipara 
  To: users@kannel.org 
  Sent: Wednesday, August 30, 2006 12:32 
  PM
  Subject: Kannel Log Parser
  
  
  Dear 
  all,
   
  Please if any one has kannel log 
  parser written in perl or C, share it.
   
  Will 
  appreciate.
   
  Thanks,
  >> Divyesh 
  A.


Kannel Log Parser

2006-08-30 Thread Divyesh Amipara








Dear all,

 

Please if any one has kannel log parser written in perl or
C, share it.

 

Will appreciate.

 

Thanks,

>> Divyesh A.








Kannel Web Administration

2006-08-30 Thread Divyesh Amipara








Dear All,

 

Does any one have idea about how to administrate Kannel
using web based interface.

 

It will be great if some one point out webmin module or
related package.

 

I need all the configuration to be done via interface not
manually.

 

Thanks,

>> Divyesh A.








Re: problem in long messages

2006-08-30 Thread Kavuri Prasad
Can you post us your Kannel.conf. and services.conf
On 8/26/06, Jyothi rao <[EMAIL PROTECTED]> wrote:

Hi,I have a problem with sending long messages.If I am sending messages longer than 160 characters then the message is truncated and the receiving mobileis not able to get the complete message.
I have set the concatenation parameter=true and the max-messages=10can anyone say what may be the problem.--  
Jyothi Rao -- Thanks,Prasad KavuriSoftware ConsultantMobile Lifestyle Sdn. Bhd.Unit F10 Block 3 (2320)Century Square
63000 CyberjayaMalaysia.Tel: +60 3 8318 6691Fax:+60 3 8318 7760HP: +60 12 927 4711 


Re: Java Code

2006-08-30 Thread Kavuri Prasad
Hi Hillel, 
 
Do you need the java code for WAP PUSH? If so here it is:
 
-- Java code for wap push
public boolean execute(String jar_url, String mobile) {     if (null == mobile) {    Log.debug("[Prasad] Unable to send message! target number is null!");    return false;
    }    String content = generateContent(jar_url, mobile);    try {
   String push_url = "localhost:8080/.jar";    push_url = push_url + "?username=" + username + "&password="    + password;     URL url = "" URL(push_url);
    URLConnection connection = url.openConnection();    connection.setDoInput(true);    connection.setDoOutput(true);    connection.setUseCaches (false);    connection
    .setRequestProperty("Content-Type",    "multipart/related; boundary=asdlfkjiurwgasf; type=application/xml");    DataOutputStream output = new DataOutputStream(connection 
    .getOutputStream());    output.writeBytes(content);    output.flush();    output.close();    BufferedReader input = new BufferedReader(new InputStreamReader( 
    connection.getInputStream()));    boolean responseOK = false;    String response = null;    while ((response = input.readLine()) != null) {    System.out.println
 (response);    if (response.indexOf("1001") != -1) {    responseOK = true;    }    }    if (!responseOK) {     Log.debug
("PPG did not accept the message");    return false;    }     } catch (MalformedURLException e) {    // TODO Auto-generated catch block    e.printStackTrace
();    return false;    } catch (IOException e) {    // TODO Auto-generated catch block     e.printStackTrace();    return false;    }    return true;
    } private String generateContent(String jar_url, String mobile) {    Random ran = new Random(10);    int num = ran.nextInt();    String pid = "foodreg@" + num + ".com";
    //Dates for SMS validation    Date cDate = new Date();    SimpleDateFormat format = new SimpleDateFormat("-MM-dd");     String fDate = format.format(cDate);    int i = 
cDate.getYear()+1900;    GregorianCalendar gc = new GregorianCalendar(i, cDate.getMonth(), cDate.getDay());  gc.add(GregorianCalendar.DATE , 60);  Date tempDate = gc.getTime();//  DateFormat df = 
DateFormat.getDateInstance();   String afterDate = format.format(tempDate);    // appending message    StringBuffer buffer = new StringBuffer();     buffer    .append("--asdlfkjiurwgasf\r\n")
    .append("Content-Type: application/xml\r\n\r\n")    .append("\r\n")     .append("    .append("\"http://www.wapforum.org/DTD/pap_1.0.dtd\">\r\n")    .append("\r\n")
    .append("    .append(pid.trim())    .append(     "\"\r\n deliver-before-timestamp="+afterDate+"\"T06:45:00Z\" \r\n")
    .append("deliver-after-timestamp="+cDate+"\"T06:45:00Z\" ")     .append("progress-notes-requested=\"true\">\r\n")    .append("    .append(mobile)    .append("/TYPE=PLMN\"/>\r\n")     .append(    "") 
    .append("\r\n")    .append("\r\n\r\n")    .append("--asdlfkjiurwgasf\r\n")    .append("Content-Type: text/vnd.wap.si\r\n\r\n") 
    .append("\r\n")    .append(    "    .append("\" http://www.wapforum.org/DTD/si.dtd\">\r\n").append(    "\r\n").append(
    "    pid).append("\" href="" 
    .append("Download the Foodreg Application").append(    "\r\n").append("\r\n").append(    "--asdlfkjiurwgasf--\r\n\r\n"); 
    // .append("--multipart-boundary--\r\n"); return buffer.toString();    } 
On 8/30/06, Hillel <[EMAIL PROTECTED]> wrote:
Hi,Yes, please send the Java code.  Do you know were you can findspecifications on the headers.
Thanks


Java Code

2006-08-30 Thread Hillel
Hi,

Yes, please send the Java code.  Do you know were you can find
specifications on the headers.

Thanks





Re: Push messages using java

2006-08-30 Thread Kavuri Prasad
Hi Aarno, I have solved my problem with some other (Kannel user) code. The problem is in sending the Headers. I can post the java code, if any one needs it.thanks,Prasad
On 8/28/06, Aarno Syvänen <[EMAIL PROTECTED]> wrote:
Hi Kavuri,indeed, if you send exactly same headers as test_ppg, and PPG does not accept them, your script language (?) does strange things with headers. Try tcpdump to see exactly
what you are sending to PPG.AarnoOn 28 Aug 2006, at 10:39, Kavuri Prasad wrote:
Dear Aarno,    My only problem with Headers. I am trying to add headers in the same format as test_ppg do. But I am not sure whether my Java application processing it properly or not. 
   I am getting    WARNING : PPG: headers_acceptable : got unacceptable push headers   WARNING : PPG: Unparsable push headers, the request unacceptable. 
  I strongly beleive that it is some thing to work on sending headers properly.    thanks, Prasad