Unable to set SMPP optional parameter in go code
<p>Iam studying SMPP protocol and tried to implement a simple transmitter with a golang code and <strong>selenium smpp simulator</strong>. I found a package "<strong>CodeMonkeyKevin/smpp34</strong>" from github. 
But Iam unable to set the "user_message_reference" optional parameter.</p>

<p>I slightly modified the "SubmitSm" function inside the "transmitter.go" file by adding these lines (just before the write operation):</p>

<pre><code>err = p.SetTLVField(tag, length, []byte(value))
    if err != nil {
        fmt.Println("Set TLV failed")
        return 0, err
    }
</code></pre>

<p>But this is not working. </p>

<p>I supplied values <strong>tag=0516</strong>(int equivalent of 0x0204 user_message_reference) <strong>length=02</strong> and <strong>value="91"</strong>. </p>

<p>In the response i could see "<strong>tag=516,len=2,value=0x3931</strong>" in the SMSC simulator , the value field doesn't seem appropriate to me; also the "<strong>message_id</strong>" in the response still continues its sequence by adding 1 with the last message_id</p>

<p>can some one help me in setting the "user_message_reference" optional parameter to the "<strong>submit_sm</strong>" request?</p>

<p>Thanks in advance.</p>