testing Kannel with fakesmsc: Failed to open connection

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

testing Kannel with fakesmsc: Failed to open connection

umbertofilippo

Hi,

I am new to Kannel. I just installed it on my Ubuntu 16.04 SO and now testing the installation with 'fakesmsc'.

I am reading 'smskannel.conf' file and try to test with the trhee suggested steps:

  1. gw/bearerbox gw/smskannel.conf
  2. gw/smsbox gw/smskannel.conf
  3. test/fakesmsc -i 0.1 -m 100 "123 345 text nop"

steps 1. and 2. seem fine (bearerbox and smsbox are running correctly from two different terminal windows), but last step is failing.

Below is the messages  I receive, do you have any suggestion on what is the actual problem? Why is that  port 10000 in use when in the 'smskannel.conf' there's only port 13000 (for bbox), 13001 (for smsbox), 20000 (for smsc), 13013 (for send-sms and global-sender)?

Finally, I also tried to open port 10000 but that did not solve the problem (by 'sudo ufw allow 10000'). Thanks in advance for any help.

[hidden email] ./test/fakesmsc -i 0.1 -m 100 "123 345 text nop"
2017-02-11 16:24:45 [4996] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
2017-02-11 16:24:45 [4996] [0] INFO: Host localhost Port 10000 interval 0.100 max-messages 100
2017-02-11 16:24:45 [4996] [0] INFO: fakesmsc starting
2017-02-11 16:24:45 [4996] [0] DEBUG: Connecting to <127.0.0.1>
2017-02-11 16:24:45 [4996] [0] ERROR: connect to <127.0.0.1> failed
2017-02-11 16:24:45 [4996] [0] ERROR: System error 111: Connection refused
2017-02-11 16:24:45 [4996] [0] ERROR: error connecting to server `localhost' at port `10000'
2017-02-11 16:24:45 [4996] [0] PANIC: Failed to open connection
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(gw_backtrace+0xce) [0x419b4e]
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(gw_panic+0x16f) [0x419ccf]
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(main+0x986) [0x40a1b6]
2017-02-11 16:24:45 [4996] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fad8b8e6830]
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(_start+0x29) [0x40a249]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: testing Kannel with fakesmsc: Failed to open connection

umbertofilippo

Nevermind, I tested it using the right port (20000).

So, just as a note for people using the 'smskannel.conf' like me for testing (as explained in the official documentation page): the three steps to test the sms-gateway should be:

  1. gw/bearerbox gw/smskannel.conf
  2. gw/smsbox gw/smskannel.conf
  3. test/fakesmsc -r 20000 -i 0.1 -m 100 "123 345 text nop"

The -r argument is the port, which is the one declared in the sample 'smskannel.conf'.


On 11/02/2017 16:26, umbertofilippo wrote:

Hi,

I am new to Kannel. I just installed it on my Ubuntu 16.04 SO and now testing the installation with 'fakesmsc'.

I am reading 'smskannel.conf' file and try to test with the trhee suggested steps:

  1. gw/bearerbox gw/smskannel.conf
  2. gw/smsbox gw/smskannel.conf
  3. test/fakesmsc -i 0.1 -m 100 "123 345 text nop"

steps 1. and 2. seem fine (bearerbox and smsbox are running correctly from two different terminal windows), but last step is failing.

Below is the messages  I receive, do you have any suggestion on what is the actual problem? Why is that  port 10000 in use when in the 'smskannel.conf' there's only port 13000 (for bbox), 13001 (for smsbox), 20000 (for smsc), 13013 (for send-sms and global-sender)?

Finally, I also tried to open port 10000 but that did not solve the problem (by 'sudo ufw allow 10000'). Thanks in advance for any help.

[hidden email] ./test/fakesmsc -i 0.1 -m 100 "123 345 text nop"
2017-02-11 16:24:45 [4996] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
2017-02-11 16:24:45 [4996] [0] INFO: Host localhost Port 10000 interval 0.100 max-messages 100
2017-02-11 16:24:45 [4996] [0] INFO: fakesmsc starting
2017-02-11 16:24:45 [4996] [0] DEBUG: Connecting to <127.0.0.1>
2017-02-11 16:24:45 [4996] [0] ERROR: connect to <127.0.0.1> failed
2017-02-11 16:24:45 [4996] [0] ERROR: System error 111: Connection refused
2017-02-11 16:24:45 [4996] [0] ERROR: error connecting to server `localhost' at port `10000'
2017-02-11 16:24:45 [4996] [0] PANIC: Failed to open connection
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(gw_backtrace+0xce) [0x419b4e]
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(gw_panic+0x16f) [0x419ccf]
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(main+0x986) [0x40a1b6]
2017-02-11 16:24:45 [4996] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fad8b8e6830]
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(_start+0x29) [0x40a249]


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: testing Kannel with fakesmsc: Failed to open connection

umbertofilippo
In reply to this post by umbertofilippo

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.


On 11/02/2017 16:26, umbertofilippo wrote:

Hi,

I am new to Kannel. I just installed it on my Ubuntu 16.04 SO and now testing the installation with 'fakesmsc'.

I am reading 'smskannel.conf' file and try to test with the trhee suggested steps:

  1. gw/bearerbox gw/smskannel.conf
  2. gw/smsbox gw/smskannel.conf
  3. test/fakesmsc -i 0.1 -m 100 "123 345 text nop"

steps 1. and 2. seem fine (bearerbox and smsbox are running correctly from two different terminal windows), but last step is failing.

Below is the messages  I receive, do you have any suggestion on what is the actual problem? Why is that  port 10000 in use when in the 'smskannel.conf' there's only port 13000 (for bbox), 13001 (for smsbox), 20000 (for smsc), 13013 (for send-sms and global-sender)?

Finally, I also tried to open port 10000 but that did not solve the problem (by 'sudo ufw allow 10000'). Thanks in advance for any help.

[hidden email] ./test/fakesmsc -i 0.1 -m 100 "123 345 text nop"
2017-02-11 16:24:45 [4996] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
2017-02-11 16:24:45 [4996] [0] INFO: Host localhost Port 10000 interval 0.100 max-messages 100
2017-02-11 16:24:45 [4996] [0] INFO: fakesmsc starting
2017-02-11 16:24:45 [4996] [0] DEBUG: Connecting to <127.0.0.1>
2017-02-11 16:24:45 [4996] [0] ERROR: connect to <127.0.0.1> failed
2017-02-11 16:24:45 [4996] [0] ERROR: System error 111: Connection refused
2017-02-11 16:24:45 [4996] [0] ERROR: error connecting to server `localhost' at port `10000'
2017-02-11 16:24:45 [4996] [0] PANIC: Failed to open connection
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(gw_backtrace+0xce) [0x419b4e]
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(gw_panic+0x16f) [0x419ccf]
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(main+0x986) [0x40a1b6]
2017-02-11 16:24:45 [4996] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fad8b8e6830]
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(_start+0x29) [0x40a249]


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

R: testing Kannel with fakesmsc: Failed to open connection

umbertofilippo
Sorry I posted this in the wrong mail....

Da: [hidden email]
Inviato: ‎12/‎02/‎2017 20:04
A: [hidden email]
Oggetto: Re: testing Kannel with fakesmsc: Failed to open connection

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.


On 11/02/2017 16:26, umbertofilippo wrote:

Hi,

I am new to Kannel. I just installed it on my Ubuntu 16.04 SO and now testing the installation with 'fakesmsc'.

I am reading 'smskannel.conf' file and try to test with the trhee suggested steps:

  1. gw/bearerbox gw/smskannel.conf
  2. gw/smsbox gw/smskannel.conf
  3. test/fakesmsc -i 0.1 -m 100 "123 345 text nop"

steps 1. and 2. seem fine (bearerbox and smsbox are running correctly from two different terminal windows), but last step is failing.

Below is the messages  I receive, do you have any suggestion on what is the actual problem? Why is that  port 10000 in use when in the 'smskannel.conf' there's only port 13000 (for bbox), 13001 (for smsbox), 20000 (for smsc), 13013 (for send-sms and global-sender)?

Finally, I also tried to open port 10000 but that did not solve the problem (by 'sudo ufw allow 10000'). Thanks in advance for any help.

[hidden email] ./test/fakesmsc -i 0.1 -m 100 "123 345 text nop"
2017-02-11 16:24:45 [4996] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
2017-02-11 16:24:45 [4996] [0] INFO: Host localhost Port 10000 interval 0.100 max-messages 100
2017-02-11 16:24:45 [4996] [0] INFO: fakesmsc starting
2017-02-11 16:24:45 [4996] [0] DEBUG: Connecting to <127.0.0.1>
2017-02-11 16:24:45 [4996] [0] ERROR: connect to <127.0.0.1> failed
2017-02-11 16:24:45 [4996] [0] ERROR: System error 111: Connection refused
2017-02-11 16:24:45 [4996] [0] ERROR: error connecting to server `localhost' at port `10000'
2017-02-11 16:24:45 [4996] [0] PANIC: Failed to open connection
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(gw_backtrace+0xce) [0x419b4e]
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(gw_panic+0x16f) [0x419ccf]
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(main+0x986) [0x40a1b6]
2017-02-11 16:24:45 [4996] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fad8b8e6830]
2017-02-11 16:24:45 [4996] [0] PANIC: ./test/fakesmsc(_start+0x29) [0x40a249]


Loading...