Roave / shorty

An asynchronous SMPP client and server built on Node.js. Shorty is sponsored and maintained by SMS Cloud, a subsidiary of Roave
http://roave.com/
GNU General Public License v3.0
92 stars 52 forks source link

how set system-username #7

Closed badlee closed 11 years ago

badlee commented 11 years ago

I worte a SMPP application with nodejs and shorty,

I try to connect to an carrier, but i can't set system-username, How make it?...

With kannel the config is :

group=smsc
smsc=smpp
smsc-id=azur8800
interface-version=34
host=xxx.xxx.xxx.xxx
port=2775
transceiver-mode = 1
system-id=samtosa
smsc-username=oshimin
smsc-password=XXXXXXX
system-type=default

My config with shorty is :

{
    "smpp": [
        {
            "mode":         "transceiver",
            "host":         "xxx.xxx.xxx.xxx",
            "port":         2775,
            "system_id":    "oshimin",
            "password":     "XXXXXXX",
            "interface_version" : 34,
            "system_type":  "default",
            "addr_ton":     0,
            "addr_npi":     1,
            "addr_range":   "",
            "timeout":      30,
            "client_keepalive":  false,
            "client_reconnect_interval": 2000,
            "strict":       1
        }
    ],
    "debug":    true,
}

For kannel all is ok but for shorty i can't connect to the carrier, please help me.

bjyoungblood commented 11 years ago

There is no username field defined in SMPP 3.4, issue 1.2. According to the protocol specification, system_id "dentifies the ESME system requesting to bind... with the SMSC." In my experience, carriers typically use system_id instead of username.

If your carrier requires username, you can modify the PDU definitions in ./lib/smpp-definitions.js.

badlee commented 11 years ago

Thank you for your reply, I have to settle the problem with my carrier and he made this optional field.

Best regards.