Re: delivery report-unsolicited message getting submitted to the SMSC

2003-11-06 Thread Andreas Fink

On 05.11.2003, at 08:13, Gagan Chadha wrote:

Thanks a ton for your help Mr Ian.

The problem seems to be resolved now. However I am gettign another thing
now..
2003-11-06 09:43:09 [1] ERROR: Error reading from fd 28:
2003-11-06 09:43:09 [1] ERROR: System error 104: Connection reset by peer

this simply means your TCP connection to the SMSC got interrupted.
Can be because of a timeout on a firewall or a timeout by the SMSC.
Try using keepalives, check your firewall config etc.
Kannel will reconnect in such a case.
x-tad-smallerAndreas Fink
Global Networks Switzerland AG

--
Tel: +41-61-333  Fax: +41-61-334   Mobile: +41-79-2457333
Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland
Web: http://www.global-networks.ch/  [EMAIL PROTECTED]
--

/x-tad-smaller


Off topic'ish billing question

2003-11-06 Thread DILWORTH MICHAEL
Hi all

Perhaps this is a bit off topic, so my apologies.

I am researching into doing some real time billing type work within
kannel for SMS.  Now, the environment is an OPSC from orga systems.  I
have very limited docs at the moment but I have stumbled across
something called real time IN-billing, which seems like some form of low
level socket interface. It looks promising but lack of info is a
problem.

I am wondering if anyone out there has any info on this sort of thing,
or can point my in any useful direction, and thereby speed up my
research work.

Tia

mike



SS7 box

2003-11-06 Thread Alex Kinch



Haven't even begun to look into SS7 yet, but is 
there a plan fora SS7 box for Kannel? I know we're still waiting on SMPP 
box (subtle nudge in Stipe's direction) but thought I'd ask.

Alex


Re: SS7 box

2003-11-06 Thread Steve Kennedy
On Thu, Nov 06, 2003 at 03:08:42PM -, Alex Kinch wrote:

 Haven't even begun to look into SS7 yet, but is there a plan for a SS7 box for
 Kannel? I know we're still waiting on SMPP box (subtle nudge in Stipe's
 direction) but thought I'd ask.

What would a SS7box do ? Having something that supports SS7 is all and
well, but it's the bits that sit on top (like MAP for SMS) that would
need implementing ?


Steve

-- 
NetTek Ltd Phone/Fax +44-(0)20 7483 2455
SMS steve-pager (at) gbnet.net [body] gpg 1024D/468952DB 2001-09-19



AW: SS7 box

2003-11-06 Thread Jörg Pommnitz



To 
quote http://www.openss7.org/:

This is an 
opensource development project (called OpenSS7) to provide a robust and GPL'ed 
SS7 and SIGTRAN stack for Linux and other UN*X operating systems. Perhaps we 
should have called it LinuxSS7, or SS7-For-The-Common-Man, or 
SS7-For-The-Rest-Of-Us, but we're kinda attached to the name OpenSS7 as this is 
an opensource project. 

  -Ursprüngliche Nachricht-Von: Alex Kinch 
  [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 6. November 2003 
  16:27An: Steve Kennedy; [EMAIL PROTECTED]Betreff: Re: SS7 
  box
  Suppose so, but thought I'd ask anyway while I 
  was thinking about it. When it comes to SS7 I'm not really up to speed on it.. 
  maybe some kind soul would take time to explain it to me in exchange for a 
  couple of beers (Steve?!) :-)
  
  Alex
  
- Original Message - 
From: 
Steve Kennedy 
To: [EMAIL PROTECTED] 
Sent: Thursday, November 06, 2003 3:12 
PM
Subject: Re: SS7 box
On Thu, Nov 06, 2003 at 03:08:42PM -, Alex Kinch 
wrote: Haven't even begun to look into SS7 yet, but is there a 
plan for a SS7 box for Kannel? I know we're still waiting on SMPP 
box (subtle nudge in Stipe's direction) but thought I'd 
ask.What would a SS7box do ? Having something that supports SS7 is 
all andwell, but it's the bits that sit on top (like MAP for SMS) that 
wouldneed implementing ?Steve-- NetTek Ltd 
Phone/Fax +44-(0)20 7483 2455SMS steve-pager (at) gbnet.net [body] gpg 
1024D/468952DB 2001-09-19


AW: SS7 box

2003-11-06 Thread Jörg Pommnitz



And http://www.openss7.com/has all 
the services on top of
SS7: Home Location Register, Short Message Service Center, IN 
(800/CNAM/CLASS/LIDB),
Local 
Number Portability, ENUM/NAPTR, OpenSwitch SoftSwitch

Regards
 
Joerg

  -Ursprüngliche Nachricht-Von: Jörg Pommnitz 
  Gesendet: Donnerstag, 6. November 2003 16:57An: 'Alex 
  Kinch'; [EMAIL PROTECTED]Betreff: AW: SS7 box
  To 
  quote http://www.openss7.org/:
  
  This is an 
  opensource development project (called OpenSS7) to provide a robust and GPL'ed 
  SS7 and SIGTRAN stack for Linux and other UN*X operating systems. Perhaps we 
  should have called it LinuxSS7, or SS7-For-The-Common-Man, or 
  SS7-For-The-Rest-Of-Us, but we're kinda attached to the name OpenSS7 as this 
  is an opensource project. 
  
-Ursprüngliche Nachricht-Von: Alex Kinch 
[mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 6. November 2003 
16:27An: Steve Kennedy; [EMAIL PROTECTED]Betreff: Re: 
SS7 box
Suppose so, but thought I'd ask anyway while I 
was thinking about it. When it comes to SS7 I'm not really up to speed on 
it.. maybe some kind soul would take time to explain it to me in exchange 
for a couple of beers (Steve?!) :-)

Alex

  - Original Message - 
  From: 
  Steve Kennedy 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, November 06, 2003 
  3:12 PM
  Subject: Re: SS7 box
  On Thu, Nov 06, 2003 at 03:08:42PM -, Alex Kinch 
  wrote: Haven't even begun to look into SS7 yet, but is there a 
  plan for a SS7 box for Kannel? I know we're still waiting on SMPP 
  box (subtle nudge in Stipe's direction) but thought I'd 
  ask.What would a SS7box do ? Having something that supports SS7 is 
  all andwell, but it's the bits that sit on top (like MAP for SMS) that 
  wouldneed implementing ?Steve-- NetTek Ltd 
  Phone/Fax +44-(0)20 7483 2455SMS steve-pager (at) gbnet.net [body] gpg 
  1024D/468952DB 
2001-09-19


RE: PANIC: gwlib/octstr.c ...

2003-11-06 Thread Igor Ivoilov
I have added debug output to octstr_case_search() (see below) 
and got the following just before the crash

2003-11-06 17:50:48 [7] DEBUG: octstr_case_search: haystack check: Accept: 
application/vnd.wap.wtls-ca-certificate, text/plain, text/x-vCard, text/x-vCalendar, 
application/vnd.wap.wmlc, application/vnd.wap.wmlscriptc, 
application/x-wap-prov.browser-settings, application/x-nokia.settings, 
application/vnd.wap.wtls-ca-certificate
2003-11-06 17:50:48 [7] DEBUG: length: 261 : 261, 262 - 0
2003-11-06 17:50:48 [7] PANIC: gwlib/octstr.c:2165: seems_valid_real: Assertion 
`ostr-data[ostr-len] == '\0'' failed. (Called from 
gwlib/octstr.c:928:octstr_case_search.)


Don't understand how it is possible 
Any ideas?

Igor

--
int octstr_case_search(Octstr *haystack, Octstr *needle, long pos)
{
long i, j;
int c1, c2;

debug(gwlib.octstr, 0, octstr_case_search: haystack check: \%s\, 
octstr_get_cstr(haystack));
debug(gwlib.octsrt, 0, length: %u : %u, %u - %u,
strlen(octstr_get_cstr(haystack)),
haystack-len,haystack-size,
(unsigned)haystack-data[haystack-len]);
seems_valid(haystack);
debug(gwlib.octstr, 0, octstr_case_search: neddle check: \%s\, 
octstr_get_cstr(needle));
seems_valid(needle);
gw_assert(pos = 0);

/* Always find an empty string */
if (needle-len == 0)
return 0;

for (i = pos; i = haystack-len - needle-len; ++i) {
for (j = 0; j  needle-len; ++j) {
c1 = toupper(haystack-data[i + j]);
c2 = toupper(needle-data[j]);
if (c1 != c2)
break;
}
if (j == needle-len)
return i;
}

return -1;
}

 -Original Message-
 From: Alexander Malysh [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 03, 2003 11:32 PM
 To: Igor Ivoilov; [EMAIL PROTECTED]
 Subject: Re: PANIC: gwlib/octstr.c ...
 
 
 Hi Igor,
 
 unfortunately I'm not a wap expert :( Your bug is known one 
 and was reported 
 already. The bug #95 was reopened again...
 
 Thanks a lot for backtrace!
 
 On Monday 03 November 2003 19:26, Igor Ivoilov wrote:
  That gives
 
  #0  0x080bfb72 in gw_panic ()
  #1  0x080c6c70 in seems_valid_real ()
  #2  0x080c39a7 in octstr_case_search ()
  #3  0x080bd806 in http_something_accepted ()
  #4  0x080bd851 in http_type_accepted ()
  #5  0x08051b3b in return_reply ()
  #6  0x08051e62 in return_replies_thread ()
  #7  0x080b635f in new_thread ()
  #8  0x4009eb9c in pthread_start_thread (arg=0x43b7dbe0) at 
 manager.c:259
 



Re: SS7 box

2003-11-06 Thread James Ewing




The OpenSS7 (http://www.openss7.org) project has had plans to integrate
kannel with SS7 and a MAP layer to create a full fledged open source
SMSC for some time now. You should take a look at the project page for
updates and contact the project coordinator for the current status.

SS7 is pretty hairy (read brain damaged) in the lower layers, but the
MAP pieces float on top are basically an application API encoded in
ASN.1 (same as encoding SSL X509 certs). In 3G most of the lower layers
are replaced by TCP/IP with MAP pretty much unchaged AFAIK.

An open source SMSC would be a very useful thing to achieve.

James Ewing

Alex Kinch wrote:

  
  
  
  Suppose so, but thought I'd ask
anyway while I was thinking about it. When it comes to SS7 I'm not
really up to speed on it.. maybe some kind soul would take time to
explain it to me in exchange for a couple of beers (Steve?!) :-)
  






Re: SS7 box

2003-11-06 Thread Steve Kennedy
On Thu, Nov 06, 2003 at 05:01:07PM +0100, Jörg Pommnitz wrote:

 And http://www.openss7.com/ has all the services on top of
 SS7: Home Location Register, Short Message Service Center, IN (800/CNAM/CLASS/
 LIDB),
 Local Number Portability, ENUM/NAPTR, OpenSwitch SoftSwitch

Most aren't quite there yet though ...


Steve

-- 
NetTek Ltd Phone/Fax +44-(0)20 7483 2455
SMS steve-pager (at) gbnet.net [body] gpg 1024D/468952DB 2001-09-19



Re: WARNING: Cannot find SMSCConn , version: kannel-cvs

2003-11-06 Thread Jarlco
hmmm I hope response if low cause no one looked at this yet :p (I'm getting
worried... :s )

but if no one can understand the problem I'm adding some more info about it
below:
(refer to previous post for earlier info on problem)

when I recieve a message this happens in the boxes:
---

2003-11-06 23:48:03 [7] DEBUG: AT2[wavecom_1]: -- +CMT: ,23
2003-11-06 23:48:03 [7] DEBUG: AT2[wavecom_1]: -- 
0791449737019037040C914487616320013011603254440004EE37BC0C
2003-11-06 23:48:03 [7] DEBUG: AT2[wavecom_1]: Numeric sender
(international) +MYNUMBER
2003-11-06 23:48:03 [7] DEBUG: AT2[wavecom_1]: -- AT+CNMA^M
2003-11-06 23:48:03 [10] DEBUG: send_msg: sending msg to box: 127.0.0.1
2003-11-06 23:48:03 [10] DEBUG: boxc_sender: sent message to 127.0.0.1
2003-11-06 23:48:03 [9] DEBUG: boxc_receiver: sms received
2003-11-06 23:48:03 [9] WARNING: Cannot find SMSCConn for message to
+MYNUMBER, rejected.
2003-11-06 23:48:03 [9] WARNING: Message rejected by bearerbox, no router!
2003-11-06 23:48:03 [9] DEBUG: send_msg: sending msg to box: 127.0.0.1
2003-11-06 23:48:03 [9] DEBUG: boxc_receiver: got ack
2003-11-06 23:48:03 [1] DEBUG: Dumping 1 messages and 1 acks to store
2003-11-06 23:48:04 [7] DEBUG: AT2[wavecom_1]: -- OK
2003-11-06 23:48:07 [0] DEBUG: Main Thread: Nothing todo.
2003-11-06 23:48:17 [0] DEBUG: Main Thread: Nothing todo.
2003-11-06 23:48:27 [0] DEBUG: Main Thread: Nothing todo.
2003-11-06 23:48:32 [9] DEBUG: boxc_receiver: heartbeat with load value 0
received




-



gw/smsbox gw/update.conf
2003-11-06 23:46:02 [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0
2003-11-06 23:46:02 [0] DEBUG: Kannel smsbox version `cvs-20031101'.
System Linux, release 2.4.20-gentoo-r6, version #1 Fri Sep 26 23:43:56 BST
2003, machine i686.
Hostname jarlco, IP 192.168.0.10.
Libxml version 20508.
Using OpenSSL 0.9.6k 30 Sep 2003.
Using MySQL 4.0.14.
Using native malloc.

2003-11-06 23:46:02 [0] INFO: HTTP: Opening server at port 13013.
2003-11-06 23:46:02 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2003-11-06 23:46:02 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2003-11-06 23:46:02 [0] INFO: Set up send sms service at port 13013
2003-11-06 23:46:02 [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
2003-11-06 23:46:02 [0]
DEBUG: --
2003-11-06 23:46:02 [0] DEBUG: Kannel smsbox version cvs-20031101 starting
2003-11-06 23:46:02 [0] DEBUG: Started thread 4
(gw/smsbox.c:obey_request_thread)
2003-11-06 23:46:02 [0] DEBUG: Started thread 5
(gw/smsbox.c:url_result_thread)
2003-11-06 23:46:02 [0] DEBUG: Started thread 6
(gw/smsbox.c:http_queue_thread)
2003-11-06 23:46:02 [0] INFO: Connected to bearerbox at localhost port
13001.
2003-11-06 23:46:02 [0] DEBUG: Started thread 7
(gw/heartbeat.c:heartbeat_thread)
2003-11-06 23:46:30 [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
2003-11-06 23:46:30 [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms
from 127.0.0.1
2003-11-06 23:46:30 [3] INFO: sendsms used by jarl
2003-11-06 23:46:30 [3] DEBUG: Status: 400 Answer: Sender missing and no
global set, rejected
2003-11-06 23:46:30 [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
2003-11-06 23:48:03 [4] INFO: Starting to service nope from +MYNUMBER to
1234
2003-11-06 23:48:03 [4] DEBUG: formatted text answer: default
2003-11-06 23:48:03 [4] DEBUG: message length 14, sending 1 messages







and when I try:
http://localhost:13013/cgi-bin/sendsms?username=jarlpassword=xto=07816360210text=Hello+jarl
I get: Sender missing and no global set, rejected

my config file looks like this:
--
group = core
admin-port = 13000
admin-password = bar
smsbox-port = 13001
store-file = /tmp/kannel.store
log-level = 2
log-file = /tmp/kannel.log
access-log = /tmp/kannel.access
dlr-storage = mysql

# SMSC CONNECTIONS

group = smsc
smsc = at
smsc-id = wavecom_1
allowed-smsc-id = wavecom_1
modemtype = wavecom
device = /dev/ttyS0
speed = 9600


# MODEM GROUP

group = modems
id = wavecom
name = Wavecom
detect-string = WAVECOM

# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-url = /cgi-bin/sendsms
sendota-url = /cgi-bin/sendota
sendsms-chars = 0123456789 +-
global-sender = 079
reply-couldnotfetch = Sorry, service was unable to fetch content...
reply-couldnotrepresent = Sorry, real message could not be represented as
SMS
reply-requestfailed = Sorry, the request failed
reply-emptymessage = Empty SMS was recieved
log-file = /tmp/smsbox.log
access-log = /tmp/kannel.access
log-level = 3

# SEND SMS USER CONFIG

group = sendsms-user
username = jarl
password = cornell

group = sendsms-user
username = tester
password = foobar

# SMS SERVICE

group = sms-service
keyword = xxx
aliases = af;ta;argh;tsk
name = 

RE: delivery report-unsolicited message getting submitted to the SMSC

2003-11-06 Thread Gagan Chadha

Thanks a ton for your help Mr Ian.

The problem seems to be resolved now. However I am gettign another thing
now..
2003-11-06 09:43:09 [1] ERROR: Error reading from fd 28:
2003-11-06 09:43:09 [1] ERROR: System error 104: Connection reset by peer

Whenever I am sending a message, this is the error that is coming in my
Bearerbox log, the SMSbox log seems to be workign fine.

DOes any one have any clue in this regard.

Many thanks in advance for your help.

Kind regards,
Gagan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Ian Cass
Sent: 05 November 2003 20:48
To: Gagan Chadha; Users(Kannel)
Cc: Devel-Kannel; [EMAIL PROTECTED]
Subject: Re: delivery report-unsolicited message getting submitted to
the SMSC


Gagan Chadha wrote:
 Hello ALL
 I am facing a very strange problem(as such all problems are strange;))
 I am connecting to SMPP based SMSC. The message is going fine and is
 getting delivered without problem. Althought when i am recieving a
 delivery report, automatically a message is getting pushed..
 They are sendng me delivery report using delivery report standard of
 SMPP as per them.

They are not setting the esm_class on the delivery report, therefore it
looks like an MO.

--
Ian Cass