Change addr_ton and addr_npi
Hi,milister How can I change addr_ton=2 and addr_npi=1 ? I debug kannel process, and it show below : 2006-03-02 13:27:17 [15289] [7] DEBUG: SMPP[ESIA]: Sending PDU: 2006-03-02 13:27:17 [15289] [7] DEBUG: SMPP PDU 0x8198988 dump: 2006-03-02 13:27:17 [15289] [7] DEBUG: type_name: bind_transmitter 2006-03-02 13:27:17 [15289] [7] DEBUG: command_id: 2 = 0x0002 2006-03-02 13:27:17 [15289] [7] DEBUG: command_status: 0 = 0x 2006-03-02 13:27:17 [15289] [7] DEBUG: sequence_number: 10 = 0x000a 2006-03-02 13:27:17 [15289] [7] DEBUG: system_id: "x" 2006-03-02 13:27:17 [15289] [7] DEBUG: password: "x" 2006-03-02 13:27:17 [15289] [7] DEBUG: system_type: "SMPP" 2006-03-02 13:27:17 [15289] [7] DEBUG: interface_version: 52 = 0x0034 2006-03-02 13:27:17 [15289] [7] DEBUG: addr_ton: 0 = 0x 2006-03-02 13:27:17 [15289] [7] DEBUG: addr_npi: 0 = 0x 2006-03-02 13:27:17 [15289] [7] DEBUG: address_range: NULL 2006-03-02 13:27:17 [15289] [7] DEBUG: SMPP PDU dump ends. My kannel configurations is like : group = smsc smsc = smpp smsc-id = Exxx denied-smsc-id = Ixx preferred-smsc-id = Exxx host = xxx.xxx.xxx.xxx port = receive-port = transceiver-mode = false smsc-username = x smsc-password = x connect-allow-ip = "*.*.*.*" system-type = SMPP interface-version = 34 source-addr-autodetect = false source-addr-ton = 2 source-addr-npi = 1 dest-addr-ton = 2 dest-addr-npi = 1 connection-timeout = 0 enquire-link-interval = 3600 reconnect-delay = 20 our-host = 192.168.1.4 msg-id-type = 0x00 my-number = 8161 throughput = 2 Regards Danton Tanjung
Re: sending frensh characters with sendsms-user (accents like é à ç ...)
Hi, Check your flags : Flags 0:1:0:0:0 Flags: MClass, Coding, MWI, Compress, DLRMask message coding: 0 (default, 7 bits), 1 (8 bits) or 2 (Unicode) 2006-03-01 17:49:02 Receive SMS [flags:-1:3:-1:0:-1] ^^ You should change your encoding flags or/and ask your operator to do it. regards Vincent -- Telemaque - NICE - (FR) Service Technique - Developpement http://www.telemaque.fr/ [EMAIL PROTECTED] Tel : +33 4 93 97 71 64 (fax 68) - Original Message - From: "Zouari Fourat" <[EMAIL PROTECTED]> To: "Vincent CHAVANIS" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, March 01, 2006 5:56 PM Subject: Re: sending frensh characters with sendsms-user (accents like é à ç ...) i have the same problem with MO traffic : Here's what i get in my access-log when receiving MO with some accents like é ç ... 2006-03-01 17:49:02 Receive SMS [SMSC:SMPP-02-FT] [SVC:] [ACT:] [BINF:] [from:25353512] [to:85057] [flags:-1:3:-1:0:-1] [msg:11:3] [udh:1:00] here's a normal access-log line for a non accentuated MO (the sms content is 'CA'): 2006-03-01 17:47:15 Receive SMS [SMSC:SMPP-02-FT] [SVC:] [ACT:] [BINF:] [from:25353512] [to:85057] [flags:-1:0:-1:0:-1] [msg:2:CA] [udh:0:] See the difference in flags and udh, how to interpret that ? what does that means ? how to get my MO ? On 2/22/06, Vincent CHAVANIS <[EMAIL PROTECTED]> wrote: > Dear, > > I never had this problem. > > >example : "équipe" > >the sms received will be : "ACquipe" > > Seems that you're utf8-encode your string. é=Ã(c) than is converted in AC > > regards > > Vincent > > -- > Telemaque - NICE - (FR) > Service Technique - Developpement > http://www.telemaque.fr/ > [EMAIL PROTECTED] > Tel : +33 4 93 97 71 64 (fax 68) > > - Original Message - > From: "Zouari Fourat" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, February 22, 2006 1:16 PM > Subject: sending frensh characters with sendsms-user (accents like é à ç ...) > > > Hello, > I coded a script that open a connexion to my kannel's smsbox to send > an sms, the script is working, but when trying to send a string > containing some accents, > > example : "équipe" > the sms received will be : "ACquipe" > > am using php, coding the input string with urlencode so it will be > trasmitted as : "%E9quipe" > but as you see, kannel doesnt seem to 'urldecode' that string to get > back to "équipe". > knowing that when querying the smsbox with firefox url : > http://host:port/cgi-bin/sendsms?to=number&content=équipe > the sms will be received as "équipe" > firefox will also reload the url and transform "équipe" to "%E9quipe" > > what's the matter, whad did i miss ? > thanks for any help, Fourat > > > >
Re: SQLBox Mysql Connection
Hi, I think I've worked out what was wrong, although I was setting the host for the DB, the sqlbox was always trying to connect to `localhost`. I set up mysql on the same machine and it can now connect. Although, it has led me to a different problem- the sqlbox will create the tables but will not write incoming or outgoing traffic into them. There are no sql errors in the logs. Has anyone experienced a similar problem? Stuart - Original Message - From: "Rene Kluwen" <[EMAIL PROTECTED]> To: "Stuart" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, March 01, 2006 1:58 PM Subject: Re: SQLBox Mysql Connection What do your logfile say? Rene Kluwen Chimit Hi, Thanks for your reply Here's the config for group = smsbox: # SMSBOX SETUP group = smsbox bearerbox-host = localhost bearerbox-is-sqlbox = true #sendsms-port = 13013 sendsms-port = 13013 global-sender = "12345" sendsms-url = "/cgi-bin/sendsms" #sendsms-chars = "0123456789 +-" log-file = "/var/log/kannel/smsbox.log" #log-level = 0 access-log = "/var/log/kannel/access.log" I've also set "bearerbox-is-sqlbox = true" in the "smsbox" group. Stuart - Original Message - From: "Rene Kluwen" <[EMAIL PROTECTED]> To: "Stuart" <[EMAIL PROTECTED]> Sent: Wednesday, March 01, 2006 1:23 PM Subject: Re: SQLBox Mysql Connection How about group = smsbox? Do you use the parameter bearerbox-is-sqlbox? Rene Kluwen Chimit Hi, I'm trying to set up sqlbox to log incoming and outgoing messages to / from the smbox but cannot get the smsbox to connect to mysql. I'm using the same connection settings as I did for dlr with mysql and that worked fine. Is there something I'm missing? It's running on SuSe 10 on a dual 64-bit Xeon machine. The code make's with no error and I'm using the latest cvs of kannel and sqlbox. Here is a snippet of the conf file: # mysql DLR group = mysql-connection id = mydlr host = db.X.com username = X password = X database = test max-connections = 4 and, # SQLBOX SETUP group = sqlbox # id corresponds to id in group = mysql-connection. # this is analogous to id in group = dlr-db id = mydlr # smsbox-id indicates the box where SQL-injected messages appear to be coming from smsbox-id = sqlbox2 # bearerbox host to connect to bearerbox-host = "localhost" # smsbox port to be listening on smsbox-port = 13013 ##smsbox-port-ssl = false # sql-log-table is the table used to log all sent messages sql-log-table = sent_sms # sql-insert-table is the table that is monitored for new messages to send sql-insert-table = send_sms # global sender: If no sender is specified in sql-insert-table then this # value is used. global-sender = 06121 # log-file = log-file = "/var/log/kannel/sqlbox.log" # log-level = 10 # ssl-client-certkey-file = "" # ssl-server-cert-file = "" # ssl-server-key-file = "" # ssl-trusted-ca-file = "" Any help with this would be much appreciated, thanks! Stuart
Re: sending frensh characters with s endsms-user (accents like é à ç ...)
i have the same problem with MO traffic : Here's what i get in my access-log when receiving MO with some accents like é ç ... 2006-03-01 17:49:02 Receive SMS [SMSC:SMPP-02-FT] [SVC:] [ACT:] [BINF:] [from:25353512] [to:85057] [flags:-1:3:-1:0:-1] [msg:11:3] [udh:1:00] here's a normal access-log line for a non accentuated MO (the sms content is 'CA'): 2006-03-01 17:47:15 Receive SMS [SMSC:SMPP-02-FT] [SVC:] [ACT:] [BINF:] [from:25353512] [to:85057] [flags:-1:0:-1:0:-1] [msg:2:CA] [udh:0:] See the difference in flags and udh, how to interpret that ? what does that means ? how to get my MO ? On 2/22/06, Vincent CHAVANIS <[EMAIL PROTECTED]> wrote: > Dear, > > I never had this problem. > > >example : "équipe" > >the sms received will be : "ACquipe" > > Seems that you're utf8-encode your string. é=Ã(c) than is converted in AC > > regards > > Vincent > > -- > Telemaque - NICE - (FR) > Service Technique - Developpement > http://www.telemaque.fr/ > [EMAIL PROTECTED] > Tel : +33 4 93 97 71 64 (fax 68) > > - Original Message - > From: "Zouari Fourat" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, February 22, 2006 1:16 PM > Subject: sending frensh characters with sendsms-user (accents like é à ç ...) > > > Hello, > I coded a script that open a connexion to my kannel's smsbox to send > an sms, the script is working, but when trying to send a string > containing some accents, > > example : "équipe" > the sms received will be : "ACquipe" > > am using php, coding the input string with urlencode so it will be > trasmitted as : "%E9quipe" > but as you see, kannel doesnt seem to 'urldecode' that string to get > back to "équipe". > knowing that when querying the smsbox with firefox url : > http://host:port/cgi-bin/sendsms?to=number&content=équipe > the sms will be received as "équipe" > firefox will also reload the url and transform "équipe" to "%E9quipe" > > what's the matter, whad did i miss ? > thanks for any help, Fourat > > > >
Re: SQLBox Mysql Connection
Hi, 2006-03-01 13:35:33 [24447] [0] INFO: Added logfile `/var/log/kannel/sqlbox.log' with level `0'. 2006-03-01 13:35:33 [24447] [0] ERROR: MYSQL: can not connect to database! 2006-03-01 13:35:33 [24447] [0] ERROR: MYSQL: Can't connect to MySQL server on 'db1.X.com' (111) 2006-03-01 13:35:33 [24447] [0] ERROR: MYSQL: can not connect to database! 2006-03-01 13:35:33 [24447] [0] ERROR: MYSQL: Can't connect to MySQL server on 'db1.X.com' (111) 2006-03-01 13:35:33 [24447] [0] ERROR: MYSQL: can not connect to database! 2006-03-01 13:35:33 [24447] [0] ERROR: MYSQL: Can't connect to MySQL server on 'db1.X.com' (111) 2006-03-01 13:35:33 [24447] [0] ERROR: MYSQL: can not connect to database! 2006-03-01 13:35:33 [24447] [0] ERROR: MYSQL: Can't connect to MySQL server on 'db1.X.com' (111) 2006-03-01 13:35:33 [24447] [0] PANIC: SQLBOX: MySQL: database pool has no connections! 2006-03-01 13:35:33 [24447] [0] PANIC: ./sqlbox/sqlbox(gw_panic+0x255) [0x425f74] 2006-03-01 13:35:33 [24447] [0] PANIC: ./sqlbox/sqlbox(sqlbox_init_mysql+0x3e6) [0x40e1a7] 2006-03-01 13:35:33 [24447] [0] PANIC: ./sqlbox/sqlbox(sqlbox_init_sql+0x22) [0x40c7ee] 2006-03-01 13:35:33 [24447] [0] PANIC: ./sqlbox/sqlbox [0x409a2c] 2006-03-01 13:35:33 [24447] [0] PANIC: ./sqlbox/sqlbox(main+0x110) [0x409bed] 2006-03-01 13:35:33 [24447] [0] PANIC: /lib64/tls/libc.so.6(__libc_start_main+0xea) [0x2b7ff54a] 2006-03-01 13:35:33 [24447] [0] PANIC: ./sqlbox/sqlbox [0x408a3a] Thanks, Stuart - Original Message - From: "Rene Kluwen" <[EMAIL PROTECTED]> To: "Stuart" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, March 01, 2006 1:58 PM Subject: Re: SQLBox Mysql Connection What do your logfile say? Rene Kluwen Chimit Hi, Thanks for your reply Here's the config for group = smsbox: # SMSBOX SETUP group = smsbox bearerbox-host = localhost bearerbox-is-sqlbox = true #sendsms-port = 13013 sendsms-port = 13013 global-sender = "12345" sendsms-url = "/cgi-bin/sendsms" #sendsms-chars = "0123456789 +-" log-file = "/var/log/kannel/smsbox.log" #log-level = 0 access-log = "/var/log/kannel/access.log" I've also set "bearerbox-is-sqlbox = true" in the "smsbox" group. Stuart - Original Message - From: "Rene Kluwen" <[EMAIL PROTECTED]> To: "Stuart" <[EMAIL PROTECTED]> Sent: Wednesday, March 01, 2006 1:23 PM Subject: Re: SQLBox Mysql Connection How about group = smsbox? Do you use the parameter bearerbox-is-sqlbox? Rene Kluwen Chimit Hi, I'm trying to set up sqlbox to log incoming and outgoing messages to / from the smbox but cannot get the smsbox to connect to mysql. I'm using the same connection settings as I did for dlr with mysql and that worked fine. Is there something I'm missing? It's running on SuSe 10 on a dual 64-bit Xeon machine. The code make's with no error and I'm using the latest cvs of kannel and sqlbox. Here is a snippet of the conf file: # mysql DLR group = mysql-connection id = mydlr host = db.X.com username = X password = X database = test max-connections = 4 and, # SQLBOX SETUP group = sqlbox # id corresponds to id in group = mysql-connection. # this is analogous to id in group = dlr-db id = mydlr # smsbox-id indicates the box where SQL-injected messages appear to be coming from smsbox-id = sqlbox2 # bearerbox host to connect to bearerbox-host = "localhost" # smsbox port to be listening on smsbox-port = 13013 ##smsbox-port-ssl = false # sql-log-table is the table used to log all sent messages sql-log-table = sent_sms # sql-insert-table is the table that is monitored for new messages to send sql-insert-table = send_sms # global sender: If no sender is specified in sql-insert-table then this # value is used. global-sender = 06121 # log-file = log-file = "/var/log/kannel/sqlbox.log" # log-level = 10 # ssl-client-certkey-file = "" # ssl-server-cert-file = "" # ssl-server-key-file = "" # ssl-trusted-ca-file = "" Any help with this would be much appreciated, thanks! Stuart
Re: SQLBox Mysql Connection
What do your logfile say? Rene Kluwen Chimit > Hi, > > Thanks for your reply > > Here's the config for group = smsbox: > > # SMSBOX SETUP > > group = smsbox > bearerbox-host = localhost > bearerbox-is-sqlbox = true > #sendsms-port = 13013 > sendsms-port = 13013 > global-sender = "12345" > sendsms-url = "/cgi-bin/sendsms" > #sendsms-chars = "0123456789 +-" > log-file = "/var/log/kannel/smsbox.log" > #log-level = 0 > access-log = "/var/log/kannel/access.log" > > I've also set "bearerbox-is-sqlbox = true" in the "smsbox" group. > > Stuart > > - Original Message - > From: "Rene Kluwen" <[EMAIL PROTECTED]> > To: "Stuart" <[EMAIL PROTECTED]> > Sent: Wednesday, March 01, 2006 1:23 PM > Subject: Re: SQLBox Mysql Connection > > >> How about >> >> group = smsbox? >> >> Do you use the parameter bearerbox-is-sqlbox? >> >> Rene Kluwen >> Chimit >> >>> Hi, >>> >>> I'm trying to set up sqlbox to log incoming and outgoing messages to / >>> from >>> the smbox but cannot get the smsbox to connect to mysql. >>> >>> I'm using the same connection settings as I did for dlr with mysql and >>> that >>> worked fine. Is there something I'm missing? It's running on SuSe 10 on >>> a >>> dual 64-bit Xeon machine. The code make's with no error and I'm using >>> the >>> latest cvs of kannel and sqlbox. >>> >>> Here is a snippet of the conf file: >>> >>> # mysql DLR >>> group = mysql-connection >>> id = mydlr >>> host = db.X.com >>> username = X >>> password = X >>> database = test >>> max-connections = 4 >>> >>> and, >>> >>> # SQLBOX SETUP >>> group = sqlbox >>> # id corresponds to id in group = mysql-connection. >>> # this is analogous to id in group = dlr-db >>> id = mydlr >>> # smsbox-id indicates the box where SQL-injected messages appear to be >>> coming from >>> smsbox-id = sqlbox2 >>> # bearerbox host to connect to >>> bearerbox-host = "localhost" >>> # smsbox port to be listening on >>> smsbox-port = 13013 >>> ##smsbox-port-ssl = false >>> # sql-log-table is the table used to log all sent messages >>> sql-log-table = sent_sms >>> # sql-insert-table is the table that is monitored for new messages to >>> send >>> sql-insert-table = send_sms >>> # global sender: If no sender is specified in sql-insert-table then >>> this >>> # value is used. >>> global-sender = 06121 >>> # log-file = >>> log-file = "/var/log/kannel/sqlbox.log" >>> # log-level = 10 >>> # ssl-client-certkey-file = "" >>> # ssl-server-cert-file = "" >>> # ssl-server-key-file = "" >>> # ssl-trusted-ca-file = "" >>> >>> Any help with this would be much appreciated, thanks! >>> >>> Stuart >>> >>> >>> >>> >> >> > > >
Re: problem receiving MOz larger than 160 characters
anyone can help me ? On 2/28/06, Zouari Fourat <[EMAIL PROTECTED]> wrote: > hello, > am trying to test how kannel is receiving MOz larger than > 160character, i dont understand why it's writing the MO content as '?' > example : i sent an MO with 220 character, here's what i got in my access-log > : > > 2006-02-28 21:57:26 Receive SMS [SMSC:SMPP-02-TZ] [SVC:] [ACT:] > [BINF:] [from:62353312] [to:94027] [flags:-1:0:-1:0:-1] [msg:1:¿] > [udh:0:] > 2006-02-28 21:57:36 Receive SMS [SMSC:SMPP-02-TZ] [SVC:] [ACT:] > [BINF:] [from:62353312] [to:94027] [flags:-1:0:-1:0:-1] [msg:1:¿] > [udh:0:] > > see that inversed '?' ? > what's that ? how can i get my message ? what's the conf for that ? >