jookies / jasmin

Jasmin - Open source SMS gateway
http://jasminsms.com
Other
985 stars 539 forks source link

Alphanumeric sender id #1117

Open ggoggg opened 1 year ago

ggoggg commented 1 year ago

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

marcinkowalczyk commented 7 months ago

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