RE: Sending sms, problem with smsc params (esm_class)

2004-11-23 Thread Marko Helle
Hi all,

By looking smsc_smpp.c file, I can see that initialization of esm_class
is hard coded to:
pdu-u.submit_sm.esm_class = ESM_CLASS_SUBMIT_STORE_AND_FORWARD_MODE;

So, in order to set esm_class to zero, I have to extend my limits and do
some C coding :)

If I set:
pdu-u.submit_sm.esm_class = ESM_CLASS_DEFAULT_SMSC_MODE;

should kannel work with this parameter value, or is there something else
that I need to change also?

Is this attempt anything reasonable or am I just completly lost?

Please help me,

:)Marko



-Original Message-
From: Marko Helle [mailto:[EMAIL PROTECTED]
Sent: 23. marraskuuta 2004 11:27
To: [EMAIL PROTECTED]
Subject: RE: Sending sms, problem with smsc params (esm_class)


Hi all,

Thanks Shyam Kumar for Your answer :)

I thought that error code smsc returned was smsc specific:
SMPP[SMSC1]: SMSC returned error code 0x0043 in response to submit_sm.

but looking header file: smpp_pdu.h
I found that it says something which seems to relate my problem:

/*
 * Some SMPP error messages we come across
 */
enum SMPP_ERROR_MESSAGES {
.
.
.
SMPP_ESME_RINVESMCLASS = 0x0043,
.
}


Smsc has specified in their spec that esm_class need
to be set like this:
- messaging mode = smsc_default (bits 0-1 set to zero)
- message type = normal (bits 2-5 set to 0)
- gsm network features =
none (bits 6-7 set to 0)
or
UDHI indicator (bit 6 set to 1, bit 7 set to 0)

To send valid submit_sm to this smsc, it seems that esm_class
needs to be:
- 0x0 (all bits zero)
or
- 0x20 (all zero but 6th bit set)

and by default kannel sets it to 0x3


So my question is:
- how can I specify esm_class?
- can it be done via config file?
- or do I need to change source code?

(crossing my fingers for config file :)

:)Marko



-Original Message-
From: shyam kumar [mailto:[EMAIL PROTECTED]
Sent: 23. marraskuuta 2004 6:57
To: Marko Helle
Cc: [EMAIL PROTECTED]
Subject: Re: Sending sms, problem with smsc params (esm_class)


On Mon, 2004-11-22 at 21:34, Marko Helle wrote:
 Hi all,
 
 I'm trying to configure kannel to work with one smsc.
 Their spec says that for SUBMIT_SM there should be
 esm_class set which have values like:
 - messaging mode
 - message type
 - gsm network features
 - UDHI indicator
 
 
 How can I specify these values to esm_class field?
 
 And what is this esm_class anyway?

The esm_class parameter is used to indicate special message attributes
associated with the short message
whether it is a store and forward, or a datagram, just forward mode, but
but dont worry about the esm_class for the kannel as kannel will take
the parameter to 3 which is store and forward if the SMSC mode is non
Store and Forward. 
Its a good idea to Ask your SMSC Provider which type of class they
provide.

 
 
 
 Currently esm_class is 3 = 0x0003,
 I can see it by looking error print in consle
 after failed send-sms.
 
 
 
 I have configured connection to smsc:
 
 group = smsc
 smsc = smpp
 host = *.*.*.*
 port = *
 smsc-id = SMSC1
 allowed-smsc-id = SMSC1
 system-type = VMA
 smsc-username = 
 smsc-password = 
 address-range = 

seems the configuration is correct, did u kept the address-range
parameter, which will be given by your smsc provider, if not set please
ask your smsc provider and set it and try once again.

 
 and connection should be good (based on console messages,
 no connection errors).
 
 
 When I try to send sms,

http://mykannel/cgi-bin/sendsms?username=password=from=***to=
 smsc=SMSC1text=XXX+Hello+World
 
 
 I get error print to console:
 
 SMPP PDU 0x80ee1f0 dump:
   type_name: submit_sm
   command_id: 4 = 0x0004
   command_status: 0 = 0x
   sequence_number: 1 = 0x0001
   service_type: NULL
   source_addr_ton: 2 = 0x0002
   source_addr_npi: 1 = 0x0001
   source_addr: **
   dest_addr_ton: 2 = 0x0002
   dest_addr_npi: 1 = 0x0001
   destination_addr: *
   esm_class: 3 = 0x0003
   protocol_id: 0 = 0x
   priority_flag: 0 = 0x
   schedule_delivery_time: NULL
   validity_period: NULL
   registered_delivery: 0 = 0x
   replace_if_present_flag: 0 = 0x
   data_coding: 0 = 0x
   sm_default_msg_id: 0 = 0x
   sm_length: 15 = 0x000f
   short_message: XXX Hello World
 SMPP PDU dump ends.
 SMPP[OPERATC]: Got PDU:
 SMPP PDU 0x80ee1f0 dump:
   type_name: submit_sm_resp
   command_id: ** = 0x8004
   command_status: 67 = 0x0043
   sequence_number: 1 = 0x0001
   message_id: NULL
 SMPP PDU dump ends.
 SMPP[SMSC1]: SMSC returned error code 0x0043 in response to submit_sm.
 
 
 :)Marko
 
 
 





*

This e-mail and any files transmitted with it are for the sole use
of the intended recipient(s) and may contain confidential and privileged
information. If you are not the intended recipient, please contact the 
sender

Re: Sending sms, problem with smsc params (esm_class)

2004-11-22 Thread shyam kumar
On Mon, 2004-11-22 at 21:34, Marko Helle wrote:
 Hi all,
 
 I'm trying to configure kannel to work with one smsc.
 Their spec says that for SUBMIT_SM there should be
 esm_class set which have values like:
 - messaging mode
 - message type
 - gsm network features
 - UDHI indicator
 
 
 How can I specify these values to esm_class field?
 
 And what is this esm_class anyway?
 
 
 
 Currently esm_class is 3 = 0x0003,
 I can see it by looking error print in consle
 after failed send-sms.
 
 
 
 I have configured connection to smsc:
 
 group = smsc
 smsc = smpp
 host = *.*.*.*
 port = *
 smsc-id = SMSC1
 allowed-smsc-id = SMSC1
 system-type = VMA
 smsc-username = 
 smsc-password = 
 address-range = 
 
 and connection should be good (based on console messages,
 no connection errors).
 
 
 When I try to send sms,
 http://mykannel/cgi-bin/sendsms?username=password=from=***to=
 smsc=SMSC1text=XXX+Hello+World
 
 
 I get error print to console:
 
 SMPP PDU 0x80ee1f0 dump:
   type_name: submit_sm
   command_id: 4 = 0x0004
   command_status: 0 = 0x
   sequence_number: 1 = 0x0001
   service_type: NULL
   source_addr_ton: 2 = 0x0002
   source_addr_npi: 1 = 0x0001
   source_addr: **
   dest_addr_ton: 2 = 0x0002
   dest_addr_npi: 1 = 0x0001
   destination_addr: *
   esm_class: 3 = 0x0003
   protocol_id: 0 = 0x
   priority_flag: 0 = 0x
   schedule_delivery_time: NULL
   validity_period: NULL
   registered_delivery: 0 = 0x
   replace_if_present_flag: 0 = 0x
   data_coding: 0 = 0x
   sm_default_msg_id: 0 = 0x
   sm_length: 15 = 0x000f
   short_message: XXX Hello World
 SMPP PDU dump ends.
 SMPP[OPERATC]: Got PDU:
 SMPP PDU 0x80ee1f0 dump:
   type_name: submit_sm_resp
   command_id: ** = 0x8004
   command_status: 67 = 0x0043
   sequence_number: 1 = 0x0001
   message_id: NULL
 SMPP PDU dump ends.
 SMPP[SMSC1]: SMSC returned error code 0x0043 in response to submit_sm.
 
 
 :)Marko
 
 
 




*

This e-mail and any files transmitted with it are for the sole use
of the intended recipient(s) and may contain confidential and privileged
information. If you are not the intended recipient, please contact the 
sender by reply e-mail and destroy all copies of the original message.
 
Any unauthorized review, use, disclosure, dissemination, forwarding, 
printing or copying of this email or any action taken in reliance on 
this e-mail is strictly prohibited and may be unlawful.

*