1 /* ====================================================================
2 * The Kannel Software License, Version 1.0
4 * Copyright (c) 2001-2018 Kannel Group
5 * Copyright (c) 1998-2001 WapIT Ltd.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in
17 * the documentation and/or other materials provided with the
20 * 3. The end-user documentation included with the redistribution,
21 * if any, must include the following acknowledgment:
22 * "This product includes software developed by the
23 * Kannel Group (http://www.kannel.org/)."
24 * Alternately, this acknowledgment may appear in the software itself,
25 * if and wherever such third-party acknowledgments normally appear.
27 * 4. The names "Kannel" and "Kannel Group" must not be used to
28 * endorse or promote products derived from this software without
29 * prior written permission. For written permission, please
30 * contact org@kannel.org.
32 * 5. Products derived from this software may not be called "Kannel",
33 * nor may "Kannel" appear in their name, without prior written
34 * permission of the Kannel Group.
36 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
37 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
38 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
39 * DISCLAIMED. IN NO EVENT SHALL THE KANNEL GROUP OR ITS CONTRIBUTORS
40 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
41 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
42 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
43 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
44 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
45 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
46 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47 * ====================================================================
49 * This software consists of voluntary contributions made by many
50 * individuals on behalf of the Kannel Group. For more information on
51 * the Kannel Group, please see <http://www.kannel.org/>.
53 * Portions of this software are based upon software originally written at
54 * WapIT Ltd., Helsinki, Finland for the Kannel project.
58 * The SMPP supported TLVs and their associated Tag Values.
61 * SMPP v5.0 Specification, section 4.8 'PDU TLV Definitions', page 135.
67 /* defined in SMP v3.4 */
68 #define SMPP_dest_addr_subunit 0x0005
69 #define SMPP_dest_network_type 0x0006
70 #define SMPP_dest_bearer_type 0x0007
71 #define SMPP_dest_telematics_id 0x0008
72 #define SMPP_source_addr_subunit 0x000D
73 #define SMPP_source_network_type 0x000E
74 #define SMPP_source_bearer_type 0x000F
75 #define SMPP_source_telematics_id 0x0010
76 #define SMPP_qos_time_to_live 0x0017
77 #define SMPP_payload_type 0x0019
78 #define SMPP_additional_status_info_text 0x001D
79 #define SMPP_receipted_message_id 0x001E
80 #define SMPP_ms_msg_wait_facilities 0x0030
81 #define SMPP_privacy_indicator 0x0201
82 #define SMPP_source_subaddress 0x0202
83 #define SMPP_dest_subaddress 0x0203
84 #define SMPP_user_message_reference 0x0204
85 #define SMPP_user_response_code 0x0205
86 #define SMPP_source_port 0x020A
87 #define SMPP_destination_port 0x020B
88 #define SMPP_sar_msg_ref_num 0x020C
89 #define SMPP_language_indicator 0x020D
90 #define SMPP_sar_total_segments 0x020E
91 #define SMPP_sar_segment_seqnum 0x020F
92 #define SMPP_sc_interface_version 0x0210
93 #define SMPP_callback_num_pres_ind 0x0302
94 #define SMPP_callback_num_atag 0x0303
95 #define SMPP_number_of_messages 0x0304
96 #define SMPP_callback_num 0x0381
97 #define SMPP_dpf_result 0x0420
98 #define SMPP_set_dpf 0x0421
99 #define SMPP_ms_availability_status 0x0422
100 #define SMPP_network_error_code 0x0423
101 #define SMPP_message_payload 0x0424
102 #define SMPP_delivery_failure_reason 0x0425
103 #define SMPP_more_messages_to_send 0x0426
104 #define SMPP_message_state 0x0427
105 #define SMPP_congestion_state 0x0428 /* defined in SMPP v5.0 */
106 #define SMPP_ussd_service_op 0x0501 /* defined in SMPP v3.4 */
107 /* block 0x06xx defined in SMPP v5.0 */
108 #define SMPP_broadcast_channel_indicator 0x0600
109 #define SMPP_broadcast_content_type 0x0601
110 #define SMPP_broadcast_content_type_info 0x0602
111 #define SMPP_broadcast_message_class 0x0603
112 #define SMPP_broadcast_rep_num 0x0604
113 #define SMPP_broadcast_frequency_interval 0x0605
114 #define SMPP_broadcast_area_identifier 0x0606
115 #define SMPP_failed_broadcast_area_identifier 0x0606 /* see 4.8.4.4, page 138 */
116 #define SMPP_broadcast_error_status 0x0607
117 #define SMPP_broadcast_area_success 0x0608
118 #define SMPP_broadcast_end_time 0x0609
119 #define SMPP_broadcast_service_group 0x060A
120 #define SMPP_billing_identification 0x060B
121 #define SMPP_source_network_id 0x060D
122 #define SMPP_dest_network_id 0x060E
123 #define SMPP_source_node_id 0x060F
124 #define SMPP_dest_node_id 0x0610
125 #define SMPP_dest_addr_np_resolution 0x0611
126 #define SMPP_dest_addr_np_information 0x0612
127 #define SMPP_dest_addr_np_country 0x0613
128 /* defined in SMPP v3.4 */
129 #define SMPP_display_time 0x1201
130 #define SMPP_sms_signal 0x1203
131 #define SMPP_ms_validity 0x1204
132 #define SMPP_alert_on_message_delivery 0x130C
133 #define SMPP_its_reply_type 0x1380
134 #define SMPP_its_session_info 0x1383