jasmin icon indicating copy to clipboard operation
jasmin copied to clipboard

Alphanumeric sender id

Open ggoggg opened this issue 1 year ago • 1 comments

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

ggoggg avatar Jun 22 '23 17:06 ggoggg

Use interceptor as described here https://docs.jasminsms.com/en/latest/interception/index.html#chaning-ton-or-npi

  1. create filter that will match alphanumeric source
  2. create mtinterceptor where you can rewrite TON and NPI that will kick-in when filter form point 1 matches

marcinkowalczyk avatar Nov 27 '23 21:11 marcinkowalczyk