Re: How to generate statistics from Kannel

2011-09-28 Thread mwamba chishimba
Thank you Singularnet for that pointer, greatly appreciated. I did try it
and used different search words and phrases but the results were not very
helpful, thank you nonetheless.

Kind Regards

On Tue, Sep 27, 2011 at 1:26 PM, Singularnet singular...@gmail.com wrote:

 There is a add on in playsms that do such task, search in google

 On 9/27/11, mwamba chishimba bamwa...@gmail.com wrote:
  Hello Kannel Users,
 
  I have managed to setup kannel and it is working just fine. I can send
  and receive messages without any hiccups. My problem is am unable to
  generate statistics so I can't tell how many messages were sent by
  user X. Am using playsms as my web interface which enabled me create
  various accounts and I would want to generate statistics in terms of
  total messages sent and total messages received by these different
  accounts.
 
  Is there a way of achieving my goal?
 
  As usual, thank you in advance for your kind help.
 
  Kind Regards,
 
  --
  Mwamba Chishimba
 
  For I am persuaded, that neither death, nor life, nor angels, nor
  principalities, nor powers, nor things present, nor things to come,
  nor height, nor depth, nor any other creature, shall be able to
  separate us from the love of God, which is in Christ Jesus our Lord
 
 

 --
 Sent from my mobile device




-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come, nor
height, nor depth, nor any other creature, shall be able to separate us from
the love of God, which is in Christ Jesus our Lord


Re : Re : Re : How to inject DLR in kannel ?

2011-09-28 Thread Bertrand Dupont
Hi,

Yes I finaly found a solution. In fact I've followed the advice of Rene, I 
inspected the source code to get the url variables to give to the kannel and 
I'm sending DLR on the following URL throught my php script :

$query = 
'http://ip_of_my_kannel:13014/sms?username=*password=*dlr-mask='.$dlr_status.'dlr-mid='.$smsid.'to='.str_replace('+','',$_REQUEST['phone']);


You have to respect the dlr_status code from kannel (check user guide for 
codes) and provide a good msg id in the dlr-mid.
I've add problems with id provided by kannel, I don't know why but msgid given 
by kannel when kannel submit the sms to my script are truncated.
For exemple kannel internel msgid is 45klmn-jsdlk59-jdsklfj and when kannel 
submit message on the http link it give the following id : 45klmn
So I've add the following line in my kannel.conf file on smsc = http section to 
say to kannel to keep my own msgid instead of kannel msgid :

generic-foreign-id-regex = id(.+)/id


Also if you want to re route this dlr to another box (openssmppbox in my case) 
don't forget to put the following line in your kannel.conf :

reroute-dlr = true


Sorry for my poor english, if you need any more help do not hesitate.

Regards,

Bertrand




De : Peter@locotel p...@locotel.gr
À : Bertrand Dupont bertrand.dupon...@yahoo.fr
Envoyé le : Mardi 20 Septembre 2011 11h55
Objet : Re: Re : Re : How to inject DLR in kannel ?


Hi Bertrand,
Did you by any chance found a way to do that injection of DLR back into kannel?
(I followed that problem in kannel users' list).
I will appreciate your help here.
Best regards,





 


Dr. Peter Kontopoulos
CTO

LOCOTEL SA
2, Parnassou St.
10561 Athens, GREECE
T:+30 210 3258 350 F:+30 210 3258 359
www.locotel.gr    www.locosms.gr 

 


Email Disclaimer
The information in this email is confidential and is intended solely for the 
addressee(s). If you have received this transmission in error, and you are not 
an intended recipient, be aware that any disclosure, copying, distribution or 
use of this transmission or its contents is prohibited. Furthermore, you are 
kindly requested to send us back the original message at the address 
portmas...@locotel.gr, and delete the message from your system immediately. 
Internet communications are not secure and therefore LOCOTEL SA does not accept 
legal responsibility for the contents of this message and for any damage 
whatsoever that is caused by viruses being passed. Any views or opinions 
presented are solely those of the author and do not necessarily represent those 
of LOCOTEL SA. 
Thank you,
LOCOTEL SA
Think Before you Print   

Στις 29-08-2011, ημέρα Δευ, και ώρα 15:16 +0100, ο/η Bertrand Dupont έγραψε: 
sorry I made a mistake in my previous mail : I mean send back a DLR and not 
an URL 




 
De :Bertrand Dupont bertrand.dupon...@yahoo.fr
À :Rene Kluwen rene.klu...@chimit.nl; users@kannel.org
Envoyé le :Lun 29 août 2011, 18h 07min 22s
Objet :Re : How to inject DLR in kannel ?


I and thank you for your answer. 



I've add the port = 13015 in my config file but I can't find in kannel 
documentation what the url should look like. 
How can I send back a DLR for a specific message to my kannel ? does someone 
know what are the get variables ? 



http://my_kannelbox_ip:13015/ ? 



Rergards, 
Bertrand 




 
De :Rene Kluwen rene.klu...@chimit.nl
À :Bertrand Dupont bertrand.dupon...@yahoo.fr; users@kannel.org
Envoyé le :Jeu 25 août 2011, 20h 48min 18s
Objet :RE: How to inject DLR in kannel ?


In your group = smsc (being your http smsc) set:

 

port = 13015 (or any other port)

 

Then, this port will listen for dlr’s.

I am not an expert in this matter. But if you look in the sources, you should 
be able to figure it out.

 

== Rene

 

 


From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
Bertrand Dupont
Sent: Thursday, 25 August, 2011 14:40
To: users@kannel.org
Subject: How to inject DLR in kannel ?



 


Hi all,



 



As I need an smpp server to accept incomming connection I've recently compiled 
and installed the addons/opensmppbox with success, this kannel send the sms to 
a third party application that is performing control, billing and re route sms 
to the correct SMSC (throught another kannel) but I've the following problems :



- how my third party application can sendback DLR to the kannel with 
opensmppbox ?



 



My architecture is like this :



 



SMPP Client -- Kannel with Opensmppbox configured with an SMSC HTTP link on 
myscript.php -- my own application for billing, re route etc -- another 
kannel with smpp and at connection



 



Regards,



Bertrand.










 

Dr. Peter Kontopoulos
CTO

LOCOTEL SA
2, Parnassou St.
10561 Athens, GREECE
T:+30 210 3258 350 F:+30 210 3258 359
www.locotel.gr    www.locosms.gr 

Re : DLR problem with Wavecom modem pool

2011-09-28 Thread Bertrand Dupont
Hi

Unfortunatly no !!
We are still facing the same issue.
The only serious issue we have found is to buy TC35i siemens modems pools !! 
but this is not realy an answer to the problem.

The thing that is strange with wavecom modems is the fact that sometimes we 
have 91% trafic with positive DLR and sometime only 20% of the DLR.
And if you reeboot kannel this change, you can switch from 20% DLR to 90%.
So what we are doing now : we are monitoring each wavecom modem and when we 
detect that we have not enought DLR we just stop and start the smsc via 
kannel http command : http://kboxip:port/stop-sms...etc
and most of the times it's better, but not perfect.

I realy don't know if it's a wavecom problem or if it's kannel at driver 
problem. Maybe kannel at driver has been writen for TC35i ??

If you find a better solution, share it please !

Reagrds,
Bertrand




De : Chris kopp...@yahoo.de
À : users@kannel.org
Envoyé le : Dimanche 25 Septembre 2011 23h57
Objet : Re: DLR problem with Wavecom modem pool

Hi Bertrand,

did you find an answer for
this problem?
we have the same problem,
but still no solution

best regards
chris

random charset in kannel ?

2011-09-28 Thread Bertrand Dupont
Hi all,

I've the following issue on my kannel sending sms throught modem.
Accents are randomly replaced by question tag ? in the sms received.

The thing that is strange, is that my script submiting sms to the kannel is 
doing exactly the same thing for each sms. (I've check it in my script log).
Also, I'm providing charset=ISO-8859-1 on the submit url for each message, 
and in the kannel.conf  I've the following line :

alt-charset = ISO-8859-1

The thing that is strange is that about 9% of sms sent are received with accent 
replaced by ?, for the other 91% sms are received correctly with accent.

I've made a test : submit 200 sms with quite exactly the same message on the 
same phone number :
test 1 éèà
test 2 éèà
test 3 éèà
...etc

And I received 18 sms with 
test 90 ??? 
instead of 
test 90 éèà.

Does anyone already face this random problem ?

Regards,
Bertrand

Re: How to generate statistics from Kannel

2011-09-28 Thread Shiv Narayan
Depending on what data you need you could also enable logging in Kannel and get 
the data from the logs.





From: mwamba chishimba bamwa...@gmail.com
To: Singularnet singular...@gmail.com
Cc: users users@kannel.org
Sent: Wednesday, 28 September 2011 2:49 PM
Subject: Re: How to generate statistics from Kannel


Thank you Singularnet for that pointer, greatly appreciated. I did try it and 
used different search words and phrases but the results were not very helpful, 
thank you nonetheless.

Kind Regards


On Tue, Sep 27, 2011 at 1:26 PM, Singularnet singular...@gmail.com wrote:

There is a add on in playsms that do such task, search in google


On 9/27/11, mwamba chishimba bamwa...@gmail.com wrote:
 Hello Kannel Users,

 I have managed to setup kannel and it is working just fine. I can send
 and receive messages without any hiccups. My problem is am unable to
 generate statistics so I can't tell how many messages were sent by
 user X. Am using playsms as my web interface which enabled me create
 various accounts and I would want to generate statistics in terms of
 total messages sent and total messages received by these different
 accounts.

 Is there a way of achieving my goal?

 As usual, thank you in advance for your kind help.

 Kind Regards,

 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come,
 nor height, nor depth, nor any other creature, shall be able to
 separate us from the love of God, which is in Christ Jesus our Lord



--
Sent from my mobile device



-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor 
principalities, nor powers, nor things present, nor things to come, nor height, 
nor depth, nor any other creature, shall be able to separate us from the love 
of God, which is in Christ Jesus our Lord

Remote Connectivity

2011-09-28 Thread mwamba chishimba
Hello Kannel Users,

Iam in a bit of a fix here.

I have installed kannel on ubuntu server and is working just fine. The
server is connected to 3 different SMSC operators via smpp. I have setup
another remote server which is on the Local Area Network(192.168.1.30) which
is connecting to the Ubuntu server via the Playsms Web Interface. Am running
some short codes which are defined on the main Ubuntu server with connection
to SMSC operators. I want when a message comes to the main ubuntu server
with Keyword Mwamba to be routed to the other server I have installed which
is on the Local Area Network(192.168.1.30). Now since this server is behind
a router, I opened port 80 on the router and directed all traffic coming
through this port to go to the 192.168.1.30 machine.
Below is an extract from my kannel.conf

#Mwamba Service
group = sms-service
keyword = mwamba
get-url = http://router public IP Address/check.php?a=%as=%sp=%pk=%k
strip-keyword = false
omit-empty = true

The check.php script is hosted on the 192.168.1.30 machine.

When I send a message from my mobile phone with mwamba as keyword, kannel
log shows the following:

2011-09-27 10:23:59 [16541] [4] DEBUG: match found: ^[ ]*(mwamba)[ ]*
2011-09-27 10:23:59 [16541] [4] INFO: Starting to service Mwamba 126980
from +260948984786 to 3011
2011-09-27 10:23:59 [16541] [4] DEBUG: Started thread 8
(gwlib/fdset.c:poller)
2011-09-27 10:23:59 [16541] [4] DEBUG: Started thread 9
(gwlib/http.c:write_request_thread)
2011-09-27 10:23:59 [16541] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller) maps
to pid 16541.
2011-09-27 10:23:59 [16541] [9] DEBUG: Thread 9
(gwlib/http.c:write_request_thread) maps to pid 16541.
2011-09-27 10:23:59 [16541] [9] DEBUG: Queue contains 0 pending requests.
2011-09-27 10:23:59 [16541] [9] DEBUG: Parsing URL `http://router public IP
Address/check.php?a=Mwamba+126980s=126980p=%2Bhttp://81.199.101.203/check.php?a=Mwamba+126980s=126980p=%2B260977827569k=Mwamba%27:
260948984786k=Mwamba':http://81.199.101.203/check.php?a=Mwamba+126980s=126980p=%2B260977827569k=Mwamba%27:
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Scheme: http:// http:
2011-09-27 10:23:59 [16541] [9] DEBUG:   Host: router public IP Address
2011-09-27 10:23:59 [16541] [9] DEBUG:   Port: 80
2011-09-27 10:23:59 [16541] [9] DEBUG:   Username: (null)
2011-09-27 10:23:59 [16541] [9] DEBUG:   Password: (null)
2011-09-27 10:23:59 [16541] [9] DEBUG:   Path: /check.php
2011-09-27 10:23:59 [16541] [9] DEBUG:   Query:
a=Mwamba+126980s=126980p=%2B260948984786k=Mwamba
2011-09-27 10:23:59 [16541] [9] DEBUG:   Fragment: (null)
2011-09-27 10:23:59 [16541] [9] DEBUG: HTTP: Opening connection to `router
public IP Address:80' (fd=27).
2011-09-27 10:23:59 [16541] [9] DEBUG: Socket connecting
2011-09-27 10:23:59 [16541] [8] DEBUG: Get info about connecting socket
2011-09-27 10:23:59 [16541] [8] DEBUG: HTTP: Sending request:
2011-09-27 10:23:59 [16541] [8] DEBUG: Octet string at 0x817f700:
2011-09-27 10:23:59 [16541] [8] DEBUG:   len:  151
2011-09-27 10:23:59 [16541] [8] DEBUG:   size: 1024
2011-09-27 10:23:59 [16541] [8] DEBUG:   immutable: 0
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 47 45 54 20 2f 63 68 65 63 6b
2e 70 68 70 3f 61   GET /check.php?a
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 3d 4d 77 61 6d 62 61 2b 31 32
36 39 38 30 26 73   =Mwamba+126980s
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 3d 31 32 36 39 38 30 26 70 3d
25 32 42 32 36 30   =126980p=%2B260
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 39 37 37 38 32 37 35 36 39 26
6b 3d 4d 77 61 6d   948984786k=Mwam
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 62 61 20 48 54 54 50 2f 31 2e
31 0d 0a 48 6f 73   ba HTTP/1.1..Hos
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 74 3a 20 38 31 2e 31 39 39 2e
31 30 31 2e 32 30   t: router public IP Address
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 33 0d 0a 43 6f 6e 6e 65 63 74
69 6f 6e 3a 20 6b   ..Connection: k
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 65 65 70 2d 61 6c 69 76 65 0d
0a 55 73 65 72 2d   eep-alive..User-
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 41 67 65 6e 74 3a 20 4b 61 6e
6e 65 6c 2f 31 2e   Agent: Kannel/1.

It then goes quite and does not send back feedback until after about 20 or
30minutes thats when it sends response to my phone with Could not fetch
content, sorry.

I can feel it in my bones that am almost there, someone please help me cross
over the line with this.

As always, a big thank you for your kind response.

-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come, nor
height, nor depth, nor any other creature, shall be able to separate us from
the love of God, which is in Christ Jesus our Lord


Re: How to generate statistics from Kannel

2011-09-28 Thread mwamba chishimba
Hi Shiv,

Thank you for your response.

I ideally, I want to be able to tell that for this particular period of
time, user X sent Y messages(totals) basically that.

Kind Regards,

On Wed, Sep 28, 2011 at 3:37 PM, Shiv Narayan narayans...@yahoo.com wrote:

 Depending on what data you need you could also enable logging in Kannel and
 get the data from the logs.


 --
 *From:* mwamba chishimba bamwa...@gmail.com
 *To:* Singularnet singular...@gmail.com
 *Cc:* users users@kannel.org
 *Sent:* Wednesday, 28 September 2011 2:49 PM
 *Subject:* Re: How to generate statistics from Kannel

 Thank you Singularnet for that pointer, greatly appreciated. I did try it
 and used different search words and phrases but the results were not very
 helpful, thank you nonetheless.

 Kind Regards

 On Tue, Sep 27, 2011 at 1:26 PM, Singularnet singular...@gmail.comwrote:

 There is a add on in playsms that do such task, search in google

 On 9/27/11, mwamba chishimba bamwa...@gmail.com wrote:
  Hello Kannel Users,
 
  I have managed to setup kannel and it is working just fine. I can send
  and receive messages without any hiccups. My problem is am unable to
  generate statistics so I can't tell how many messages were sent by
  user X. Am using playsms as my web interface which enabled me create
  various accounts and I would want to generate statistics in terms of
  total messages sent and total messages received by these different
  accounts.
 
  Is there a way of achieving my goal?
 
  As usual, thank you in advance for your kind help.
 
  Kind Regards,
 
  --
  Mwamba Chishimba
 
  For I am persuaded, that neither death, nor life, nor angels, nor
  principalities, nor powers, nor things present, nor things to come,
  nor height, nor depth, nor any other creature, shall be able to
  separate us from the love of God, which is in Christ Jesus our Lord
 
 

 --
 Sent from my mobile device




 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come, nor
 height, nor depth, nor any other creature, shall be able to separate us from
 the love of God, which is in Christ Jesus our Lord





-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come, nor
height, nor depth, nor any other creature, shall be able to separate us from
the love of God, which is in Christ Jesus our Lord


Re: Remote Connectivity

2011-09-28 Thread Otandeka Simon Peter
Check your smsbox-access log file.  It will provide more info why your URL
is failing.
Kannel is not receiving anything from your URL when it calls it and that is
why it is complaining.

You can post the logs so that we can assist.

Thanks,
Peter.

On Wed, Sep 28, 2011 at 4:51 PM, mwamba chishimba bamwa...@gmail.comwrote:

 Hello Kannel Users,

 Iam in a bit of a fix here.

 I have installed kannel on ubuntu server and is working just fine. The
 server is connected to 3 different SMSC operators via smpp. I have setup
 another remote server which is on the Local Area Network(192.168.1.30) which
 is connecting to the Ubuntu server via the Playsms Web Interface. Am running
 some short codes which are defined on the main Ubuntu server with connection
 to SMSC operators. I want when a message comes to the main ubuntu server
 with Keyword Mwamba to be routed to the other server I have installed which
 is on the Local Area Network(192.168.1.30). Now since this server is behind
 a router, I opened port 80 on the router and directed all traffic coming
 through this port to go to the 192.168.1.30 machine.
 Below is an extract from my kannel.conf

 #Mwamba Service
 group = sms-service
 keyword = mwamba
 get-url = http://router public IP Address/check.php?a=%as=%sp=%pk=%k
 strip-keyword = false
 omit-empty = true

 The check.php script is hosted on the 192.168.1.30 machine.

 When I send a message from my mobile phone with mwamba as keyword, kannel
 log shows the following:

 2011-09-27 10:23:59 [16541] [4] DEBUG: match found: ^[ ]*(mwamba)[ ]*
 2011-09-27 10:23:59 [16541] [4] INFO: Starting to service Mwamba 126980
 from +260948984786 to 3011
 2011-09-27 10:23:59 [16541] [4] DEBUG: Started thread 8
 (gwlib/fdset.c:poller)
 2011-09-27 10:23:59 [16541] [4] DEBUG: Started thread 9
 (gwlib/http.c:write_request_thread)
 2011-09-27 10:23:59 [16541] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller) maps
 to pid 16541.
 2011-09-27 10:23:59 [16541] [9] DEBUG: Thread 9
 (gwlib/http.c:write_request_thread) maps to pid 16541.
 2011-09-27 10:23:59 [16541] [9] DEBUG: Queue contains 0 pending requests.
 2011-09-27 10:23:59 [16541] [9] DEBUG: Parsing URL `http://router public
 IP 
 Address/check.php?a=Mwamba+126980s=126980p=%2Bhttp://81.199.101.203/check.php?a=Mwamba+126980s=126980p=%2B260977827569k=Mwamba%27:
 260948984786k=Mwamba':http://81.199.101.203/check.php?a=Mwamba+126980s=126980p=%2B260977827569k=Mwamba%27:
  2011-09-27 10:23:59 [16541] [9] DEBUG:   Scheme: http://
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Host: router public IP Address
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Port: 80
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Username: (null)
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Password: (null)
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Path: /check.php
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Query:
 a=Mwamba+126980s=126980p=%2B260948984786k=Mwamba
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Fragment: (null)
 2011-09-27 10:23:59 [16541] [9] DEBUG: HTTP: Opening connection to `router
 public IP Address:80' (fd=27).
 2011-09-27 10:23:59 [16541] [9] DEBUG: Socket connecting
 2011-09-27 10:23:59 [16541] [8] DEBUG: Get info about connecting socket
 2011-09-27 10:23:59 [16541] [8] DEBUG: HTTP: Sending request:
 2011-09-27 10:23:59 [16541] [8] DEBUG: Octet string at 0x817f700:
 2011-09-27 10:23:59 [16541] [8] DEBUG:   len:  151
 2011-09-27 10:23:59 [16541] [8] DEBUG:   size: 1024
 2011-09-27 10:23:59 [16541] [8] DEBUG:   immutable: 0
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 47 45 54 20 2f 63 68 65 63
 6b 2e 70 68 70 3f 61   GET /check.php?a
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 3d 4d 77 61 6d 62 61 2b 31
 32 36 39 38 30 26 73   =Mwamba+126980s
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 3d 31 32 36 39 38 30 26 70
 3d 25 32 42 32 36 30   =126980p=%2B260
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 39 37 37 38 32 37 35 36 39
 26 6b 3d 4d 77 61 6d   948984786k=Mwam
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 62 61 20 48 54 54 50 2f 31
 2e 31 0d 0a 48 6f 73   ba HTTP/1.1..Hos
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 74 3a 20 38 31 2e 31 39 39
 2e 31 30 31 2e 32 30   t: router public IP Address
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 33 0d 0a 43 6f 6e 6e 65 63
 74 69 6f 6e 3a 20 6b   ..Connection: k
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 65 65 70 2d 61 6c 69 76 65
 0d 0a 55 73 65 72 2d   eep-alive..User-
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 41 67 65 6e 74 3a 20 4b 61
 6e 6e 65 6c 2f 31 2e   Agent: Kannel/1.

 It then goes quite and does not send back feedback until after about 20 or
 30minutes thats when it sends response to my phone with Could not fetch
 content, sorry.

 I can feel it in my bones that am almost there, someone please help me
 cross over the line with this.

 As always, a big thank you for your kind response.

 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor 

Re: Remote Connectivity

2011-09-28 Thread mwamba chishimba
Hi Peter,

A million thanks for your response! Let me do just that right away.

Kind Regards

On Wed, Sep 28, 2011 at 4:11 PM, Otandeka Simon Peter
sotand...@gmail.comwrote:


 Check your smsbox-access log file.  It will provide more info why your URL
 is failing.
 Kannel is not receiving anything from your URL when it calls it and that is
 why it is complaining.

 You can post the logs so that we can assist.

 Thanks,
 Peter.


 On Wed, Sep 28, 2011 at 4:51 PM, mwamba chishimba bamwa...@gmail.comwrote:

 Hello Kannel Users,

 Iam in a bit of a fix here.

 I have installed kannel on ubuntu server and is working just fine. The
 server is connected to 3 different SMSC operators via smpp. I have setup
 another remote server which is on the Local Area Network(192.168.1.30) which
 is connecting to the Ubuntu server via the Playsms Web Interface. Am running
 some short codes which are defined on the main Ubuntu server with connection
 to SMSC operators. I want when a message comes to the main ubuntu server
 with Keyword Mwamba to be routed to the other server I have installed which
 is on the Local Area Network(192.168.1.30). Now since this server is behind
 a router, I opened port 80 on the router and directed all traffic coming
 through this port to go to the 192.168.1.30 machine.
 Below is an extract from my kannel.conf

 #Mwamba Service
 group = sms-service
 keyword = mwamba
 get-url = http://router public IP Address/check.php?a=%as=%sp=%pk=%k
 strip-keyword = false
 omit-empty = true

 The check.php script is hosted on the 192.168.1.30 machine.

 When I send a message from my mobile phone with mwamba as keyword, kannel
 log shows the following:

 2011-09-27 10:23:59 [16541] [4] DEBUG: match found: ^[ ]*(mwamba)[ ]*
 2011-09-27 10:23:59 [16541] [4] INFO: Starting to service Mwamba 126980
 from +260948984786 to 3011
 2011-09-27 10:23:59 [16541] [4] DEBUG: Started thread 8
 (gwlib/fdset.c:poller)
 2011-09-27 10:23:59 [16541] [4] DEBUG: Started thread 9
 (gwlib/http.c:write_request_thread)
 2011-09-27 10:23:59 [16541] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller)
 maps to pid 16541.
 2011-09-27 10:23:59 [16541] [9] DEBUG: Thread 9
 (gwlib/http.c:write_request_thread) maps to pid 16541.
 2011-09-27 10:23:59 [16541] [9] DEBUG: Queue contains 0 pending requests.
 2011-09-27 10:23:59 [16541] [9] DEBUG: Parsing URL `http://router public
 IP 
 Address/check.php?a=Mwamba+126980s=126980p=%2Bhttp://81.199.101.203/check.php?a=Mwamba+126980s=126980p=%2B260977827569k=Mwamba%27:
 260948984786k=Mwamba':http://81.199.101.203/check.php?a=Mwamba+126980s=126980p=%2B260977827569k=Mwamba%27:
  2011-09-27 10:23:59 [16541] [9] DEBUG:   Scheme: http://
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Host: router public IP Address
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Port: 80
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Username: (null)
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Password: (null)
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Path: /check.php
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Query:
 a=Mwamba+126980s=126980p=%2B260948984786k=Mwamba
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Fragment: (null)
 2011-09-27 10:23:59 [16541] [9] DEBUG: HTTP: Opening connection to `router
 public IP Address:80' (fd=27).
 2011-09-27 10:23:59 [16541] [9] DEBUG: Socket connecting
 2011-09-27 10:23:59 [16541] [8] DEBUG: Get info about connecting socket
 2011-09-27 10:23:59 [16541] [8] DEBUG: HTTP: Sending request:
 2011-09-27 10:23:59 [16541] [8] DEBUG: Octet string at 0x817f700:
 2011-09-27 10:23:59 [16541] [8] DEBUG:   len:  151
 2011-09-27 10:23:59 [16541] [8] DEBUG:   size: 1024
 2011-09-27 10:23:59 [16541] [8] DEBUG:   immutable: 0
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 47 45 54 20 2f 63 68 65 63
 6b 2e 70 68 70 3f 61   GET /check.php?a
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 3d 4d 77 61 6d 62 61 2b 31
 32 36 39 38 30 26 73   =Mwamba+126980s
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 3d 31 32 36 39 38 30 26 70
 3d 25 32 42 32 36 30   =126980p=%2B260
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 39 37 37 38 32 37 35 36 39
 26 6b 3d 4d 77 61 6d   948984786k=Mwam
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 62 61 20 48 54 54 50 2f 31
 2e 31 0d 0a 48 6f 73   ba HTTP/1.1..Hos
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 74 3a 20 38 31 2e 31 39 39
 2e 31 30 31 2e 32 30   t: router public IP Address
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 33 0d 0a 43 6f 6e 6e 65 63
 74 69 6f 6e 3a 20 6b   ..Connection: k
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 65 65 70 2d 61 6c 69 76 65
 0d 0a 55 73 65 72 2d   eep-alive..User-
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 41 67 65 6e 74 3a 20 4b 61
 6e 6e 65 6c 2f 31 2e   Agent: Kannel/1.

 It then goes quite and does not send back feedback until after about 20 or
 30minutes thats when it sends response to my phone with Could not fetch
 content, sorry.

 I can feel it in my bones that am almost there, someone please help me
 cross over the line with this.

 As always, a 

SMSC returned error code 0x00000102 (Specified service_type is unavailable) in response to submit_sm.

2011-09-28 Thread Mpeirwe Benjamin
Hello Good People,

I have a challenge connecting to a new smpp connection, I bind to the
connection so that when I send SMS, they are Accepted for delivery.
Challenge is they are not delivered because at the SMSC side the response
given is:

 SMSC returned error code 0x0102 (Specified service_type is unavailable)
in response to submit_sm. as shown in the kannel.log file where I picked:

2011-09-28 20:13:10 [4362] [11] DEBUG: boxc_receiver: sms received
2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP[VMA1]: Sending PDU:
2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU 0x9fcda60 dump:
2011-09-28 20:13:10 [4362] [6] DEBUG:   type_name: submit_sm
2011-09-28 20:13:10 [4362] [6] DEBUG:   command_id: 4 = 0x0004
2011-09-28 20:13:10 [4362] [6] DEBUG:   command_status: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   sequence_number: 12 = 0x000c
2011-09-28 20:13:10 [4362] [6] DEBUG:   service_type: 
2011-09-28 20:13:10 [4362] [6] DEBUG:   source_addr_ton: 5 = 0x0005
2011-09-28 20:13:10 [4362] [6] DEBUG:   source_addr_npi: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   source_addr: abcde
2011-09-28 20:13:10 [4362] [6] DEBUG:   dest_addr_ton: 2 = 0x0002
2011-09-28 20:13:10 [4362] [6] DEBUG:   dest_addr_npi: 1 = 0x0001
2011-09-28 20:13:10 [4362] [6] DEBUG:   destination_addr: 1546785921
2011-09-28 20:13:10 [4362] [6] DEBUG:   esm_class: 3 = 0x0003
2011-09-28 20:13:10 [4362] [6] DEBUG:   protocol_id: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   priority_flag: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   schedule_delivery_time: NULL
2011-09-28 20:13:10 [4362] [6] DEBUG:   validity_period: NULL
2011-09-28 20:13:10 [4362] [6] DEBUG:   registered_delivery: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   replace_if_present_flag: 0 =
0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   data_coding: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   sm_default_msg_id: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   sm_length: 47 = 0x002f
2011-09-28 20:13:10 [4362] [6] DEBUG:   short_message:
2011-09-28 20:13:10 [4362] [6] DEBUG:Octet string at 0x9fce680:
2011-09-28 20:13:10 [4362] [6] DEBUG:  len:  47
2011-09-28 20:13:10 [4362] [6] DEBUG:  size: 48
2011-09-28 20:13:10 [4362] [6] DEBUG:  immutable: 0
2011-09-28 20:13:10 [4362] [6] DEBUG:  data: 57 65 64 20 53 65 70 20 32
38 20 32 30 3a 31 33   Wed Sep 28 20:13
2011-09-28 20:13:10 [4362] [6] DEBUG:  data: 3a 31 30 20 45 41 54 20 32
30 31 31 20 74 65 73   :10 EAT 2011 tes
2011-09-28 20:13:10 [4362] [6] DEBUG:  data: 74 69 6e 67 20 63 6f 6e 6e
65 63 74 69 6f 6e  ting connection
2011-09-28 20:13:10 [4362] [6] DEBUG:Octet string dump ends.
2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU dump ends.
2011-09-28 20:13:10 [4362] [11] DEBUG: send_msg: sending msg to box:
127.0.0.1
2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP[VMA1]: Got PDU:
2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU 0x9fcd870 dump:
2011-09-28 20:13:10 [4362] [6] DEBUG:   type_name: submit_sm_resp
2011-09-28 20:13:10 [4362] [6] DEBUG:   command_id: 2147483652 = 0x8004
2011-09-28 20:13:10 [4362] [6] DEBUG:   command_status: 258 = 0x0102
2011-09-28 20:13:10 [4362] [6] DEBUG:   sequence_number: 12 = 0x000c
2011-09-28 20:13:10 [4362] [6] DEBUG:   message_id:
2011-09-28 20:13:10 [4362] [6] DEBUG:Octet string at 0x9fcedb0:
2011-09-28 20:13:10 [4362] [6] DEBUG:  len:  30
2011-09-28 20:13:10 [4362] [6] DEBUG:  size: 31
2011-09-28 20:13:10 [4362] [6] DEBUG:  immutable: 0
2011-09-28 20:13:10 [4362] [6] DEBUG:  data: 50 30 31 2e 31 33 31 37 32
32 39 30 37 35 30 38   P01.131722907508
2011-09-28 20:13:10 [4362] [6] DEBUG:  data: 36 36 33 35 30 30 30 2e 34
34 30 30 32 35 6635000.440025
2011-09-28 20:13:10 [4362] [6] DEBUG:Octet string dump ends.
2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU dump ends.
2011-09-28 20:13:10 [4362] [6] ERROR: SMPP[VMA1]: SMSC returned error code
0x0102 (Specified service_type is unavailable) in response to submit_sm.
2011-09-28 20:13:17 [4362] [6] DEBUG: SMPP[VMA1]: Sending enquire link:
2011-09-28 20:13:17 [4362] [6] DEBUG: SMPP PDU 0x9fcd870 dump:
2011-09-28 20:13:17 [4362] [6] DEBUG:   type_name: enquire_link
2011-09-28 20:13:17 [4362] [6] DEBUG:   command_id: 21 = 0x0015
2011-09-28 20:13:17 [4362] [6] DEBUG:   command_status: 0 = 0x
2011-09-28 20:13:17 [4362] [6] DEBUG:   sequence_number: 13 = 0x000d
2011-09-28 20:13:17 [4362] [6] DEBUG: SMPP PDU dump ends.
2011-09-28 20:13:18 [4362] [6] DEBUG: SMPP[VMA1]: Got PDU:
2011-09-28 20:13:18 [4362] [6] DEBUG: SMPP PDU 0x9fcd870 dump:
2011-09-28 20:13:18 [4362] [6] DEBUG:   type_name: enquire_link_resp
2011-09-28 20:13:18 [4362] [6] DEBUG:   command_id: 2147483669 = 0x8015
2011-09-28 20:13:18 [4362] [6] DEBUG:   command_status: 0 = 0x
2011-09-28 20:13:18 [4362] [6] DEBUG:   sequence_number: 13 = 0x000d
2011-09-28 20:13:18 [4362] [6] DEBUG: SMPP PDU dump ends.

This 

Re: SMSC returned error code 0x00000102 (Specified service_type is unavailable) in response to submit_sm.

2011-09-28 Thread Stipe Tolj

Am 28.09.2011 19:28, schrieb Mpeirwe Benjamin:

Hello Good People,
I have a challenge connecting to a new smpp connection, I bind to the connection
so that when I send SMS, they are Accepted for delivery. Challenge is they are
not delivered because at the SMSC side the response given is:
  SMSC returned error code 0x0102 (Specified service_type is unavailable) in
response to submit_sm. as shown in the kannel.log file where I picked:
2011-09-28 20:13:10 [4362] [11] DEBUG: boxc_receiver: sms received
2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP[VMA1]: Sending PDU:
2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU 0x9fcda60 dump:
2011-09-28 20:13:10 [4362] [6] DEBUG:   type_name: submit_sm
2011-09-28 20:13:10 [4362] [6] DEBUG:   command_id: 4 = 0x0004
2011-09-28 20:13:10 [4362] [6] DEBUG:   command_status: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   sequence_number: 12 = 0x000c
2011-09-28 20:13:10 [4362] [6] DEBUG:   service_type: 
2011-09-28 20:13:10 [4362] [6] DEBUG:   source_addr_ton: 5 = 0x0005
2011-09-28 20:13:10 [4362] [6] DEBUG:   source_addr_npi: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   source_addr: abcde
2011-09-28 20:13:10 [4362] [6] DEBUG:   dest_addr_ton: 2 = 0x0002
2011-09-28 20:13:10 [4362] [6] DEBUG:   dest_addr_npi: 1 = 0x0001
2011-09-28 20:13:10 [4362] [6] DEBUG:   destination_addr: 1546785921
2011-09-28 20:13:10 [4362] [6] DEBUG:   esm_class: 3 = 0x0003
2011-09-28 20:13:10 [4362] [6] DEBUG:   protocol_id: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   priority_flag: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   schedule_delivery_time: NULL
2011-09-28 20:13:10 [4362] [6] DEBUG:   validity_period: NULL
2011-09-28 20:13:10 [4362] [6] DEBUG:   registered_delivery: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   replace_if_present_flag: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   data_coding: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   sm_default_msg_id: 0 = 0x
2011-09-28 20:13:10 [4362] [6] DEBUG:   sm_length: 47 = 0x002f
2011-09-28 20:13:10 [4362] [6] DEBUG:   short_message:
2011-09-28 20:13:10 [4362] [6] DEBUG:Octet string at 0x9fce680:
2011-09-28 20:13:10 [4362] [6] DEBUG:  len:  47
2011-09-28 20:13:10 [4362] [6] DEBUG:  size: 48
2011-09-28 20:13:10 [4362] [6] DEBUG:  immutable: 0
2011-09-28 20:13:10 [4362] [6] DEBUG:  data: 57 65 64 20 53 65 70 20 32 38
20 32 30 3a 31 33   Wed Sep 28 20:13
2011-09-28 20:13:10 [4362] [6] DEBUG:  data: 3a 31 30 20 45 41 54 20 32 30
31 31 20 74 65 73   :10 EAT 2011 tes
2011-09-28 20:13:10 [4362] [6] DEBUG:  data: 74 69 6e 67 20 63 6f 6e 6e 65
63 74 69 6f 6e  ting connection
2011-09-28 20:13:10 [4362] [6] DEBUG:Octet string dump ends.
2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU dump ends.
2011-09-28 20:13:10 [4362] [11] DEBUG: send_msg: sending msg to box: 127.0.0.1
2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP[VMA1]: Got PDU:
2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU 0x9fcd870 dump:
2011-09-28 20:13:10 [4362] [6] DEBUG:   type_name: submit_sm_resp
2011-09-28 20:13:10 [4362] [6] DEBUG:   command_id: 2147483652 = 0x8004
2011-09-28 20:13:10 [4362] [6] DEBUG:   command_status: 258 = 0x0102
2011-09-28 20:13:10 [4362] [6] DEBUG:   sequence_number: 12 = 0x000c
2011-09-28 20:13:10 [4362] [6] DEBUG:   message_id:
2011-09-28 20:13:10 [4362] [6] DEBUG:Octet string at 0x9fcedb0:
2011-09-28 20:13:10 [4362] [6] DEBUG:  len:  30
2011-09-28 20:13:10 [4362] [6] DEBUG:  size: 31
2011-09-28 20:13:10 [4362] [6] DEBUG:  immutable: 0
2011-09-28 20:13:10 [4362] [6] DEBUG:  data: 50 30 31 2e 31 33 31 37 32 32
39 30 37 35 30 38   P01.131722907508
2011-09-28 20:13:10 [4362] [6] DEBUG:  data: 36 36 33 35 30 30 30 2e 34 34
30 30 32 35 6635000.440025
2011-09-28 20:13:10 [4362] [6] DEBUG:Octet string dump ends.
2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU dump ends.
2011-09-28 20:13:10 [4362] [6] ERROR: SMPP[VMA1]: SMSC returned error code
0x0102 (Specified service_type is unavailable) in response to submit_sm.


formally this submit_sm_resp PDU breaks the SMPP v3.4 spec.

Reason: a message_id values SHOULD be only returned for command_status = 0x00 
results. ;)



2011-09-28 20:13:17 [4362] [6] DEBUG: SMPP[VMA1]: Sending enquire link:
2011-09-28 20:13:17 [4362] [6] DEBUG: SMPP PDU 0x9fcd870 dump:
2011-09-28 20:13:17 [4362] [6] DEBUG:   type_name: enquire_link
2011-09-28 20:13:17 [4362] [6] DEBUG:   command_id: 21 = 0x0015
2011-09-28 20:13:17 [4362] [6] DEBUG:   command_status: 0 = 0x
2011-09-28 20:13:17 [4362] [6] DEBUG:   sequence_number: 13 = 0x000d
2011-09-28 20:13:17 [4362] [6] DEBUG: SMPP PDU dump ends.
2011-09-28 20:13:18 [4362] [6] DEBUG: SMPP[VMA1]: Got PDU:
2011-09-28 20:13:18 [4362] [6] DEBUG: SMPP PDU 0x9fcd870 dump:
2011-09-28 20:13:18 [4362] [6] DEBUG:   type_name: enquire_link_resp
2011-09-28 20:13:18 [4362] [6] DEBUG:   command_id: 2147483669 = 0x8015

Re: SMSC returned error code 0x00000102 (Specified service_type is unavailable) in response to submit_sm.

2011-09-28 Thread Mpeirwe Benjamin
Thanks Stipe,

When I do this, then kannel does not start at all! I have taken  a snapshot
from kannel.log:

2011-09-28 20:49:25 [4730] [0] INFO: Added logfile
`/var/log/kannel/kannel.log' with level `0'.
2011-09-28 20:49:25 [4730] [0] INFO: Started access logfile
`/var/log/kannel/kannel-access.log'.
2011-09-28 20:49:25 [4730] [0] INFO: HTTP: Opening server at port 13000.
2011-09-28 20:49:25 [4730] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2011-09-28 20:49:25 [4730] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2011-09-28 20:49:25 [4730] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
2011-09-28 20:49:25 [4730] [0] DEBUG: starting smsbox connection module
2011-09-28 20:49:25 [4730] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).
2011-09-28 20:49:25 [4730] [0] DEBUG: Started thread 4
(gw/bb_boxc.c:sms_to_smsboxes)
2011-09-28 20:49:25 [4730] [0] DEBUG: Started thread 5
(gw/bb_boxc.c:smsboxc_run)
2011-09-28 20:49:25 [4730] [0] INFO: Set SMS resend frequency to 60 seconds.
2011-09-28 20:49:25 [4730] [0] INFO: SMS resend retry set to unlimited.
2011-09-28 20:49:25 [4730] [0] DEBUG: smsbox MO concatenated message
handling enabled
2011-09-28 20:49:25 [4730] [0] INFO: DLR rerouting for smsc id VMA1
disabled.
2011-09-28 20:49:25 [4730] [0] ERROR: SMPP: Configuration file doesn't
specify system-type.
2011-09-28 20:49:25 [4730] [0] PANIC: Cannot start with SMSC connection
failing
2011-09-28 20:49:25 [4730] [0] PANIC:
/usr/local/sbin/bearerbox(gw_panic+0xc2) [0x80cc0b2]
2011-09-28 20:49:25 [4730] [0] PANIC:
/usr/local/sbin/bearerbox(smsc2_start+0x419) [0x805a5a9]
2011-09-28 20:49:25 [4730] [0] PANIC: /usr/local/sbin/bearerbox(main+0xc6b)
[0x8053bab]
2011-09-28 20:49:25 [4730] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xdc)
[0xc36dec]
2011-09-28 20:49:25 [4730] [0] PANIC: /usr/local/sbin/bearerbox [0x8052211]
[root@nat kannel]#
It seems the SMSC expects the system-type parameter by all means!. Unless
there is another solution, I may have to consult with the SMSC vendor.

Thank you
On Wed, Sep 28, 2011 at 8:45 PM, Stipe Tolj s...@tolj.org wrote:

 Am 28.09.2011 19:28, schrieb Mpeirwe Benjamin:

  Hello Good People,
 I have a challenge connecting to a new smpp connection, I bind to the
 connection
 so that when I send SMS, they are Accepted for delivery. Challenge is they
 are
 not delivered because at the SMSC side the response given is:
  SMSC returned error code 0x0102 (Specified service_type is
 unavailable) in
 response to submit_sm. as shown in the kannel.log file where I picked:
 2011-09-28 20:13:10 [4362] [11] DEBUG: boxc_receiver: sms received
 2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP[VMA1]: Sending PDU:
 2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU 0x9fcda60 dump:
 2011-09-28 20:13:10 [4362] [6] DEBUG:   type_name: submit_sm
 2011-09-28 20:13:10 [4362] [6] DEBUG:   command_id: 4 = 0x0004
 2011-09-28 20:13:10 [4362] [6] DEBUG:   command_status: 0 = 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   sequence_number: 12 = 0x000c
 2011-09-28 20:13:10 [4362] [6] DEBUG:   service_type: 
 2011-09-28 20:13:10 [4362] [6] DEBUG:   source_addr_ton: 5 = 0x0005
 2011-09-28 20:13:10 [4362] [6] DEBUG:   source_addr_npi: 0 = 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   source_addr: abcde
 2011-09-28 20:13:10 [4362] [6] DEBUG:   dest_addr_ton: 2 = 0x0002
 2011-09-28 20:13:10 [4362] [6] DEBUG:   dest_addr_npi: 1 = 0x0001
 2011-09-28 20:13:10 [4362] [6] DEBUG:   destination_addr: 1546785921
 2011-09-28 20:13:10 [4362] [6] DEBUG:   esm_class: 3 = 0x0003
 2011-09-28 20:13:10 [4362] [6] DEBUG:   protocol_id: 0 = 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   priority_flag: 0 = 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   schedule_delivery_time: NULL
 2011-09-28 20:13:10 [4362] [6] DEBUG:   validity_period: NULL
 2011-09-28 20:13:10 [4362] [6] DEBUG:   registered_delivery: 0 =
 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   replace_if_present_flag: 0 =
 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   data_coding: 0 = 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   sm_default_msg_id: 0 = 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   sm_length: 47 = 0x002f
 2011-09-28 20:13:10 [4362] [6] DEBUG:   short_message:
 2011-09-28 20:13:10 [4362] [6] DEBUG:Octet string at 0x9fce680:
 2011-09-28 20:13:10 [4362] [6] DEBUG:  len:  47
 2011-09-28 20:13:10 [4362] [6] DEBUG:  size: 48
 2011-09-28 20:13:10 [4362] [6] DEBUG:  immutable: 0
 2011-09-28 20:13:10 [4362] [6] DEBUG:  data: 57 65 64 20 53 65 70 20
 32 38
 20 32 30 3a 31 33   Wed Sep 28 20:13
 2011-09-28 20:13:10 [4362] [6] DEBUG:  data: 3a 31 30 20 45 41 54 20
 32 30
 31 31 20 74 65 73   :10 EAT 2011 tes
 2011-09-28 20:13:10 [4362] [6] DEBUG:  data: 74 69 6e 67 20 63 6f 6e
 6e 65
 63 74 69 6f 6e  ting connection
 2011-09-28 20:13:10 [4362] [6] DEBUG:Octet string dump ends.
 2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU dump ends.
 

Re: SMSC returned error code 0x00000102 (Specified service_type is unavailable) in response to submit_sm.

2011-09-28 Thread Otandeka Simon Peter
Hello Benjamin,

You need to specify the system-type in your smsc configs.  For this, you
will have to get from your SMSC engineers.
It could be SMPP, VMA, CMT or any other depending on what you are given.  It
could be even left blank.

If you don't mind, email me privately and may be able to help with the
vendor.

Thanks,
Peter.


On Wed, Sep 28, 2011 at 8:56 PM, Mpeirwe Benjamin bmpei...@gmail.comwrote:

 Thanks Stipe,

 When I do this, then kannel does not start at all! I have taken  a snapshot
 from kannel.log:

 2011-09-28 20:49:25 [4730] [0] INFO: Added logfile
 `/var/log/kannel/kannel.log' with level `0'.
 2011-09-28 20:49:25 [4730] [0] INFO: Started access logfile
 `/var/log/kannel/kannel-access.log'.
 2011-09-28 20:49:25 [4730] [0] INFO: HTTP: Opening server at port 13000.
 2011-09-28 20:49:25 [4730] [0] DEBUG: Started thread 1
 (gwlib/fdset.c:poller)
 2011-09-28 20:49:25 [4730] [0] DEBUG: Started thread 2
 (gwlib/http.c:server_thread)
 2011-09-28 20:49:25 [4730] [0] DEBUG: Started thread 3
 (gw/bb_http.c:httpadmin_run)
 2011-09-28 20:49:25 [4730] [0] DEBUG: starting smsbox connection module
 2011-09-28 20:49:25 [4730] [0] INFO: BOXC: 'smsbox-max-pending' not set,
 using default (100).
 2011-09-28 20:49:25 [4730] [0] DEBUG: Started thread 4
 (gw/bb_boxc.c:sms_to_smsboxes)
 2011-09-28 20:49:25 [4730] [0] DEBUG: Started thread 5
 (gw/bb_boxc.c:smsboxc_run)
 2011-09-28 20:49:25 [4730] [0] INFO: Set SMS resend frequency to 60
 seconds.
 2011-09-28 20:49:25 [4730] [0] INFO: SMS resend retry set to unlimited.
 2011-09-28 20:49:25 [4730] [0] DEBUG: smsbox MO concatenated message
 handling enabled
 2011-09-28 20:49:25 [4730] [0] INFO: DLR rerouting for smsc id VMA1
 disabled.
 2011-09-28 20:49:25 [4730] [0] ERROR: SMPP: Configuration file doesn't
 specify system-type.
 2011-09-28 20:49:25 [4730] [0] PANIC: Cannot start with SMSC connection
 failing
 2011-09-28 20:49:25 [4730] [0] PANIC:
 /usr/local/sbin/bearerbox(gw_panic+0xc2) [0x80cc0b2]
 2011-09-28 20:49:25 [4730] [0] PANIC:
 /usr/local/sbin/bearerbox(smsc2_start+0x419) [0x805a5a9]
 2011-09-28 20:49:25 [4730] [0] PANIC: /usr/local/sbin/bearerbox(main+0xc6b)
 [0x8053bab]
 2011-09-28 20:49:25 [4730] [0] PANIC:
 /lib/libc.so.6(__libc_start_main+0xdc) [0xc36dec]
 2011-09-28 20:49:25 [4730] [0] PANIC: /usr/local/sbin/bearerbox [0x8052211]
 [root@nat kannel]#
 It seems the SMSC expects the system-type parameter by all means!. Unless
 there is another solution, I may have to consult with the SMSC vendor.

 Thank you
 On Wed, Sep 28, 2011 at 8:45 PM, Stipe Tolj s...@tolj.org wrote:

 Am 28.09.2011 19:28, schrieb Mpeirwe Benjamin:

  Hello Good People,
 I have a challenge connecting to a new smpp connection, I bind to the
 connection
 so that when I send SMS, they are Accepted for delivery. Challenge is
 they are
 not delivered because at the SMSC side the response given is:
  SMSC returned error code 0x0102 (Specified service_type is
 unavailable) in
 response to submit_sm. as shown in the kannel.log file where I picked:
 2011-09-28 20:13:10 [4362] [11] DEBUG: boxc_receiver: sms received
 2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP[VMA1]: Sending PDU:
 2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU 0x9fcda60 dump:
 2011-09-28 20:13:10 [4362] [6] DEBUG:   type_name: submit_sm
 2011-09-28 20:13:10 [4362] [6] DEBUG:   command_id: 4 = 0x0004
 2011-09-28 20:13:10 [4362] [6] DEBUG:   command_status: 0 = 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   sequence_number: 12 = 0x000c
 2011-09-28 20:13:10 [4362] [6] DEBUG:   service_type: 
 2011-09-28 20:13:10 [4362] [6] DEBUG:   source_addr_ton: 5 = 0x0005
 2011-09-28 20:13:10 [4362] [6] DEBUG:   source_addr_npi: 0 = 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   source_addr: abcde
 2011-09-28 20:13:10 [4362] [6] DEBUG:   dest_addr_ton: 2 = 0x0002
 2011-09-28 20:13:10 [4362] [6] DEBUG:   dest_addr_npi: 1 = 0x0001
 2011-09-28 20:13:10 [4362] [6] DEBUG:   destination_addr: 1546785921
 2011-09-28 20:13:10 [4362] [6] DEBUG:   esm_class: 3 = 0x0003
 2011-09-28 20:13:10 [4362] [6] DEBUG:   protocol_id: 0 = 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   priority_flag: 0 = 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   schedule_delivery_time: NULL
 2011-09-28 20:13:10 [4362] [6] DEBUG:   validity_period: NULL
 2011-09-28 20:13:10 [4362] [6] DEBUG:   registered_delivery: 0 =
 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   replace_if_present_flag: 0 =
 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   data_coding: 0 = 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   sm_default_msg_id: 0 = 0x
 2011-09-28 20:13:10 [4362] [6] DEBUG:   sm_length: 47 = 0x002f
 2011-09-28 20:13:10 [4362] [6] DEBUG:   short_message:
 2011-09-28 20:13:10 [4362] [6] DEBUG:Octet string at 0x9fce680:
 2011-09-28 20:13:10 [4362] [6] DEBUG:  len:  47
 2011-09-28 20:13:10 [4362] [6] DEBUG:  size: 48
 2011-09-28 20:13:10 [4362] [6] DEBUG:  immutable: 0
 2011-09-28 20:13:10