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

6.1.2.79. SendURL (dialplan application)

1. SendURL - this application allows you to send a hyperlink to a PBX user

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

 


Syntax:

SendURL(URL[|option]) ; write as argument the URL you want to send


The result will be returned in the SENDURLSTATUS channel variable. There are four possible values:

SUCCESS - URL successfully sent to client
FAILURE - Failed to send URL
NOLOAD - Clien failed to load URL (wait enabled)
UNSUPPORTED - Channel does not support URL transport

 


List of the possible options

wait - if this option is set the execution will continue only after a confirmation that the URL has been loaded

 


Purpose and usage

The purpose of this application is to send an URL address to the caller. So it could be used for an advertising. The caller dials the number of your company and he/she receives the URL of one of your departements or for example of one of your partners.

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 you 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 the 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

Now lets take a look at the extensions.conf file.

extsendurl.jpg

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

When somebody dials the number 100, the call will be answered by the Answer application.

The next executed extension will be the one with the SendURL application. In our case we have set in the brackets the web address of our web site - www.asteriskguru.com. It will be send to the caller.

Now, here we have an interesting moment. The usage of Idefisk gives you the possibility to choose, whether do you want the web address to be opened into your web browser automatically or you prefer a new window with the link to the web address to appear on the screen.

This option could be selected by pressing right button on the icon of the Idefisk in the task bar and then select General Options. The option is Automatically open URLs
idefiskurl.jpgidefiskurl1.jpg

The next extension will be executed immediately. In our case this is the one with the Dial applications. Thanks to it the call will be connected to the user user1.

However if you set the wait option in the SendURL application, the next extension will be executed only, when the the URL is opened in your browser.

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

idesendurl.jpg

clisendurl.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. Uploaded files

extensions.conf
iax.conf

 


5. Similar dialplan applications

SendText
SendImage
SendDTMF

 

 
User Comments
Albert (albertfergerson at gmail dot com)
08 September 2021 16:41:09
________ ______ ______ _________
Pappomerfaroz (bi dot l dot li dot 4qu dot ebe dot c dot at gmail dot com)
08 July 2021 03:09:10
grande pharmacie bailly avis pharmacie auchan grande synthe , pharmacie leclerc niort pharmacie auchan pontet , https://m.vlive.tv/post/0-23869633# therapie cognitivo comportementale fibromyalgie https://www.vlive.tv/post/0-23800922# , traitement jaunisse bebe medicaments mal de dos , therapies for autism. pharmacie bordeaux gambetta therapie quantique formation https://www.vlive.tv/post/1-23873716# , pharmacie bourges de garde. therapie victimisation, pharmacie bordeaux dimanche matin pharmacie autour de moi ouverte . therapies manuelles, act therapy jordan peterson pharmacie bourges avenue de dun traitement grippe .
IGaveneacy#randeom[a..z]o (s dot am dot p dot le dot t dot buv dot i dot l at gmail dot com)
17 June 2021 14:20:02
positive adjectives employee evaluation community development synonym , ivermectin tablets <a href=http://ivermectin.in.net/#>buy ivermectin for humans</a> planning process in writing. community health center buffalo community health center york pa . 4 year community colleges near me <a href=http://channel.pixnet.net/newdirect.php?blog=cr19h3id&serial=0&url=http://ivermectin.in.net/#>buy ivermectin for humans</a> , community college nursing programs individual level stressors community action agency website <a href=http://www.porcamadonna.com/papa-sadomasoccole/#comment-63359>community action eastern iowa spain</a> d8130fe , positive affirmations on mirror , community acquired pneumonia healthline .
CSheahTimi (en dot n dot m dot a dot xto dot y dot at gmail dot com)
16 April 2021 08:59:53
positive feedback upstream social security login , pills ivermectin <a href=http://ivermectinsale.me/#Ivermectin-3-mg-sale>ivermectin for covid</a> positive reinforcement theory. culture lag example community advocates eviction . community biology meaning, community bank tupelo ms social norms positive pregnancy test then period <a href=https://table8media.com/how-to-create-content-specific-content-for-hotels/#comment-1216>friends season 1 US</a> 953a64e , community action partnership boise, positive and negative kvar .
Lyrica_ibedo (en dot n dot m dot ax dot toy dot at gmail dot com)
25 December 2020 23:25:00
community definition media community action council lexington ky , community cast get out the vote. social justice topics <a href=https://lyrica.website/#>lyrica dosage</a>, community first credit union student loans positive pregnancy test zero symptoms positive feedback loop op amp , community health center falmouth community bridges mesa jobs? community action agency tulsa ok positive memes, positive reinforcement loop community trauma definition.
individual group level of analysis , positive words that start with i positive pregnancy test empty uterus community first credit union online.
MiZevebite (en dot n dot m dot a dot x dot t dot oy at gmail dot com)
24 December 2020 20:35:29
friends zoom background images hills community aid jobs , positive feedback loop apes. community college biology professor salary, positive and negative battery cables followers generator?
community facilitator biology https://karantina.pertanian.go.id/question2answer/index.php?qa=169432# , positive pregnancy test progression positive human adjectives? community resource credit union <a href=https://karantina.pertanian.go.id/question2answer/index.php?qa=168879&qa_1=gГ©nГ©rique-ampicillin-en-belgique-acillin-500-mg-moins-cher#>Ampicillin 500 mg</a> community action agency adrian mi, community health center greenville ky positive ana test and cancer.
community biology examples <a href=https://forbeshouse.org/save-the-date-a-new-day-reverse-raffle-2019/#comment-208865>community aid pa Finland</a> d8130fe , positive words like hope community xlt46 positive quotes hope.
canadian pharmacy cialis 20mg (madelinecrews6254 at spambog dot com)
06 July 2020 14:07:07
canadian pharmacy cialis 20mg http://www.cialisles.com/
AAssusHATKaws (serbFerswrendy at clifors dot xyz)
20 June 2020 22:12:21
<a href="https://cialisle.com/">buy cialis 20mg</a>
MeDoo (zs9rkmh5oj6 at gmail dot com)
19 December 2015 10:05:10
By luke December 22, 2008 - 10:12 amhithis looks great, but how can I do a shocrtut to generate this style of comment in textmate?currently i do either command-/ or command option -/ and get block style. Not sure how to force this to doxygen styled comments in my CSS files? http://sanjxovwhu.com [url=http://nvhyxhyj.com]nvhyxhyj[/url] [link=http://raqjqvhpxm.com]raqjqvhpxm[/link]
Robert Berg (robert at dmnws dot com)
27 September 2006 20:17:07
Bought the biz version but URL handling is not working.
Whee do I go wrong?

Any answers on this???

We have the problem!!!
Saskio (fercom at saskius dot it)
03 May 2006 23:12:23
Bought the biz version but URL handling is not working.
Whee do I go wrong?

IAX registration:
[i103]
username=i103
secret=i103
allow=all
host=dynamic
type=friend
context=default


extensions.conf:
exten => 103,1,Answer()
exten => 103,2,SendURL(www.google.com)
exten => 103,3,Dial(IAX2/i103)
exten => 103,4,Hangup()


Please help me.

Tanks
 
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://my.mamul.am/en/post/1081673 htt...
    tutorial: Installation on Slackware
  • https://forum.webnovel.com/d/104352 htt...
    tutorial: Configuring IP Phones for use with Asterisk
  • https://forum.webnovel.com/d/104377 htt...
    tutorial: Configuring IP Phones for use with Asterisk
  • https://forum.webnovel.com/d/104287-stvo...
    tutorial: Installation of Asterisk GUI
  • https://gamma.app/public/WATCH-The-Equal...
    tutorial: Installation on Slackware
 
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™