RE: connecting to 2 smsc's

2006-03-29 Thread Rene Kluwen



It 
looks like smsc2 didn't open their firewall for you yet.

Rene 
Kluwen
Chimit

  -Original Message-From: matt pelletier 
  [mailto:[EMAIL PROTECTED]Sent: woensdag 29 maart 2006 
  1:22To: Rene KluwenCc: 
  users@kannel.orgSubject: Re: connecting to 2 
  smsc's
  No, smsc1 and smsc2 are to two separate entities (different ip addresses 
  and ports)
  smsc1 connects and works properly, but smsc2 connects, and then keeps 
  trying to connect over and over again.
  
  thanks,
  matt
  On 3/28/06, Rene 
  Kluwen [EMAIL PROTECTED] 
  wrote: 
  

Are smsc1  smsc2 
connections to the same server? With the same 
credentials?
Indeed, usually SMSC's 
don't allow that.

But... why would you want 
to do that?


Rene 
Kluwen
Chimit



  -Original 
  Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of matt 
  pelletierSent: woensdag 29 maart 2006 0:55 To: users@kannel.orgSubject: connecting to 2 
  smsc's
  Hello,
  I am trying to connect to two 
  separate smsc's through one instance of kannel via smpp.
  I modified the kannel.conf 
  with the (what I am assuming) needed information is.
  What is happening is that 
  smsc2 connects and I can send and receive data from them, but then keeps 
  trying to re-connect over and over again, causing smsc2 to drop the 
  connection; they only allow 1 bind per server. 
  smsc1 apparently connects 
  without any issues – I can receive messages from them, and no errors for 
  smsc1 are appearing in the kannel.log 
  
  Here is my kannel conf file, 
  and a chunk of the kannel.log from when I start kannel, see the failure, 
  then stop it. 
  
  Any ideas? 
  Any help would be greatly appreciated.
  
  Thanks!
  Matt
  
  Kannel log - 
  
  2006-03-28 14:47:29 [9599] [0] 
  INFO: 
  2006-03-28 14:47:29 [9599] [0] 
  INFO: Kannel bearerbox II version 1.4.0 starting
  2006-03-28 14:47:29 [9599] [0] 
  INFO: Loading store file `/opt/kannel/logs/kannel.store'
  2006-03-28 14:47:29 [9599] [0] 
  INFO: Store-file size 0, starting to unpack
  2006-03-28 14:47:29 [9599] [0] 
  INFO: Retrieved 0 messages, non-acknowledged messages: 0
  2006-03-28 14:47:29 [9599] [0] 
  INFO: MAIN: Start-up done, entering mainloop
  2006-03-28 14:47:30 [9599] 
  [12] INFO: Client connected from  127.0.0.1
  2006-03-28 14:47:35 [9599] 
  [10] ERROR: SMPP[smsc2]: I/O error or other error. 
  Re-connecting.
  2006-03-28 14:47:35 [9599] 
  [10] ERROR: SMPP[smsc2]: Couldn't connect to SMS center (retrying in 10 
  seconds).
  2006-03-28 14:47:51 [9599] 
  [10] ERROR: SMPP[smsc2]: I/O error or other error. 
  Re-connecting.
  2006-03-28 14:47:51 [9599] 
  [10] ERROR: SMPP[smsc2]: Couldn't connect to SMS center (retrying in 10 
  seconds).
  2006-03-28 14:47:59 [9599] [9] 
  ERROR: SMPP[smsc2]: I/O error or other error. Re-connecting.
  2006-03-28 14:47:59 [9599] [9] 
  ERROR: SMPP[smsc2]: Couldn't connect to SMS center (retrying in 10 
  seconds).
  2006-03-28 14:48:07 [9599] 
  [10] ERROR: SMPP[smsc2]: I/O error or other error. 
  Re-connecting.
  2006-03-28 14:48:07 [9599] 
  [10] ERROR: SMPP[smsc2]: Couldn't connect to SMS center (retrying in 10 
  seconds).
  2006-03-28 14:48:15 [9599] 
  [12] INFO: Connection closed by the box  127.0.0.1 
  2006-03-28 14:48:16 [9599] [0] 
  WARNING: Killing signal or HTTP admin command received, shutting 
  down...
  2006-03-28 14:48:16 [9599] [0] 
  INFO: All flow threads have died, killing core
  2006-03-28 14:48:16 [9599] [0] 
  INFO: Total WDP messages: received 0, sent 0
  2006-03-28 14:48:16 [9599] [0] 
  INFO: Total SMS messages: received 1, sent 0
  
  
  
  Kannel.conf – 
  
  group = core
  admin-port = 13000
  smsbox-port = 13001
  admin-password = 
bar
  status-password = 
  foo
  admin-allow-ip = 
  "xx.xx.xx.xx"
  log-file = 
  "/opt/kannel/logs/kannel.log"
  log-level = 1
  box-deny-ip = 
  "*.*.*.*"
  box-allow-ip = "127.0.0.1" 
  dlr-storage=internal
  access-log = 
  "/opt/kannel/logs/access.log"
  store-file = 
  "/opt/kannel/logs/kannel.store"
  
  # SMSC CONNECTIONS
  
  group = smsc
  smsc = smpp
  msg-id-type="0x01"
  smsc-id = smsc1
  host = "x"
  port = 3204
  receive-port = 3204
  transceiver-mode = 
  true
  enquire-link-interval = 
  30
  service-type = 3138
  smsc-username = 
  ""
  smsc-password = 
  ""
  system-type 
="x"
  address-range = ""
  alt-charset = 
LATIN1
  
  
  group = smsc
   

New Problem

2006-03-29 Thread Teo








Hi at all



Ive a new problem.



When I receive a SMS message, with the defined
sms-service I send an answer to the sender, but I have this error
that I dont understand:



2006-03-23 18:30:30
[7671] [7] INFO: AT2[TEO]: speed set to 9600

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- ATZ^M

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- AT^M

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- ATF^M

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- ATE0^M

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- ATE0

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- AT+IFC=2,2^M

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- AT+CPIN?^M

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- +CPIN: READY

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- AT+CSCA=+393358819500^M

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30
[7671] [7] DEBUG: AT2[TEO]: -- AT+CMGF=0^M

2006-03-23 18:30:31
[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:31
[7671] [7] DEBUG: AT2[TEO]: -- AT+CSMS=?^M

2006-03-23 18:30:31
[7671] [7] DEBUG: AT2[TEO]: -- +CSMS: (0,1)

2006-03-23 18:30:31
[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:31
[7671] [7] INFO: AT2[TEO]: Phase 2+ is supported

2006-03-23 18:30:31
[7671] [7] DEBUG: AT2[TEO]: -- AT+CSMS=1^M

2006-03-23 18:30:31
[7671] [7] DEBUG: AT2[TEO]: -- +CSMS: 1,1,1

2006-03-23 18:30:31
[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:31
[7671] [7] DEBUG: AT2[TEO]: -- AT+CNMI=1,2,0,1,0;+CMGF=0^M

2006-03-23 18:30:31
[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:31
[7671] [7] INFO: AT2[TEO]: AT SMSC successfully opened.

2006-03-23 18:30:31
[7671] [8] DEBUG: sms_router: list_len = 1

2006-03-23 18:30:33
[7671] [7] DEBUG: AT2[TEO]: TP-Validity-Period: 24.0 hours

2006-03-23 18:30:33
[7671] [7] DEBUG: AT2[TEO]: -- AT+CMGS=15^M

2006-03-23 18:30:33
[7671] [7] DEBUG: AT2[TEO]: -- 

2006-03-23 18:30:33
[7671] [7] DEBUG: AT2[TEO]: send command status: 1

2006-03-23 18:30:33
[7671] [7] DEBUG: AT2[TEO]: -- 0011000A81338975267000F1A702E937

2006-03-23 18:30:33
[7671] [7] DEBUG: AT2[TEO]: -- ^Z

2006-03-23 18:30:37
[7671] [7] DEBUG: AT2[TEO]: -- 

2006-03-23 18:30:37
[7671] [7] DEBUG: AT2[TEO]: -- +CMS ERROR: 500

2006-03-23 18:30:37
[7671] [7] ERROR: AT2[TEO]: CMS ERROR: +CMS ERROR: 500 (Unknown error. - maybe
Sim storage is full? I'll have a look at it.)

2006-03-23 18:30:37
[7671] [7] DEBUG: AT2[TEO]: send command status: 1

2006-03-23 18:30:37
[7671] [7] DEBUG: AT2[TEO]: -- AT+CMGS=15^M

2006-03-23 18:30:37
[7671] [7] DEBUG: AT2[TEO]: -- 



What can I do to resolve this problem?



Thanks a lot!

Teo








Re: Kannel HTTP Relay - URL POST ISSUE

2006-03-29 Thread Alejandro Guerrieri
You'll have to either touch the source code or use some scripting
glue to do that.

Performance-wise, I'd recommend you to take a look at smsc_http.c and
clone one of the existing HTTP modules to develop your own custom
system-type. Even with somewhat basic C skills you'd be able to make
the necessary mods.

Hope it helps,

On 3/29/06, Jay Acuesta [EMAIL PROTECTED] wrote:
 Good Day!

 My setup is that my Kannel SMSbox is connected to an ESME thru htpp (I
 followed the Kannel HTTP Relay guide). The ESME provided us with the URL to
 post our requests in this format :

 http://www.X.com/sendsms/sendsms.aspx?user=xpassword=yysmsto=441112223334smsfrom=12345smsmsg=Hellosmstype=1
 Upon setting up the configuration in my smsc group, upon invoking the
 cgi-bin/sendsms method, kannel sent this request

 GET
 /sendsms/sendsms.aspx?username=xpassword=yyto=441112223334text=Hellofrom=12345

 notice the differences in the parameters :

 ESME   KANNEL
 user  username
 smsto   to
 smsfromfrom
 smsmsgtext
 etc
 We would prefer a work around in the kannel side to resolve this minor issue
 than  requesting the ESME to adjust on their side mainly bacause we are
 expecting other ESME's to connect to.Any suggestions guys?

 Regards,

 Roland








 
 Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
 countries) for 2¢/min or less.




--
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/



Re: trying to open device with not closed device!!!

2006-03-29 Thread amit_1me

hi rashmi ,

try the following steps and all should work

first connect the serial data cable to ur phone ,your mobile should give you
an alert data accessory connected
then connect the other end to the com port
the open  a terminal and type 
wvdialconf 
and press enter 

this will scan all the ports and will give you the port that you have
connected the cable to

if the data cable  is connected then it will give you a string of similar to
AT ... something


if wvdialconf does not work try wvdialconf wvdial.conf

once this in does type minicom in the terminal and press enter 

this will show you initializing modem after which you will see type CTRl-A
Z for help keys which means type ctrl and a simultaneously and then z

this will show you some options and the key used to select them

in that go to modem and dialing in this there are 4 to 5 options 

select serial port and set it to ttyS0 cause default is ttyS1 

below that there is some option i dont remember go to that it will ask for
init String 

replace the string present with the string that you got when u ran
wvdailconf

now save this 

again run wvdialconf

if the output is i have said then type the following in terminal 
wvdailconf /etc/wvdial.conf

this will save your settings to wvdial.conf in /etc

now if you run wvdial you again get the string you got earlier

if u directly  run wvdial in the beginning itself then you will get a error
no default set for /dev/modem

after this is properly working go to the gw folder to start your bearerbox 

important points
1)your cell phone must show data accessory connected
2)always first connect cable to cell phone and then the com port
3)for the first time change the minicom settings and save configuration to
/etc

the wvdial.conf file differs from system to system 

if you are from mumbai mail me your number ,i will call you when i am on
working on kannel

bye
--
View this message in context: 
http://www.nabble.com/trying-to-open-device-with-not-closed-device%21%21%21-t1325051.html#a3655428
Sent from the Kannel - User forum at Nabble.com.




Fwd: Explanation mysql and dlr

2006-03-29 Thread vladimir calderon
Hi everyone,

just a little question

is ti possible from kannel to communicate with another gateway?

The problem is that a provider wouldn't let me contact directly with the smsc. And they have a gateway server. So, I need to know if it's possible to do it from kannel. I haven't seen anything like that in the docs (probably didn't search very well)



thanks in advance

vladimir


RE: Explanation mysql and dlr

2006-03-29 Thread Rayson Lee








Dear Vladimir,



If their gateway provides http
interface for you, you can set smsc = http in Kannel. Of course, you can also
go directly from your application to the gateway without using Kannel.



Best regards,



Rayson Lee

InnoAge Hong Kong Limited











From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of vladimir calderon
Sent: Thursday, March 30, 2006
8:12 AM
To: users@kannel.org
Subject: Fwd: Explanation mysql
and dlr







Hi everyone,











just a little question











is ti possible from kannel to communicate with another
gateway?











The problem is that a provider wouldn't let me contact
directly with the smsc. And they have a gateway server. So, I need to know if
it's possible to do it from kannel. I haven't seen anything like that in the
docs (probably didn't search very well) 

















thanks in advance











vladimir










Re: New Problem

2006-03-29 Thread Amar
hi teo,If u could show your conf file then might we can help.. i think the problem is because you had not given the smsc number in correct format. give as it is you find that in your message setting.  I also was getting same for sending sms and after changing that it is working fine for me. hope it might also work for you
regards--amarOn 29/03/06, Teo [EMAIL PROTECTED] wrote:
















Hi at all



I've a new problem.



When I receive a SMS message, with the defined
'sms-service' I send an answer to the sender, but I have this error
that I don't understand:



2006-03-23 18:30:30

[7671] [7] INFO: AT2[TEO]: speed set to 9600

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- ATZ^M

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- AT^M

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- ATF^M

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- ATE0^M

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- ATE0

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- AT+IFC=2,2^M

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- AT+CPIN?^M

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- +CPIN: READY

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- AT+CSCA=+393358819500^M

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:30

[7671] [7] DEBUG: AT2[TEO]: -- AT+CMGF=0^M

2006-03-23 18:30:31

[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:31

[7671] [7] DEBUG: AT2[TEO]: -- AT+CSMS=?^M

2006-03-23 18:30:31

[7671] [7] DEBUG: AT2[TEO]: -- +CSMS: (0,1)

2006-03-23 18:30:31

[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:31

[7671] [7] INFO: AT2[TEO]: Phase 2+ is supported

2006-03-23 18:30:31

[7671] [7] DEBUG: AT2[TEO]: -- AT+CSMS=1^M

2006-03-23 18:30:31

[7671] [7] DEBUG: AT2[TEO]: -- +CSMS: 1,1,1

2006-03-23 18:30:31

[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:31

[7671] [7] DEBUG: AT2[TEO]: -- AT+CNMI=1,2,0,1,0;+CMGF=0^M

2006-03-23 18:30:31

[7671] [7] DEBUG: AT2[TEO]: -- OK

2006-03-23 18:30:31

[7671] [7] INFO: AT2[TEO]: AT SMSC successfully opened.

2006-03-23 18:30:31

[7671] [8] DEBUG: sms_router: list_len = 1

2006-03-23 18:30:33

[7671] [7] DEBUG: AT2[TEO]: TP-Validity-Period: 24.0 hours

2006-03-23 18:30:33

[7671] [7] DEBUG: AT2[TEO]: -- AT+CMGS=15^M

2006-03-23 18:30:33

[7671] [7] DEBUG: AT2[TEO]: -- 

2006-03-23 18:30:33

[7671] [7] DEBUG: AT2[TEO]: send command status: 1

2006-03-23 18:30:33

[7671] [7] DEBUG: AT2[TEO]: -- 0011000A81338975267000F1A702E937

2006-03-23 18:30:33

[7671] [7] DEBUG: AT2[TEO]: -- ^Z

2006-03-23 18:30:37

[7671] [7] DEBUG: AT2[TEO]: -- 

2006-03-23 18:30:37

[7671] [7] DEBUG: AT2[TEO]: -- +CMS ERROR: 500

2006-03-23 18:30:37

[7671] [7] ERROR: AT2[TEO]: CMS ERROR: +CMS ERROR: 500 (Unknown error. - maybe
Sim storage is full? I'll have a look at it.)

2006-03-23 18:30:37

[7671] [7] DEBUG: AT2[TEO]: send command status: 1

2006-03-23 18:30:37

[7671] [7] DEBUG: AT2[TEO]: -- AT+CMGS=15^M

2006-03-23 18:30:37

[7671] [7] DEBUG: AT2[TEO]: -- 



What can I do to resolve this problem?



Thanks a lot!

Teo







-- Amar


Using HTTP requests in C

2006-03-29 Thread Julius David Bacolod
Now that I have successfully utilized the HTTP interface to use sendsms, Im trying to automate sendsms using C but the problem is I do not know how to make use of HTTP requests (POST, GET, etc.) in C. I know how to do that in Java (instantiating socket objects, open the Data I/O streams and then writeBytes method, quite easy), but in C I'm not familiar with. Im searching the Web for socket programming in C that mentions HTTP requests but I hardly see any.  Is there some way in C (just like in Java) that you would pass the the URL string to some C function and then it will sendsms? Just like this URL string:  http://localhost:13013/cgi-bin/sendsms?username=foopassword=barto=%2b1234text=Hello+World  By the way I'm just playing around with the localhost so that would be easier.  Anyone? If anyone could give us guides related to these and some code samples or snippets, we'll greatly appreciate.  Julius Bacolod 
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1/min.

example of post-xml

2006-03-29 Thread seema pannu
hello   could ugive me some example regarding Post-xml   how to use it # sms-service   group = sms-service   .   .   post-xml= give me example of URL //anyone of u used thisplzmail meand where to change thisPOST Content-Type to text/xmlregards seema   
		New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Re: Using HTTP requests in C

2006-03-29 Thread Pim van Riezen


On Mar 30, 2006, at 9:32 AM, Julius David Bacolod wrote:

Now that I have successfully utilized the HTTP interface to use  
sendsms, Im trying  to automate sendsms using C but the problem is  
I do not know how to make use of HTTP requests (POST, GET, etc.) in  
C. I know how to do that in Java (instantiating socket objects,  
open the Data I/O streams and then writeBytes method, quite easy),  
but in C I'm not familiar with. Im searching the Web for socket  
programming in C that mentions HTTP requests but I hardly see any.


Is there some way in C (just like in Java) that you would pass the  
the URL string to some C function and then it will sendsms? Just  
like this URL string:


The standard C library does not implement the HTTP protocol.
You may want to look into libcurl: http://curl.haxx.se/.

Cheers,
Pim van Riezen