smpp esm_class config, go to config file
Alvaro Talavera <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
In response to this problem http://www.mail-archive.com/[email protected]/msg03528.html , i write a patch to make the esm_class configurable from the smpp group config. i think than this changes must appear in next versions of kannel: CHANGES: ADD THIS LINES. + gwlib/cfg.def line 345 - ADD OCTSTR(esm_class) + gw/smsc/smsc_smpp.c - line 168, ADD int esm_class_default; - line 221, CHANGE long wait_ack, int wait_ack_action) TO long wait_ack, int wait_ack_action, int esm_class_default) - line 262, ADD smpp->esm_class_default = esm_class_default; - line 853, CHANGE pdu->u.submit_sm.esm_class = ESM_CLASS_SUBMIT_STORE_AND_FORWARD_MODE; TO pdu->u.submit_sm.esm_class = smpp->esm_class_default; - line 2009, ADD int esm_class_default; - line 2138, ADD (add a blank line "press enter" paste this, and other line "press enter") if (cfg_get_integer(&esm_class_default, grp, octstr_imm("esm_class")) == -1) esm_class_default = ESM_CLASS_SUBMIT_DEFAULT_SMSC_MODE; - line 2151, CHANGE service_type, connection_timeout, wait_ack, wait_ack_action); TO service_type, connection_timeout, wait_ack, wait_ack_action, esm_class_default); In the attachments is the modified files..
modified_files.zip
(application/zip, 21.8 KB) - not displayed