--- title: "How to configure Local Presence Dialling" slug: "local-presence-dialling-how-to" tags: ["ISO Country Code", "Local Presence Dialling", "Outbound Caller ID"] updated: 2026-04-16T14:47:15Z published: 2026-04-16T14:47:15Z canonical: "docs.natterbox.com/local-presence-dialling-how-to" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.natterbox.com/llms.txt > Use this file to discover all available pages before exploring further. # How to configure Local Presence Dialling This guide explains how to configure Local Presence dialling within your Outbound Routing Policy. ### What It Does: This Lua script dynamically alters the Outbound Caller ID (also known as the Presentation Number) based on the country code of the number your Agent is dialling. When an agent places an outbound call, the script reads the destination number and resolves it into a 3-letter ISO country code. It then checks a predefined table of your regional phone numbers. If it finds a match for that country, it changes the CLI presented to the called party to that specific local number. If the country is not listed in your table, it falls back to a default global number so the call can still proceed. ### Use Case: Local Presence Dialling is primarily used by outbound sales and support teams to increase call answer rates. People are significantly more likely to answer a phone call if the incoming caller ID displays a familiar, local country code rather than an unknown international number. ### Script: > [!CAUTION] > DEFINE YOUR REGIONAL CLIs: > > Make sure you update each entry on the Number table to reflect your own organizations phone numbers - *The numbers listed below are simply test numbers* Add any additional countries and the related CLIs to the table below. > > The Country must be the 3-character ISO code - [https://www.iso.org/](https://www.iso.org/) ```lua enable_debug('email') local numbersTable = {    ['GBR'] = '442038123456',    ['USA'] = '18446123456',    ['ITA'] = '39800123456',    ['MEX'] = '528002123456',    ['CAN'] = '18885123456', } local dialledNumber = session.get('CalledNumber') or "" if string.sub(dialledNumber, 1, 1) == "0" then    session.set("country", session.get('CalledCountryShort')) else    session.set("country", resolve_country(session.get('E164CalledNumber'))) end local countryCode = session.get("country") print("Resolved Country Code: " .. tostring(countryCode)) if numbersTable[countryCode] then    local presentationNumber = '+' .. numbersTable[countryCode]        session.modify('PRESENTATION_NUMBER', presentationNumber)    print("Set Presentation Number to: " .. presentationNumber)        return true else    -- FAILURE ROUTE: Apply the default number and return true    print("No matching CLI found for country code: " .. tostring(countryCode) .. ". Using default.")    session.modify('PRESENTATION_NUMBER', defaultNumber)        return true end ``` ### How to configure in Policy: 1. Navigate to the default “Outbound Calls Policy” 2. Before the “Connect a call” component you will want to introduce a script app as shown below 3. Add in the above script (Once your Organization numbers have been added to the table) 4. Connect the Script App to the Connect a call component ![](https://cdn.document360.io/c81c490c-daaa-4ebd-a3c3-1a2dee8b7617/Images/Documentation/image(405).png?sv=2026-02-06&spr=https&st=2026-10-12T07%3A01%3A16Z&se=2026-10-12T08%3A01%3A16Z&sr=c&sp=r&sig=BFVLAUHLyHErYZ8NUIa6QEtGFpr8%2BFqEnYaE%2FMVAWfU%3D) ### Tracking Outbound CLI (Optional): To capture and track the CLI number used for outbound calls to understand how effective they are you can follow the below guide - This will need to be added prior to the above script. ### [How to Report on the CLI Number for Outbound Calls](/v1/docs/how-to-report-on-the-cli-number-for-outbound-calls) The configuration set up to route calls based on your requirements to get your customer to the correct agent as quickly as possible. Your member of staff - someone from your organisation making or receiving a call ## Related - [Outbound Dialling](/outbound-dialling.md) - [Presenting Outbound CLI Options](/presenting-outbound-cli-options.md)