<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ISE 3.1 remove country code for SMS provider in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/ise-3-1-remove-country-code-for-sms-provider/m-p/4620782#M575088</link>
    <description>&lt;P&gt;Thanks Thomas,&lt;/P&gt;
&lt;P&gt;that was I´m looking for.&lt;/P&gt;
&lt;P&gt;I just shortened the javascript function to avoid complain of ISE, and that how I set it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;function mobileNumber(mobileNumber) {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; mobile=mobileNumber.substring(3);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;return mobile;&lt;BR /&gt;&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 May 2022 19:40:22 GMT</pubDate>
    <dc:creator>DavidAceti</dc:creator>
    <dc:date>2022-05-30T19:40:22Z</dc:date>
    <item>
      <title>ISE 3.1 remove country code for SMS provider</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-3-1-remove-country-code-for-sms-provider/m-p/4615565#M574917</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I´m integrating the SMS in a guest portal in ISE 3.1 and&amp;nbsp; my SMS provider doesn´t admit country code in the value sent by ISE.&lt;/P&gt;
&lt;P&gt;In my case the variable sent by ISE is $mobilenumber$ and the value is +34 XXXXXXXXX but my provider only accept XXXXXXXXX.&lt;/P&gt;
&lt;P&gt;My first option was to talk with provider without lucky so now I´m trying to modify this variable on-the-fly ,&lt;/P&gt;
&lt;P&gt;if anyone has another idea or how to modify this variable, I would appreciate.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;David&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 14:07:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-3-1-remove-country-code-for-sms-provider/m-p/4615565#M574917</guid>
      <dc:creator>DavidAceti</dc:creator>
      <dc:date>2022-05-23T14:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: ISE 3.1 remove country code for SMS provider</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-3-1-remove-country-code-for-sms-provider/m-p/4620741#M575081</link>
      <description>&lt;P&gt;The ISE &lt;STRONG&gt;SMS Gateway&lt;/STRONG&gt; configuration has an option to configure the mobile number sent to the provider:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-05-30 at 8.28.52 AM.png" style="width: 724px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/152347iCD920B91B93A9F01/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-05-30 at 8.28.52 AM.png" alt="Screen Shot 2022-05-30 at 8.28.52 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will want to customize that JavaScript function to remove the "+34" from the mobile number sent to your SMS provider. You may try something like this:&lt;/P&gt;
&lt;PRE&gt;function mobileNumber (mobileNumber) {&lt;BR /&gt;&amp;nbsp;   number = mobileNumber.trim();&lt;BR /&gt;    if (number.startsWith("+34")) {&lt;BR /&gt;        // remove +34 and remove all non-digit characters&lt;BR /&gt;        number = number.substr(3, number.length).replace(/\D/g, '');&lt;BR /&gt;    }&lt;BR /&gt;    return number;&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 May 2022 18:07:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-3-1-remove-country-code-for-sms-provider/m-p/4620741#M575081</guid>
      <dc:creator>thomas</dc:creator>
      <dc:date>2022-05-30T18:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: ISE 3.1 remove country code for SMS provider</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-3-1-remove-country-code-for-sms-provider/m-p/4620782#M575088</link>
      <description>&lt;P&gt;Thanks Thomas,&lt;/P&gt;
&lt;P&gt;that was I´m looking for.&lt;/P&gt;
&lt;P&gt;I just shortened the javascript function to avoid complain of ISE, and that how I set it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;function mobileNumber(mobileNumber) {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; mobile=mobileNumber.substring(3);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;return mobile;&lt;BR /&gt;&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 19:40:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-3-1-remove-country-code-for-sms-provider/m-p/4620782#M575088</guid>
      <dc:creator>DavidAceti</dc:creator>
      <dc:date>2022-05-30T19:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: ISE 3.1 remove country code for SMS provider</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-3-1-remove-country-code-for-sms-provider/m-p/4889822#M582982</link>
      <description>&lt;P&gt;This seems to be a known issue and the work around mentioned above did not work in &lt;SPAN&gt;3.1.0.518-Patch5&lt;/SPAN&gt;. However, It is fixed in&amp;nbsp;&lt;SPAN&gt;3.1.0.518-Patch7.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://bst.cloudapps.cisco.com/bugsearch/bug/CSCwe70975" target="_blank"&gt;https://bst.cloudapps.cisco.com/bugsearch/bug/CSCwe70975&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Symptom:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;once we tried to configure &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;function mobileNumber(mobileNumber) { &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return mobileNumber.replace("+1","");&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; } &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;to remove +1 we see into pcap that +1 it is still sendin it even if the javascript is executed &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Conditions:&lt;/STRONG&gt;&lt;SPAN&gt; in ISE 3.1 patch 5 &lt;/SPAN&gt;&lt;STRONG&gt;Workaround:&lt;/STRONG&gt;&lt;SPAN&gt; no available &lt;/SPAN&gt;&lt;STRONG&gt;Further Problem Description:&lt;/STRONG&gt;&lt;SPAN&gt; this seems to be a regression of defect CSCvz66577&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cisco.com/c/en/us/td/docs/security/ise/3-1/release_notes/b_ise_31_RN.html" target="_blank"&gt;https://www.cisco.com/c/en/us/td/docs/security/ise/3-1/release_notes/b_ise_31_RN.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 17:32:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-3-1-remove-country-code-for-sms-provider/m-p/4889822#M582982</guid>
      <dc:creator>gautham.com</dc:creator>
      <dc:date>2023-07-21T17:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: ISE 3.1 remove country code for SMS provider</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-3-1-remove-country-code-for-sms-provider/m-p/5309348#M597261</link>
      <description>&lt;P&gt;Yes ,David.&lt;/P&gt;
&lt;P&gt;this is very helpful .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;since mobile format has the limitation for 100 char.&lt;/P&gt;
&lt;P&gt;and it may display the error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Snipaste_2025-07-15_10-04-40.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/248279iAE9F434BA2B3B9C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snipaste_2025-07-15_10-04-40.png" alt="Snipaste_2025-07-15_10-04-40.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 02:05:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-3-1-remove-country-code-for-sms-provider/m-p/5309348#M597261</guid>
      <dc:creator>kaihyu</dc:creator>
      <dc:date>2025-07-15T02:05:32Z</dc:date>
    </item>
  </channel>
</rss>

