Re: Message rejected by bearerbox, no router!

2005-03-31 Thread Dejan Markic
Hello!
It seems that Kannel cannot open any ports for listening. Check what is 
listening on ports 13000 and 13001.

Cheers,
Dejan
- Original Message - 
From: "Allan hank" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, March 31, 2005 9:37 AM
Subject: Message rejected by bearerbox, no router!


Hello Kannel Users,
My Kannel has developed a problem!
I had removed the Nokia premicell from my FreeBSD 4.9 running kannel
1.2.1 but when i put it back and rebooting, i can no longer send
smses.
Below is what i see in kannel.org
I'll be grateful for all the help provided.
Wilson
-
2005-03-31 10:02:53 [0] INFO: Added logfile
`/var/log/kannel/kannel.log' with level `0'.
2005-03-31 10:02:53 [0] INFO: Started access logfile
`/var/log/kannel/access.log'.
2005-03-31 10:02:53 [0] INFO: SSL not supported, no SSL initialization 
done.
2005-03-31 10:02:53 [0] DEBUG: HTTP: Opening server at port 13000.
2005-03-31 10:02:53 [0] ERROR: bind failed
2005-03-31 10:02:53 [0] ERROR: System error 48: Address already in use
2005-03-31 10:02:53 [0] DEBUG: Started thread 1 
(gw/bb_http.c:httpadmin_run)
2005-03-31 10:02:53 [0] DEBUG: starting smsbox connection module
2005-03-31 10:02:53 [0] DEBUG: Started thread 2 (gw/bb_boxc.c:smsboxc_run)
2005-03-31 10:02:53 [0] INFO: AT2[/dev/cuaa1]: configuration shows
modemtype 
2005-03-31 10:02:53 [0] DEBUG: AT2[/dev/cuaa1]: Reading modem
definitions from 
2005-03-31 10:02:53 [0] DEBUG: AT2[/dev/cuaa1]: Found <1> modems in config
2005-03-31 10:02:53 [0] INFO: AT2[/dev/cuaa1]: read modem definition
for 
2005-03-31 10:02:53 [0] DEBUG: Started thread 3
(gw/smsc/smsc_at2.c:at2_device_thread)
2005-03-31 10:02:53 [0] DEBUG: Started thread 4 
(gw/bb_smscconn.c:sms_router)
2005-03-31 10:02:53 [0] INFO: 
2005-03-31 10:02:53 [0] INFO: Kannel bearerbox II version 1.2.1 starting
2005-03-31 10:02:53 [1] DEBUG: HTTP: No clients with requests, quitting.
2005-03-31 10:02:53 [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) 
terminates.
2005-03-31 10:02:53 [2] ERROR: bind failed
2005-03-31 10:02:53 [2] ERROR: System error 48: Address already in use
2005-03-31 10:02:53 [2] PANIC: Could not open smsbox port 13001
2005-03-31 10:15:36 [7] DEBUG: boxc_receiver: sms received
2005-03-31 10:15:36 [7] WARNING: Cannot find SMSCConn for message to
<+25671888991>, rejected.
2005-03-31 10:15:36 [7] WARNING: Message rejected by bearerbox, no router!

-



Re: sendsms script problems

2005-03-31 Thread Aarno Syvänen
What are your allowed smsc and forced sms parameters. Error means
that bearerbox cannot find a smsc to send the message.
Aarno
On 31.3.2005, at 09:54, Dejan Markic wrote:
Hey!
Nobody knows anything about this, or am I missing something here?
Kind regards,
Dejan
- Original Message - From: "Dejan Markic" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 29, 2005 10:24 AM
Subject: sendsms script problems

Hello!
I'm now using Kannel (1.4.0) for quite some time, still in testing 
though, as the SMS gateway and I have stumbled upon a problem.
When I disable the SMSC Connection the smssend script still returns 
HTTP status 202 altough I see in the bearerbox log file that the 
message was rejected because there is no 'router'.
Actual message from log file:
2005-03-29 10:13:23 [17243] [13] WARNING: Cannot find SMSCConn for 
message to , rejected.
2005-03-29 10:13:23 [17243] [13] WARNING: Message rejected by 
bearerbox, no router!
I was trying to implement somekind of failover, if kannel would 
report it cannot send the message, I would send it through other 
methods, but I receive OK status altough kannel will not send it.
Can I do something about this?!

Thanks for your input!
Kind regards,
Dejan




Re: sendsms script problems

2005-03-31 Thread Dejan Markic
Hello!
Well yes, that I know, I intentionaly disconnected it. The real problem is 
that the sendsms script still produces HTTP Status 202, which means that the 
message was sent, but it is not - and it is also not after I connect the 
SMSC back.

Thanks for your input!
Kind regards,
Dejan
- Original Message - 
From: "Aarno Syvänen" <[EMAIL PROTECTED]>
To: "Dejan Markic" <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, March 31, 2005 10:07 AM
Subject: Re: sendsms script problems


What are your allowed smsc and forced sms parameters. Error means
that bearerbox cannot find a smsc to send the message.
Aarno
On 31.3.2005, at 09:54, Dejan Markic wrote:
Hey!
Nobody knows anything about this, or am I missing something here?
Kind regards,
Dejan
- Original Message - From: "Dejan Markic" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 29, 2005 10:24 AM
Subject: sendsms script problems

Hello!
I'm now using Kannel (1.4.0) for quite some time, still in testing 
though, as the SMS gateway and I have stumbled upon a problem.
When I disable the SMSC Connection the smssend script still returns HTTP 
status 202 altough I see in the bearerbox log file that the message was 
rejected because there is no 'router'.
Actual message from log file:
2005-03-29 10:13:23 [17243] [13] WARNING: Cannot find SMSCConn for 
message to , rejected.
2005-03-29 10:13:23 [17243] [13] WARNING: Message rejected by bearerbox, 
no router!
I was trying to implement somekind of failover, if kannel would report 
it cannot send the message, I would send it through other methods, but I 
receive OK status altough kannel will not send it.
Can I do something about this?!

Thanks for your input!
Kind regards,
Dejan





testing kannel

2005-03-31 Thread AKSHAY

hi

 friends


i  am  using older  versions  of  kannel eg 0.6 , 0.5
as new versions  are not running on my system 
i have managed to get the bearer box . + wap  box running
but  when  i tested to wap  gateway using fakewap  
 using an eg  --->fakewap -v  myport  hostconect  porttocoonect  10  1 0 http://somwebsite/wml   

it showed something like
packet sent 10 00 01 ..
rev() from  failed <---what does  this maean
some ...wsp_wtp error



can some  one please help me  out
if  the authors can plz  help  me




.



this is aki signing off.



error code 0x00000058 in response to submit_sm

2005-03-31 Thread Russel Stromin
Hi All

We see this in our logs:

"SMSC returned error code 0x0058 in response to submit_sm"

We believe this is a throttling error...

The SMSC group config has:

throughput=3
max-pending-submits=100
smsc=smpp

We have tried many combinations of the throughput and max-pending-submit
tags parameters, but assume that this varies from operator to operator and
as yet have not really found an optimum for this particular operator.

When  this "throttling error" occurs ... what is the behavior  of Kannel ...
will it retry this submit_sm or ???

Cheerio

Russel




RE: SQLBox Patch Download

2005-03-31 Thread Rene Kluwen
Try this one:

http://www.chimit.nl/kannel/sqlbox_patch-20041031.tar

Meanwhile I am waiting to get CVS access so the patch can be in it's own
home.

Rene Kluwen
Chimit 

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens David
E. Meier
Verzonden: dinsdag 29 maart 2005 17:18
Aan: users@kannel.org
Onderwerp: SQLBox Patch Download

Hi list,

where can I download the latest patch containing the sqlbox? The previously
published link: http://www.chimit.nl/kannel/ seems to be invalid.

Dave







manage at smsc

2005-03-31 Thread info.ubichip IMAP


Hello,

I'm searching some source code in order to manage prepaid card (ability to
know when credit is null, or billing feature) for use with kannel with smsc
AT modem. Does someone has some ideas or have some experience in it ?

I m' looking too for account billing source code in order to manage
different user ?

Thanks for your answer

Regards




SQLBOX question

2005-03-31 Thread info.ubichip IMAP



Hello,

I'm using kannel with sqlbox. I well understand the table sent_sms but I
don't have any documentation regarding send_sms table. Do someone could
please  give me some information and example to use it ?

Regards




Re: error code 0x00000058 in response to submit_sm

2005-03-31 Thread Rodrigo Cremaschi
Hi Russel,
   It is a throttling error (according to SMPP Protocol Specification v.3.4 
you have exceeded the message limit and SMSC cannot accept more requests). 
I don't think this is a throughput problem. Talk to your SMSC and ask them 
what kind of limitations they impose on your SMPP connection.

   Hope this will help you. Regards,
Rodrigo.
- Original Message - 
From: "Russel Stromin" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, March 31, 2005 7:33 AM
Subject: error code 0x0058 in response to submit_sm


Hi All
We see this in our logs:
"SMSC returned error code 0x0058 in response to submit_sm"
We believe this is a throttling error...
The SMSC group config has:
throughput=3
max-pending-submits=100
smsc=smpp
We have tried many combinations of the throughput and max-pending-submit
tags parameters, but assume that this varies from operator to operator and
as yet have not really found an optimum for this particular operator.
When  this "throttling error" occurs ... what is the behavior  of Kannel 
...
will it retry this submit_sm or ???

Cheerio
Russel



Re: error code 0x00000058 in response to submit_sm

2005-03-31 Thread Russel Stromin
Thanks Rodrigo

Yes we understand the "throttling error" and are investigation the
limitations of this particular operator.  My question of what Kannel does
with this submit is still  unanswered.  We know the SMSC does not send the
SM ... does Kannel retry it or what ?

Cheerio

Russel


- Original Message - 
From: "Rodrigo Cremaschi" <[EMAIL PROTECTED]>
To: "Russel Stromin" <[EMAIL PROTECTED]>; 
Sent: Thursday, March 31, 2005 2:58 PM
Subject: Re: error code 0x0058 in response to submit_sm


> Hi Russel,
>
> It is a throttling error (according to SMPP Protocol Specification
v.3.4
> you have exceeded the message limit and SMSC cannot accept more requests).
> I don't think this is a throughput problem. Talk to your SMSC and ask them
> what kind of limitations they impose on your SMPP connection.
>
> Hope this will help you. Regards,
>
> Rodrigo.
>
>
> - Original Message - 
> From: "Russel Stromin" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, March 31, 2005 7:33 AM
> Subject: error code 0x0058 in response to submit_sm
>
>
> > Hi All
> >
> > We see this in our logs:
> >
> > "SMSC returned error code 0x0058 in response to submit_sm"
> >
> > We believe this is a throttling error...
> >
> > The SMSC group config has:
> >
> > throughput=3
> > max-pending-submits=100
> > smsc=smpp
> >
> > We have tried many combinations of the throughput and max-pending-submit
> > tags parameters, but assume that this varies from operator to operator
and
> > as yet have not really found an optimum for this particular operator.
> >
> > When  this "throttling error" occurs ... what is the behavior  of Kannel
> > ...
> > will it retry this submit_sm or ???
> >
> > Cheerio
> >
> > Russel
> >




Re: error code 0x00000058 in response to submit_sm

2005-03-31 Thread Rodrigo Cremaschi
Probably, it won't be discarded, but queued for later retry.
Part of the code dealing with your problem is here 
(gateway/gw/smsc/smsc_smpp.c). Maybe you should post your question to the 
devel guys at devel@kannel.org to know what actually happens.

/*
* check to see if we got a "throttling error", in which 
case we'll just
* sleep for a while
*/
   if (pdu->u.submit_sm_resp.command_status == 
SMPP_ESME_RTHROTTLED)
   time(&(smpp->throttling_err_time));
   else
   smpp->throttling_err_time = 0;

   bb_smscconn_send_failed(smpp->conn, msg, reason,
   octstr_format("%ld/%s", 
pdu->u.submit_sm_resp.command_status,
   smpp_error_to_string(pdu->u.submit_sm_resp.command_status)));
   --(*pending_submits);
   } else {
...

- Original Message - 
From: "Russel Stromin" <[EMAIL PROTECTED]>
To: "Rodrigo Cremaschi" <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, March 31, 2005 3:09 PM
Subject: Re: error code 0x0058 in response to submit_sm


Thanks Rodrigo
Yes we understand the "throttling error" and are investigation the
limitations of this particular operator.  My question of what Kannel does
with this submit is still  unanswered.  We know the SMSC does not send the
SM ... does Kannel retry it or what ?
Cheerio
Russel
- Original Message - 
From: "Rodrigo Cremaschi" <[EMAIL PROTECTED]>
To: "Russel Stromin" <[EMAIL PROTECTED]>; 
Sent: Thursday, March 31, 2005 2:58 PM
Subject: Re: error code 0x0058 in response to submit_sm


Hi Russel,
It is a throttling error (according to SMPP Protocol Specification
v.3.4
you have exceeded the message limit and SMSC cannot accept more 
requests).
I don't think this is a throughput problem. Talk to your SMSC and ask 
them
what kind of limitations they impose on your SMPP connection.

Hope this will help you. Regards,
Rodrigo.
- Original Message - 
From: "Russel Stromin" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, March 31, 2005 7:33 AM
Subject: error code 0x0058 in response to submit_sm

> Hi All
>
> We see this in our logs:
>
> "SMSC returned error code 0x0058 in response to submit_sm"
>
> We believe this is a throttling error...
>
> The SMSC group config has:
>
> throughput=3
> max-pending-submits=100
> smsc=smpp
>
> We have tried many combinations of the throughput and 
> max-pending-submit
> tags parameters, but assume that this varies from operator to operator
and
> as yet have not really found an optimum for this particular operator.
>
> When  this "throttling error" occurs ... what is the behavior  of 
> Kannel
> ...
> will it retry this submit_sm or ???
>
> Cheerio
>
> Russel
> 



Re: how inferface a C prog with smsbox

2005-03-31 Thread knaren
> Why shouldn't you use the HTTP interface? Smsbox is already working,
> tested and debugged extensively. Why not use it?

>   you can make use of the http port that the smsbox
> defines, normally its 13013 a tcp port. I use this
> extensively. The usage/API is well documented in the
> manual.

hai arnar, rodrigo,

can u please help me with some sample programs which
communicates with the smsbox through the http inferface as u
said.

just guide me, how i should go about, like - should I
open a socket to the webserver and pass the http get query
to the it.

Or should i execute the get query by the "system" command 
with the help of web browser.

like: system( );

If u have sample codes already written for this can u help
with it.

I know we already have phython script in the "contrib"
directory. but that it will more useful if u could share u 
ideas too.

My application is finished but for this part.
If i could get some programs i can learn about it and finish 
it.

i will be grateful for ur help




Error while sending XML document...

2005-03-31 Thread Suman Choudary

  
Hello all

       I am using kannel-1.4.0 for WAP push. I got a problem while sending the XML document containing OTA settings. While sending from HTTP url I got an error at smsbox. Here I am using fakesmsc Why I am getting such an error? Is there any mistake in the configuration file or at XML file. I saved the XML file at ../gateway-1.4.0/test directory with name   
            MyURLEncodedXMLdocument.xml

Here I am attaching the logfile...

2005-04-01 11:45:49[5641] [3]INFO: smsbox: Got HTTP request  from 
2005-04-01 11:45:49[5641] [3]INFO: sendsms used by 
2005-04-01 11:45:49[5641] [3]DEBUG: OTA service with XML document
Entity: line 1: error: Start tag expected, '<' not found
MyURLEncodedXMLdocument.xml
^
2005-04-01 11:45:49[5641] [3]ERROR: OTA: No document to parse. Probably an error in OTA source

2005-04-01 11:45:49[5641] [3]DEBUG: Status: 400 Answer: 
>



My configuration file is as follows:

#core
group = core
admin-port = 14000
smsbox-port = 14001
wapbox-port = 14002
admin-password = adpass
status-password = stpass
admin-allow-ip = "127.0.0.1"
box-allow-ip = "127.0.0.1"
                                                                                                                            
                                                                                                                            
#SMSC connections
group = smsc
smsc = fake
smsc-id = ID2
port = 11000
                                                                                                                            
                                                                                                                            
#WAPbox
group = wapbox
bearerbox-host = "127.1.0.0"
syslog-level = 0
                                                                                                                            
                                                                                                                            
#SMSbox
group = smsbox
smsbox-id = s1
bearerbox-host = localhost
sendsms-port = 14003
sendsms-chars = "1234506789hello+=-"
global-sender = yy
reply-couldnotfetch = "Server down"

#Services
group = sms-service
keyword = nop
text = "No operation"
                                                                                                                            
group = sms-service
keyword = default
text = "This is a default"
                                                                                                                            
                                                                                                                            
#send-smsusers
group=sendsms-user
username=otauser
password=otapass
concatenation=true
max-messages=50


And My xml file is as ...




                                                                                                                            
    
        
        
        
        
        
        
        
        
        
    
    
    
        
    


The HTTP URL I am passing is :
 
http://xxx.xxx.xxx.xxx:14003/cgi-bin/sendota?username=otauser&password=otapass&to=y&text=MyURLEncodedXMLdocument.xml&type=settings



Advanced Thanks for help...





Regards 
G.S.Choudary



Error writing 729 octets to fd 12336

2005-03-31 Thread Russel Stromin



Hi
 
Can anyone please shed some light on the 
error:
 
Error writing 729 octets to fd 12336:
 
Cheerio
 
Russel