1. SendText - this application allows you to send a text to the caller.
NOTE: This application is valid for Asterisk version 1.0.9 and above.
Syntax:
SendText(text) ; write as argument the text you want to send
Purpose and usage
You could use this application when you want to display a text on the screen of the caller.
I will give you an example. Let’s say that you want to inform the caller that his call will be transferred to your IVR menu, or can use it even for advertising. Every time somebody attempts to call the numbers of your company he/she will see this message.
I will show you how to do this.
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.
We need three registered users 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.
So, we have registered the users anatoliy, user1 and user2.
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.
Now lets see how to make your advertisement with the help of SendText application. On the picture above you could see a screenshot from our extensions.conf file.
First of all we don’t want to write one and the same sentence ten or twenty times. For example if we have 10-15 phone lines and we want the callers of these lines to see our message we have to make separate extensions for each line. However there is a smarter way to achieve this. We need to make a macro. The macro is a special context in extensions.conf.
The first thing when you are going to create a macro is the name. In the brackets write macro, then dash and then the name you want to have for this macro. Now, in the body you have to write only one line. An extension which will contain the SendText application.
Example
exten => s,1,SendText(Here is the place where you write the text for your advertisement)
The message that will appear on the screen will be the one in the brackets. In our example Here is the place where you write the text for your advertisement.
Now you have to call out this macro in the main context where you write the extensions for your 10-15 numbers. The first extension for a certain number will be with priority 1 then the key word macro and then as argument in the brackets write the name of the macro(This has to be the name which you have written after the dash in the name of the macro). In our example this is sendtext.
The next extension with priority 2 will contain the application Dial which will dial the desired user through the chosen protocol(IAX, SIP, MGCP). It’s a good idea to add an extension for a hanging up to be sure that when the conversation is over the Asterisk PBX will hang up the line.
So, in our example if somebody dials 111 or 112, he/she will see one and the same text message - in our case Here is the place where you write the text for your advertisement.
2. Screenshots of what you can see on your Idefisk and on the CLI of the Asterisk PBX
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
Gregorydat (gregoryWhime at onlinecasinonodepositbonus dot us) 03 April 2023 17:06:45
Wonderful data. Kudos!
uk dissertation writing service https://bestcheapessaywriters.com writing an informative essay https://hireawriterforanessay.com
cephalexin antibiotic for sale (normanmacgillivra63 at lobumisan dot gq) 21 August 2020 22:53:33 cephalexin antibiotic for sale https://keflex.webbfenix.com/
GeorgeSip (tatyanamariyaklimenko1991978oaf at mail dot ru) 01 April 2019 09:00:21 slot machine renzi treasure slot machine giochi gratis slot machine da scaricare <a href="http://hlaastmu.com">giochi gratis tutti</a> giochi casino gratis slot machine book fra free slot machine pompeii slot machine usate
diamante slot machine salvadanaio slot machine prezzi tulliani slot machine <a href=http://hlaastmu.com/#slot>slot online gratis</a>
http://hlaastmu.com
Adrián Correa (voip at adrianivanov dot net) 19 October 2016 09:06:39 Hi!
What ip phones support this application? - I mean, they show the text on its display?
Thanks!
Amir (i1yw37st8 at outlook dot com) 09 October 2015 03:12:26 Quantity Not Quality-- of surprises, pprhaes? I saw the "completely different" promise being broken from a hundred yards off. But with that, I have just solved it as two quality puzzles.--++--+-++-+-+--+-+- http://iedjeueeyr.com [url=http://yqacevv.com]yqacevv[/url] [link=http://dgqegkxz.com]dgqegkxz[/link]
Ayaulym (dqlhya5gcp at gmail dot com) 25 September 2015 12:28:12 dave:Sorry to report my Asterisk use has been in hitaenrbion for the last few months. Hence, this is probably a question best asked at the support forum, linked above
Orencio (robaina at destel dot net) 19 March 2008 18:16:48 This is part of my extensions.conf file
---------------
exten => _4X,n,Dial(Sip/${EXTEN},15,gM(st))
Everythig wprks fine, but text goes to called party instead of calling party.
I tried to fix it setting values of EXTEN and CHANNEL to calling party but it does not work.
Can you help me, thanks in advance
taino (datnycballa718 at aol dot com) 13 October 2006 07:20:00 i love you
dima (nobody at usa dot com) 06 April 2006 04:57:19 works with firefly SIP/IAX phone
http://www.freshtel.net
Dennis Nacino (thevoip dot tactician at gmail dot com) 06 March 2006 07:18:46 Sendtext can also be use on the callee side, atleast in Asterisk 1.2.4. Using the above example, you can invoke the macro as an option for Dial application. See, dial http://www.asteriskguru.com/tutorials/dial.html for details.
chirag (chirag_vaishnav at hotmail dot com) 07 December 2005 06:34:52 ya i got it .....
it is part of asterisk not depends on phone !
chirag (chirag_vaishnav at hotmail dot com) 07 December 2005 05:51:04 i m not getting that the send text() works with all sip phpne or just with idefisk. please let me know....