From 6953524b4082a144cdadd238ece0fd28f9cf0b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Garc=C3=ADa=20Isa=C3=ADa?= Date: Fri, 6 Mar 2026 05:07:58 -0300 Subject: [PATCH] Add channel relative ID for iTexmo ATs Support confirmed via email that they send this `reference_id` - though we don't know for sure if it's an identifier or not. --- app/controllers/itexmo_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/itexmo_controller.rb b/app/controllers/itexmo_controller.rb index a2959a46..c9e92aa1 100644 --- a/app/controllers/itexmo_controller.rb +++ b/app/controllers/itexmo_controller.rb @@ -30,7 +30,7 @@ def incoming to = params["gateway"] unknown_params = params.except( - 'originator', 'gateway', 'message', 'timestamp', # iTexmo API specification + 'originator', 'gateway', 'message', 'timestamp', 'reference_id', # iTexmo API specification 'account_name', 'channel_name', 'incoming_password', 'controller', 'action' # Rails-generated parameters ) @@ -38,6 +38,7 @@ def incoming msg.from = "sms://#{from}" msg.to = "sms://#{to}" msg.body = params["message"] + msg.channel_relative_id = params["reference_id"] account.route_at msg, channel