• Idefisk
  • Tools
  • Tutorials
  • Reviews
  • VoIP Providers
  • Archives
ZOIPER softphone
Back to Tutorials

6.1.2.91. StripLSD (dialplan application)

1. StripLSD - this application allows you to set digits which to be stripped from the extension number.

NOTE: This application is valid for Asterisk version 1.0.9 and above.

 


Syntax:

StripLSD(count)

 


Purpose and usage

The purpose of this application is to allow you to strip the digits from the trail of an already existing extension number.

In this way you can easily change the extension number. This feature is useful within big and complicated dialplans.

Below, we will give you an example.

 


Prerequisites

To use this application you need a working Asterisk PBX with registered users in iax.conf, sip.conf or mgcp.conf(It depends on which protocol you would like to use) and made extensions.

To see how the application works we recommend to use our IAX softphone Idefisk. You can download it from here. Please also read our tutorial to learn how to configure it to work with Asterisk PBX.

 


Asterisk PBX configurations

NOTE: This is only an example of what for you can use this application. Of course you can use it and for other things.


iax.conf Configurations

We need one registered user in iax.conf file. This is because we are going to use the IAX2 protocol. If you want to use other protocol such as SIP or MGCP, you have to do the configurations below respectively in sip.conf or mgcp.conf.

iaxoneuser.jpg

So, we have registered the user user1

Type=friend means that this user can make and receive calls. Host=dynamic means that the IP is not static but dynamic through a DHCP server. Allow=all means that the line which this user will use, could support all audio codecs. Context=test - this shows that this user is working with the extensions in this context of the configuration file extensions.conf.


extensions.conf Configurations

extstriplsd.jpg

On the picture above you can see our extensions.conf file.

In our example when somebody dials 11111010, the call will be answered by the Answer application. The next executed extension will be the one which contains the SendText application. Thanks to it, we will check the content of the ${EXTEN} variable. It should be the number of the dialled extension. In our example the application will send a message to the caller with the following text: The current extension is: 11111010.

The next executed extension will be the one with the Wait application. It will give us a time before the next message. We have set the time to 5 seconds.

The next executed extension will be the one with the StripLSD application. In its brackets we have set the following: 4. This will cause the change of the number of the next executed extension. In other words, as argument in the brackets, we have set the number of digits which we would like to be stripped from the trail of the extension number. The number 4 means that we would like to remove the last four digits from the extension number. The number in our case will be changed to 1111.

NOTE: Please, pay attention that as argument in the brackets you have to set the number of digits, you would like to be removed, not the digits themselves.

Now, the number of the next extension - the one with priority 5, should be 1111 instead of 11111010. This extension will use again the SendText application to check, what is the new content of the variable ${EXTEN}. It should be 1111. Thanks to this application, on the screen of the caller will be displayed the following message: The new extension number is: 1111.

In order to be sure that the Asterisk PBX will hang up the line after the conversation is over, it is a good idea to make an extension for hanging up the line.

 


2. Screenshots of what you can see on your Idefisk and on the CLI of the Asterisk PBX

idestriplsd.jpg

idestriplsd1.jpg

clistriplsd.jpg


 


3. Additional information

For more information about extensions.conf you can check here.
For more information about iax.conf you can check here.

This application is tested with our IAX softphone Idefisk. You can download it from here. For more information about this softphone please read our tutorial.

If you would like to test this application with the SIP channel you can read our tutorials about the SIP Softphones to learn how to configure them to work with Asterisk PBX

 


4. Similar dialplan applications

Suffix()
StripMSD()
Prefix()

 

 
User Comments
drtsertser (irimatamua at gmail dot com)
07 January 2022 16:49:54
https://public.flourish.studio/visualisation/8322499/
https://public.flourish.studio/visualisation/8322516/
https://public.flourish.studio/visualisation/8322522/
https://public.flourish.studio/visualisation/8322547/
https://public.flourish.studio/visualisation/8322579/
https://public.flourish.studio/visualisation/8322614/
https://noti.st/bitataderi
https://www.cakeresume.com/jujutsukaisen0
https://portfolium.com/entry/0hd
https://www.eventcreate.com/e/jujutsukaisen0
https://wakelet.com/wake/1s2pQ6GrcvZhB-POwyLeb
https://coub.com/stories/2422964-0-jujutsu-kaisen-0-the-movie__
https://aderibitat.medium.com/a-day-full-of-love-38764b27177b
https://www.kickresume.com/cv/y1K2a/
https://muckrack.com/jujutsu-kaisen-1/bio
https://www.guilded.gg/teams/JjJKL0ZR/overview/news/9lon0gxR
https://www.guilded.gg/teams/JjJKL0ZR/overview/news/glbvYOql
https://www.guilded.gg/teams/JjJKL0ZR/overview/news/7R0WEbPy
https://www.blockdit.com/users/61d8035995a2376adcb13d59
https://www.blockdit.com/posts/61d8055bb19f0f1d9344874d
https://www.mychemicalromance.com/news/hd-0-2021-jujutsu-kaisen-movie-3862151
https://pemudandrenges.tumblr.com/
https://www.gdpr.associates/community/profile/aderibitat/
https://mediacenter.community/community/profile/aderibitat/
https://polfair.pl/forum/profile/aderibitat/
https://lazismukalbar.org/forum/profile/aderibitat/
https://krunkercentral.com/community/profile/aderibitat/
https://pantip.com/topic/41196284
https://minimore.com/b/SonVR/1
https://vocus.cc/article/61d83541fd89780001de70bc
https://www.magmahdi.com/web/vietnam/home/-/message_boards/message/2570826
https://jurnal.unpad.ac.id/ijad/comment/view/2636/13943/1877
https://vestnikramn.spr-journal.ru/jour/comment/view/200/0/12879
https://ojs.unm.ac.id/JETCLC/comment/view/15977/4556/11989
https://journals.eco-vector.com/ecolgenet/comment/view/10956/14001/38716
viagra sales in canada (rosettaellzey1142 at now dot mefound dot com)
27 June 2020 17:18:25
viagra sales in canada http://viacheapusa.com/
Elisa (olm6k02v at outlook dot com)
20 December 2015 19:08:06
Sigo en un limbo de ignorancia en todo lo <a href="http://rnlkkfkyrkb.com">reacilonado</a> con VoIP, ased que a ver que9 nos cuentas en la BSDCon de Barcelona y cuando me ponga a probar en casa seguro que tendre9 algo totalmente disparatado que contar.
 
Add Comment
Name:
Email:
Comment:
In order to prevent automatic posting on our website, we kindly request you to type in the number you see in the picture below.
Image Verification:
 

Latest Headlines:

  • T.38 faxing with Zoiper 2.15 is now easier than ever
    section: voip software
  • Asterisk 1.4.21 Released
    section: Asterisk
  • Asterisk 1.4.20 Released
    section: Asterisk
  • Asterisk 1.4.20-rc2 Released
    section: Asterisk
  • Asterisk 1.4.20-rc1 Now Available
    section: Asterisk
  • News Archives (older news)

Latest Tutorials:

  • Sending Fax from Zoiper to Zoiper using T.38
    added 08/Dec/2008 18:16
  • VMAuthenticate (dialplan application)
    added 01/Mar/2008 15:57
  • Siptronic ST-530
    added 06/Nov/2007 17:57
  • Siemens C455 IP hardphone
    added 05/Nov/2007 10:24
  • Zoiper
    added 22/Oct/2007 17:53

Latest Comments:

  • https://donde-ver-ant-man-y-la-avispa-qu...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://donde-ver-scream-6-tyt.statuspag...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://donde-ver-guardianes-de-la-noche...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://donde-ver-demon-slayer-villa-de-...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://www.reddit.com/r/BenavidezvPlant...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
 
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™