Delayed reply - wait for bearerbox

2015-09-02 Thread hafez ahmad
Dear All,

I have a problem sometimes happened, that message added to SMSbox logs as
below


2015-09-02 11:01:28 [23452] [3] INFO: sendsms sender:
(127.0.0.1) to:<9> msg:



but in the kannel access log *(the SMS sent after 11 min)*

2015-09-02 11:11:41 Sent SMS [SMSC:ASIACELLTS_TX2] [SVC:tester] [ACT:]
[BINF:] [FID:] [from:1234] [to:9] [flags:-1:2:-1:-1:-1]
[msg:172:X62AX645XX2XX627X634X62AX631X627X643X643XX2XX628X646X62CX627X62DXX2XX628X62EX62FX645X629XX2XX623X62FX639X64AX647XX2XX627X633X645X627X621XX2XX627X644X644X647XX2XX627X644X62DX633X646X649XX2XX645X639XX2XX633X639X62FXX2XX627X644X628X63AX62FX627X62FX64AX6XCX644X644X627X644X63AX627X621XX2XX627X631X633X644XX2XXX3XXX2XX627X644X649XX2XXX34XX31XX38XX34]
[udh:0:]

Can you please advice why this delay may happened and how can I avoid it, I
am using 1.4.3.

Thank you.

Best regards,
Ahmad


DLR Problem

2010-09-30 Thread hafez ahmad
Hi All,

I have problem with the DLR that DLR row not found, I use msg-id-type=0X02 ,
but I still have the problem, please note also that this problem not
always happened, sometimes  the kannel finds the DLR row in the database.

Also I have note the following the TS field in the DLR table
mean reference to the Manual

field-timestamp = ts


field-timestamp (m) stringThe table field that is used for the timestamp
data


but as we see in the below log:

2010-09-30 16:12:01 [23945] [15] DEBUG: sql: SELECT mask, service, url,
source, destination, boxc FROM dlr WHERE smsc='MYSMPP' AND *ts='1657099323'*
;

but the ts here is the message id not the Timestamp , do you have any ideas
about that ?



2010-09-30 16:12:01 [23945] [15] DEBUG:  len:  120
2010-09-30 16:12:01 [23945] [15] DEBUG:  size: 121
2010-09-30 16:12:01 [23945] [15] DEBUG:  immutable: 0
2010-09-30 16:12:01 [23945] [15] DEBUG:  data: 69 64 3a 36 32 43 35 35
34 33 42 20 73 75 62 3a   id:62C5543B sub:
2010-09-30 16:12:01 [23945] [15] DEBUG:  data: 30 30 31 20 64 6c 76 72
64 3a 30 30 31 20 73 75   001 dlvrd:001 su
2010-09-30 16:12:01 [23945] [15] DEBUG:  data: 62 6d 69 74 20 64 61 74
65 3a 31 30 30 39 33 30   bmit date:100930
2010-09-30 16:12:01 [23945] [15] DEBUG:  data: 31 36 31 32 20 64 6f 6e
65 20 64 61 74 65 3a 31   1612 done date:1
2010-09-30 16:12:01 [23945] [15] DEBUG:  data: 30 30 39 33 30 31 36 31
32 20 73 74 61 74 3a 52   009301612 stat:R
2010-09-30 16:12:01 [23945] [15] DEBUG:  data: 45 4a 45 43 54 44 20 65
72 72 3a 30 30 30 20 74   EJECTD err:000 t
2010-09-30 16:12:01 [23945] [15] DEBUG:  data: 65 78 74 3a 20 20 20 20
20 20 20 20 20 20 20 20   ext:
2010-09-30 16:12:01 [23945] [15] DEBUG:  data: 20 20 20 20 20 20 20 20

2010-09-30 16:12:01 [23945] [15] DEBUG:Octet string dump ends.
2010-09-30 16:12:01 [23945] [15] DEBUG: SMPP PDU dump ends.
2010-09-30 16:12:01 [23945] [15] DEBUG: SMPP[MYSMPP] handle_pdu, got DLR
2010-09-30 16:12:01 [23945] [15] DEBUG: DLR[mysql]: Looking for DLR
smsc=MYSMPP, ts=1657099323, dst=9XX, type=2
2010-09-30 16:12:01 [23945] [15] DEBUG: sql: SELECT mask, service, url,
source, destination, boxc FROM dlr WHERE smsc='MYSMPP' AND ts='1657099323';
2010-09-30 16:12:01 [23945] [15] DEBUG: no rows found
2010-09-30 16:12:01 [23945] [15] WARNING: DLR[mysql]: DLR from SMSCMYSMPP
for DST9XX not found.

Regards and very thanks
Hafez


Too long password

2010-06-20 Thread hafez ahmad
Dears,

I get the following error when I try to connect my SMPP connection, my
password is 9 chars

2010-06-20 10:52:19 [4228] [38] WARNING: SMPP: PDU element password too
long (length is 9, should be 8)

and I know that the SMPP allows 8 chars + the null char as terminator, I
called my provider and they need 3 working days to change the password :/

is there any patch or anything I can do from my side to fix the problem.


Regards,
-- 
Hafez A.Ahmad
Amman-Jordan
mobile: 962-795708728
http://blog.hafezadnan.com


how set up the esm_class to 0

2010-03-16 Thread hafez ahmad
hi all,

How can I set up esm_class=0 in Kannel 1.43

Thanks,
Hafez


how kannel matched the received DLR

2010-01-26 Thread hafez ahmad
Dears,

Please can anyone help me to know how kannel matched the received DLR with
the stored DLR, I get sometimes the error got DLR but could not find message
or was not interested in it id1983706424 dst955342324564, type1  , I
checked the msg-id-type and it is set correct but as you note that I add the
DLR with MSISDN start with +

 SMSC[MT_BILLING]: DLR =
http://HOST/PATH/dlr_script.php?delivery_val=%dact_val=%Amsisdn_val=+955342324564

but wen I receive the DLR I get the msisdn without + like this 955342324564

is the ton /npi  setting important for the DLR matching ?

Any Idea please?

Please find my setting and log below:

group = smsc
smsc = smpp
smsc-id = MT_BILLING
host = XXX.XXX.XXX.XXX
port = X
transceiver-mode = 1
smsc-username = 
smsc-password = xxx
system-type = x
allowed-smsc-id = MT_BILLING
interface-version = 34
reconnect-delay = 30
source-addr-ton = 5
source-addr-npi = 0
dest-addr-ton = 1
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
wait-ack = 1
wait-ack-expire = 0x02
msg-id-type = 0x00
log-file = /var/log/my.log
log-level = 0


2010-01-23 22:20:43 [31246] [8] DEBUG: SMPP[MT_BILLING]: Sending enquire
link:
2010-01-23 22:20:43 [31246] [8] DEBUG: SMPP PDU 0x7f178c16cbf0 dump:
2010-01-23 22:20:43 [31246] [8] DEBUG:   type_name: enquire_link
2010-01-23 22:20:43 [31246] [8] DEBUG:   command_id: 21 = 0x0015
2010-01-23 22:20:43 [31246] [8] DEBUG:   command_status: 0 = 0x
2010-01-23 22:20:43 [31246] [8] DEBUG:   sequence_number: 13348 = 0x3424
2010-01-23 22:20:43 [31246] [8] DEBUG: SMPP PDU dump ends.
2010-01-23 22:20:55 [31246] [8] WARNING: SMPP: PDU NULL terminated string
(message_id) has no NULL.
2010-01-23 22:20:55 [31246] [8] DEBUG: SMPP[MT_BILLING]: Got PDU:
2010-01-23 22:20:55 [31246] [8] DEBUG: SMPP PDU 0x7f178c16cbf0 dump:
2010-01-23 22:20:55 [31246] [8] DEBUG:   type_name: submit_sm_resp
2010-01-23 22:20:55 [31246] [8] DEBUG:   command_id: 2147483652 = 0x8004
2010-01-23 22:20:55 [31246] [8] DEBUG:   command_status: 69 = 0x0045
2010-01-23 22:20:55 [31246] [8] DEBUG:   sequence_number: 13346 = 0x3422
2010-01-23 22:20:55 [31246] [8] DEBUG:   message_id: NULL
2010-01-23 22:20:55 [31246] [8] DEBUG: SMPP PDU dump ends.
2010-01-23 22:20:55 [31246] [8] ERROR: SMPP[MT_BILLING]: SMSC returned error
code 0x0045 (Submit failed) in response to submit_sm.
2010-01-23 22:20:55 [31246] [8] DEBUG: SMSC[MT_BILLING]: creating DLR
message
2010-01-23 22:20:55 [31246] [8] DEBUG: SMSC[MT_BILLING]: DLR =
http://HOST/PATH/dlr_script.php?delivery_val=%dact_val=%Amsisdn_val=+955342324564
2010-01-23 22:20:55 [31246] [8] DEBUG: SMPP[MT_BILLING]: Got PDU:
2010-01-23 22:20:55 [31246] [8] DEBUG: SMPP PDU 0x7f178c16cbf0 dump:
2010-01-23 22:20:55 [31246] [8] DEBUG:   type_name: enquire_link_resp
2010-01-23 22:20:55 [31246] [8] DEBUG:   command_id: 2147483669 = 0x8015
2010-01-23 22:20:55 [31246] [8] DEBUG:   command_status: 0 = 0x
2010-01-23 22:20:55 [31246] [8] DEBUG:   sequence_number: 13347 = 0x3423
2010-01-23 22:20:55 [31246] [8] DEBUG: SMPP PDU dump ends.
2010-01-23 22:20:55 [31246] [8] DEBUG: SMPP[MT_BILLING]: Got PDU:
2010-01-23 22:20:55 [31246] [8] DEBUG: SMPP PDU 0x7f178c16cbf0 dump:
2010-01-23 22:20:55 [31246] [8] DEBUG:   type_name: enquire_link_resp
2010-01-23 22:20:55 [31246] [8] DEBUG:   command_id: 2147483669 = 0x8015
2010-01-23 22:20:55 [31246] [8] DEBUG:   command_status: 0 = 0x
2010-01-23 22:20:55 [31246] [8] DEBUG:   sequence_number: 13348 = 0x3424
2010-01-23 22:20:55 [31246] [8] DEBUG: SMPP PDU dump ends.
2010-01-23 22:20:55 [31246] [8] DEBUG: Optional parameter tag (0x000e)
2010-01-23 22:20:55 [31246] [8] DEBUG: Optional parameter length read as 1
2010-01-23 22:20:55 [31246] [8] WARNING: SMPP: Unknown TLV(0x000e,0x0001,01)
for PDU type (deliver_sm) received!
2010-01-23 22:20:55 [31246] [8] DEBUG: Optional parameter tag (0x0006)
2010-01-23 22:20:55 [31246] [8] DEBUG: Optional parameter length read as 1
2010-01-23 22:20:55 [31246] [8] WARNING: SMPP: Unknown TLV(0x0006,0x0001,01)
for PDU type (deliver_sm) received!
2010-01-23 22:20:55 [31246] [8] DEBUG: Optional parameter tag (0x001e)
2010-01-23 22:20:55 [31246] [8] DEBUG: Optional parameter length read as 9
2010-01-23 22:20:55 [31246] [8] DEBUG: Optional parameter tag (0x0427)
2010-01-23 22:20:55 [31246] [8] DEBUG: Optional parameter length read as 1
2010-01-23 22:20:55 [31246] [8] DEBUG: SMPP[MT_BILLING]: Got PDU:
2010-01-23 22:20:55 [31246] [8] DEBUG: SMPP PDU 0x7f178c16cbf0 dump:
2010-01-23 22:20:55 [31246] [8] DEBUG:   type_name: deliver_sm
2010-01-23 22:20:55 [31246] [8] DEBUG:   command_id: 5 = 0x0005
2010-01-23 22:20:55 [31246] [8] DEBUG:   command_status: 0 = 0x
2010-01-23 22:20:55 [31246] [8] DEBUG:   sequence_number: 26 = 0x001a
2010-01-23 22:20:55 [31246] [8] DEBUG:   service_type: NULL
2010-01-23 22:20:55 [31246] [8] DEBUG:   source_addr_ton: 1 = 0x0001
2010-01-23 22:20:55 [31246] [8] DEBUG:   source_addr_npi: 1 = 0x0001

Re: Kannel ignoring sms-resend-retry

2010-01-18 Thread hafez ahmad
Hi,

Thanks guys for help, Konstantin your right I note that this problem happend
with concatenated SMS only, I tried to send 1 sms to the same users and I
did not get the connection stuck.

I will provide the logs today for the bug report.

but is there temporary solution for this issue?

Regards,
Hafez

2010/1/18 Nikos Balkanas nbalka...@gmail.com

  Hi,

 Actually 2 SMS keep looping. The one to xxx6855 is standalone, the other to
 xxx4220 has 3 parts. The log size is not sufficient to show if it exceeds
 the sms-resend-retry = 5 limit (5x for xxx6855, 4.3 for xxx4220), but
 certainly the sms-resend-freq = 1200 is violated. Since it is a reported
 bug, it needs to be looked after in the code.

 @Hafez: Could you please supplement the bug report by Konstantin, making
 sure your logs are longer than sms-resend-retry = 5 if you want to
 demonstrate infinite looping (or reduce your retry limit).

 BR,
 Nikos

 - Original Message -
  *From:* Konstantin Vayner konstan...@appcell.net
 *To:* Nikos Balkanas nbalka...@gmail.com ; hafez ahmadhafezad...@gmail.com
 *Cc:* users users@kannel.org
 *Sent:* Monday, January 18, 2010 2:59 AM
 *Subject:* Re: Kannel ignoring sms-resend-retry

 Hi guys,

 Actually, this thing looks a lot like the problem i had recently.

 The brief is like the following:

 1) a *concatenated* message is being sent (am i right here, Hafez? i think
 yours are concatenated because i see pdu size 140 in all the samples i've
 seen in your log...)
 2) one or more parts of the message fail with *temporary* error
 3) the link is still alive (e.g. remote smsc throws temporary error - in
 your case Message Queue Full, in mine it was System Error)

 these 3 together lead to *infinite* retry without delay at all, disobeying
 both sms-resend-freq and sms-resend-retry (tested on 1.4.1 , 1.4.3 and cvs)
 see this bugreport: http://redmine.kannel.org/issues/show/529


 Regards,
 Β  Konstantin

 2010/1/18 Nikos Balkanas nbalka...@gmail.com

  Hi,
 Β
 Actually, kannel obeys strictly the sms-resend-retry = 5 you specified. It
 will retry 5 times to resend the SMS before aborting. You seem to confuse
 throttling with max-pending-submits. Please read user guide on that.
 Β
 I imagineΒ that your problem is with sms-resend-freq = 1200, and why it
 resends the SMS every 1 instead of waiting 1200. I would have to check the
 code for that.
 Β
 Meanwhile, comment out the wait-ack = 1, it doesn't make sense in your
 setup and the default value is better.
 Β
 BR,
 NikosΒ

  - Original Message -
  *From:* hafez ahmad hafezad...@gmail.com
   *To:* Nikos Balkanas nbalka...@gmail.com
 *Cc:* users@kannel.org
 *Sent:* Sunday, January 17, 2010 4:22 PM
 *Subject:* Re: Kannel ignoring sms-resend-retry

 Dear Nikos,

 Thanks for your kind feedback.

 please find the attached log and the config below:

  group = core
 admin-port = 14000
 smsbox-port = 14005
 admin-password = 
 status-password = 
 admin-allow-ip = localhost
 log-file = /logs/kannel.log
 log-level = 0
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 
 
 dlr-storage = internal
 sms-resend-freq = 1200
 sms-resend-retry = 5


  group = smsc
 smsc = smpp
 smsc-id = MYSMPP
 host = XXX.XXX.XXX.XXX
 port = x
 transceiver-mode = 1
 smsc-username = ***
 smsc-password = 
 system-type = ***
 allowed-smsc-id = MYSMPP
 interface-version = 34
 address-range = 808080
 max-pending-submits = 1
 reconnect-delay = 30
 source-addr-ton = 5
 source-addr-npi = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 bind-addr-ton = 1
 bind-addr-npi = 1
 wait-ack = 1
 wait-ack-expire = 0x02
 msg-id-type = 0x00
 log-file = /logs/808080.log
 log-level = 0

 thanks and Regards,
 Hafez

 2010/1/17 Nikos Balkanas nbalka...@gmail.com

  Hi,
 Β
 Please post detailed BB logs showing the problem and configuration.
 Β
 BR,
 Nikos

 - Original Message -
  *From:* hafez ahmad hafezad...@gmail.com
 *To:* users@kannel.org
 *Sent:* Sunday, January 17, 2010 10:55 AM
 *Subject:* Kannel ignoring sms-resend-retry

 Dears,


 I the following error:

 Β SMSC returned error code 0x0014 (Message Queue Full) in response to
 submit_sm

 As I know that errorΒ happenedΒ eitherΒ

 I am sending SMS more than the operator allowed me Β - (Β alreadyΒ I am
 using max-pending-submit = 1)

 ORΒ

 there are some users have full sms queue in the SMSC.

 I contact my operator and he found the some users haveΒ Β full sms queue
 , I set the followingΒ

  sms-resend-freq = 1200
 sms-resend-retry = 5

  wait-ack = 1Β
 wait-ack-expire = 0x02

 but the kannelΒ ignoringΒ theΒ sms-resend-retry and stillΒ tryingΒ to
 send it again.


 Please Any Ideas, how can I solve this problem.

 Regards,
 Hafez




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile: 962-795708728
 http://blog.hafezadnan.com





-- 
Hafez A.Ahmad
Amman-Jordan
mobile: 962-795708728
http://blog.hafezadnan.com


Kannel ignoring sms-resend-retry

2010-01-17 Thread hafez ahmad
Dears,


I the following error:

 SMSC returned error code 0x0014 (Message Queue Full) in response to
submit_sm

As I know that error happened either

I am sending SMS more than the operator allowed me  - ( already I am using
max-pending-submit = 1)

OR

there are some users have full sms queue in the SMSC.

I contact my operator and he found the some users have  full sms queue , I
set the following

sms-resend-freq = 1200
sms-resend-retry = 5

wait-ack = 1
wait-ack-expire = 0x02

but the kannel ignoring the sms-resend-retry and still trying to send it
again.


Please Any Ideas, how can I solve this problem.

Regards,
Hafez


OTA change phone status

2009-11-04 Thread hafez ahmad
Hi All,

Can I use Kannel to send OTA sms, that change the phone status to silent or
another profile ?

any Ideas how?


many thanks for your kind help.

Regards,
hafez


Re: OTA change phone status

2009-11-04 Thread hafez ahmad
Hi,

Thanks Nilkos for your kind feedback, but what I am asking for is the OTA
can change the phone profile to silent or it is only used to download
setting and software.

Regards,
Hafez

2009/11/4 Nikos Balkanas n...@amdtelecom.net

  Hi,

 Absolutely. Please refer to User's guide on how to configure OTA
 provisioning for kannel.

 BR,
 Nikos

 - Original Message -
  *From:* hafez ahmad hafezad...@gmail.com
 *To:* users@kannel.org
 *Sent:* Wednesday, November 04, 2009 10:23 AM
 *Subject:* OTA change phone status

 Hi All,

 Can I use Kannel to send OTA sms, that change the phone status to silent or
 another profile ?

 any Ideas how?


 many thanks for your kind help.

 Regards,
 hafez




-- 
Hafez A.Ahmad
Amman-Jordan
mobile: 962-795708728
http://blog.hafezadnan.com


NACK/69/Submit failed

2009-07-23 Thread hafez ahmad
Hi All,

I am trying to send billing SMS to my users, but I get in the
Acknowledgement report  this NACK/69/Submit failed for all users, any Ideas
what happened, I read about the NACK in general and there many reasons  for
that like:

   - The PDU is unrecognised
   - The PDU is malformed
   - Invalid Field Length
   - The PDU data is unexpected and deemed invalid
   - The PDU is not allowed in the current session state
   - The ESME or MC is restricting the use of certain PDUs or features

How can I determine the reason?

note: My operator reject the SMS if the user don't have enough credit.

Regards,
Hafez


Re: Delivery Report Problem

2009-05-25 Thread hafez ahmad
Hi,

you can use the %A in the DLR to get the status text submit date:0905251713
done date:0905251713 *stat:DELIVRD* err:000 

hope this help.


Regards,
Hafez

On Mon, May 25, 2009 at 4:29 PM, Sayed Hadi Rastgou Haghi 
hadi.rast...@gmail.com wrote:

 Hi
 In access.log
 I get this

 2009-05-25 17:13:50 Receive DLR [SMSC:xxx] [SVC:xxx] [ACT:] [BINF:]
 [FID:xxx] [from:xxx] [to:xxx] [flags:-1:-1:-1:-1:*2*] [msg:93:id:0905...
 submit date:0905251713 done date:0905251713 *stat:DELIVRD* err:000 ]
 [udh:0:]

 as you can see, the delivery flag is set to *2* but in delivery message
 you can see *stat:DELIVRD.

 *How can I cover this?
 can I force kannel to parse delivery smsc report and get message status
 from it?

 --
 Sincerely,
 Sayed Hadi Rastgou Haghi

 http://www.ubuntu.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile: 962-795708728
http://blog.hafezadnan.com


Re: Error reading from fd 71

2009-05-14 Thread hafez ahmad
Hi All,


Thanks for you help :)

but I moved my web server to lighthttp , and Increase the max-fds to 4096 ,
but I am still get the following error in smsbox.log when I get the DLRs


2009-05-14 09:39:13 [3216] [8] ERROR: Couldn't fetch 
http://localhost:89/dlr.php?delivery=16act=NACK%2F69%2FSubmit+failedmsisdn=+message_id=2342424242


2009-05-14 09:39:13 [3216] [8] ERROR: Couldn't fetch 
http://localhost:89/dlr.php?delivery=1act=id%3A1741478574+sub%3A001+dlvrd%3A001+submit+date%3A090514093506+done+date%3A090514093511+stat%3ADELIVRD+err%3A000+text%3A%06%23%061%063%06Dmsisdn=+message_id=32342421113


2009-05-14 09:39:13 [3216] [8] ERROR: Couldn't fetch 
http://localhost:89/dlr.php?delivery=1act=id%3A0316458725+sub%3A001+dlvrd%3A001+submit+date%3A090514093505+done+date%3A090514093508+stat%3ADELIVRD+err%3A000+text%3A%06%23%061%063%06Dmsisdn=+message_id=47575757575


2009-05-14 09:39:13 [3216] [8] ERROR: Couldn't fetch 
http://localhost:89/dlr.php?delivery=16act=NACK%2F69%2FSubmit+failedmsisdn=+message_id=245453665


2009-05-14 09:39:45 [3216] [8] ERROR: Couldn't fetch 
http://localhost:89/dlr.php?delivery=1act=id%3A0309336539+sub%3A001+dlvrd%3A001+submit+date%3A090514093509+done+date%3A090514093513+stat%3ADELIVRD+err%3A000+text%3A%06%23%061%063%06Dmsisdn=+message_id=958392


2009-05-14 09:39:45 [3216] [8] ERROR: Couldn't fetch 
http://localhost:89/dlr.php?delivery=1act=id%3A1677010733+sub%3A001+dlvrd%3A001+submit+date%3A090514093105+done+date%3A090514093522+stat%3ADELIVRD+err%3A000+text%3A%06%23%061%063%06Dmsisdn=+message_id=958388


2009-05-14 09:39:45 [3216] [8] ERROR: Couldn't fetch 
http://localhost:89/dlr.php?delivery=1act=id%3A0390709218+sub%3A001+dlvrd%3A001+submit+date%3A090514093503+done+date%3A090514093513+stat%3ADELIVRD+err%3A000+text%3A%06%23%061%063%06Dmsisdn=+message_id=958413



Any Idea where is the problem, thanks in advance.

Regards.
Hafez

On Sun, May 10, 2009 at 3:15 PM, Falko Ziemann fal...@gmail.com wrote:

 Okay, but anyway, as Nikos said, I think you'll find the solution in the
 error log of your webserver.
 Regards
 Falko

 Am 10.05.2009 um 14:06 schrieb hafez ahmad:



 On Sun, May 10, 2009 at 12:39 PM, hafez ahmad hafezad...@gmail.comwrote:

 Dear Falko,

 Thanks for reply

 it is example only I removed the real Url .



 Regards,
 Hafez


 On Sun, May 10, 2009 at 12:22 PM, Falko Ziemann fal...@gmail.com wrote:

 http://HOST/dlr.php?ID=3213123124131


 Does the log really say HOST? Then you *maybe* should enter a valid
 address...

 Falko


 Am 10.05.2009 um 09:21 schrieb hafez ahmad:

 Dears,

 I get the following error in my logs,

 2009-05-08 11:12:26 [10838] [8] ERROR: Error reading from fd 71:
 2009-05-08 11:12:26 [10838] [8] ERROR: System error 104: Connection reset
 by peer
 2009-05-08 11:12:26 [10838] [8] ERROR: Couldn't fetch 
 http://HOST/dlr.php?ID=3213123124131

 can you please advice what is the problem, and how can I let kannel retry
 to fetch the DLR url again, if there are any problems.

 Thanks.

 Regards.
 Hafez






 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile: 962-795708728
 http://blog.hafezadnan.com




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile: 962-795708728
 http://blog.hafezadnan.com





-- 
Hafez A.Ahmad
Amman-Jordan
mobile: 962-795708728
http://blog.hafezadnan.com


Error reading from fd 71

2009-05-10 Thread hafez ahmad
Dears,

I get the following error in my logs,

2009-05-08 11:12:26 [10838] [8] ERROR: Error reading from fd 71:
2009-05-08 11:12:26 [10838] [8] ERROR: System error 104: Connection reset by
peer
2009-05-08 11:12:26 [10838] [8] ERROR: Couldn't fetch 
http://HOST/dlr.php?ID=3213123124131

can you please advice what is the problem, and how can I let kannel retry to
fetch the DLR url again, if there are any problems.

Thanks.

Regards.
Hafez


Re: Error reading from fd 71

2009-05-10 Thread hafez ahmad
On Sun, May 10, 2009 at 12:39 PM, hafez ahmad hafezad...@gmail.com wrote:

 Dear Falko,

 Thanks for reply

 it is example only I removed the real Url .



 Regards,
 Hafez


 On Sun, May 10, 2009 at 12:22 PM, Falko Ziemann fal...@gmail.com wrote:

 http://HOST/dlr.php?ID=3213123124131


 Does the log really say HOST? Then you *maybe* should enter a valid
 address...

 Falko


 Am 10.05.2009 um 09:21 schrieb hafez ahmad:

 Dears,

 I get the following error in my logs,

 2009-05-08 11:12:26 [10838] [8] ERROR: Error reading from fd 71:
 2009-05-08 11:12:26 [10838] [8] ERROR: System error 104: Connection reset
 by peer
 2009-05-08 11:12:26 [10838] [8] ERROR: Couldn't fetch 
 http://HOST/dlr.php?ID=3213123124131

 can you please advice what is the problem, and how can I let kannel retry
 to fetch the DLR url again, if there are any problems.

 Thanks.

 Regards.
 Hafez






 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile: 962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile: 962-795708728
http://blog.hafezadnan.com


Couldn't fetch the DLR url

2009-05-07 Thread hafez ahmad
HI All,


If kannel could not fetch the DLR url when the DLR recived is there any
other retries to fetch the url again, I have this error

009-05-07 10:07:29 [10838] [8] ERROR: Couldn't fetch 
http://




can you please advice,

Regards,
Hafez


Re: Couldn't fetch the DLR url

2009-05-07 Thread hafez ahmad
Thanks all,

Juanin is right, what I mean if  kannel could not fetch the url, cause
webserver down or heavy load or any other reasons, what kannel do with this
senario?


Regards,
Hafez

On Thu, May 7, 2009 at 4:48 PM, Juan Nin jua...@gmail.com wrote:

 The patch Alejandro submitted is for retrying when Kannel doesn't find
 a matching DLR

 What Hafez is asking seems to me to be that once Kannel invokes the
 dlr-url and fails (cause webserver is down or whatever) to have it
 retry again


 On Thu, May 7, 2009 at 10:28 AM, Alvaro Cornejo
 cornejo.alv...@gmail.com wrote:
  Alejandro Guerreri has just commites a patch that allow kannel to
  retry dlr delivery a couple of days ago to cvs
 
  check it out
 
  Regards
 
  Alvaro
 
  On Thu, May 7, 2009 at 2:13 AM, hafez ahmad hafezad...@gmail.com
 wrote:
  HI All,
 
 
  If kannel could not fetch the DLR url when the DLR recived is there any
  other retries to fetch the url again, I have this error
 
  009-05-07 10:07:29 [10838] [8] ERROR: Couldn't fetch
  
 http://
 
 
 
 
  can you please advice,
 
  Regards,
  Hafez
 
 
 
 
  --
 
 |-|
  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.NET www.smsglobal.com.mx y
  www.pravcom.com
 
 



 --
 Juan Nin
 3Cinteractive / Mobilizing Great Brands
 http://www.3cinteractive.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: smpp server

2009-03-24 Thread hafez ahmad
Hi,

There are commercial  addons for kannel called smppbox, you can contact Stip
for the addons

Regards,
Hafez

On Tue, Mar 24, 2009 at 1:05 PM, Elias Badenes
ebade...@e-commfactory.comwrote:

 Hi,
 Do you know of any SMPP server that would run in a 2.6 linux server?

 Thanks




Re: dlr-url help

2009-03-11 Thread hafez ahmad
Dear Patrick,

You need to compile kannel with mysql ./configure --with-mysql , then the
send URL you have to set both variables dlr-url and dlr-mask
e.g:

http://localhost:13013/cgi-bin/sendsms?username=foopassword=barcharset=UTF-8coding=2to=xxxtext=testfrom=smsc=dlr-mask=31dlr-url=http%3A//localhost/dlr.php%3Fstatus%3D%25A%26answer%3D%25d


when kaneel get the DLR for the SMS it will call the url in the DLR-URL.
note that the dlr-url must be url encoded.

Regards,
Hafez

On Wed, Mar 11, 2009 at 10:27 AM, patrick meye patrick_m...@hotmail.frwrote:

  Hi all,
 I want to settup dlr-storage=mysql.I'm a newbe,so i don't know how to
 parameter drl-url,i don't see how to parameter that in userguide.Can someone
 help me please??
 Best regard!

 Patrick

 --
 Téléchargez le nouveau Windows Live Messenger ! Téléchargez Messenger,
 c'est gratuit ! http://get.live.com/messenger/overview




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: Not ACKED message found, will retransmit

2009-03-10 Thread hafez ahmad
Dears Falko, Nikos,

Thanks for your kind help, my configuration was like that:

group = smsc
smsc = smpp
smsc-id = MOCONN
host = xxx.xxx.xxx.xxx
port = 0
receive-port = 8000
smsc-username = X
smsc-password = XXX
system-type = 
allowed-smsc-id = MOCONN
interface-version = 34
address-range = 
reconnect-delay = 10
source-addr-ton = 1
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
msg-id-type = 0x01
log-file = /var/log/mo.log

group = smsc
smsc = smpp
smsc-id = MTCONN
host = xxx.xxx.xxx.xxx
port = 8000
receive-port = 0
smsc-username = X
smsc-password = XXX
system-type = 
allowed-smsc-id = MTCONN
interface-version = 34
address-range = 
reconnect-delay = 10
source-addr-ton = 1
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
msg-id-type = 0x01
log-file = /var/log/mt.log

after that I make the transmitter and receiver in one SMSC group like that

smsc = smpp
smsc-id = MYCONN
host = xxx.xxx.xxx.xxx
port = 8000
receive-port = 8000
smsc-username = X
smsc-password = XXX
keepalive = 10
enquire-link-interval = 10
system-type = 
allowed-smsc-id = MYCONN
interface-version = 34
address-range = 
reconnect-delay = 10
source-addr-ton = 5
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
msg-id-type = 0x01
log-file = /var/log/conn.log

but I still get the error in the logs  until I changed the source-addr-npi =
1 to be source-addr-npi = 5.

by the way is there different if I configure the transmitter and receiver
in one SMSC group or 2 SMSC group?


Thanks for help.
Regards,
Hafez



On Tue, Mar 10, 2009 at 1:32 AM, Falko Ziemann fal...@gmail.com wrote:

 By the way, I just realised: transmitter and receiver? Are you using SMPP
 3.3 instead of 3.4? Have you configured the receiver and transmitter in the
 same SMSC group?Normal SMPP 3.4 shouldn't have transmitter and receiver
 but only one transceiver. If you use 3.3 with divided transmitter and
 receiver connection, you need to configure both inside the same smsc-group,
 otherwise kannel cannot associate the ACK. (Well, no smsc I have seen so far
 could do this...)

 Falko

 Am 10.03.2009 um 00:26 schrieb Falko Ziemann:

 I just saw this behavior once before. There a service provider routed the
 ACK to another large account. So I send the message on MYMTCONN1 and
 received the ACK on MYMTCONN2. That's not the case, or? I can't see it
 from the log, the first line where kannel states the connection name is
 missing.
 But I really don't have a idea what this problem should have to do with
 keep alives. Are you loosing the connection between the submit and the ACK?

 Falko

 Am 09.03.2009 um 21:13 schrieb Nikos Balkanas:

  Well, there is an enquire-link-interval which you could tweak. It
 defaults to 30.

 BR,
 Nikos

 - Original Message -
 *From:* hafez ahmad hafezad...@gmail.com
 *To:* Falko Ziemann fal...@gmail.com
 *Cc:* users@kannel.org
 *Sent:* Monday, March 09, 2009 3:43 PM
 *Subject:* Re: Not ACKED message found, will retransmit

 Dears,

 I still have the same problem, Any Ideas? , by they my operator advice me
 that * * *use “ESME_QRYLINK” on both transmitter and receiver to keep the
 connection live* may be that related to this error .

 Please advice.

 Regards,
 Hafez

 On Thu, Mar 5, 2009 at 4:17 PM, Falko Ziemann fal...@gmail.com wrote:

 Hmm, sorry, no idea. Seems like kannel forgets about the ack...
 A hotfix would be to set wait-ack-expire = 0x02 in the smsc group. That
 would make kannel waiting forever for the ACK and never retry.
 Very dirty hack, but should do the job until someone comes around with a
 better solution...

 Regards
 Falko

  Am 05.03.2009 um 13:37 schrieb hafez ahmad:

  Sorry, thats the correct

 2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU 0xa732ad00 dump:
 2009-03-03 21:00:16 [2825] [14] DEBUG:   type_name: submit_sm
 2009-03-03 21:00:16 [2825] [14] DEBUG:   command_id: 4 = 0x0004
 2009-03-03 21:00:16 [2825] [14] DEBUG:   command_status: 0 = 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   sequence_number: 3684 =
 0x0e64
 2009-03-03 21:00:16 [2825] [14] DEBUG:   service_type: V
 2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr_ton: 5 = 0x0005
 2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr_npi: 0 = 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr: T2ME
 2009-03-03 21:00:16 [2825] [14] DEBUG:   dest_addr_ton: 1 = 0x0001
 2009-03-03 21:00:16 [2825] [14] DEBUG:   dest_addr_npi: 1 = 0x0001
 2009-03-03 21:00:16 [2825] [14] DEBUG:   destination_addr: 
 2009-03-03 21:00:16 [2825] [14] DEBUG:   esm_class: 67 = 0x0043
 2009-03-03 21:00:16 [2825] [14] DEBUG:   protocol_id: 0 = 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   priority_flag: 0 = 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   schedule_delivery_time: NULL
 2009-03-03 21:00:16 [2825] [14] DEBUG:   validity_period: NULL
 2009-03-03

Re: Not ACKED message found, will retransmit

2009-03-10 Thread hafez ahmad
Hi,


 try to delete the receive-port from the config and set:
 transceiver-mode = on


 I tried before but my operator disable the transceiver mode from his side.


 I'm not sure how kannel handles the notification problem. The MT gets send
 on the MTCONN while the DLR arrives on the MOCONN. I don't know if kannel
 can assign the DLR to message when they arrive in two diffrent SMSCs, but I
 don't think that this works. Maybe the same problem with ACKs ?!


 for the DLR that send using MT and received with another MO, I have it
before and I solved it using the DLR group id batch,

now every thing works fine, but I will monitor and update the list.

Regards and many thanks for help.
Hafez


Am 10.03.2009 um 10:00 schrieb hafez ahmad:

 Dears Falko, Nikos,

 Thanks for your kind help, my configuration was like that:

 group = smsc
 smsc = smpp
 smsc-id = MOCONN
 host = xxx.xxx.xxx.xxx
 port = 0
 receive-port = 8000
 smsc-username = X
 smsc-password = XXX
 system-type = 
 allowed-smsc-id = MOCONN
 interface-version = 34
 address-range = 
 reconnect-delay = 10
 source-addr-ton = 1
 source-addr-npi = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 bind-addr-ton = 1
 bind-addr-npi = 1
 msg-id-type = 0x01
 log-file = /var/log/mo.log

 group = smsc
 smsc = smpp
 smsc-id = MTCONN
 host = xxx.xxx.xxx.xxx
 port = 8000
 receive-port = 0
 smsc-username = X
 smsc-password = XXX
 system-type = 
 allowed-smsc-id = MTCONN
 interface-version = 34
 address-range = 
 reconnect-delay = 10
 source-addr-ton = 1
 source-addr-npi = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 bind-addr-ton = 1
 bind-addr-npi = 1
 msg-id-type = 0x01
 log-file = /var/log/mt.log

 after that I make the transmitter and receiver in one SMSC group like that

 smsc = smpp
 smsc-id = MYCONN
 host = xxx.xxx.xxx.xxx
 port = 8000
 receive-port = 8000
 smsc-username = X
 smsc-password = XXX
 keepalive = 10
 enquire-link-interval = 10
 system-type = 
 allowed-smsc-id = MYCONN
 interface-version = 34
 address-range = 
 reconnect-delay = 10
 source-addr-ton = 5
 source-addr-npi = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 bind-addr-ton = 1
 bind-addr-npi = 1
 msg-id-type = 0x01
 log-file = /var/log/conn.log

 but I still get the error in the logs  until I changed the source-addr-npi
 = 1 to be source-addr-npi = 5.

 by the way is there different if I configure the transmitter and receiver
 in one SMSC group or 2 SMSC group?


 Thanks for help.
 Regards,
 Hafez



 On Tue, Mar 10, 2009 at 1:32 AM, Falko Ziemann fal...@gmail.com wrote:

 By the way, I just realised: transmitter and receiver? Are you using
 SMPP 3.3 instead of 3.4? Have you configured the receiver and transmitter in
 the same SMSC group? Normal SMPP 3.4 shouldn't have transmitter and
 receiver but only one transceiver. If you use 3.3 with divided transmitter
 and receiver connection, you need to configure both inside the same
 smsc-group, otherwise kannel cannot associate the ACK. (Well, no smsc I have
 seen so far could do this...)

 Falko

 Am 10.03.2009 um 00:26 schrieb Falko Ziemann:

 I just saw this behavior once before. There a service provider routed the
 ACK to another large account. So I send the message on MYMTCONN1 and
 received the ACK on MYMTCONN2. That's not the case, or? I can't see it
 from the log, the first line where kannel states the connection name is
 missing.
 But I really don't have a idea what this problem should have to do with
 keep alives. Are you loosing the connection between the submit and the ACK?

 Falko

 Am 09.03.2009 um 21:13 schrieb Nikos Balkanas:

  Well, there is an enquire-link-interval which you could tweak. It
 defaults to 30.

 BR,
 Nikos

 - Original Message -
  *From:* hafez ahmad hafezad...@gmail.com
  *To:* Falko Ziemann fal...@gmail.com
  *Cc:* users@kannel.org
  *Sent:* Monday, March 09, 2009 3:43 PM
  *Subject:* Re: Not ACKED message found, will retransmit

 Dears,

 I still have the same problem, Any Ideas? , by they my operator advice me
 that * * *use “ESME_QRYLINK” on both transmitter and receiver to keep
 the connection live* may be that related to this error .

 Please advice.

 Regards,
 Hafez

 On Thu, Mar 5, 2009 at 4:17 PM, Falko Ziemann fal...@gmail.com wrote:

 Hmm, sorry, no idea. Seems like kannel forgets about the ack...
  A hotfix would be to set wait-ack-expire = 0x02 in the smsc group.
 That would make kannel waiting forever for the ACK and never retry.
 Very dirty hack, but should do the job until someone comes around with a
 better solution...

 Regards
 Falko

  Am 05.03.2009 um 13:37 schrieb hafez ahmad:

  Sorry, thats the correct

 2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU 0xa732ad00 dump:
 2009-03-03 21:00:16 [2825] [14] DEBUG:   type_name: submit_sm
 2009-03-03 21:00:16 [2825] [14] DEBUG:   command_id: 4 = 0x0004
 2009-03-03 21:00:16 [2825] [14] DEBUG:   command_status: 0 = 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   sequence_number: 3684 =
 0x0e64
 2009-03-03 21:00

Re: mysql storage frequent complains

2009-03-10 Thread hafez ahmad
Hi,

or can use *--with-mysql-dir=DIR* Where to look for MySQL libs and header
files. DIR points to the installation of MySQL.

Regards,
Hafez

On Tue, Mar 10, 2009 at 11:47 AM, Falko Ziemann fal...@gmail.com wrote:

 Hi,
 you have to install the mysql-dev package first and then compile (!) kannel
 with ./configure --with-mysql

 Regards
 Falko

 Am 10.03.2009 um 10:42 schrieb Elton Hoxha:

 Hi guys,

 I have been searching in the list a lot regarding mysql storage issue. I
 noticed that users complains are very similar (including mine that i`m not
 able to configure mysql, in different machines as well), all of them using
 the magic keyword DLR: storage type 'mysql' is not supported!
 Which part of kannel is generating this error?
 I went through the dlr_init just wondering why is that?

 if (octstr_compare 
 http://doxygen.kannel.org/d1/da8/octstr_8h.html#a35(dlr_type 
 http://doxygen.kannel.org/d1/dcd/dlr_8c.html#a12, octstr_imm 
 http://doxygen.kannel.org/d1/da8/octstr_8h.html#a14(mysql)) == 0) {
 handles http://doxygen.kannel.org/d1/dcd/dlr_8c.html#a3 = dlr_init_mysql 
 http://doxygen.kannel.org/de/d6b/dlr__p_8h.html#a8(cfg);


 if (handles http://doxygen.kannel.org/d1/dcd/dlr_8c.html#a3 == NULL) {
panic http://doxygen.kannel.org/d7/d7f/log_8h.html#a0(0, DLR: 
 storage type '%s' is not supported!, octstr_get_cstr 
 http://doxygen.kannel.org/d1/da8/octstr_8h.html#a5(dlr_type 
 http://doxygen.kannel.org/d1/dcd/dlr_8c.html#a12));

  }

 Why kannel is failing to retrieve the initial configuration? I suspect, the 
 DLR-storage would fail for every type of database connection here, oracle 
 postgre.

 Is it something wrong with my conf file?


 dlr-storage=mysql

 group=mysql-connection
 id=mydlr
 host=10.1.21.184
 username=kannel
 password=kannel

 database=dlr

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

 field-status = status

 Thanks
 Elton





-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


ESME_QRYLINK

2009-03-09 Thread hafez ahmad
Hi All,


My operator says *use “ESME_QRYLINK” on both transmitter and receiver to
keep the connection live * , how can I do that with kannel (keeplive).?


Regards,

Hafez


Re: Not ACKED message found, will retransmit

2009-03-09 Thread hafez ahmad
Dears,

I still have the same problem, Any Ideas? , by they my operator advice me
that * *  *use “ESME_QRYLINK” on both transmitter and receiver to keep the
connection live* may be that related to this error .

Please advice.

Regards,
Hafez

On Thu, Mar 5, 2009 at 4:17 PM, Falko Ziemann fal...@gmail.com wrote:

 Hmm, sorry, no idea. Seems like kannel forgets about the ack...
 A hotfix would be to set wait-ack-expire = 0x02 in the smsc group. That
 would make kannel waiting forever for the ACK and never retry.
 Very dirty hack, but should do the job until someone comes around with a
 better solution...

 Regards
 Falko

 Am 05.03.2009 um 13:37 schrieb hafez ahmad:

 Sorry, thats the correct

 2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU 0xa732ad00 dump:
 2009-03-03 21:00:16 [2825] [14] DEBUG:   type_name: submit_sm
 2009-03-03 21:00:16 [2825] [14] DEBUG:   command_id: 4 = 0x0004
 2009-03-03 21:00:16 [2825] [14] DEBUG:   command_status: 0 = 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   sequence_number: 3684 = 0x0e64
 2009-03-03 21:00:16 [2825] [14] DEBUG:   service_type: V
 2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr_ton: 5 = 0x0005
 2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr_npi: 0 = 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr: T2ME
 2009-03-03 21:00:16 [2825] [14] DEBUG:   dest_addr_ton: 1 = 0x0001
 2009-03-03 21:00:16 [2825] [14] DEBUG:   dest_addr_npi: 1 = 0x0001
 2009-03-03 21:00:16 [2825] [14] DEBUG:   destination_addr: 
 2009-03-03 21:00:16 [2825] [14] DEBUG:   esm_class: 67 = 0x0043
 2009-03-03 21:00:16 [2825] [14] DEBUG:   protocol_id: 0 = 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   priority_flag: 0 = 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   schedule_delivery_time: NULL
 2009-03-03 21:00:16 [2825] [14] DEBUG:   validity_period: NULL
 2009-03-03 21:00:16 [2825] [14] DEBUG:   registered_delivery: 0 =
 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   replace_if_present_flag: 0 =
 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   data_coding: 8 = 0x0008
 2009-03-03 21:00:16 [2825] [14] DEBUG:   sm_default_msg_id: 0 = 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   sm_length: 140 = 0x008c
 2009-03-03 21:00:16 [2825] [14] DEBUG:   short_message:
 2009-03-03 21:00:16 [2825] [14] DEBUG:Octet string at 0xa732af00:
 2009-03-03 21:00:16 [2825] [14] DEBUG:  len:  140
 2009-03-03 21:00:16 [2825] [14] DEBUG:  size: 1024
 2009-03-03 21:00:16 [2825] [14] DEBUG:  immutable: 0
 2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 05 00 03 83 04 01 06 23
 06 47 06 45 00 20 06 48   ...#.G.E. .H
 2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 35 06 41 06 27 06 2a
 00 20 06 4a 06 48 06 33   .5.A.'.*. .J.H.3
 2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 41 00 20 06 27 06 44
 06 34 06 31 06 41 06 27   .A. .'.D.4.1.A.'
 2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 21 00 20 06 44 06 39
 06 44 06 27 06 2c 00 20   .!. .D.9.D.'.,.
 2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 27 06 44 06 43 06 48
 06 44 06 4a 06 33 06 2a   .'.D.C.H.D.J.3.*
 2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 31 06 48 06 44 00 3a
 00 20 06 2a 06 24 06 2e   .1.H.D.:. .*.$..
 2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 30 00 20 06 46 06 33
 06 28 00 20 06 45 06 2a   .0. .F.3.(. .E.*
 2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 33 06 27 06 48 06 4a
 06 29 00 20 06 45 06 46   .3.'.H.J.). .E.F
 2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 00 20 06 27 06 44 06 44
 06 48 06 32   . .'.D.D.H.2
 2009-03-03 21:00:16 [2825] [14] DEBUG:Octet string dump ends.
 2009-03-03 21:00:16 [2825] [14] DEBUG:   more_messages_to_send: 1 =
 0x0001
 2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU dump ends.




 2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP[MYMTCONN]: Got PDU:
 2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU 0xa732ad00 dump:
 2009-03-03 21:00:16 [2825] [14] DEBUG:   type_name: submit_sm_resp
 2009-03-03 21:00:16 [2825] [14] DEBUG:   command_id: 2147483652 =
 0x8004
 2009-03-03 21:00:16 [2825] [14] DEBUG:   command_status: 0 = 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   sequence_number: 3684 = 0x0e64
 2009-03-03 21:00:16 [2825] [14] DEBUG:   message_id: 4129216897
 2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU dump ends.


 Regards,
 Hafez

 On Thu, Mar 5, 2009 at 1:14 PM, Falko Ziemann fal...@gmail.com wrote:

 Nope  take a closer look:
 submit_sm:

 sequence_number: 3684 = 0x0e64


 submit_sm_resp:

 sequence_number: 3680 = 0x0e60


 That's not the ACK for the message you have posted but for 4 messages
 earlier.

 Regards
 Falko

 Am 05.03.2009 um 12:10 schrieb hafez ahmad:

 Dear falko,

 Thanks for reply I check the submit_sm_respon and I think everything works
 fine, Please advice, this is my log

 2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU 0xa732ad00 dump:
 2009-03-03 21:00:16 [2825] [14] DEBUG

Not ACKED message found, will retransmit

2009-03-05 Thread hafez ahmad
Hi All,


Hope your all doing well, I have the following warning in my logs,

2009-03-04 16:45:56 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT62sec. ago, SEQ11674,
DST+
2009-03-04 16:47:24 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT88sec. ago, SEQ11684,
DST+9888
2009-03-04 16:47:24 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT88sec. ago, SEQ11685,
DST+
2009-03-04 16:47:24 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT88sec. ago, SEQ11686,
DST+
2009-03-04 16:47:24 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT88sec. ago, SEQ11682,
DST+
2009-03-04 16:47:24 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT88sec. ago, SEQ11683,
DST+9888
2009-03-04 16:48:54 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT90sec. ago, SEQ11693,
DST+
2009-03-04 16:48:54 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT89sec. ago, SEQ11694,
DST+
2009-03-04 16:48:54 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT89sec. ago, SEQ11695,
DST+9888
2009-03-04 16:48:54 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT90sec. ago, SEQ11691,
DST+9888
2009-03-04 16:48:54 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT90sec. ago, SEQ11692,
DST+
2009-03-04 16:50:24 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT90sec. ago, SEQ11701,
DST+9888
2009-03-04 16:50:24 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT90sec. ago, SEQ11702,
DST+9888
2009-03-04 16:50:24 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT89sec. ago, SEQ11703,
DST+
2009-03-04 16:50:24 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
message found, will retransmit. SENT90sec. ago, SEQ11699,
DST+



some users like the user +, received the SMS 2 times and every
time he is billed, I search about the problem and I found the following
code:

case SMPP_WAITACK_REQUEUE: /* requeue */
 smpp_msg = dict_remove(smpp-sent_msgs, key);
 if (smpp_msg != NULL) {
 warning(0, SMPP[%s]: Not ACKED message found, will retransmit.
 SENT%ldsec. ago, SEQ%s, DST%s,
octstr_get_cstr(smpp-conn-id),
(long)difftime(now, smpp_msg-sent_time) ,
octstr_get_cstr(key),
octstr_get_cstr(smpp_msg-msg-sms.receiver));
 bb_smscconn_send_failed(smpp-conn, smpp_msg-msg,
SMSCCONN_FAILED_TEMPORARILY,NULL);
 smpp_msg_destroy(smpp_msg, 0);
 (*pending_submits)--;
 }

As I understand from the code that the connection was down so kannel
requeue  the SMS, is that right? and how can I be sure that the user will
get the SMS only one time? please advice.


BR,
Hafez


Re: Not ACKED message found, will retransmit

2009-03-05 Thread hafez ahmad
Dear falko,

Thanks for reply I check the submit_sm_respon and I think everything works
fine, Please advice, this is my log

2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU 0xa732ad00 dump:
2009-03-03 21:00:16 [2825] [14] DEBUG:   type_name: submit_sm
2009-03-03 21:00:16 [2825] [14] DEBUG:   command_id: 4 = 0x0004
2009-03-03 21:00:16 [2825] [14] DEBUG:   command_status: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   sequence_number: 3684 = 0x0e64
2009-03-03 21:00:16 [2825] [14] DEBUG:   service_type: V
2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr_ton: 5 = 0x0005
2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr_npi: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr: T2ME
2009-03-03 21:00:16 [2825] [14] DEBUG:   dest_addr_ton: 1 = 0x0001
2009-03-03 21:00:16 [2825] [14] DEBUG:   dest_addr_npi: 1 = 0x0001
2009-03-03 21:00:16 [2825] [14] DEBUG:   destination_addr: 
2009-03-03 21:00:16 [2825] [14] DEBUG:   esm_class: 67 = 0x0043
2009-03-03 21:00:16 [2825] [14] DEBUG:   protocol_id: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   priority_flag: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   schedule_delivery_time: NULL
2009-03-03 21:00:16 [2825] [14] DEBUG:   validity_period: NULL
2009-03-03 21:00:16 [2825] [14] DEBUG:   registered_delivery: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   replace_if_present_flag: 0 =
0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   data_coding: 8 = 0x0008
2009-03-03 21:00:16 [2825] [14] DEBUG:   sm_default_msg_id: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   sm_length: 140 = 0x008c
2009-03-03 21:00:16 [2825] [14] DEBUG:   short_message:
2009-03-03 21:00:16 [2825] [14] DEBUG:Octet string at 0xa732af00:
2009-03-03 21:00:16 [2825] [14] DEBUG:  len:  140
2009-03-03 21:00:16 [2825] [14] DEBUG:  size: 1024
2009-03-03 21:00:16 [2825] [14] DEBUG:  immutable: 0
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 05 00 03 83 04 01 06 23 06
47 06 45 00 20 06 48   ...#.G.E. .H
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 35 06 41 06 27 06 2a 00
20 06 4a 06 48 06 33   .5.A.'.*. .J.H.3
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 41 00 20 06 27 06 44 06
34 06 31 06 41 06 27   .A. .'.D.4.1.A.'
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 21 00 20 06 44 06 39 06
44 06 27 06 2c 00 20   .!. .D.9.D.'.,.
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 27 06 44 06 43 06 48 06
44 06 4a 06 33 06 2a   .'.D.C.H.D.J.3.*
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 31 06 48 06 44 00 3a 00
20 06 2a 06 24 06 2e   .1.H.D.:. .*.$..
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 30 00 20 06 46 06 33 06
28 00 20 06 45 06 2a   .0. .F.3.(. .E.*
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 33 06 27 06 48 06 4a 06
29 00 20 06 45 06 46   .3.'.H.J.). .E.F
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 00 20 06 27 06 44 06 44 06
48 06 32   . .'.D.D.H.2
2009-03-03 21:00:16 [2825] [14] DEBUG:Octet string dump ends.
2009-03-03 21:00:16 [2825] [14] DEBUG:   more_messages_to_send: 1 =
0x0001
2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU dump ends.
2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP[MYMTCONN]: Got PDU:
2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU 0xa732ad00 dump:
2009-03-03 21:00:16 [2825] [14] DEBUG:   type_name: submit_sm_resp
2009-03-03 21:00:16 [2825] [14] DEBUG:   command_id: 2147483652 = 0x8004
2009-03-03 21:00:16 [2825] [14] DEBUG:   command_status: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   sequence_number: 3680 = 0x0e60
2009-03-03 21:00:16 [2825] [14] DEBUG:   message_id: 4129215894
2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU dump ends.
2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP[MYMTCONN]: Manually forced
source addr ton = 5, source add npi = 1
2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP[MYMTCONN]: Manually forced dest
addr ton = 1, dest add npi = 1
2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP[MYMTCONN]: Sending PDU:


BR,
Hafez

On Thu, Mar 5, 2009 at 11:49 AM, Falko Ziemann fal...@gmail.com wrote:

 It looks like your SMPP service provider hasn't send a correct ACK for the
 message but delivered it.
 Please take a look in the smpp-logfile, what you provider answered to the
 submit_sm. Strongly looks like an error on your providers side.

 Regards
 Falko

 Am 05.03.2009 um 10:40 schrieb hafez ahmad:


  Hi All,


 Hope your all doing well, I have the following warning in my logs,

 2009-03-04 16:45:56 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
 message found, will retransmit. SENT62sec. ago, SEQ11674,
 DST+
 2009-03-04 16:47:24 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
 message found, will retransmit. SENT88sec. ago, SEQ11684,
 DST+9888
 2009-03-04 16:47:24 [2825] [14] WARNING: SMPP[MT_CONNICTION]: Not ACKED
 message found, will retransmit. SENT88sec. ago, SEQ11685,
 DST+
 2009-03-04 16:47:24 [2825] [14] WARNING

Re: Not ACKED message found, will retransmit

2009-03-05 Thread hafez ahmad
Sorry, thats the correct

2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU 0xa732ad00 dump:
2009-03-03 21:00:16 [2825] [14] DEBUG:   type_name: submit_sm
2009-03-03 21:00:16 [2825] [14] DEBUG:   command_id: 4 = 0x0004
2009-03-03 21:00:16 [2825] [14] DEBUG:   command_status: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   sequence_number: 3684 = 0x0e64
2009-03-03 21:00:16 [2825] [14] DEBUG:   service_type: V
2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr_ton: 5 = 0x0005
2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr_npi: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr: T2ME
2009-03-03 21:00:16 [2825] [14] DEBUG:   dest_addr_ton: 1 = 0x0001
2009-03-03 21:00:16 [2825] [14] DEBUG:   dest_addr_npi: 1 = 0x0001
2009-03-03 21:00:16 [2825] [14] DEBUG:   destination_addr: 
2009-03-03 21:00:16 [2825] [14] DEBUG:   esm_class: 67 = 0x0043
2009-03-03 21:00:16 [2825] [14] DEBUG:   protocol_id: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   priority_flag: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   schedule_delivery_time: NULL
2009-03-03 21:00:16 [2825] [14] DEBUG:   validity_period: NULL
2009-03-03 21:00:16 [2825] [14] DEBUG:   registered_delivery: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   replace_if_present_flag: 0 =
0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   data_coding: 8 = 0x0008
2009-03-03 21:00:16 [2825] [14] DEBUG:   sm_default_msg_id: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   sm_length: 140 = 0x008c
2009-03-03 21:00:16 [2825] [14] DEBUG:   short_message:
2009-03-03 21:00:16 [2825] [14] DEBUG:Octet string at 0xa732af00:
2009-03-03 21:00:16 [2825] [14] DEBUG:  len:  140
2009-03-03 21:00:16 [2825] [14] DEBUG:  size: 1024
2009-03-03 21:00:16 [2825] [14] DEBUG:  immutable: 0
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 05 00 03 83 04 01 06 23 06
47 06 45 00 20 06 48   ...#.G.E. .H
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 35 06 41 06 27 06 2a 00
20 06 4a 06 48 06 33   .5.A.'.*. .J.H.3
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 41 00 20 06 27 06 44 06
34 06 31 06 41 06 27   .A. .'.D.4.1.A.'
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 21 00 20 06 44 06 39 06
44 06 27 06 2c 00 20   .!. .D.9.D.'.,.
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 27 06 44 06 43 06 48 06
44 06 4a 06 33 06 2a   .'.D.C.H.D.J.3.*
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 31 06 48 06 44 00 3a 00
20 06 2a 06 24 06 2e   .1.H.D.:. .*.$..
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 30 00 20 06 46 06 33 06
28 00 20 06 45 06 2a   .0. .F.3.(. .E.*
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 06 33 06 27 06 48 06 4a 06
29 00 20 06 45 06 46   .3.'.H.J.). .E.F
2009-03-03 21:00:16 [2825] [14] DEBUG:  data: 00 20 06 27 06 44 06 44 06
48 06 32   . .'.D.D.H.2
2009-03-03 21:00:16 [2825] [14] DEBUG:Octet string dump ends.
2009-03-03 21:00:16 [2825] [14] DEBUG:   more_messages_to_send: 1 =
0x0001
2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU dump ends.




2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP[MYMTCONN]: Got PDU:
2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU 0xa732ad00 dump:
2009-03-03 21:00:16 [2825] [14] DEBUG:   type_name: submit_sm_resp
2009-03-03 21:00:16 [2825] [14] DEBUG:   command_id: 2147483652 = 0x8004
2009-03-03 21:00:16 [2825] [14] DEBUG:   command_status: 0 = 0x
2009-03-03 21:00:16 [2825] [14] DEBUG:   sequence_number: 3684 = 0x0e64
2009-03-03 21:00:16 [2825] [14] DEBUG:   message_id: 4129216897
2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU dump ends.


Regards,
Hafez

On Thu, Mar 5, 2009 at 1:14 PM, Falko Ziemann fal...@gmail.com wrote:

 Nope  take a closer look:
 submit_sm:

 sequence_number: 3684 = 0x0e64


 submit_sm_resp:

 sequence_number: 3680 = 0x0e60


 That's not the ACK for the message you have posted but for 4 messages
 earlier.

 Regards
 Falko

 Am 05.03.2009 um 12:10 schrieb hafez ahmad:

 Dear falko,

 Thanks for reply I check the submit_sm_respon and I think everything works
 fine, Please advice, this is my log

 2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU 0xa732ad00 dump:
 2009-03-03 21:00:16 [2825] [14] DEBUG:   type_name: submit_sm
 2009-03-03 21:00:16 [2825] [14] DEBUG:   command_id: 4 = 0x0004
 2009-03-03 21:00:16 [2825] [14] DEBUG:   command_status: 0 = 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   sequence_number: 3684 = 0x0e64
 2009-03-03 21:00:16 [2825] [14] DEBUG:   service_type: V
 2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr_ton: 5 = 0x0005
 2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr_npi: 0 = 0x
 2009-03-03 21:00:16 [2825] [14] DEBUG:   source_addr: T2ME
 2009-03-03 21:00:16 [2825] [14] DEBUG:   dest_addr_ton: 1 = 0x0001
 2009-03-03 21:00:16 [2825] [14] DEBUG:   dest_addr_npi: 1 = 0x0001
 2009-03-03 21:00:16 [2825] [14] DEBUG:   destination_addr: 
 2009-03

Re: how to send and receive sms in chinese character

2009-02-23 Thread hafez ahmad
Hi,

use charset=UTF-8coding=2 in the URL like the following:


curl 
http://Kannel_URL?username=testerpassword=foobarcharset=UTF-8coding=2to=xxtext=TESTfrom=Hafezsmsc=SMSC_ID


Regards,
Hafez

On Mon, Feb 23, 2009 at 11:12 AM, Low Weng Kin powered182...@live.comwrote:

  Hi all,

 Can anyone help me on the configuration required to receive sms in chinese
 character?

 My current configuration pass the incoming SMS to a page called 
 http://localhost:4242/ReceiveSMS.aspx?phone=%ptext=%a;. During the page
 load event of my page, I will store the sms parameter to my database.
 Somehow, the message I got in the database is ? instead of what I sent
 from the SMPPSIM.

 Here is my config for the smsbox:


 *group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 13013
 mo-recode = true
 #sendsms-chars = 0123456789 +-
 log-file = /tmp/smsbox.log
 log-level = 0
 #access-log = /tmp/access.log

 *Btw, I am using Cygwin to run Kannel.

 Regards,
 Low




 --
 Chat online and in real-time with friends and family! Windows Live
 Messenger http://get.live.com/messenger/overview




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: SUBMIT_MULTI with kannel

2009-02-21 Thread hafez ahmad
Dear Stipe,

Many Thanks for your advice and tips :)

Regards,
Hafez

On Fri, Feb 20, 2009 at 7:39 PM, Stipe Tolj s...@tolj.org wrote:

 hafez ahmad schrieb:
  Hi all,
 
  Thanks for reply, what about this patch
  http://www.kannel.org/pipermail/devel/2006-August/000136.html , did
  someone test it before?
 
  Stipe: can you please add simple page to the documentation that show how
  we can become a Kannel developers ( need skills , resources,
  spacifications...etc ) , I started with C programming to contribute with
  Kannel what next :).

 now, it's hard to give a road map here. What you need to be aware of
 (skills
 that are required):

 - C in a POSIX.1 environment
 - POSIX threads (pthreads)
 - how the Kannel gwlib library abstracts arbitrary data types we use
 everywhere
 (i.e. Octstr, List, etc)
 - architecture of the Kannel daemons (i.e. abstraction layers of bearerbox)
 and
 inter-process communication of the daemons using our Kannel msg struct TCP
 channel.

 To be honest: It's FAIRLY not enough to know how you can compile a hello
 world
 example C source code, to be able to contribute to Kannel with the quality
 of
 patches we expect. But don't let me dis encourage you, go ahead and
 LEARN.
 You're source is the sources of Kannel. :)

 Join the devel@ mailing list, which is more related to development
 aspects, then
 the users@ list that handles more the usage cases.

 Stipe

 --
 ---
 Kölner Landstrasse 419
 40589 Düsseldorf, NRW, Germany

 tolj.org system architecture  Kannel Software Foundation (KSF)
 http://www.tolj.org/  http://www.kannel.org/

 mailto:st_{at}_tolj.org st_%7Bat%7D_tolj.org   mailto:
 stolj_{at}_kannel.org stolj_%7Bat%7D_kannel.org
 ---




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: How to send midi ring tone in UDH headers using kannel?

2009-02-21 Thread hafez ahmad
Hi,

Hope this help
http://dev.sellingsource.com/2006/12/07/sending-wap-push-messages-with-kannel-php/

Regards,
Hafez

On Sat, Feb 21, 2009 at 4:15 PM, Maroof Raza Khan maroofmi...@gmail.comwrote:

  HI,

 Can anyone help to send midi ring tone in UDH headers to subscriber without
 wappush / mms?

 Maroof Raza
 +92 333 4442223



 Maroof Raza Khan

 _

 Mob: +92 345 444 2223

 Mob: +92 333 444 2223

 Email: maroofmi...@gmail.com

 Email (+ MSN): maroofmi...@hotmail.com

 _






-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: (retry) How to set up routing to different SMSC's ?

2009-02-19 Thread hafez ahmad
Hi,

Is there any easy way to configure the mapping between
 SMSC ID's and short codes?

 We have the following requirements for a project, and I'm trying to
 determine what is the best and cleanest way to configure kannel to achieve
 them. I'm using kannel v1.4.1 .


I prefer to use 1.4.3 , solve many things and have many new features



 i) We need to be able to receive SMS messages from various SMSC's ,
 e.g. messages sent by people to short code 111 would be received
 through one particular SMSC, and those sent to 222 would be received
 through another SMSC.


this is depend on you operator configuration, may be you operator define one
SMSC connection and route all the SMS ( from 111 and 222) to the same SMSC
(and in this case you need to check the receiver number) , or may be you
operator give you more than one session for single short code  (for example
SMSC1 + SMSC2 for the short code 111 and SMSC3 and SMSC4 for 222)

So you can ask the team who handel the Kannel configration.



 ii) An application processes each message, and sends any reply back
  to the sender via kannel's normal sendsms interface:
http://localhost:13013/cgi-bin/sendsms?.
  The message must be sent back through the same SMSC from which
  it was originally received, and with the same short code.


  (i.e. if a message is received from SMSC  with short code 222,
   the reply has to go back through SMSC  and appear to the customer
   as coming from '222'.
  )


you need to let you application use the parameter *smsc* in the sendsms
interface, (e.g when your  application fetch the rows from the mo table ,
there are field that determine the incoming smsc , so use it the same to
send SMS) , but not to do that you SMPP connections must be transiver not
reciver only ( ask your kannel team)



 iii) An application should also be able to send a random
  application-initiated message through SMSC that it wishes.
  If it doesn't specify any particular SMSC, it should through
  a specific default SMSC.

 I think the following relevant bits of configuration are a good start.
 group = smsc
 smsc-id = 
 allowed-smsc-id = 

 group = smsc
 smsc-id = 
 allowed-smsc-id = 

 group = smsc
 smsc-id = 
 allowed-smsc-id = 

 group = smsc
 smsc-id = 
 denied-smsc-id = ;;

 From my testing, this means that if the application specifies
 smsc= as a parameter, i.e.
 http://localhost:13013/cgi-bin/sendsms?smsc=
 it will ALWAYS go through  and nowhere else.
 If the application doesn't specify the smsc= parameter (or specifies
 a non-existant one), then the message will ALWAYS go through 
 and nowhere else.

 That's what I want and I hope that's how it's meant to work.
 It does mean that if I add a new SMSC in the future, then we have to
 remember to also add it to the denied-smsc-id configuration above.
 A bit convoluted, but that's how kannel seems to work.

 Now, regarding the 'from=' parameter:

 From my observations, the SMSC's here (over which I have no control),
 tolerate only certain source numbers. So for example if I try
 sending back a SMS reply to a customer through SMSC , then that
 SMSC will accept a 'from' address of 222, but not 111 for example.
 http://localhost:13013/cgi-bin/sendsms?smsc=from=222

 I was hoping that maybe I could leave out the from= parameter
 and then perhaps the SMSC itself would fill it in with a default correct
 value (I have no idea if our SMSC's are set up like that, but at least
 I would have liked to test it).
 But if I leave out the from= parameter from the URL above, kannel itself
 refuses to accept the URL, giving:
 ERROR 400: Bad Request

 Is there any clean way to configure kannel to tell it
 the relationships between the short codes and the SMSC ID?
 Continuing from above, requirement #4 is:


I can't get you here.



 iv) Ideally the application should be able to specify just
 the smsc or the 'from' field, and kannel should be able to
 supply the rest.
 http://localhost:13013/cgi-bin/sendsms?smsc=
 or
 http://localhost:13013/cgi-bin/sendsms?from=222

 There's a lot of documentation in the kannel user guide
 so the solution may be staring me in the face, but I find a lot of it
 challenging to understand, especially the parts about 'routing'.

 The only way I could find to implement this is the following:
 I haven't tried to test this yet.
 I could set up one sendsms-user per SMSC. So for example
 for SMSC , I could set up with user:
 group = sendsms-user
 username = user_
 default-smsc = 
 default-sender = 61421260388

 That way if the application wants to sends a message to
 SMSC , it (hopefully) only needs to do
 http://localhost:13013/cgi-bin/sendsms?username=user_
 and can leave out either or both the smsc= and from= parameters.
 Of 

Re: SUBMIT_MULTI with kannel

2009-02-19 Thread hafez ahmad
Hi all,

Thanks for reply, what about this patch
http://www.kannel.org/pipermail/devel/2006-August/000136.html , did someone
test it before?

Stipe: can you please add simple page to the documentation that show how we
can become a Kannel developers ( need skills , resources,
spacifications...etc ) , I started with C programming to contribute with
Kannel what next :).

Thanks for help again.

BR,
Hafez

On Thu, Feb 19, 2009 at 1:15 AM, Stipe Tolj s...@tolj.org wrote:

 Nikos Balkanas schrieb:


 There seems to be support for it in gw/smsc/smpp_pdu.def:

 PDU(submit_multi,
   0x0021,
   HEADER
   NULTERMINATED(service_type, 6)
   INTEGER(source_addr_ton, 1)
   INTEGER(source_addr_npi, 1)
   NULTERMINATED(source_addr, 21)
   INTEGER(number_of_dests, 1)

 Can someone confirm if it is actually implemented?


 the SMPP PDU [un]packing for it IS supported, but we don't use it for
 multi-destination purposes as it is intended by the spec.

 Stipe

 --
 ---
 Kölner Landstrasse 419
 40589 Düsseldorf, NRW, Germany

 tolj.org system architecture  Kannel Software Foundation (KSF)
 http://www.tolj.org/  http://www.kannel.org/

 mailto:st_{at}_tolj.org st_%7Bat%7D_tolj.org   mailto:
 stolj_{at}_kannel.org stolj_%7Bat%7D_kannel.org
 ---




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: SUBMIT_MULTI with kannel

2009-02-17 Thread hafez ahmad
Thanks Michael,

I search in code and I found that * 4. SubmitMulti PDUs not supported in the
file gw/smsc/smsc_smasi.c , so I will try the patch.

Thanks again.

Hafez




On Tue, Feb 17, 2009 at 8:19 AM, Michael Bochkaryov
mi...@rattler.kiev.uawrote:

 Hi Hafez,

 As far as I know, kannel doesn't support submit_multi PDU in SMPP protocol.
 However you can try to applly necessary changes from patch mentioned here:
 http://www.kannel.org/pipermail/devel/2006-August/000136.html


 2009/2/16 hafez ahmad hafezad...@gmail.com:
  Hi All,
 
  dose kannel support the  SUBMIT_MULTI ?.
 
  Regards,
  Hafez
 



 --
 Michael Bochkaryov
 Phone: +380 67 2206770
 Net Style: VAS and IT solutions
 www.netstyle.com.ua




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: Kannel left open connections on provider's side

2009-02-17 Thread hafez ahmad
Dears,

I had similar problem, I find workaround (not efficient but work for me),
that I increase the reconnect-delay so the TCP connections (from client
side) closed.

Hope that work for you.

BR,
Hafez

On Tue, Feb 17, 2009 at 9:53 PM, Nikos Balkanas nbalka...@gmail.com wrote:

 Hi,

 Just to add that this is not a kannel issue, but network. Kannel, like any
 application, doesn't control the 3-way TCP handshake or the 3-way closing.
 It just opens and closes a connection. The underlying OS is taking care of
 the rest, which it is safe to assume it is not at fault.

 I see 2 problems:

 1) Network: Something is hanging up connections to dry. Since the SMSc says
 that no other client has this issue, it could be a device on your side. If
 you don't get any hang connections with other servers, it could be something
 in the middle.

 2) Server: The SMSc server needs to configure tcp_close_timeouts on the tcp
 driver. I am surprised if it is the only time they noticed.

 BR,
 Nikos
 - Original Message - From: Nikos Balkanas nbalka...@gmail.com
 To: Falko Ziemann fal...@gmail.com; Manuel Fernando Aller 
 manuel.al...@gmail.com
 Cc: users@kannel.org
 Sent: Tuesday, February 17, 2009 8:56 PM

 Subject: Re: Kannel left open connections on provider's side


  Well, actually it shows that the local SMPP server (192.x) is waiting on a
 FIN from 10.10.x. There is an issue why 10.10 is not sending a fin (brute
 disconnection?), but the provider should fine-tune his
 tcp-close-wait-interval, nevertheless.

 In Solaris:

 ndd /dev/tcp tcp_time_wait_interval 6 (for 1' CLOSE_WAIT interval)

 BR,
 Nikos
 - Original Message - From: Falko Ziemann fal...@gmail.com
 To: Manuel Fernando Aller manuel.al...@gmail.com
 Cc: users@kannel.org
 Sent: Tuesday, February 17, 2009 8:14 PM
 Subject: Re: Kannel left open connections on provider's side


  Ok, the operator sent the output of netstat -n to me:

 tcp0  0 192.168.1.55:3000   10.10.2.10:55740
 CLOSE_WAIT
 tcp0  0 192.168.1.55:3000   10.10.2.10:41852
 CLOSE_WAIT
 tcp0  0 192.168.1.55:3000   10.10.2.10:40574
 CLOSE_WAIT
 tcp0  0 192.168.1.55:3000   10.10.2.10:45049
 CLOSE_WAIT
 tcp0  0 192.168.1.55:3000   10.10.2.10:43960
 CLOSE_WAIT
 tcp0  0 192.168.1.55:3000   10.10.2.10:45496
 CLOSE_WAIT
 tcp0  0 192.168.1.55:3000   10.10.2.10:56315
 CLOSE_WAIT
 tcp0  0 192.168.1.55:3000   10.10.2.10:57205
 CLOSE_WAIT
 .
 .

 where 192.168.1.55 is the local ip for his smsc server, and 10.10.2.10
 is my ip (yes, I've chage that!).


 That's NAT, that's normal. But, I admit, I have forgot a lot about the
 TCP stack since my apprentienceship, but doesn't CLOSE_WAIT mean, the
 foreign side (you) closed the connection and the stack is waiting for the
 LOCAL software to acknowledge the FIN?

 http://en.wikipedia.org/wiki/File:Tcp_state_diagram_fixed.svg

 Regards
 Falko







-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: error code 0x00000058

2009-02-16 Thread hafez ahmad
Dears,

Thanks for reply, I contact my operator and I solve the problem, but I have
the error SMSC returned error code 0x0014 (Message Queue Full) in
response to submit_sm , and they says that I have to wait the sms response
then send a new sms, How can I control the waiting time for the response?

i set both throughput = 25 and max-pending-submit = 5, if I set the
max-pending-submit = 6 I get the error, but if I do that the actual
throughput = 4 sms/sec.

Please advice,

Thanks again for help.

Hafez

On Mon, Feb 16, 2009 at 2:29 PM, Nikos Balkanas nbalka...@gmail.com wrote:

  No. Actually bearerbox is the one with the SMSc connections. smsbox has
 nothing to do with it.

 BR,
 Nikos

 - Original Message -
 *From:* hafez ahmad hafezad...@gmail.com
 *To:* Falko Ziemann fal...@gmail.com
 *Cc:* users@kannel.org
 *Sent:* Monday, February 16, 2009 9:48 AM
 *Subject:* Re: error code 0x0058

 Dear Falko,

 1st thanks Falko for you usual help :).

 I ask my operator if there are daily limitation, but he answer me NO, he
 gave me a TX connection with 25sms/sec, and I set the throughput = 20sms and
 the max-pending-submit = 10 , but I have the same problem, the max
 throughput that I get is 5 sms/sec, and I still get the Queue full error and
 Throttling error.

 I check my bandwidth, my I/O, my hardware and everything works fine,  any
 Ideas why I cant get the actual throughput?

 and if I have more than one SMSbox , is that improve the performance?

 Regards,
 Hafez

 On Sun, Jan 11, 2009 at 3:58 PM, hafez ahmad hafezad...@gmail.com wrote:

 Thanks Flko, I will contact my Provider.

 Regards,
 Hafez


 On Sun, Jan 11, 2009 at 3:14 PM, Falko Ziemann fal...@gmail.com wrote:

 Well, throughput is a technical limitation, lets say 10 sms/sec. But
 maybe you also have a legal limitation (100.000 sms/day) and get the error
 because of this? (spam)
 Simply ask your provider which limitation you have broken.

 Regards
 Flko

  Am 11.01.2009 um 12:35 schrieb hafez ahmad:






  Thanks falko,

 thanks for reply , but I set the throughput correctly, is there any thing
 can I do it more ?

 regards.
 Hafez

 On Sun, Jan 11, 2009 at 1:32 PM, Falko Ziemann fal...@gmail.com wrote:

 SMPP Spec says: Throttling error (ESME has exceeded
 allowed message limits)

 Too many messages in a too short time.

 Regards
 Falko
  Am 11.01.2009 um 12:10 schrieb hafez ahmad:

  Dears

 I get this error when I send using my TX session, any I ideas what it
 mean:

 2009-01-11 13:04:53 [8532] [39] ERROR: SMPP[MYTXCONN]: SMSC returned
 error code 0x0058 (Throttling error) in response to submit_sm.


 Regards,
 Hafez





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: error code 0x00000058

2009-02-16 Thread hafez ahmad
Thanks Nikos for help what I need reference the smpp specification is *
synchronous *connection*.*

*The exchange of SMPP request and response PDUs between an ESME Transmitter
and
SMSC may occur synchronously or asynchronously as shown above. Thus an ESME
may,
if desired, send multiple requests to the SMSC, without synchronously
waiting for the
associated response PDUs.*

is that down by max-pending-submit ?

Regards and many thanks for your help

Regards,
Hafez


On Mon, Feb 16, 2009 at 3:13 PM, Nikos Balkanas nbalka...@gmail.com wrote:

  ESME_RMSGQFUL 0x0014 Message Queue Full.

 Used to indicate a resource error within the MC. This may be interpreted as
 the maximum number of messages addressed to a single destination or a global
 maximum of undelivered messages within the MC.

 The waiting time for the Ack is in wait-ack. But I am not sure that this is
 what you want.

 BR,

 Nikos

 - Original Message -
 *From:* hafez ahmad hafezad...@gmail.com
 *To:* Nikos Balkanas nbalka...@gmail.com
 *Cc:* Falko Ziemann fal...@gmail.com ; users@kannel.org
 *Sent:* Monday, February 16, 2009 3:00 PM
 *Subject:* Re: error code 0x0058

 Dears,

 Thanks for reply, I contact my operator and I solve the problem, but I have
 the error SMSC returned error code 0x0014 (Message Queue Full) in
 response to submit_sm , and they says that I have to wait the sms response
 then send a new sms, How can I control the waiting time for the response?

 i set both throughput = 25 and max-pending-submit = 5, if I set the
 max-pending-submit = 6 I get the error, but if I do that the actual
 throughput = 4 sms/sec.

 Please advice,

 Thanks again for help.

 Hafez

 On Mon, Feb 16, 2009 at 2:29 PM, Nikos Balkanas nbalka...@gmail.comwrote:

  No. Actually bearerbox is the one with the SMSc connections. smsbox has
 nothing to do with it.

 BR,
 Nikos

  - Original Message -
 *From:* hafez ahmad hafezad...@gmail.com
 *To:* Falko Ziemann fal...@gmail.com
 *Cc:* users@kannel.org
  *Sent:* Monday, February 16, 2009 9:48 AM
 *Subject:* Re: error code 0x0058

   Dear Falko,

 1st thanks Falko for you usual help :).

 I ask my operator if there are daily limitation, but he answer me NO, he
 gave me a TX connection with 25sms/sec, and I set the throughput = 20sms and
 the max-pending-submit = 10 , but I have the same problem, the max
 throughput that I get is 5 sms/sec, and I still get the Queue full error and
 Throttling error.

 I check my bandwidth, my I/O, my hardware and everything works fine,  any
 Ideas why I cant get the actual throughput?

 and if I have more than one SMSbox , is that improve the performance?

 Regards,
 Hafez

 On Sun, Jan 11, 2009 at 3:58 PM, hafez ahmad hafezad...@gmail.comwrote:

 Thanks Flko, I will contact my Provider.

 Regards,
 Hafez


 On Sun, Jan 11, 2009 at 3:14 PM, Falko Ziemann fal...@gmail.com wrote:

 Well, throughput is a technical limitation, lets say 10 sms/sec. But
 maybe you also have a legal limitation (100.000 sms/day) and get the error
 because of this? (spam)
 Simply ask your provider which limitation you have broken.

 Regards
 Flko

  Am 11.01.2009 um 12:35 schrieb hafez ahmad:






  Thanks falko,

 thanks for reply , but I set the throughput correctly, is there any
 thing can I do it more ?

 regards.
 Hafez

 On Sun, Jan 11, 2009 at 1:32 PM, Falko Ziemann fal...@gmail.comwrote:

 SMPP Spec says: Throttling error (ESME has exceeded
 allowed message limits)

 Too many messages in a too short time.

 Regards
 Falko
  Am 11.01.2009 um 12:10 schrieb hafez ahmad:

  Dears

 I get this error when I send using my TX session, any I ideas what it
 mean:

 2009-01-11 13:04:53 [8532] [39] ERROR: SMPP[MYTXCONN]: SMSC returned
 error code 0x0058 (Throttling error) in response to submit_sm.


 Regards,
 Hafez





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: error code 0x00000058

2009-02-16 Thread hafez ahmad
Many Thanks nikos :)

Hafez.

On Mon, Feb 16, 2009 at 3:32 PM, Nikos Balkanas nbalka...@gmail.com wrote:

  Yes. Asynchronous communication in SMPP is done with max-pending-submit.
 wait-ack and wait-ack-expire fine tune this behaviour.

 Nikos

 - Original Message -
  *From:* hafez ahmad hafezad...@gmail.com
 *To:* Nikos Balkanas nbalka...@gmail.com
 *Cc:* Falko Ziemann fal...@gmail.com ; users@kannel.org
  *Sent:* Monday, February 16, 2009 3:23 PM
 *Subject:* Re: error code 0x0058

 Thanks Nikos for help what I need reference the smpp specification is *
 synchronous *connection*.*

 *The exchange of SMPP request and response PDUs between an ESME
 Transmitter and
 SMSC may occur synchronously or asynchronously as shown above. Thus an ESME
 may,
 if desired, send multiple requests to the SMSC, without synchronously
 waiting for the
 associated response PDUs.*

 is that down by max-pending-submit ?

 Regards and many thanks for your help

 Regards,
 Hafez


 On Mon, Feb 16, 2009 at 3:13 PM, Nikos Balkanas nbalka...@gmail.comwrote:

  ESME_RMSGQFUL 0x0014 Message Queue Full.

 Used to indicate a resource error within the MC. This may be interpreted
 as the maximum number of messages addressed to a single destination or a
 global maximum of undelivered messages within the MC.

 The waiting time for the Ack is in wait-ack. But I am not sure that this
 is what you want.

 BR,

 Nikos

  - Original Message -
  *From:* hafez ahmad hafezad...@gmail.com
   *To:* Nikos Balkanas nbalka...@gmail.com
 *Cc:* Falko Ziemann fal...@gmail.com ; users@kannel.org
 *Sent:* Monday, February 16, 2009 3:00 PM
 *Subject:* Re: error code 0x0058

 Dears,

 Thanks for reply, I contact my operator and I solve the problem, but I
 have the error SMSC returned error code 0x0014 (Message Queue Full) in
 response to submit_sm , and they says that I have to wait the sms response
 then send a new sms, How can I control the waiting time for the response?

 i set both throughput = 25 and max-pending-submit = 5, if I set the
 max-pending-submit = 6 I get the error, but if I do that the actual
 throughput = 4 sms/sec.

 Please advice,

 Thanks again for help.

 Hafez

 On Mon, Feb 16, 2009 at 2:29 PM, Nikos Balkanas nbalka...@gmail.comwrote:

  No. Actually bearerbox is the one with the SMSc connections. smsbox has
 nothing to do with it.

 BR,
 Nikos

  - Original Message -
  *From:* hafez ahmad hafezad...@gmail.com
 *To:* Falko Ziemann fal...@gmail.com
 *Cc:* users@kannel.org
  *Sent:* Monday, February 16, 2009 9:48 AM
 *Subject:* Re: error code 0x0058

   Dear Falko,

 1st thanks Falko for you usual help :).

 I ask my operator if there are daily limitation, but he answer me NO, he
 gave me a TX connection with 25sms/sec, and I set the throughput = 20sms and
 the max-pending-submit = 10 , but I have the same problem, the max
 throughput that I get is 5 sms/sec, and I still get the Queue full error and
 Throttling error.

 I check my bandwidth, my I/O, my hardware and everything works fine,  any
 Ideas why I cant get the actual throughput?

 and if I have more than one SMSbox , is that improve the performance?

 Regards,
 Hafez

 On Sun, Jan 11, 2009 at 3:58 PM, hafez ahmad hafezad...@gmail.comwrote:

 Thanks Flko, I will contact my Provider.

 Regards,
 Hafez


 On Sun, Jan 11, 2009 at 3:14 PM, Falko Ziemann fal...@gmail.comwrote:

 Well, throughput is a technical limitation, lets say 10 sms/sec. But
 maybe you also have a legal limitation (100.000 sms/day) and get the error
 because of this? (spam)
 Simply ask your provider which limitation you have broken.

 Regards
 Flko

  Am 11.01.2009 um 12:35 schrieb hafez ahmad:






  Thanks falko,

 thanks for reply , but I set the throughput correctly, is there any
 thing can I do it more ?

 regards.
 Hafez

 On Sun, Jan 11, 2009 at 1:32 PM, Falko Ziemann fal...@gmail.comwrote:

 SMPP Spec says: Throttling error (ESME has exceeded
 allowed message limits)

 Too many messages in a too short time.

 Regards
 Falko
  Am 11.01.2009 um 12:10 schrieb hafez ahmad:

  Dears

 I get this error when I send using my TX session, any I ideas what it
 mean:

 2009-01-11 13:04:53 [8532] [39] ERROR: SMPP[MYTXCONN]: SMSC returned
 error code 0x0058 (Throttling error) in response to submit_sm.


 Regards,
 Hafez





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http

SUBMIT_MULTI with kannel

2009-02-16 Thread hafez ahmad
Hi All,

dose kannel support the  SUBMIT_MULTI ?.

Regards,
Hafez


Re: error code 0x00000058

2009-02-15 Thread hafez ahmad
Dear Falko,

1st thanks Falko for you usual help :).

I ask my operator if there are daily limitation, but he answer me NO, he
gave me a TX connection with 25sms/sec, and I set the throughput = 20sms and
the max-pending-submit = 10 , but I have the same problem, the max
throughput that I get is 5 sms/sec, and I still get the Queue full error and
Throttling error.

I check my bandwidth, my I/O, my hardware and everything works fine,  any
Ideas why I cant get the actual throughput?

and if I have more than one SMSbox , is that improve the performance?

Regards,
Hafez

On Sun, Jan 11, 2009 at 3:58 PM, hafez ahmad hafezad...@gmail.com wrote:

 Thanks Flko, I will contact my Provider.

 Regards,
 Hafez


 On Sun, Jan 11, 2009 at 3:14 PM, Falko Ziemann fal...@gmail.com wrote:

 Well, throughput is a technical limitation, lets say 10 sms/sec. But maybe
 you also have a legal limitation (100.000 sms/day) and get the error because
 of this? (spam)
 Simply ask your provider which limitation you have broken.

 Regards
 Flko

 Am 11.01.2009 um 12:35 schrieb hafez ahmad:






 Thanks falko,

 thanks for reply , but I set the throughput correctly, is there any thing
 can I do it more ?

 regards.
 Hafez

 On Sun, Jan 11, 2009 at 1:32 PM, Falko Ziemann fal...@gmail.com wrote:

 SMPP Spec says:Throttling error (ESME has exceeded
 allowed message limits)

 Too many messages in a too short time.

 Regards
 Falko
 Am 11.01.2009 um 12:10 schrieb hafez ahmad:

 Dears

 I get this error when I send using my TX session, any I ideas what it
 mean:

 2009-01-11 13:04:53 [8532] [39] ERROR: SMPP[MYTXCONN]: SMSC returned
 error code 0x0058 (Throttling error) in response to submit_sm.


 Regards,
 Hafez





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: Receiving long messages

2009-02-03 Thread hafez ahmad
Hi,

Solved, It was a configuration from the operator side.

Regards,
Hafez

On Mon, Feb 2, 2009 at 5:44 PM, hafez ahmad hafezad...@gmail.com wrote:

 Hi All,

 Did any one test this feature with new release.

 Regards,
 hafez


 On Tue, Jan 27, 2009 at 3:09 PM, hafez ahmad hafezad...@gmail.com wrote:

 Dears,

 I test the concatenated MO sms, and it looks dose not work, I set the
 option sms-combine-concatenated-mo , and I receiving the SMS , 2 parts.

 2009-01-27 15:01:30 Receive SMS [SMSC:TESTRX] [SVC:] [ACT:] [BINF:] [FID:]
 [from:+] [to:66] [flags:-1:2:-1:0:-1]
 [msg:134:063A062F0627062C062806460637062C06270628062F06410637062C062706280633062F062C0637064106460633062F062C0627062806410637062C062F063306280627062F062C064106330628062C062F0641063306280627062F063306330641062F0641063706410633062800200627062E062A06280627063100200644063706480644]
 [udh:0:]
 2009-01-27 15:01:40 Receive SMS [SMSC:TESTRX] [SVC:] [ACT:] [BINF:] [FID:]
 [from:+] [to:66] [flags:-1:2:-1:0:-1]
 [msg:30:002006270631063306270644064700200627064406420635064A06310647]
 [udh:0:]


 Any Ideas.

 Regards,
 Hafez

 On Mon, Jan 26, 2009 at 3:40 PM, Monim Benaiad bena...@gmail.com wrote:

 I think it's sms-combine-concatenated-mo = true in the core group. with
 the stable release




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: Receiving long messages

2009-02-02 Thread hafez ahmad
Hi All,

Did any one test this feature with new release.

Regards,
hafez

On Tue, Jan 27, 2009 at 3:09 PM, hafez ahmad hafezad...@gmail.com wrote:

 Dears,

 I test the concatenated MO sms, and it looks dose not work, I set the
 option sms-combine-concatenated-mo , and I receiving the SMS , 2 parts.

 2009-01-27 15:01:30 Receive SMS [SMSC:TESTRX] [SVC:] [ACT:] [BINF:] [FID:]
 [from:+] [to:66] [flags:-1:2:-1:0:-1]
 [msg:134:063A062F0627062C062806460637062C06270628062F06410637062C062706280633062F062C0637064106460633062F062C0627062806410637062C062F063306280627062F062C064106330628062C062F0641063306280627062F063306330641062F0641063706410633062800200627062E062A06280627063100200644063706480644]
 [udh:0:]
 2009-01-27 15:01:40 Receive SMS [SMSC:TESTRX] [SVC:] [ACT:] [BINF:] [FID:]
 [from:+] [to:66] [flags:-1:2:-1:0:-1]
 [msg:30:002006270631063306270644064700200627064406420635064A06310647]
 [udh:0:]


 Any Ideas.

 Regards,
 Hafez

 On Mon, Jan 26, 2009 at 3:40 PM, Monim Benaiad bena...@gmail.com wrote:

 I think it's sms-combine-concatenated-mo = true in the core group. with
 the stable release




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Getting the message_id from submit_sm_response

2009-01-27 Thread hafez ahmad
Hi,

Is the patch that  get the message_id from
submit_sm_responsehttp://www.blogalex.com/archives/10by Alejandro
included in the Last stable release.

Thanks Alejandro for your effort.


Regards,
-- 
Hafez A.Ahmad


shutdown or restart one SMPP connection

2009-01-27 Thread hafez ahmad
Dears,

if I have 25 SMPP connection, is there a way to stop or restart one
connection without stop other connections?

 and by the way I use only one SMSBOX.

Regards,
Hafez


Re: shutdown or restart one SMPP connection

2009-01-27 Thread hafez ahmad
Hi,

Thanks falko for reply, but I used it before, I set the same password and
port number of the admin, and it print out *Denied*

and by the way the status url work fine with the same password and port
number.

Any Ideas?

Regards,
Hafez

On Tue, Jan 27, 2009 at 11:05 AM, Falko Ziemann fal...@gmail.com wrote:

 lynx http://localhost:13000/stop-smsc?password=pwdsmsc=smsc1; 
 http://localhost:13000/stop-smsc?password=pwdsmsc=smsc1%22;

 Regards

 Falko

 Am 27.01.2009 um 09:53 schrieb hafez ahmad:

 Dears,

 if I have 25 SMPP connection, is there a way to stop or restart one
 connection without stop other connections?

  and by the way I use only one SMSBOX.

 Regards,
 Hafez





-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: shutdown or restart one SMPP connection

2009-01-27 Thread hafez ahmad
Thanks all, it works fine now.

Regards,
Hafez

On Tue, Jan 27, 2009 at 12:44 PM, Ishtiaq Ahmed ishtiaq.ah...@ooober.comwrote:

 Hi Hafez,

 Sure the http administration gives you the control to stop / start any
 specific smsc... I hope this will help you...

 http://kannel:box
 :AdminPort/stop-smsc?password=youradminpasswordsmsc=yourSMSCid


 Regards,


 Ishtiaq Ahmed


 hafez ahmad wrote:

 Dears,

 if I have 25 SMPP connection, is there a way to stop or restart one
 connection without stop other connections?

  and by the way I use only one SMSBOX.

 Regards,
 Hafez





-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: shutdown or restart one SMPP connection

2009-01-27 Thread hafez ahmad
But another related question please, if I add new SMPP connection , can I
start the connection without shutdown the bearerbox and the smsbox?

Regards,
hafez

On Tue, Jan 27, 2009 at 12:56 PM, hafez ahmad hafezad...@gmail.com wrote:

 Thanks all, it works fine now.

 Regards,
 Hafez

 On Tue, Jan 27, 2009 at 12:44 PM, Ishtiaq Ahmed 
 ishtiaq.ah...@ooober.comwrote:

 Hi Hafez,

 Sure the http administration gives you the control to stop / start any
 specific smsc... I hope this will help you...

 http://kannel:box
 :AdminPort/stop-smsc?password=youradminpasswordsmsc=yourSMSCid


 Regards,


 Ishtiaq Ahmed


 hafez ahmad wrote:

 Dears,

 if I have 25 SMPP connection, is there a way to stop or restart one
 connection without stop other connections?

  and by the way I use only one SMSBOX.

 Regards,
 Hafez





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: Receiving long messages

2009-01-27 Thread hafez ahmad
Dears,

I test the concatenated MO sms, and it looks dose not work, I set the option
sms-combine-concatenated-mo , and I receiving the SMS , 2 parts.

2009-01-27 15:01:30 Receive SMS [SMSC:TESTRX] [SVC:] [ACT:] [BINF:] [FID:]
[from:+] [to:66] [flags:-1:2:-1:0:-1]
[msg:134:063A062F0627062C062806460637062C06270628062F06410637062C062706280633062F062C0637064106460633062F062C0627062806410637062C062F063306280627062F062C064106330628062C062F0641063306280627062F063306330641062F0641063706410633062800200627062E062A06280627063100200644063706480644]
[udh:0:]
2009-01-27 15:01:40 Receive SMS [SMSC:TESTRX] [SVC:] [ACT:] [BINF:] [FID:]
[from:+] [to:66] [flags:-1:2:-1:0:-1]
[msg:30:002006270631063306270644064700200627064406420635064A06310647]
[udh:0:]


Any Ideas.

Regards,
Hafez

On Mon, Jan 26, 2009 at 3:40 PM, Monim Benaiad bena...@gmail.com wrote:

 I think it's sms-combine-concatenated-mo = true in the core group. with
 the stable release




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: Receiving long messages

2009-01-26 Thread hafez ahmad
Hi,

I think this problem solved with the new release from kannel , like the new
release announcement contains  * Added concatenation MO support.

Regards,
Hafez

On Mon, Jan 26, 2009 at 8:36 AM, Matti Koljonen matti.koljo...@kontaktia.fi
 wrote:

  Hi,

 Is there way to concatenate incoming long SMS to one msg?
 When sending SMS out Kannel does that automatically. Is there identical
 feature for receiving long messages?

 For some reason we are receiving UDH as null so we are not able to use that
 to do concatenation.

 Best Regards
 Matti Koljonen






-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: How DLR matched with in the Database

2009-01-13 Thread hafez ahmad
Dear Nikos,

So this is invalid behavior from Kannel or what ? ,

 and another thing may be related to this thing, when the DLR from TRX
connection, and we use msg-id-type like  0x01 (deliver_sm decimal,
submit_sm_resp hex) , is that may cause the kannel to can not find the
requested DLR , or the recived DLR with msg id from type HEX convert
internaly to decimal


Regards,
Hafez


On Mon, Jan 12, 2009 at 3:12 PM, Nikos Balkanas nbalka...@gmail.com wrote:

  Pretty much, except for ts. If that were true for ts, you should get your
 DLR sometime in 4000 AD :-)

 If I ma not mistaken, ts is actully the DLR meesage-id. It is related to
 your original message-id, (hence kannel can find it) but is not the same.

 BR,
 Nikos

 - Original Message -
  *From:* hafez ahmad hafezad...@gmail.com
  *To:* Nikos Balkanas nbalka...@gmail.com
 *Cc:* users@kannel.org
 *Sent:* Monday, January 12, 2009 12:09 PM
 *Subject:* Re: How DLR matched with in the Database

 Dear Nikos,

 Thanks for reply, but can you please explain more, I have the following in
 my config file:

 and my log:

 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

 2009-01-12 11:49:09 [29596] [36] DEBUG: DLR[mysql]: Looking for DLR
 smsc=MYCONN, ts=643779203, dst=9xxx, type=1

 is that mean that kannel look for the recorde with timestamp = 643779203
 and destination = 9xxx and smsc = MYCONN.

 and thanks again.

 Regards,
 Hafez

 On Sun, Jan 11, 2009 at 5:10 PM, Nikos Balkanas nbalka...@gmail.comwrote:

  No. It matches your configuration file, where you describe the exact
 matching between variables and columns in your table.

 BR,
 Nikos

 - Original Message -
  *From:* hafez ahmad hafezad...@gmail.com
 *To:* users@kannel.org
 *Sent:* Sunday, January 11, 2009 3:57 PM
 *Subject:* How DLR matched with in the Database

 Dears,

 when DLR back to kannel from the SMSC, how it match with the mysql DLR
 table ?, is it using the *Message id *?

 Regards,
 Hafez




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: How DLR matched with in the Database

2009-01-12 Thread hafez ahmad
Dear Nikos,

Thanks for reply, but can you please explain more, I have the following in
my config file:

and my log:

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

2009-01-12 11:49:09 [29596] [36] DEBUG: DLR[mysql]: Looking for DLR
smsc=MYCONN, ts=643779203, dst=9xxx, type=1

is that mean that kannel look for the recorde with timestamp = 643779203 and
destination = 9xxx and smsc = MYCONN.

and thanks again.

Regards,
Hafez

On Sun, Jan 11, 2009 at 5:10 PM, Nikos Balkanas nbalka...@gmail.com wrote:

  No. It matches your configuration file, where you describe the exact
 matching between variables and columns in your table.

 BR,
 Nikos

 - Original Message -
 *From:* hafez ahmad hafezad...@gmail.com
 *To:* users@kannel.org
 *Sent:* Sunday, January 11, 2009 3:57 PM
 *Subject:* How DLR matched with in the Database

 Dears,

 when DLR back to kannel from the SMSC, how it match with the mysql DLR
 table ?, is it using the *Message id *?

 Regards,
 Hafez




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


error code 0x00000058

2009-01-11 Thread hafez ahmad
Dears

I get this error when I send using my TX session, any I ideas what it mean:

2009-01-11 13:04:53 [8532] [39] ERROR: SMPP[MYTXCONN]: SMSC returned error
code 0x0058 (Throttling error) in response to submit_sm.


Regards,
Hafez


Re: error code 0x00000058

2009-01-11 Thread hafez ahmad
Thanks falko,

thanks for reply , but I set the throughput correctly, is there any thing
can I do it more ?

regards.
Hafez

On Sun, Jan 11, 2009 at 1:32 PM, Falko Ziemann fal...@gmail.com wrote:

 SMPP Spec says:Throttling error (ESME has exceeded
 allowed message limits)

 Too many messages in a too short time.

 Regards
 Falko
 Am 11.01.2009 um 12:10 schrieb hafez ahmad:

 Dears

 I get this error when I send using my TX session, any I ideas what it mean:

 2009-01-11 13:04:53 [8532] [39] ERROR: SMPP[MYTXCONN]: SMSC returned error
 code 0x0058 (Throttling error) in response to submit_sm.


 Regards,
 Hafez





-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


How DLR matched with in the Database

2009-01-11 Thread hafez ahmad
Dears,

when DLR back to kannel from the SMSC, how it match with the mysql DLR table
?, is it using the *Message id *?

Regards,
Hafez


Re: error code 0x00000058

2009-01-11 Thread hafez ahmad
Thanks Flko, I will contact my Provider.

Regards,
Hafez

On Sun, Jan 11, 2009 at 3:14 PM, Falko Ziemann fal...@gmail.com wrote:

 Well, throughput is a technical limitation, lets say 10 sms/sec. But maybe
 you also have a legal limitation (100.000 sms/day) and get the error because
 of this? (spam)
 Simply ask your provider which limitation you have broken.

 Regards
 Flko

 Am 11.01.2009 um 12:35 schrieb hafez ahmad:

 Thanks falko,

 thanks for reply , but I set the throughput correctly, is there any thing
 can I do it more ?

 regards.
 Hafez

 On Sun, Jan 11, 2009 at 1:32 PM, Falko Ziemann fal...@gmail.com wrote:

 SMPP Spec says:Throttling error (ESME has exceeded
 allowed message limits)

 Too many messages in a too short time.

 Regards
 Falko
 Am 11.01.2009 um 12:10 schrieb hafez ahmad:

 Dears

 I get this error when I send using my TX session, any I ideas what it
 mean:

 2009-01-11 13:04:53 [8532] [39] ERROR: SMPP[MYTXCONN]: SMSC returned error
 code 0x0058 (Throttling error) in response to submit_sm.


 Regards,
 Hafez





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com





-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


ton npi

2009-01-08 Thread hafez ahmad
Dears,

can someone please explain the functionality of the following parameters in
details:

source-addr-ton
source-addr-npi
dest-addr-ton
dest-addr-npi
bind-addr-ton
bind-addr-npi

Regards,
-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


SMS routing

2009-01-05 Thread hafez ahmad
Dears,

I have 2 TX SMPP connection for the same operator, I need to send SMSs using
the first connection, but if the 1st connection have load , the SMSs served
using the 2nd connection.

can I do that using kannel or it is Application level? , and if yes it is
using the *allowed-smsc-id?

*
Thanks for help,
Hafez


Re: SMS routing

2009-01-05 Thread hafez ahmad
Thanks Mike :)

On Mon, Jan 5, 2009 at 4:18 PM, Mike Nwaogu michael_nwa...@yahoo.comwrote:

 Sorry had supposed you were using the cgi via http to send.
 If that's the case you'll need to specify which smsc you wish to use, it's
 done programatically at the application level.
 Your URL will look like this ...


 http://localhost:13003/cgi-bin/sendsms?username=password=to=$tofrom=$frm;
 default_smsc=smsc1text=$msg

 Regards,
 Mike Nwaogu
 Tel: 234_802_325_6437


 --
 *From:* hafez ahmad hafezad...@gmail.com
 *To:* Mike Nwaogu michael_nwa...@yahoo.com
 *Cc:* users@kannel.org users@kannel.org
 *Sent:* Monday, January 5, 2009 1:34:39 PM
 *Subject:* Re: SMS routing

 Dear Mike,

 thanks for reply, but can you please explain more?

 Regards,
 Hafez

 On Mon, Jan 5, 2009 at 11:20 AM, Mike Nwaogu michael_nwa...@yahoo.comwrote:

 default-smsc=[smsc_id_name]

 Regards,
 Mike Nwaogu
 Tel: 234_802_325_6437


 --
 *From:* hafez ahmad hafezad...@gmail.com
 *To:* users@kannel.org users@kannel.org
 *Sent:* Monday, January 5, 2009 9:13:55 AM
 *Subject:* SMS routing

 Dears,

 I have 2 TX SMPP connection for the same operator, I need to send SMSs
 using the first connection, but if the 1st connection have load , the SMSs
 served using the 2nd connection.

 can I do that using kannel or it is Application level? , and if yes it is
 using the *allowed-smsc-id?

 *
 Thanks for help,
 Hafez




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: SMS routing

2009-01-05 Thread hafez ahmad
Dear Mike,

thanks for reply, but can you please explain more?

Regards,
Hafez

On Mon, Jan 5, 2009 at 11:20 AM, Mike Nwaogu michael_nwa...@yahoo.comwrote:

 default-smsc=[smsc_id_name]

 Regards,
 Mike Nwaogu
 Tel: 234_802_325_6437


 --
 *From:* hafez ahmad hafezad...@gmail.com
 *To:* users@kannel.org users@kannel.org
 *Sent:* Monday, January 5, 2009 9:13:55 AM
 *Subject:* SMS routing

 Dears,

 I have 2 TX SMPP connection for the same operator, I need to send SMSs
 using the first connection, but if the 1st connection have load , the SMSs
 served using the 2nd connection.

 can I do that using kannel or it is Application level? , and if yes it is
 using the *allowed-smsc-id?

 *
 Thanks for help,
 Hafez




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: anyone here from Pakistan and can guide me regarding GSM modem ... which is cheap and reliable ?

2008-12-28 Thread hafez ahmad
Hi Lain,

can you please provide us with link.

Regards,
Hafez

On Sun, Dec 28, 2008 at 10:58 AM, Iain Dooley
i...@workingsoftware.com.auwrote:

 hi wahib, i've dealt with kls electronic in china to get a good, compact
 power over usb gsm modem. i live in australia and including shipping they
 were still reasonably priced.

 i've run them both with kannel, and also just using a direct terminal
 connection from a script, on freebsd, and have no problems so far (been
 running them for about 8 months).

 cheers
 iain


 On Sun, 28 Dec 2008, wahib wrote:


 Hi. I have worked on kannel regarding sms applications for some time using
 W700i as smsc. But my project advisor wants to buy a GSM modem once and
 for
 all coz its a much better option. I have searched on reliable GSM modems
 and
 found many. But i need to know that is there any GSM modem available in
 pakistan ?  and which one and of how much ???

 Regards,
 wahib
 --
 View this message in context:
 http://www.nabble.com/anyone-here-from-Pakistan-and-can-guide-me-regarding-GSM-modem-...-which-is-cheap-and-reliable---tp21190836p21190836.html
 Sent from the Kannel - User mailing list archive at Nabble.com.







-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: anyone here from Pakistan and can guide me regarding GSM modem... which is cheap and reliable ?

2008-12-28 Thread hafez ahmad
Hi Nikos,

Please advice as with cheap and stable one.

Regards,
Hafez

On Sun, Dec 28, 2008 at 12:37 PM, Nikos Balkanas nbalka...@gmail.comwrote:

  Just be careful. Solaris doesn't support *any* usb modems. Linux has
 drivers for some, which are ported also to freeBSD. As a rule of thumb,
 serial GSM modems (lower throuput, though) are always compatible with
 kannel.

 BR,
 Nikos

 - Original Message -
 *From:* hafez ahmad hafezad...@gmail.com
 *To:* Iain Dooley i...@workingsoftware.com.au
 *Cc:* users@kannel.org
 *Sent:* Sunday, December 28, 2008 11:20 AM
 *Subject:* Re: anyone here from Pakistan and can guide me regarding GSM
 modem... which is cheap and reliable ?

 Hi Lain,

 can you please provide us with link.

 Regards,
 Hafez

 On Sun, Dec 28, 2008 at 10:58 AM, Iain Dooley i...@workingsoftware.com.au
  wrote:

 hi wahib, i've dealt with kls electronic in china to get a good, compact
 power over usb gsm modem. i live in australia and including shipping they
 were still reasonably priced.

 i've run them both with kannel, and also just using a direct terminal
 connection from a script, on freebsd, and have no problems so far (been
 running them for about 8 months).

 cheers
 iain


 On Sun, 28 Dec 2008, wahib wrote:


 Hi. I have worked on kannel regarding sms applications for some time
 using
 W700i as smsc. But my project advisor wants to buy a GSM modem once and
 for
 all coz its a much better option. I have searched on reliable GSM modems
 and
 found many. But i need to know that is there any GSM modem available in
 pakistan ?  and which one and of how much ???

 Regards,
 wahib
 --
 View this message in context:
 http://www.nabble.com/anyone-here-from-Pakistan-and-can-guide-me-regarding-GSM-modem-...-which-is-cheap-and-reliable---tp21190836p21190836.html
 Sent from the Kannel - User mailing list archive at Nabble.com.







 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: anyone here from Pakistan and can guide me regarding GSM modem... which is cheap and reliable ?

2008-12-28 Thread hafez ahmad
Thanks Nikos :)

Regards,
Hafez

On Sun, Dec 28, 2008 at 1:53 PM, Nikos Balkanas nbalka...@gmail.com wrote:

  Sorry, I am not the right person. I don't know of any vendors close to
 Pakistan, and I have Solaris. I am happy with the stability of the Wavecom
 Fastrack Supreme 10 (serial), but it is not cheap (~250 E).

 BR,
 Nikos

 - Original Message -
 *From:* hafez ahmad hafezad...@gmail.com
 *To:* Nikos Balkanas nbalka...@gmail.com
 *Cc:* Iain Dooley i...@workingsoftware.com.au ; users@kannel.org
 *Sent:* Sunday, December 28, 2008 12:55 PM
 *Subject:* Re: anyone here from Pakistan and can guide me regarding GSM
 modem... which is cheap and reliable ?

 Hi Nikos,

 Please advice as with cheap and stable one.

 Regards,
 Hafez

 On Sun, Dec 28, 2008 at 12:37 PM, Nikos Balkanas nbalka...@gmail.comwrote:

  Just be careful. Solaris doesn't support *any* usb modems. Linux has
 drivers for some, which are ported also to freeBSD. As a rule of thumb,
 serial GSM modems (lower throuput, though) are always compatible with
 kannel.

 BR,
 Nikos

 - Original Message -
 *From:* hafez ahmad hafezad...@gmail.com
 *To:* Iain Dooley i...@workingsoftware.com.au
 *Cc:* users@kannel.org
 *Sent:* Sunday, December 28, 2008 11:20 AM
 *Subject:* Re: anyone here from Pakistan and can guide me regarding GSM
 modem... which is cheap and reliable ?

 Hi Lain,

 can you please provide us with link.

 Regards,
 Hafez

 On Sun, Dec 28, 2008 at 10:58 AM, Iain Dooley 
 i...@workingsoftware.com.au wrote:

 hi wahib, i've dealt with kls electronic in china to get a good, compact
 power over usb gsm modem. i live in australia and including shipping they
 were still reasonably priced.

 i've run them both with kannel, and also just using a direct terminal
 connection from a script, on freebsd, and have no problems so far (been
 running them for about 8 months).

 cheers
 iain


 On Sun, 28 Dec 2008, wahib wrote:


 Hi. I have worked on kannel regarding sms applications for some time
 using
 W700i as smsc. But my project advisor wants to buy a GSM modem once and
 for
 all coz its a much better option. I have searched on reliable GSM modems
 and
 found many. But i need to know that is there any GSM modem available in
 pakistan ?  and which one and of how much ???

 Regards,
 wahib
 --
 View this message in context:
 http://www.nabble.com/anyone-here-from-Pakistan-and-can-guide-me-regarding-GSM-modem-...-which-is-cheap-and-reliable---tp21190836p21190836.html
 Sent from the Kannel - User mailing list archive at Nabble.com.







 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: SMPP connection disconnected when request DLR

2008-12-23 Thread hafez ahmad
Dear Falko,

Many thanks for your replay, my operator refuse to give me the TRX ( and I
don't know why) , is there a way to solve the problem from our side ?

Regards,
Hafez

On Tue, Dec 23, 2008 at 1:23 PM, Falko Ziemann fal...@gmail.com wrote:

 Hmm, that really looks very much like the SMSC tries to submit the DLR on
 the TXCONN.But I don't understand why you use TX+RX instead of TRX on
 protocol version 3.4. But anyway this really seems to be a problem on your
 providers side.

 Regards
 Falko

 Am 23.12.2008 um 12:08 schrieb hafez ahmad:

 Hi,

 Sorry for late, please find my config file and my log file.

 Thanks for help,
 Hafez


 On Mon, Dec 22, 2008 at 10:18 AM, Nikos Balkanas nbalka...@gmail.comwrote:

  Could you please post your configuration and bearerbox log files (max
 verbosity possible)?

 BR,
 Nikos

 - Original Message -
  *From:* hafez ahmad hafezad...@gmail.com
 *To:* Falko Ziemann fal...@gmail.com
 *Cc:* users@kannel.org
 *Sent:* Monday, December 22, 2008 10:03 AM
 *Subject:* Re: SMPP connection disconnected when request DLR

 Hi all,

 Is there any another ideas?

 Regards,
 Hafez

 On Mon, Dec 15, 2008 at 4:20 PM, hafez ahmad hafezad...@gmail.comwrote:

 Dear Falko,

 Thanks for reply, I have RX connection and I receiving MO there, so is it
 configuration thing from operator side? that he may be routing the  DLR or
 something like that ?

 Regards
 Hafez


 On Mon, Dec 15, 2008 at 4:14 PM, Falko Ziemann fal...@gmail.com wrote:

 I might have a idea: Could it be that you only have a TX connection and
 no RX conn? When you send a message with DLR request, the smsc answers with
 a message waiting flag. When a smpp TX connection get's a message waiting
 flag it disconnects and connects a RX connection. So either you have to
 configure the RX connection or better you try to get a TRX connection, but
 you cannot receive DLRs over a TX connection.
 This is only a guess. Maybe you want to send the logfile of your SMPP
 connection.

 Regards
 Falko

  Am 15.12.2008 um 14:28 schrieb hafez ahmad:

  Hi,
 is there any ideas ? , is the problem from kannel side ot the operator
 side ?

 Regards,
 Hafez

 On Sun, Dec 14, 2008 at 2:46 PM, hafez ahmad hafezad...@gmail.comwrote:

 Dears,

 I am using kannel with the DLR group patch, when I send sms without
 adding the dlr-url and dlr-mask the SMS sent fine and there are no problem
 like the following:


 http://localhost:13013/cgi-bin/sendsms?username=testpassword=foocharset=UTF-8coding=2to=text=testfrom=1234smsc=TESTSMSCbinfo=100

 but whene I add the dlr-url and dlr-mask to the URL my TX connection
 dissconected and reconecting like the following:


 http://localhost:13013/cgi-bin/sendsms?username=testpassword=foocharset=UTF-8coding=2to=text=testfrom=1234smsc=TESTSMSCbinfo=100dlr-mask=31dlr-url=http%3A//localhost/test.php%3Fdl%3D%25d

 is there any ideas why this happen?

 Regards,
 Hafez




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com
  smskannel.confmy.log





-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: SMPP connection disconnected when request DLR

2008-12-22 Thread hafez ahmad
Hi all,

Is there any another ideas?

Regards,
Hafez

On Mon, Dec 15, 2008 at 4:20 PM, hafez ahmad hafezad...@gmail.com wrote:

 Dear Falko,

 Thanks for reply, I have RX connection and I receiving MO there, so is it
 configuration thing from operator side? that he may be routing the  DLR or
 something like that ?

 Regards
 Hafez


 On Mon, Dec 15, 2008 at 4:14 PM, Falko Ziemann fal...@gmail.com wrote:

 I might have a idea: Could it be that you only have a TX connection and no
 RX conn? When you send a message with DLR request, the smsc answers with a
 message waiting flag. When a smpp TX connection get's a message waiting flag
 it disconnects and connects a RX connection. So either you have to configure
 the RX connection or better you try to get a TRX connection, but you cannot
 receive DLRs over a TX connection.
 This is only a guess. Maybe you want to send the logfile of your SMPP
 connection.

 Regards
 Falko

 Am 15.12.2008 um 14:28 schrieb hafez ahmad:

 Hi,
 is there any ideas ? , is the problem from kannel side ot the operator
 side ?

 Regards,
 Hafez

 On Sun, Dec 14, 2008 at 2:46 PM, hafez ahmad hafezad...@gmail.comwrote:

 Dears,

 I am using kannel with the DLR group patch, when I send sms without
 adding the dlr-url and dlr-mask the SMS sent fine and there are no problem
 like the following:


 http://localhost:13013/cgi-bin/sendsms?username=testpassword=foocharset=UTF-8coding=2to=text=testfrom=1234smsc=TESTSMSCbinfo=100

 but whene I add the dlr-url and dlr-mask to the URL my TX connection
 dissconected and reconecting like the following:


 http://localhost:13013/cgi-bin/sendsms?username=testpassword=foocharset=UTF-8coding=2to=text=testfrom=1234smsc=TESTSMSCbinfo=100dlr-mask=31dlr-url=http%3A//localhost/test.php%3Fdl%3D%25d

 is there any ideas why this happen?

 Regards,
 Hafez




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: Re: ringtone : a simple tutorial

2008-12-21 Thread hafez ahmad
Hi creeds,

the below tutorial to send the content as wap push, hope it help you

http://dev.sellingsource.com/2006/12/07/sending-wap-push-messages-with-kannel-php/

Hafez
On Sun, Dec 21, 2008 at 1:42 PM, creeds su...@nt.com.np wrote:


 Even i am in need of this solution.
 Hope u have already got the solution as this post is quite a long time
 so help me out to send a ringtones when one send sms with certain keywords
 requesting ringtones.


 regards,


 mamunbabubd wrote:
 
 
  please answer me the following question:
 
  I want to set up a ringtone service using kannel and for that i want to
  use wap push SI. The sequence of the service will be as follow:
 
  1.users will send a request via sms specifying a keyword for ringtone.
  2.In response of that keyword kannel will send a wap push.
 
  To do so what will be my kannel.conf configuration. where will i specify
  the keyword for ringtone in kannnel.conf for incoming message that will
  eventually pass the request for wap push SI.
 
 
  Thanks
  Mamun
 
  --
  This message was sent on behalf of mamunbab...@yahoo.com at
  openSubscriber.com
  http://www.opensubscriber.com/message/users@kannel.org/4111775.html
 
 
 

 --
 View this message in context:
 http://www.nabble.com/ringtone-%3A-a-simple-tutorial-tp4381955p21114322.html
 Sent from the Kannel - User mailing list archive at Nabble.com.





-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: SMPP connection disconnected when request DLR

2008-12-15 Thread hafez ahmad
Dear Falko,

Thanks for reply, I have RX connection and I receiving MO there, so is it
configuration thing from operator side? that he may be routing the  DLR or
something like that ?

Regards
Hafez

On Mon, Dec 15, 2008 at 4:14 PM, Falko Ziemann fal...@gmail.com wrote:

 I might have a idea: Could it be that you only have a TX connection and no
 RX conn? When you send a message with DLR request, the smsc answers with a
 message waiting flag. When a smpp TX connection get's a message waiting flag
 it disconnects and connects a RX connection. So either you have to configure
 the RX connection or better you try to get a TRX connection, but you cannot
 receive DLRs over a TX connection.
 This is only a guess. Maybe you want to send the logfile of your SMPP
 connection.

 Regards
 Falko

 Am 15.12.2008 um 14:28 schrieb hafez ahmad:

 Hi,
 is there any ideas ? , is the problem from kannel side ot the operator side
 ?

 Regards,
 Hafez

 On Sun, Dec 14, 2008 at 2:46 PM, hafez ahmad hafezad...@gmail.com wrote:

 Dears,

 I am using kannel with the DLR group patch, when I send sms without adding
 the dlr-url and dlr-mask the SMS sent fine and there are no problem like the
 following:


 http://localhost:13013/cgi-bin/sendsms?username=testpassword=foocharset=UTF-8coding=2to=text=testfrom=1234smsc=TESTSMSCbinfo=100

 but whene I add the dlr-url and dlr-mask to the URL my TX connection
 dissconected and reconecting like the following:


 http://localhost:13013/cgi-bin/sendsms?username=testpassword=foocharset=UTF-8coding=2to=text=testfrom=1234smsc=TESTSMSCbinfo=100dlr-mask=31dlr-url=http%3A//localhost/test.php%3Fdl%3D%25d

 is there any ideas why this happen?

 Regards,
 Hafez




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com





-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


SMPP connection disconnected when request DLR

2008-12-14 Thread hafez ahmad
Dears,

I am using kannel with the DLR group patch, when I send sms without adding
the dlr-url and dlr-mask the SMS sent fine and there are no problem like the
following:


http://localhost:13013/cgi-bin/sendsms?username=testpassword=foocharset=UTF-8coding=2to=text=testfrom=1234smsc=TESTSMSCbinfo=100

but whene I add the dlr-url and dlr-mask to the URL my TX connection
dissconected and reconecting like the following:

http://localhost:13013/cgi-bin/sendsms?username=testpassword=foocharset=UTF-8coding=2to=text=testfrom=1234smsc=TESTSMSCbinfo=100dlr-mask=31dlr-url=http%3A//localhost/test.php%3Fdl%3D%25d

is there any ideas why this happen?

Regards,
Hafez


I/O error or other error. Re-connecting

2008-12-02 Thread hafez ahmad
Hi list,

I have 2 connection one RX and the other TX, the both connections are
connected fine, I can receive the SMS using the RX, but when I use the TX
connection to send SMS it is changed to reconnecting and I get the following
error in my logs:

 2008-12-02 14:21:07 [10148] [7] DEBUG: SMPP[MYTXCONNECTION]: Manually
forced dest addr ton = 1, dest add npi = 1
2008-12-02 14:21:07 [10148] [7] DEBUG: SMPP[MYTXCONNECTION]: Sending PDU:
2008-12-02 14:21:07 [10148] [7] DEBUG: SMPP PDU 0x81b5430 dump:
2008-12-02 14:21:07 [10148] [7] DEBUG:   type_name: submit_sm
2008-12-02 14:21:07 [10148] [7] DEBUG:   command_id: 4 = 0x0004
2008-12-02 14:21:07 [10148] [7] DEBUG:   command_status: 0 = 0x
2008-12-02 14:21:07 [10148] [7] DEBUG:   sequence_number: 5 = 0x0005
2008-12-02 14:21:07 [10148] [7] DEBUG:   service_type: 200
2008-12-02 14:21:07 [10148] [7] DEBUG:   source_addr_ton: 1 = 0x0001
2008-12-02 14:21:07 [10148] [7] DEBUG:   source_addr_npi: 1 = 0x0001
2008-12-02 14:21:07 [10148] [7] DEBUG:   source_addr: 6119
2008-12-02 14:21:07 [10148] [7] DEBUG:   dest_addr_ton: 1 = 0x0001
2008-12-02 14:21:07 [10148] [7] DEBUG:   dest_addr_npi: 1 = 0x0001
2008-12-02 14:21:07 [10148] [7] DEBUG:   destination_addr: 
2008-12-02 14:21:07 [10148] [7] DEBUG:   esm_class: 3 = 0x0003
2008-12-02 14:21:07 [10148] [7] DEBUG:   protocol_id: 0 = 0x
2008-12-02 14:21:07 [10148] [7] DEBUG:   priority_flag: 0 = 0x
2008-12-02 14:21:07 [10148] [7] DEBUG:   schedule_delivery_time: NULL
2008-12-02 14:21:07 [10148] [7] DEBUG:   validity_period: NULL
2008-12-02 14:21:07 [10148] [7] DEBUG:   registered_delivery: 1 = 0x0001
2008-12-02 14:21:07 [10148] [7] DEBUG:   replace_if_present_flag: 0 =
0x
2008-12-02 14:21:07 [10148] [7] DEBUG:   data_coding: 8 = 0x0008
2008-12-02 14:21:07 [10148] [7] DEBUG:   sm_default_msg_id: 0 = 0x
2008-12-02 14:21:07 [10148] [7] DEBUG:   sm_length: 14 = 0x000e
2008-12-02 14:21:07 [10148] [7] DEBUG:   short_message:
2008-12-02 14:21:07 [10148] [7] DEBUG:Octet string at 0x81b5538:
2008-12-02 14:21:07 [10148] [7] DEBUG:  len:  14
2008-12-02 14:21:07 [10148] [7] DEBUG:  size: 15
2008-12-02 14:21:07 [10148] [7] DEBUG:  immutable: 0
2008-12-02 14:21:07 [10148] [7] DEBUG:  data: 00 74 00 65 00 73 00 74 00
33 00 35 00 30 .t.e.s.t.3.5.0
2008-12-02 14:21:07 [10148] [7] DEBUG:Octet string dump ends.
2008-12-02 14:21:07 [10148] [7] DEBUG: SMPP PDU dump ends.
2008-12-02 14:21:21 [10148] [7] DEBUG: SMPP[MYTXCONNECTION]: Sending enquire
link:
2008-12-02 14:21:21 [10148] [7] DEBUG: SMPP PDU 0x81b5430 dump:
2008-12-02 14:21:21 [10148] [7] DEBUG:   type_name: enquire_link
2008-12-02 14:21:21 [10148] [7] DEBUG:   command_id: 21 = 0x0015
2008-12-02 14:21:21 [10148] [7] DEBUG:   command_status: 0 = 0x
2008-12-02 14:21:21 [10148] [7] DEBUG:   sequence_number: 6 = 0x0006
2008-12-02 14:21:21 [10148] [7] DEBUG: SMPP PDU dump ends.
2008-12-02 14:21:21 [10148] [6] DEBUG: SMPP[MYRXCONNECTION]: Sending enquire
link:
2008-12-02 14:21:21 [10148] [6] DEBUG: SMPP PDU 0x81b5430 dump:
2008-12-02 14:21:21 [10148] [6] DEBUG:   type_name: enquire_link
2008-12-02 14:21:21 [10148] [6] DEBUG:   command_id: 21 = 0x0015
2008-12-02 14:21:21 [10148] [6] DEBUG:   command_status: 0 = 0x
2008-12-02 14:21:21 [10148] [6] DEBUG:   sequence_number: 5 = 0x0005
2008-12-02 14:21:21 [10148] [6] DEBUG: SMPP PDU dump ends.
2008-12-02 14:21:22 [10148] [6] DEBUG: SMPP[MYRXCONNECTION]: Got PDU:
2008-12-02 14:21:22 [10148] [6] DEBUG: SMPP PDU 0x81b5430 dump:
2008-12-02 14:21:22 [10148] [6] DEBUG:   type_name: enquire_link_resp
2008-12-02 14:21:22 [10148] [6] DEBUG:   command_id: 2147483669 = 0x8015
2008-12-02 14:21:22 [10148] [6] DEBUG:   command_status: 0 = 0x
2008-12-02 14:21:22 [10148] [6] DEBUG:   sequence_number: 5 = 0x0005
2008-12-02 14:21:22 [10148] [6] DEBUG: SMPP PDU dump ends.
2008-12-02 14:21:26 [10148] [7] ERROR: SMPP[MYTXCONNECTION]: I/O error or
other error. Re-connecting.
2008-12-02 14:21:26 [10148] [7] ERROR: SMPP[MYTXCONNECTION]: Couldn't
connect to SMS center (retrying in 10 seconds).

*and the following is my SMSC *

group = smsc
smsc = smpp
smsc-id = MYRXCONNECTION
host = xx.xxx.xxx.xxx
port = 0
receive-port = 6566
smsc-username = USERNAME
smsc-password = PASSWORD
system-type = smpp
dlr-group-id =  MYDLRGROUP
allowed-smsc-id = MYRXCONNECTION;MYDLRGROUP
interface-version = 34
reconnect-delay = 10
source-addr-ton = 1
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
msg-id-type = 0x00
log-file = /var/log/kannel/error/1.log
log-level = 0


group = smsc
smsc = smpp
smsc-id = MYTXCONNECTION
host = xx.xxx.xxx.xxx
port = 6566
receive-port = 0
smsc-username = USERNAME
smsc-password = PASSWORD
system-type = smpp
dlr-group-id =  MYDLRGROUP
allowed-smsc-id = MYTXCONNECTION;MYDLRGROUP
interface-version = 34
reconnect-delay = 10
source-addr-ton = 1
source-addr-npi = 1

DLR group patch bug or what?

2008-11-25 Thread hafez ahmad
Dears,

I have SMPP connection one RX and TX, when I send SMS using the TX
connection, the DLR back on the RX one, so I used this patch -DLR group -
http://www.nabble.com/Multiple-SMSCs-and-a-DLR-group-td8655999.html#a8655999

but I always get the following error

2008-11-24 22:48:41 [24613] [7] DEBUG:   message_id: 4049149130
2008-11-24 22:48:41 [24613] [7] DEBUG: SMPP PDU dump ends.
2008-11-24 22:48:41 [24613] [7] DEBUG: DLR[mysql]: Adding DLR
smsc=MYDLRGROUP, *ts=1226084656*, src=9, dst=96xx, mask=31,
boxc=
2008-11-24 22:48:41 [24613] [7] DEBUG: sql: INSERT INTO dlr (smsc, ts,
source, destination, service, url, mask, boxc, status) VALUES ('MYDLRGROUP',
'1226084656', '9', '96xx', 'tester', '
http://localhost/my.php?status=%danswer=%A', '31', '', '0');
2008-11-24 22:48:41 [24613] [7] DEBUG: SMSC[MYTXCON]: creating DLR message
-
--
-
2008-11-24 22:49:01 [24613] [6] DEBUG: SMPP[MYRXCON] handle_pdu, got DLR
2008-11-24 22:49:01 [24613] [6] DEBUG: DLR[mysql]: Looking for DLR
smsc=MYDLRGROUP,* ts=4049149130*, dst=96xx, type=1
2008-11-24 22:49:01 [24613] [6] DEBUG: sql: SELECT mask, service, url,
source, destination, boxc FROM dlr WHERE smsc='MYDLRGROUP' AND *
ts='4049149130';*
2008-11-24 22:49:01 [24613] [6] DEBUG: no rows found
2008-11-24 22:49:01 [24613] [6] WARNING: DLR[mysql]: DLR from
SMSCMYDLRGROUP for DST96xx not found.
2008-11-24 22:49:01 [24613] [6] ERROR: SMPP[MYRXCON]: got DLR but could not
find message or was not interested in it id4049149130 dst96xx,
type1


*NOTE: the kannel when insert the  DLR the ts === 1226084656(the timestamp)
when looking for the DLR ts =** **4049149130 which is the message id*

following my config =

group = smsc
smsc = smpp
smsc-id = MYRXCON
host = xx.xxx.xxx.xxx
port = 0
receive-port = 
smsc-username = MYUSER
smsc-password = x
system-type = smtype
service-type = 200
dlr-group-id =  MYDLRGROUP
allowed-smsc-id = MYRXCON
interface-version = 34
address-range = 9
max-pending-submits = 1
reconnect-delay = 10
source-addr-ton = 1
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
msg-id-type = 0x01
log-file = /var/log/kannel/9.log
log-level = 0

group = smsc
smsc = smpp
smsc-id = MYTXCON
host = xx.xxx.xxx.xxx
port = 
receive-port = 0
smsc-username = MYUSER
smsc-password = x
system-type = smtype
service-type = 200
dlr-group-id =  MYDLRGROUP
allowed-smsc-id = MYTXCON
interface-version = 34
address-range = 9
max-pending-submits = 1
reconnect-delay = 10
source-addr-ton = 5
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
msg-id-type = 0x01
log-file = /var/log/kannel/9.log
log-level = 0

Any Ideas what is the problem, please ?

Regards,
Hafez


SMS status

2008-11-19 Thread hafez ahmad
Dears,

Is there any way to know the SMS status(accepted, rejected )  other than
using the DLR .

Regards,
Hafez


Re: SMS status

2008-11-19 Thread hafez ahmad
Dear shanmugam,

Thanks for reply, I send user MT billing sms, I need the to check the status
of the SMS, so I change the user status in my DB.

Regards,
Hafez

On Wed, Nov 19, 2008 at 2:56 PM, raj shan [EMAIL PROTECTED] wrote:

 hi hafez
 yes
 well have the entire dashboard to monitor the kannel status i.e connection
 status of bearerbox, smsbox, the number of messages, the sms pumping rate
 and delivery rate etc
 pls let me knw the requirement, is it for knowlegde or for business
 oriented. Pls lets know the existing kannel deployment 2
 cheers
 shanmugam


 On 11/19/08, hafez ahmad [EMAIL PROTECTED] wrote:

 Dears,

 Is there any way to know the SMS status(accepted, rejected )  other
 than using the DLR .

 Regards,
 Hafez





-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: SMS status

2008-11-19 Thread hafez ahmad
thanks, but in my case my operator give the following error codes:

status DELIVRD err:027 absent subscriber (switch off mobile)

status:DELIVRD err:000 subscriber receive sms successfully

status :REJECTD err:028 subscriber has no enough credit

I search about these error codes, but I didn't find anything.

Regards,
Hafez

On Wed, Nov 19, 2008 at 3:32 PM, Eduardo Raad
[EMAIL PROTECTED]wrote:

 Our operator provides us with a propietary http interface to query the
 status of mt-billed messages. We have a daemon polling the operator's server
 for the status of each message and updating the database accordingly.

 I guess this is the only non native dlr way to do what you need. Aks your
 operator about it.

 Eduardo

 Sent from my BlackBerry(R) wireless device

 --
 *From*: hafez ahmad [EMAIL PROTECTED]
 *Date*: Wed, 19 Nov 2008 15:25:32 +0200
 *To*: raj shan[EMAIL PROTECTED]
 *CC*: users@kannel.orgusers@kannel.org
 *Subject*: Re: SMS status
 Dear shanmugam,

 Thanks for reply, I send user MT billing sms, I need the to check the
 status of the SMS, so I change the user status in my DB.

 Regards,
 Hafez

 On Wed, Nov 19, 2008 at 2:56 PM, raj shan [EMAIL PROTECTED] wrote:

 hi hafez
 yes
 well have the entire dashboard to monitor the kannel status i.e connection
 status of bearerbox, smsbox, the number of messages, the sms pumping rate
 and delivery rate etc
 pls let me knw the requirement, is it for knowlegde or for business
 oriented. Pls lets know the existing kannel deployment 2
 cheers
 shanmugam


 On 11/19/08, hafez ahmad [EMAIL PROTECTED] wrote:

 Dears,

 Is there any way to know the SMS status(accepted, rejected )  other
 than using the DLR .

 Regards,
 Hafez





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: SMS status

2008-11-19 Thread hafez ahmad
it is SMPP :)

On Wed, Nov 19, 2008 at 3:50 PM, Eduardo Raad
[EMAIL PROTECTED]wrote:

 What kind of smsc connection are you using?

 Eduardo

 Sent from my BlackBerry(R) wireless device

 --
 *From*: hafez ahmad [EMAIL PROTECTED]
 *Date*: Wed, 19 Nov 2008 15:44:09 +0200
 *To*: [EMAIL PROTECTED]
 *CC*: raj shan[EMAIL PROTECTED]; users@kannel.orgusers@kannel.org
 *Subject*: Re: SMS status
 thanks, but in my case my operator give the following error codes:

 status DELIVRD err:027 absent subscriber (switch off mobile)

 status:DELIVRD err:000 subscriber receive sms successfully

 status :REJECTD err:028 subscriber has no enough credit

 I search about these error codes, but I didn't find anything.

 Regards,
 Hafez

 On Wed, Nov 19, 2008 at 3:32 PM, Eduardo Raad [EMAIL PROTECTED]
  wrote:

 Our operator provides us with a propietary http interface to query the
 status of mt-billed messages. We have a daemon polling the operator's server
 for the status of each message and updating the database accordingly.

 I guess this is the only non native dlr way to do what you need. Aks your
 operator about it.

 Eduardo

 Sent from my BlackBerry(R) wireless device

 --
 *From*: hafez ahmad [EMAIL PROTECTED]
 *Date*: Wed, 19 Nov 2008 15:25:32 +0200
 *To*: raj shan[EMAIL PROTECTED]
 *CC*: users@kannel.orgusers@kannel.org
 *Subject*: Re: SMS status
 Dear shanmugam,

 Thanks for reply, I send user MT billing sms, I need the to check the
 status of the SMS, so I change the user status in my DB.

 Regards,
 Hafez

 On Wed, Nov 19, 2008 at 2:56 PM, raj shan [EMAIL PROTECTED] wrote:

 hi hafez
 yes
 well have the entire dashboard to monitor the kannel status i.e
 connection status of bearerbox, smsbox, the number of messages, the sms
 pumping rate and delivery rate etc
 pls let me knw the requirement, is it for knowlegde or for business
 oriented. Pls lets know the existing kannel deployment 2
 cheers
 shanmugam


 On 11/19/08, hafez ahmad [EMAIL PROTECTED] wrote:

 Dears,

 Is there any way to know the SMS status(accepted, rejected )  other
 than using the DLR .

 Regards,
 Hafez





 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




 --
 Hafez A.Ahmad
 Amman-Jordan
 mobile:962-785259011
   962-795708728
 http://blog.hafezadnan.com




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: service-type

2008-11-13 Thread hafez ahmad
Dear Rolandow ,

it works fine, thanks for help.

Regards,
Hafez

On Wed, Nov 12, 2008 at 12:58 PM, Rolandow [EMAIL PROTECTED] wrote:

  Use the binfo parameter in sendsms, to send the service_type value. Check
 *Table 6-16 *in the Kannel manual, and look at the binfo parameter.


 hafez ahmad wrote:

 Dears,

 I need to send the service type value for the bailing issue, is there
 something I have to do except set the variable service-type in the SMSC
 group like that :


 group = smsc
 smsc = smpp
 smsc-id = MYSMPPCONN
 host = xxx..xxx.xxx.xxx
 port = 
 receive-port = 0
 smsc-username = VASUSER
 smsc-password = VASPASS
 system-type = VASTYPE
 service-type = 520


 Regards,
 Hafez





-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


Re: dlr table is not empty

2008-10-14 Thread hafez ahmad
Hi,

Check if  your kannel receiving the dlr on the same connection that used to
send SMS, I had the same problem when I used two sessions for my connection
one TX and the other RX , I was send the SMS using the TX and the dlr back
on the Rx session , so the kannel could not find the dlr cos it matching
with the connection id  , so i convert the connection to transceiver and
every thing works fine ( there are also patch for the DLR group which solve
my problem)

Regards,
Hafez

On Wed, Oct 8, 2008 at 4:32 PM, Alejandro Guerrieri 
[EMAIL PROTECTED] wrote:

 Check on your logs what states you're really receiving. dlrs records are
 deleted only when they reach a final state. What it's considered final
 depends on your dlr-mask setting, so maybe you're setting it too wide, or
 maybe you're having problems finding the dlrs, or maybe there's some other
 problem.

 Regards,

 Alejandro Guerrieri


 On Wed, Oct 8, 2008 at 6:23 AM, Marcelo Aguila [EMAIL PROTECTED]wrote:

 Hi, guys.

 We are using dlr with mysql and at the moment the system is working ok.
 But, since some weeks ago (probably after some new configuration)  the dlr
 records are not deleted
 from this table. Is this ok ... or may be we made a mistake with kannel
 conf files ?

 Regards,
 rm





-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


error code 0x00000045

2008-04-26 Thread hafez ahmad
Hi List,

when I trying to send sms using one of my smpp connections I get the
following error from the SMSC:
SMPP[MYSMSC]: SMSC returned error code 0x0045 (Submit failed) in
response to submit_sm.

I check with my operator and everything fine, please advice.

Thanks,
Hafez


dlr with mysql

2008-04-21 Thread hafez ahmad
Hi all,
I want to use the DLR with mysql I set up all the needed configuration like
the user guide, but I didn't receive anything, is the there anything else I
must add it?, and when I must use the dlr-mask and dlr-url in the sendsms?

thanks for help.


Re: receive concatenated SMS

2008-03-30 Thread hafez ahmad
Dear iain,

Thanks for reply, can you please tell me how can I get the patch. thanks.

On Sat, Mar 29, 2008 at 3:42 PM, Iain Dooley [EMAIL PROTECTED]
wrote:

 hi hafez,

  How can I receive concatenated SMS as one hit, not many hits, i have the
  following confugration for my sms-service:

 there's a patch on the CVS version that allows this, but if you want to
 run the release version, i wrote this script which does concatenation in
 PHP:

 http://www.workingsoftware.com.au/concatenate_mo.php.txt

 in order to do this you have to filter all messages through that single
 URL. i needed to also get the destination phone number to route messages
 to different applications, so i developed a method of parsing the error
 logs to find out what number a message was sent *to* instead of what
 number it was sent from. let me know if you need this snippet.

 cheers

 iain

  group = sms-service
  keyword = default
  get-url = 
 
 http://localhost/scripts/myscript.php?sms_txt_binary=%bsender_number=%preceiver_number=%Psmsc_id=%imessage_coding=%cudh=%uoriginating_smsc=%fmessage_charset=%Cfirst_word=%ksecond_word_encoded=%ssecond_word_uncoded=%Srest_sms_txt=%rsms_txt_spaces_squeezed=%asent_datetime=%tsent_timestamp=%Tsender_number_no_zeros=%qreciver_number_no_zeros=%Qsmsc_id_internal=%Idelivery_report=%ddelivery_report_reply=%Asendsms_user_service=%nmessage_class=%mmwi=%Mbilling_identifier=%Baccount_identifier=%o
  
 
  omit-empty = true
  max-messages = 10
  concatenation = true
 
 
  Any Ideas,
  Thanks,
  Hafez
 




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
962-795708728
http://blog.hafezadnan.com


receive concatenated SMS

2008-03-29 Thread hafez ahmad
Hi All,
How can I receive concatenated SMS as one hit, not many hits, i have the
following confugration for my sms-service:

group = sms-service
keyword = default
get-url = 
http://localhost/scripts/myscript.php?sms_txt_binary=%bsender_number=%preceiver_number=%Psmsc_id=%imessage_coding=%cudh=%uoriginating_smsc=%fmessage_charset=%Cfirst_word=%ksecond_word_encoded=%ssecond_word_uncoded=%Srest_sms_txt=%rsms_txt_spaces_squeezed=%asent_datetime=%tsent_timestamp=%Tsender_number_no_zeros=%qreciver_number_no_zeros=%Qsmsc_id_internal=%Idelivery_report=%ddelivery_report_reply=%Asendsms_user_service=%nmessage_class=%mmwi=%Mbilling_identifier=%Baccount_identifier=%o


omit-empty = true
max-messages = 10
concatenation = true


Any Ideas,
Thanks,
Hafez


setup a receiver connection only

2008-03-17 Thread hafez ahmad
HI,
how can I configure a receiver(*only*) SMPP connection  , I use the
following setting but always I get dead connection:

group = smsc
smsc = smpp
smsc-id = MYSMC
host = xxx.xxx.xxx.xxx
port = x
receive-port = same of port
smsc-username = x
smsc-password = x
system-type= SM
denied-smsc-id = SMSC1;SMSC2

bind-addr-ton = 0
bind-addr-npi = 0
msg-id-type = 0x00
wait-ack = 120
wait-ack-expire = 0x02


any Ideas, thanks for help.
Hafez


Re: synchronous SMPP connection

2008-02-22 Thread hafez ahmad
Thanks Praveen for reply, please see below my SMPP configuration , thanks
for help

group = smsc
smsc = smpp
throughput = 1
smsc-id = xx
denied-smsc-id =y;z
host = xxx.xxx.xxx.xxx
port = 1
transceiver-mode = 1
#receive-port = 0
smsc-username = x
smsc-password = x
system-type = x
interface-version = 34
address-range = 8
max-pending-submits = 1
reconnect-delay = 30
source-addr-ton = 5
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
msg-id-type = 0x00
log-file = /var/log/kannel/sender.log
log-level = 0

On Fri, Feb 22, 2008 at 3:57 PM, Praveen .K.R [EMAIL PROTECTED] wrote:


 Can u send ur SMPP configuration file?

 -- Forwarded message --
 From: hafez ahmad [EMAIL PROTECTED]
 Date: Thu, Feb 21, 2008 at 3:07 PM
 Subject: synchronous SMPP connection
 To: users@kannel.org users@kannel.org



 Hi,
 I have synchronous SMPP connection with operator, how I configure the
 kannel to be synchronous?, I set the max-pending-submits = 1, and is there
 need to check if the smsc accept the sms to send another one?

 thanks,
 Hafez




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com


synchronous SMPP connection

2008-02-21 Thread hafez ahmad
Hi,
I have synchronous SMPP connection with operator, how I configure the kannel
to be synchronous?, I set the max-pending-submits = 1, and is there need to
check if the smsc accept the sms to send another one?

thanks,
Hafez


heartbeat with load value 0 received

2008-02-14 Thread hafez ahmad
Hi All,

I have this message in my logs, what this is mean, and is it mean there are
load and delay, and what the reasons for this error

2008-02-14 06:54:54 [2528] [9] DEBUG: boxc_receiver: heartbeat with load
value 0 received

Thanks for Help.
Hafez.


sending many SMS using PHP through the HTTP interface

2008-01-28 Thread hafez ahmad
Hi,
I have PHP script that run every 10 seconds, every time the script run ,
read the messages from DB table, and hit the send URL inside loop, every
thing run ok , but when I have concatenated SMS  I get only the first part
of the SMS ended with (some text missing) , do I have to check if the
bearbox accept the request every time to hit the URL again for the next
request or what?

Thanks for help,
Hafez


check the OM messages

2007-10-22 Thread hafez ahmad
Hi all,
I could test my kannel configuration to send sms through the HTTP interface,
I need to test the received SMS from the SMSC, using kannel to serving them
using the http interface, or using PHP to serving the request.

Thanks for help :)
hafez

--


Re: fake SMSC

2007-10-20 Thread hafez ahmad
Thanks Alejandro for replay, I read the document and I run the fake SMSC,
but how can i test  the sending and reciving SMS using the fake SMSC,
 And another question please is there an PHP system that deal as CMS for
kannel , I found playsms I will test it , but is there are another
alternatives.

thanks again,
regards.

On 10/20/07, Alejandro Guerrieri [EMAIL PROTECTED] wrote:

 Check the docs.

 You have to run bearerbox first.

 Regards,

 Alejandro

 On 10/19/07, hafez ahmad [EMAIL PROTECTED] wrote:
 
  Hi All,
  I setup kannel on my ubuntu box using apt-get, I need to run and test
 the
  SMS gateway, I don't have SMSC to test with,
  is there a fake SMSC that I could testing with, when I run the command
  smsbox I get the following output:
 
  2007-10-19 22:50:02 [12832] [0] INFO: Starting to log to file
  /var/log/kannel/smsbox.log level 0
  2007-10-19 22:50:02 [12832] [0] INFO: Added logfile
  `/var/log/kannel/smsbox.log' with level `0'.
   2007-10-19 22:50:02 [12832] [0] DEBUG:
  --
  2007-10-19 22:50:02 [12832] [0] DEBUG: Kannel smsbox version 1.4.1starting
  2007-10-19 22:50:02 [12832] [0] DEBUG: Started thread 1
  (gw/smsbox.c:obey_request_thread)
  2007-10-19 22:50:02 [12832] [0] DEBUG: Started thread 2
  (gw/smsbox.c:url_result_thread)
  2007-10-19 22:50:02 [12832] [0] DEBUG: Started thread 3
  (gw/smsbox.c:http_queue_thread)
  2007-10-19 22:50:02 [12832] [0] ERROR: connect failed
  2007-10-19 22:50:02 [12832] [0] ERROR: System error 111: Connection
 refused
  2007-10-19 22:50:02 [12832] [0] ERROR: error connecting to server
  `localhost' at port `13002'
  2007-10-19 22:50:02 [12832] [0] PANIC: Couldn't connect to the
 bearerbox.
  2007-10-19 22:50:02 [12832] [0] PANIC: smsbox(gw_panic+0x107)
 [0x8086367]
  2007-10-19 22:50:02 [12832] [0] PANIC: smsbox(main+0xf0a) [0x8053baa]
  2007-10-19 22:50:02 [12832] [0] PANIC:
  /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)
  [0xb78b9ebc]
  2007-10-19 22:50:02 [12832] [0] PANIC: smsbox [0x80524e1]
  
 
  Is there problem with this output my kannel.conf file is:
  
  group = core
  admin-port = 13000
  admin-password = bar
  admin-deny-ip = *.*.*.*
  admin-allow-ip = 
  smsbox-port = 13002
  #wapbox-port = 13002
  #wdp-interface-name = *
  #wdp-interface-name = *
  log-file = /var/log/kannel/bearerbox.log
  box-deny-ip = *.*.*.*
  box-allow-ip = 127.0.0.1
 
 
  #group = wapbox
  #bearerbox-host = localhost
  #log-file = /var/log/kannel/wapbox.log
 
  group = smsbox
  bearerbox-host = localhost
  log-file = /var/log/kannel/smsbox.log
  
 
   any help,
  Thanks,
  Hafez


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




-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
   962-795708728
http://blog.hafezadnan.com


Re: Sending Multiple SMS's using PHP script

2007-10-20 Thread hafez ahmad
I think you have to try with CURL, to open the url , as alternative of file
also you can use fopen too.
regards,
hafez

On 10/20/07, Raphael Maseko [EMAIL PROTECTED] wrote:

 Hi,

 I have tried using file_get_contents( $url ) of file( $url ) to call
 kannel
 but I keep ending up with the error:

  [a href='function.file'function.file/a]: failed to open stream:
 Success in /usr/local/apache/

 I am using PHP Version 5.2.3 on Redhat


 I used the function below that I found using Google:

 function sendSmsMessage($in_phoneNumber, $in_msg)
 {
$url = '/cgi-bin/sendsms?username=' . CONFIG_KANNEL_USER_NAME
   . 'password=' . CONFIG_KANNEL_PASSWORD
   . 'charset=UCS-2coding=2'
   . to={$in_phoneNumber}
   . 'text=' . urlencode(iconv('utf-8', 'ucs-2', $in_msg));

$results = file('http://'
. CONFIG_KANNEL_HOST . ':'
. CONFIG_KANNEL_PORT . $url);
 }



 -Original Message-
 From: Alejandro Guerrieri [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 18, 2007 5:25 PM
 To: users@kannel.org
 Subject: Re: Sending Multiple SMS's using PHP script

 Why are you redirecting with a header?

 Use file_get_contents( $url ) or file( $url ) to call kannel.

 Alternatively, use sqlbox and insert a row for each message to send
 (if you pretend to send a high load of messages that's definitely the
 way to go).

 Regards,

 Alejandro

 On 10/18/07, Raphael Maseko [EMAIL PROTECTED] wrote:
 
  Hi All,
 
  I am trying to use kannel to send multiple SMS' with different content
  retrieved from a database.
 
  I have a php script that is accessing a database and retrieving a value
  corresponding to a mobile number. It is then supposed to send SMS's to
 the
  numbers retrieved.
 
  What is happening is that it will only send the first one and stop. No
 error
  is given. I have tried to remove the 'function send_many_sms' and use
 and
  include with the 'hearder (location)' but getting the same error. I am
  calling the php file using lynx.
 
  I know that this may not be strictly a kannel issue but I would
 appreciate
  pointers. Thanks for your help in advance.
 
  Ralph
 
  --
 
 
 
 
  ?php
 
  function send_many_sms($to, $message)
  {
  ob_start();
 
 
 
 header(Location:
 http://1.2.3.4:13013/cgi-bin/sendsms?username=usernamepass
  word=passwordto=$totext=$message);
  ob_get_flush();
   flush();
  }
 
 if (!$link = mysql_connect('localhost', 'user', '')){echo 'Could not
  connect to mysql';
 exit;
  }
 
  if (!mysql_select_db('DBase', $link)) {
 echo 'Could not select database';
 exit;
  }
 
 
  SELECT STATEMENT HERE
 
 
  if (!$result) {
  echo  DB Error, could not query the Database\n;
  exit;
  }
  else
  {
  while ($row = mysql_fetch_assoc($result))
  {
  $to=$row['MobileNumber'];
  $Balance = $row['Value'];
  $message=Your balance is .$Balance;
 
  send_many_sms($to, $message);
  }
 
 
  mysql_close($link);
  }
 
 
 
 


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





-- 
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
   962-795708728
http://blog.hafezadnan.com


fake SMSC

2007-10-19 Thread hafez ahmad
Hi All,
I setup kannel on my ubuntu box using apt-get, I need to run and test the
SMS gateway, I don't have SMSC to test with,
is there a fake SMSC that I could testing with, when I run the command
smsbox I get the following output:

2007-10-19 22:50:02 [12832] [0] INFO: Starting to log to file
/var/log/kannel/smsbox.log level 0
2007-10-19 22:50:02 [12832] [0] INFO: Added logfile
`/var/log/kannel/smsbox.log' with level `0'.
2007-10-19 22:50:02 [12832] [0] DEBUG:
--
2007-10-19 22:50:02 [12832] [0] DEBUG: Kannel smsbox version 1.4.1 starting
2007-10-19 22:50:02 [12832] [0] DEBUG: Started thread 1
(gw/smsbox.c:obey_request_thread)
2007-10-19 22:50:02 [12832] [0] DEBUG: Started thread 2
(gw/smsbox.c:url_result_thread)
2007-10-19 22:50:02 [12832] [0] DEBUG: Started thread 3
(gw/smsbox.c:http_queue_thread)
2007-10-19 22:50:02 [12832] [0] ERROR: connect failed
2007-10-19 22:50:02 [12832] [0] ERROR: System error 111: Connection refused
2007-10-19 22:50:02 [12832] [0] ERROR: error connecting to server
`localhost' at port `13002'
2007-10-19 22:50:02 [12832] [0] PANIC: Couldn't connect to the bearerbox.
2007-10-19 22:50:02 [12832] [0] PANIC: smsbox(gw_panic+0x107) [0x8086367]
2007-10-19 22:50:02 [12832] [0] PANIC: smsbox(main+0xf0a) [0x8053baa]
2007-10-19 22:50:02 [12832] [0] PANIC:
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb78b9ebc]
2007-10-19 22:50:02 [12832] [0] PANIC: smsbox [0x80524e1]


Is there problem with this output my kannel.conf file is:

group = core
admin-port = 13000
admin-password = bar
admin-deny-ip = *.*.*.*
admin-allow-ip = 
smsbox-port = 13002
#wapbox-port = 13002
#wdp-interface-name = *
#wdp-interface-name = *
log-file = /var/log/kannel/bearerbox.log
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1


#group = wapbox
#bearerbox-host = localhost
#log-file = /var/log/kannel/wapbox.log

group = smsbox
bearerbox-host = localhost
log-file = /var/log/kannel/smsbox.log


any help,
Thanks,
Hafez