{"size": 1219, "ext": "js", "max_stars_repo_path": "NodeJs/Smpp/smpp_cliente.js", "max_stars_repo_name": "aaron21007/Code-Library", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "NodeJs/Smpp/smpp_cliente.js", "max_issues_repo_name": "aaron21007/Code-Library", "max_issues_repo_issues_event_min_datetime": "2020-07-16T13:55:10.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-11T05:23:51.000Z", "max_forks_repo_path": "NodeJs/Smpp/smpp_cliente.js", "max_forks_repo_name": "aaron21007/Code-Library", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 12, "max_forks_count": null, "avg_line_length": 24.38, "max_line_length": 61, "alphanum_fraction": 0.5660377358}
// var smpp = require('smpp');
// var session = smpp.connect('smpp://148.243.134.156:3030');
// session.bind_transceiver({
// 	system_id: 'dinstar',
// 	password: 'D1n5T4r'
// }, function(pdu) {
// 	if (pdu.command_status == 0) {
// 		// Successfully bound
// 		session.submit_sm({
// 			destination_addr: '5540781354',
// 			short_message: 'Hola desde SMPP'
// 		}, function(pdu) {
// 			if (pdu.command_status == 0) {
// 				// Message successfully sent
// 				console.log(pdu.message_id);
// 			}
// 		});
// 	}
// });


var smpp = require('smpp');
var session = smpp.connect('45.56.79.49', 2775);


session.bind_transceiver({
    system_id: 'DEMO',
    password: 'E2$RT4',
    addr_ton: 4,
    addr_npi: 9,
    dest_addr_ton: 1,
    dest_addr_npi: 1
}, function(pdu) {
	 console.log(pdu);
	 console.log(pdu.command_status);
    if (pdu.command_status == 0) {
        // Successfully bound
        session.submit_sm({
            destination_addr: '5580307902',
            short_message: 'Hello'
        }, function(pdu) {
					console.log(pdu);
            if (pdu.command_status == 0) {
                // Message successfully sent
                console.log(pdu.message_id);
            }
        });
    }
});
