Re: ERROR: System error 98: Address already in use

2017-02-28 Thread Rene Kluwen

Could you post your config?
Probably you mentioned port 13000 twice. Or otherwise something else 
happens to be running on that port on your machine already.


== Rene

-- Origineel bericht --
Van: "René Kapayo" 
Aan: users@kannel.org
Verzonden: 27-2-2017 13:24:45
Onderwerp: ERROR: System error 98: Address already in use


Dear all,
Thanks in advance for assistance.
I know that the error in object is current issue.
It's the first time I try to  run kannel.
My configuration is ok because the bearerbox, wapbox and smsbox
services are running. But I have this message where I execute the
command bearerbox /etc/kannel.conf.

Please find below the error message:
# bearerbox kannel.conf
2017-02-27 05:25:36 [9679] [0] INFO: Debug_lvl = -1, log_file =
, log_lvl = 0
2017-02-27 05:25:36 [9679] [0] WARNING: DLR: using default 'internal'
for storage type.
2017-02-27 05:25:36 [9679] [0] INFO: DLR using storage type: internal
2017-02-27 05:25:36 [9679] [0] DEBUG: Kannel bearerbox version `1.5.0'.
Build `Sep 29 2012 07:29:04', compiler `4.4.6 20110731 (Red Hat 
4.4.6-3)'.

System Linux, release 2.6.32-71.el6.i686, version #1 SMP Fri Nov 12
04:17:17 GMT 2010, machine i686.
Hostname SERVEURSMS, IP 192.168.89.129.
Libxml version 2.7.6.
Using OpenSSL 1.0.0-fips 29 Mar 2010.
Compiled with MySQL 5.1.52, using MySQL 5.1.47.
Using SQLite 3.6.20.
Using native malloc.

2017-02-27 05:25:36 [9679] [0] INFO: HTTP: Opening server at port 
13000.

2017-02-27 05:25:36 [9679] [0] ERROR: bind failed
2017-02-27 05:25:36 [9679] [0] ERROR: System error 98: Address already 
in use

2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 1
(gw/bb_http.c:httpadmin_run)
2017-02-27 05:25:36 [9679] [0] DEBUG: starting smsbox connection module
2017-02-27 05:25:36 [9679] [0] INFO: BOXC: 'smsbox-max-pending' not
set, using default (100).
2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 2
(gw/bb_boxc.c:sms_to_smsboxes)
2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 3
(gw/bb_boxc.c:smsboxc_run)
2017-02-27 05:25:36 [9679] [0] INFO: Set SMS resend frequency to 60 
seconds.

2017-02-27 05:25:36 [9679] [0] INFO: SMS resend retry set to unlimited.
2017-02-27 05:25:36 [9679] [0] DEBUG: MO concatenated message handling 
enabled
2017-02-27 05:25:36 [9679] [0] INFO: DLR rerouting for smsc id  
disabled.

2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 4
(gw/smsc/smsc_smpp.c:io_thread)
2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 5
(gw/bb_smscconn.c:sms_router)
2017-02-27 05:25:36 [9679] [0] DEBUG: starting wapbox connection module
2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 6
(gw/bb_boxc.c:wdp_to_wapboxes)
2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 7
(gw/bb_boxc.c:wapboxc_run)
2017-02-27 05:25:36 [9679] [0] DEBUG: starting WDP router
2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 8
(gw/bearerbox.c:wdp_router)
2017-02-27 05:25:36 [9679] [0] INFO: 

2017-02-27 05:25:36 [9679] [0] INFO: Kannel bearerbox II version 1.5.0 
starting

2017-02-27 05:25:36 [9679] [3] DEBUG: Thread 3
(gw/bb_boxc.c:smsboxc_run) maps to pid 9679.
2017-02-27 05:25:36 [9679] [3] ERROR: bind failed
2017-02-27 05:25:36 [9679] [3] ERROR: System error 98: Address already 
in use

2017-02-27 05:25:36 [9679] [3] PANIC: Could not open smsbox port 13001
2017-02-27 05:25:36 [9679] [3] PANIC: bearerbox(gw_panic+0xcd) 
[0x80decbd]

2017-02-27 05:25:36 [9679] [3] PANIC: bearerbox() [0x80592d8]
2017-02-27 05:25:36 [9679] [3] PANIC: bearerbox() [0x80d5b6e]
2017-02-27 05:25:36 [9679] [3] PANIC: /lib/libpthread.so.0() [0xcc69e9]
2017-02-27 05:25:36 [9679] [3] PANIC: /lib/libc.so.6(clone+0x5e) 
[0xbdddfe]


Best regard;


--
Rene






Re: ERROR: System error 98: Address already in use

2017-02-28 Thread Web Services
Hi,

this command for start bearbox and your error message shows port 13000 is
already in use that means your bearbox is running or if your bearbox not
running restart your server and try same command

thanks

On Mon, Feb 27, 2017 at 8:01 PM, René Kapayo  wrote:

> It's first time I use kannel. It's why I try several commands.
> Thank you for response.
>
> 2017-02-27 14:46 GMT+01:00 Web Services :
>
>> if your bearbox, sqlbox, smsbox running why you run this command ??
>>
>> On Mon, Feb 27, 2017 at 5:54 PM, René Kapayo  wrote:
>>
>>> Dear all,
>>> Thanks in advance for assistance.
>>> I know that the error in object is current issue.
>>> It's the first time I try to  run kannel.
>>> My configuration is ok because the bearerbox, wapbox and smsbox
>>> services are running. But I have this message where I execute the
>>> command bearerbox /etc/kannel.conf.
>>>
>>> Please find below the error message:
>>> # bearerbox kannel.conf
>>> 2017-02-27 05:25:36 [9679] [0] INFO: Debug_lvl = -1, log_file =
>>> , log_lvl = 0
>>> 2017-02-27 05:25:36 [9679] [0] WARNING: DLR: using default 'internal'
>>> for storage type.
>>> 2017-02-27 05:25:36 [9679] [0] INFO: DLR using storage type: internal
>>> 2017-02-27 05:25:36 [9679] [0] DEBUG: Kannel bearerbox version `1.5.0'.
>>> Build `Sep 29 2012 07:29:04', compiler `4.4.6 20110731 (Red Hat
>>> 4.4.6-3)'.
>>> System Linux, release 2.6.32-71.el6.i686, version #1 SMP Fri Nov 12
>>> 04:17:17 GMT 2010, machine i686.
>>> Hostname SERVEURSMS, IP 192.168.89.129.
>>> Libxml version 2.7.6.
>>> Using OpenSSL 1.0.0-fips 29 Mar 2010.
>>> Compiled with MySQL 5.1.52, using MySQL 5.1.47.
>>> Using SQLite 3.6.20.
>>> Using native malloc.
>>>
>>> 2017-02-27 05:25:36 [9679] [0] INFO: HTTP: Opening server at port 13000.
>>> 2017-02-27 05:25:36 [9679] [0] ERROR: bind failed
>>> 2017-02-27 05:25:36 [9679] [0] ERROR: System error 98: Address already
>>> in use
>>> 2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 1
>>> (gw/bb_http.c:httpadmin_run)
>>> 2017-02-27 05:25:36 [9679] [0] DEBUG: starting smsbox connection module
>>> 2017-02-27 05:25:36 [9679] [0] INFO: BOXC: 'smsbox-max-pending' not
>>> set, using default (100).
>>> 2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 2
>>> (gw/bb_boxc.c:sms_to_smsboxes)
>>> 2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 3
>>> (gw/bb_boxc.c:smsboxc_run)
>>> 2017-02-27 05:25:36 [9679] [0] INFO: Set SMS resend frequency to 60
>>> seconds.
>>> 2017-02-27 05:25:36 [9679] [0] INFO: SMS resend retry set to unlimited.
>>> 2017-02-27 05:25:36 [9679] [0] DEBUG: MO concatenated message handling
>>> enabled
>>> 2017-02-27 05:25:36 [9679] [0] INFO: DLR rerouting for smsc id 
>>> disabled.
>>> 2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 4
>>> (gw/smsc/smsc_smpp.c:io_thread)
>>> 2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 5
>>> (gw/bb_smscconn.c:sms_router)
>>> 2017-02-27 05:25:36 [9679] [0] DEBUG: starting wapbox connection module
>>> 2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 6
>>> (gw/bb_boxc.c:wdp_to_wapboxes)
>>> 2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 7
>>> (gw/bb_boxc.c:wapboxc_run)
>>> 2017-02-27 05:25:36 [9679] [0] DEBUG: starting WDP router
>>> 2017-02-27 05:25:36 [9679] [0] DEBUG: Started thread 8
>>> (gw/bearerbox.c:wdp_router)
>>> 2017-02-27 05:25:36 [9679] [0] INFO: --
>>> --
>>> 2017-02-27 05:25:36 [9679] [0] INFO: Kannel bearerbox II version 1.5.0
>>> starting
>>> 2017-02-27 05:25:36 [9679] [3] DEBUG: Thread 3
>>> (gw/bb_boxc.c:smsboxc_run) maps to pid 9679.
>>> 2017-02-27 05:25:36 [9679] [3] ERROR: bind failed
>>> 2017-02-27 05:25:36 [9679] [3] ERROR: System error 98: Address already
>>> in use
>>> 2017-02-27 05:25:36 [9679] [3] PANIC: Could not open smsbox port 13001
>>> 2017-02-27 05:25:36 [9679] [3] PANIC: bearerbox(gw_panic+0xcd)
>>> [0x80decbd]
>>> 2017-02-27 05:25:36 [9679] [3] PANIC: bearerbox() [0x80592d8]
>>> 2017-02-27 05:25:36 [9679] [3] PANIC: bearerbox() [0x80d5b6e]
>>> 2017-02-27 05:25:36 [9679] [3] PANIC: /lib/libpthread.so.0() [0xcc69e9]
>>> 2017-02-27 05:25:36 [9679] [3] PANIC: /lib/libc.so.6(clone+0x5e)
>>> [0xbdddfe]
>>>
>>> Best regard;
>>>
>>>
>>> --
>>> Rene
>>>
>>>
>>
>
>
> --
> Rene KAPAYO
> Ingenieur Informaticien
> Certifié Prince 2 Fundation
> Tél.(portable) : +236 75 20 25 79
> Domicile (portable) : +236 77 06 40 43
> B.P. 2533 Bangui
> Republique Centrafricaine
>
>
>


Re: R: Using my phone and Kannel to send SMS

2017-02-28 Thread umbertofilippo

Hi again,

first of all thanks BR and Alvaro for your advices. I am sorry I didn't 
have time to do some test before.


So, I am still having issues, but I am pretty sure I am very close to 
the solution.


I have tried another telephone: it's a Samsung GT S7309. I removed the 
PIN from the SIM and I turned off the data connectivity from the telephone.


Then I plugged it in my laptop and I can see a New Mobile Broadband 
connection in the Network Manager (I'm on Ubuntu 16.04).


Then I downloaded wvdial and did 'wvdialconf' as suggested to see info 
for the kannel config file.


At this point, I receive some messages, however it stalls on 
ttyACM1<*1>: ATQ0 V1 E1 --.


From the message I somehow noticed that the phone is probably under 
/dev/ttyACM1, so I changed my kannel conf file to point to that (the 
device variable is set to "/dev/ttyACM1").


I tried to launch the bearerbox with the edited conf file, and I 
received ERROR: AT2[/dev/ttyACM1]: Initialization of device failed. 
Attempt #1 on -1 max.


Does anybody have other ideas? I am digging in something new for me, but 
I am confident I can make it working!


The output from wvdialconf is pasted below, thanks in advance.

Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0   S1   S2   S3   S4   S5   S6   S7
Modem Port Scan<*1>: S8   S9   S10  S11  S12  S13  S14  S15
Modem Port Scan<*1>: S16  S17  S18  S19  S20  S21  S22  S23
Modem Port Scan<*1>: S24  S25  S26  S27  S28  S29  S30  S31
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0  -- ATQ0 V1 E1 S0=0 
ttyACM0<*1>: ATQ0 V1 E1 S0=0  -- ATQ0 V1 E1 S0=0 
ttyACM0<*1>: ATQ0 V1 E1 S0=0 +FCLASS=0 -- ERROR
ttyACM0<*1>: Modem Identifier: ATI -- +CME ERROR: 513
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- AT
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- failed with 460800 baud, next try: 9600 baud
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- +CME ERROR: 513
ttyACM0<*1>: failed with 9600 baud, next try: 115200 baud
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- ATQ0 V1 E1 S0=0
ttyACM0<*1>: and failed too at 115200, giving up.
ttyACM1<*1>: ATQ0 V1 E1 --


On 14/02/2017 14:58, Alvaro Cornejo wrote:

Hi

You can use vwdial to detect your modem and it will even give you an 
initialization string to start with.


run "wvdialconf" and check what does it said about your ports

Regards,

Alvaro

|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier 
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via 
SMS y GPRS online

  Visitenos en www.perusms.com 

2017-02-14 4:40 GMT-05:00 info.ubichip >:


Hello,

perhaps, the first step is not to start kannel, but only try to
make a connect to your tty then, try to make 'ATZ', and then see
the answer from the modem.

If there is no answer, it looks to be an speed connection modem
setup issue, then try another speed, and so on.

BR

*De :*users [mailto:users-boun...@kannel.org
] *De la part de* umbertofilippo
*Envoyé :* lundi 13 février 2017 22:46
*À :* users@kannel.org 
*Objet :* Re: R: Using my phone and Kannel to send SMS

I finally managed to recognize which tty my phone is assigned (tty9).

But now I ma having permission issues. I read from the user guide
"In Ubuntu linux you just need to assign kannel user to group
"dial"", but I don't know what that means...

So I tried the discouraged way just for testing: the
initialization with sudo.

I am still having issues. I am receiving:

"ERROR: AT2[/dev/tty9]: Wrong or no answer to ATZ"

"INFO: AT2[/dev/tty9]: Closing device"

"ERROR: AT2[/dev/tty9]: Couldn't connect"

Is it something related to the speed (at the moment it is set to
9600)?

Thanks in advance for any help.

On 13/02/2017 08:02, umbertofilippo wrote:

Forgot to say that I plugged my phone via USB cable and it was
recognized properly by my system. I am on Ubuntu 16.04.



*Da: *umbertofilippo 
*Inviato: *‎12/‎02/‎2017 20:03
*A: *users@kannel.org 
*Oggetto: *Using my phone and Kannel to send SMS

Hi,

I am trying to use my Nokia Lumia 625 to send