jasmin
jasmin copied to clipboard
Alphanumeric sender id
When sending a message with an alphanumeric sender id, the source address is not shown correctly on the phone. The problem is caused by incorrect 'source_addr_ton' and 'source_addr_npi' values. When 'source_addr' contains non-numeric symbols, 'source_addr_ton' and 'source_addr_npi' should be set AddrTon.ALPHANUMERIC and AddrNpi.UNKNOWN
Use interceptor as described here https://docs.jasminsms.com/en/latest/interception/index.html#chaning-ton-or-npi
- create filter that will match alphanumeric source
- create mtinterceptor where you can rewrite TON and NPI that will kick-in when filter form point 1 matches