Re: %P in sms-service

2008-03-16 Thread Tulga . G
add

my-number = 12345

to smsc configuration. it must be change your number to 12345

On Mon, Mar 17, 2008 at 5:37 AM, Iain Dooley
[EMAIL PROTECTED] wrote:
 hi tulga,


   I think it is not destination number. it is my-number in your smsc
   group. could you send your configuration file?

  so, file below. whether i use %P or %Q it still produces the send sms port
  number. i have gotten around this problem by ading the %I placeholder to
  the log file, then doing:

  trim(shell_exec('egrep '.$id.' /tmp/access.log | sed
  s/.*to:\+\([0-9]*\).*/+\1/g'));

  to grep the destination out of the log file :S very non-ideal but i needed
  it working by today!!

  any help you can offer is most appreciated.

  cheers

  iain

  MY CONFIGURATION FILE:

  group = core
  admin-port = APORT
  smsbox-port = SBPORT
  admin-password = PASS
  dlr-storage = internal
  admin-deny-ip = *.*.*.*
  admin-allow-ip = 127.0.0.1
  log-file = /tmp/kannel.log
  log-level = 1
  box-deny-ip = *.*.*.*
  box-allow-ip = 127.0.0.1
  access-log = /tmp/access.log
  access-log-format= %I %t %l [SMSC:%i] [SVC:%n] [ACT:%A] [BINF:%B]
  [from:%p] [to:%P] [flags:%m:%c:%M:%C:%d] [msg:%L:%b] [udh:%U:%u]
  #sms-combine-concatenated-mo=true

  # SMSC CONNECTIONS

  group = smsc
  smsc = smpp
  host = MYHOST
  port = 0
  receive-port = RPORT
  system-type = VMA
  connect-allow-ip = 127.0.0.1
  smsc-username = USERNAME
  smsc-password = PASSWORD
  smsc-id = 0001
  transceiver-mode = 0
  msg-id-type = 0x01


  # SMSBOX SETUP

  group = smsbox
  bearerbox-host = localhost
  sendsms-port = SPORT
  global-sender = SPORT
  #sendsms-chars = 0123456789 +-
  log-file = /tmp/smsbox.log
  log-level = 1
  access-log = /tmp/access.log

  # SEND-SMS USERS

  # SERVICES
  group = sms-service
  keyword =
  keyword-regex = .*
  catch-all = yes
  max-messages = 0
  accept-x-kannel-headers=1
  get-url = URL?from=%pto=%Qmsg=%audh=%uid=%I

  # there should be default always
  group = sms-service
  keyword = default
  max-messages=0
  text=No service set





-- 
Head Technology Department
G-Mobile Corporation
Ulaanbaatar, Mongolia
Mobile: +976-9810
Tel: +976-11-311198
Fax: +976-11-311195
Web: http://www.g-mobile.mn



Re: %P in sms-service

2008-03-15 Thread Tulga . G
I think it is not destination number. it is my-number in your smsc
group. could you send your configuration file?

On Sat, Mar 15, 2008 at 11:02 PM, Iain Dooley
[EMAIL PROTECTED] wrote:
 has anyone else seen the problem where %P in your get-url of an
  sms-service configuration sends the port number rather than the
  destination number?

  cheers

  iain





-- 
Head Technology Department
G-Mobile Corporation
Ulaanbaatar, Mongolia
Mobile: +976-9810
Tel: +976-11-311198
Fax: +976-11-311195
Web: http://www.g-mobile.mn



cannot sent SMS from http

2007-10-12 Thread Tulga . G
Hi list,

I connected server through SMPP 3.4. Now I can receive SMS, then I try to
send like:

http://192.168.0.19:13013/cgi-bin/sendsms?username=coolpassword=passwordto=101101text=CONTENT

then smsbox.log:

2007-10-12 16:07:55 [11245] [3] INFO: smsbox: Got HTTP request
/cgi-bin/sendsms from 192.168.0.19
2007-10-12 16:07:55 [11245] [3] INFO: sendsms used by cool
2007-10-12 16:07:55 [11245] [3] INFO: sendsms sender:cool:101102 (
192.168.0.19) to:101101 msg:CONTENT
2007-10-12 16:07:55 [11245] [3] DEBUG: Stored UUID
06989d78-f16f-4f59-add0-91a5cb42b23c
2007-10-12 16:07:55 [11245] [3] INFO: No reply sent, denied.
2007-10-12 16:07:55 [11245] [3] DEBUG: Status: 202 Answer: Sent.
2007-10-12 16:07:55 [11245] [3] DEBUG: Delayed reply - wait for bearerbox

but bearerbox receive nothing. how to solve it?

Thanks,
Tulga.G


freebsd ports

2007-10-02 Thread Tulga . G
Hi list,

I installed kannel 1.4.1 from ports on freebsd 6.2. but installer not
install fakesmsc, then now I cannot test configuration. howto install
fakesmsc?

-- 
Senior Engineer of Technology Division
G-Mobile Corporation
Ulaanbaatar, Mongolia
Tel: +976-11-311198
Fax: +976-11-311195
Web: http://www.g-mobile.mn


Re: Problem sending sms

2007-08-15 Thread Tulga . G
I think you need config dest_addr_ton and dest_addr_npi

On 8/15/07, Alejandro Guerrieri [EMAIL PROTECTED] wrote:

 Invalid Destination Address means that the mobile number was
 rejected by the SMSC. Maybe you're missing some prefix, maybe the
 number was rejected by some other reasons (it happened to me that some
 carriers throw that error when the number does not have enough credit,
 for example). Check if you're formatting the number exactly as
 received, otherwise check with the SMSC operator, maybe they require
 something different (some require international formatting even when
 they send you the number without it).

 Regards,

 Alejandro
 On 8/15/07, Amr Qanadilo //AMC// [EMAIL PROTECTED] wrote:
 
 
 
 
  Dear All;
 
 
 
  Hello All,
 
 
 
  I have connected and sent msgs via kannel. it was working perfect. now,
 when
  i tired to receive msgs it did not work. then, after some time i came to
  know that it was due to the fact that my shortcode provider did not
  initiated the short codes. then after they did it. i am able to receive
 msgs
  but i can not send any, i am getting this error.
 
 
 
  ERROR: SMPP[SMPP:10.1.1.144:6060/6060:arabmo:VMA]: SMSC returned error
 code
  0x000b (Invalid Destination Address) in response to submit_sm.
 
 
 
 
 
  Kannel config
 
 
 
 
 
  group = core
 
  admin-port = 13000
 
  wapbox-port = 13001
 
  smsbox-port = 13002
 
  admin-password = bar
 
  admin-deny-ip = *.*.*.*
 
  admin-allow-ip = 127.0.0.1
 
  wdp-interface-name = *
 
  store-file = kannel.store
 
  unified-prefix = +962,00962,0;+,00
 
  log-file = /var/log/bearerbox.log
 
  log-level = 0
 
  box-deny-ip = *.*.*.*
 
  box-allow-ip = 127.0.0.1
 
  dlr-storage = internal
 
 
 
  include = wapbox.conf
 
 
 
  group = smsbox
 
  bearerbox-host = 127.0.0.1
 
  sendsms-port = 13013
 
  #sendsms-url = http://domain.com/cgi-bin/test/sendsms
 
  global-sender = 12345
 
  sendsms-chars = 0123456789 +-
 
  log-file = /tmp/smsbox.log
 
  log-level = 0
 
  access-log = /tmp/access.log`
 
 
 
 
 
  group = smsc
 
  smsc = smpp
 
  host = x.x.x.x
 
  port = 
 
  receive-port = 
 
  smsc-username = 
 
  smsc-password = 
 
  system-type = VMA
 
  address-range =
 
 
 
  group = sendsms-user
 
  username = tester
 
  password = foobar
 
  #user-deny-ip = 
 
  user-allow-ip = *.*.*.*
 
 
 
  group = sms-service
 
  keyword = nop
 
  text = You asked nothing and I did it!
 
 
 
 
 
 
 
  =
 
 
 
  ?php
 
  // Include file for SMS interface.
 
 
 
  // These variables MUST match your kannel.conf configuration
 
 
 
  $bearerboxhost = 127.0.0.1;
 
  define(BEARERBOX_HOST, 127.0.0.1);
 
  define(SENDSMS_PORT,   13031);
 
  define(ADMIN_PORT, 13000);
 
  define(ADMIN_PASSWORD, bar);
 
  define(USERNAME,   tter);
 
  define(PASSWORD,   fobar);
 
  define(GLOBAL_SENDER,  12345);
 
  ?
 
 
 
 
 
 
 
  PLZ HELP
 
 
 
 
 
  Amr Qanadilo
 
 
 
 


 --
 Alejandro Guerrieri
 Magicom
 http://www.magicom-bcn.net/
 LinkedIn: http://www.linkedin.com/in/aguerrieri




-- 
Best Regards,
Tulga.G

Senior Engineer of Technology Division
G-Mobile Corporation
Ulaanbaatar, Mongolia
Tel: +976-11-311198
Fax: +976-11-311195
Web: http://www.g-mobile.mn


cannot receive euro sign

2007-08-08 Thread Tulga . G
Hi list,

I can send SMS from GSM SMSC to CDMA SMSC through kannel (SMPP). but when I
send euro sign, I receive space. how to solve it?

-- 
Best Regards,
Tulga.G

Senior Engineer of Technology Division
G-Mobile Corporation
Ulaanbaatar, Mongolia
Tel: +976-11-311198
Fax: +976-11-311195
Web: http://www.g-mobile.mn


Re: DLR and MySQL

2007-08-06 Thread Tulga . G
Did you add dlr-storage = mysql line to core group?

On 8/7/07, Nicholas Amorim [EMAIL PROTECTED] wrote:

 Hello people! I'm new on this Kannel/SMS stuff, but I managed Kannel to
 work 100% with what I need (send SMS through a sms center using smpp).

 But I still got one problem, I set it all in kannel.conf to use mysql as a
 dlr storage, but the table still empty. Nothing seems to be wrong in the
 log. My conf below:

 group = mysql-connection
 id = mydlr
 host = localhost
 username = kannel
 password = somepassword
 database = dlr
 max-connections = 1

 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-destination = destination
 field-source = source
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc

 Nicholas Amorim.




-- 
Best Regards,
Tulga.G

Senior Engineer of Technology Division
G-Mobile Corporation
Ulaanbaatar, Mongolia
Tel: +976-11-311198
Fax: +976-11-311195
Web: http://www.g-mobile.mn


Re: DLR and MySQL

2007-08-06 Thread Tulga . G
Yes, I configured mysql DLR storage too. but still empty. I think we have
same problem :-)

On 8/7/07, Nicholas Amorim [EMAIL PROTECTED] wrote:

 Yes. Actually, it recognizes the connection, just doesn't send nothing to
 the database. Neither mysql nor pgsql (I've also compiled with pgsql
 support).

 I'm going crazy, there isn't a single error message! In the logs,
 everything's normal, in the status recognizes a DLR with mysql (or pgsql).

 Any suggestions ?




-- 
Best Regards,
Tulga.G

Senior Engineer of Technology Division
G-Mobile Corporation
Ulaanbaatar, Mongolia
Tel: +976-11-311198
Fax: +976-11-311195
Web: http://www.g-mobile.mn


Re: Companies that use Kannel (users list)?

2007-07-18 Thread Tulga . G

G-Mobile Corporation. Mongolia

On 7/18/07, Raffaele Bello [EMAIL PROTECTED] wrote:


Globacom ltd. Nigeria


On Jul 18, 2007, at 1:57 PM, Richard Cooke wrote:

 Does anyone have a list of companies that use Kannel?

 My firm is thinking of using\developing Kannel for a GSM gateway we
 want to
 make for a client, but are looking for assurance of its stability
 in the
 field.

 A list like this really should be on the website - it's one of the
 first
 things a prospective user looks for.

 I managed only to find the following short list of companies by
 searching
 the user mailing list:

 . Eurovision voting in Greece
 . Telefonica Movistar from Panama
 . Cosmo Bulgaria Mobile PLC
 . Vodafone global intranet (SMS sending)

 Richard








--
Best Regards,
Tulga.G

Senior Engineer of Technology Division
G-Mobile Corporation
Ulaanbaatar, Mongolia
Tel: +976-11-311198
Fax: +976-11-311195
Web: http://www.g-mobile.mn

--
Best Regards,
Tulga.G

Senior Engineer of Technology Division
G-Mobile Corporation
Ulaanbaatar, Mongolia
Tel: +976-11-311198
Fax: +976-11-311195
Web: http://www.g-mobile.mn


multiple smsc route

2007-05-18 Thread Tulga . G

Hello,

I configured kannel 1.4.1 and working well. I have 3 smsc and I can send SMS
from http. My problem is:

when subscriber send SMS from 91xx to 81xx number, 91xx SMSC
forward to my gateway. but I cannot forward SMS to 81xx SMSC. howto
route them?

I tried allowed-smsc-id, denied-smsc-id and preferred-smsc-id. please give
me any successful config.

--
Best Regards,
Tulga.G


is %P phone number of receiver?

2007-05-18 Thread Tulga . G

I'm using %P for phone number of receiver in sms-service group's get-url.
but it seems port like 13013. my kannel is 1.4.1.

--
Best Regards,
Tulga.G


System error

2007-04-04 Thread Tulga . G

Hello,

I connected kannel to SMSC through SMPP. then I'm trying send SMS. But SMSC
returned error code 0x0008 (System Error) in response to submit_sm. I
think it is SMSC problem. is it? howto fix it?

--
Best Regards,
Tulga.G

Senior Engineer of Technology Division
G-Mobile Corporation
Ulaanbaatar, Mongolia
Tel: +976-11-311198
Fax: +976-11-311195
Web: http://www.g-mobile.mn


fakesmsc configuration

2007-03-31 Thread Tulga . G

Hi guys,

I'm newbie. I installed kannel on ubuntu 6.10. Everything working well with
fakesmsc. I have few questions:

1. Why message start 123 345 text nop? what mean 123 345?
2. What about CDRs? I'm trying connect SMSC - Kannel - SMSC through SMPP 3.4.
I need generate CDRs.
3. I added test users to sendsms-user group. I must restart smsbox and
bearerbox?

--
Best Regards,
Tulga.G

Senior Engineer of Technology Division
G-Mobile Corporation
Ulaanbaatar, Mongolia
Tel: +976-11-311198
Fax: +976-11-311195
Web: http://www.g-mobile.mn