From b408326b03691047d5b369519930b5f760bfc3fb Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Mon, 25 Aug 2025 17:46:32 +0200 Subject: [PATCH 1/2] normalise --- .../voice-no-chatbot-operating-hours-lambda.tftpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twilio-iac/helplines/sg/templates/studio-flows/voice-no-chatbot-operating-hours-lambda.tftpl b/twilio-iac/helplines/sg/templates/studio-flows/voice-no-chatbot-operating-hours-lambda.tftpl index 1904aa7882..dd5f13523b 100644 --- a/twilio-iac/helplines/sg/templates/studio-flows/voice-no-chatbot-operating-hours-lambda.tftpl +++ b/twilio-iac/helplines/sg/templates/studio-flows/voice-no-chatbot-operating-hours-lambda.tftpl @@ -274,7 +274,7 @@ ${ { "friendly_name": "If value does_not_start_with +65", "arguments": [ - "{{trigger.call.From}}" + "{{trigger.call.From | replace: 'sip:', '' | split: '@' | first}}" ], "type": "does_not_start_with", "value": "+65" @@ -283,7 +283,7 @@ ${ } ], "properties": { - "input": "{{trigger.call.From}}", + "input": "{{trigger.call.From | replace: 'sip:', '' | split: '@' | first}}", "offset": { "x": 500, "y": 180 From de98f7f53acecd0f4297b461786f7394ea0ee9ac Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Wed, 10 Sep 2025 11:18:38 +0200 Subject: [PATCH 2/2] name attrbute --- .../voice-no-chatbot-operating-hours-lambda-sd.tftpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/twilio-iac/helplines/sg/templates/studio-flows/voice-no-chatbot-operating-hours-lambda-sd.tftpl b/twilio-iac/helplines/sg/templates/studio-flows/voice-no-chatbot-operating-hours-lambda-sd.tftpl index c00731bf9b..ffc25174b8 100644 --- a/twilio-iac/helplines/sg/templates/studio-flows/voice-no-chatbot-operating-hours-lambda-sd.tftpl +++ b/twilio-iac/helplines/sg/templates/studio-flows/voice-no-chatbot-operating-hours-lambda-sd.tftpl @@ -54,7 +54,7 @@ ${ }, "workflow": "${workflow_sids.master}", "channel": "${task_channel_sids.voice}", - "attributes": "${channel_attributes.default}", + "attributes": "{\n \"type\": \"inbound\",\n \"name\": \"{{trigger.call.From | replace: 'sip:', '' | split: '@' | first}}\",\n \"ignoreAgent\": \"\",\n \"helpline\":\"Tinkle Friend\",\n \"transferTargetType\": \"\",\n \"channelType\": \"voice\",\n \"conversations\": {\n \"hang_up_by\": \"Customer\"\n }\n}", "waitUrlMethod": "GET" } }, @@ -274,16 +274,16 @@ ${ { "friendly_name": "If value does_not_start_with +65", "arguments": [ - "{{trigger.call.From}}" + "{{trigger.call.From | replace: 'sip:', '' | split: '@' | first}}" ], "type": "does_not_start_with", - "value": "sip:+65" + "value": "+65" } ] } ], "properties": { - "input": "{{trigger.call.From}}", + "input": "{{trigger.call.From | replace: 'sip:', '' | split: '@' | first}}", "offset": { "x": 500, "y": 180