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

6.1.1.5. CALLERID(rdnis) (dialplan function) - NEW

1. CALLERID(rdnis) - this function will allow you change the RDNIS number

NOTE:Information about the Asterisk functions could be obtained by typing the show functions command.

Information about a particular function could be obtained by typing the show function <function name> on the Asterisk CLI command.

NOTE: In Asterisk versions 1.2 and up there are several applications which are mark as deprecated and which are no longer supported.

These applications will now become functions and these functions will be used in combination with the Set application.

You have to know that their functionality will be the same, but with a different syntax.

The CALLERID(rdnis) function is one of those new functions which will replace the old applications. In this tutorial we will show you its syntax and possible usage.

Check out the old syntax of the SetRDNIS application here
 


Syntax:

Set(CALLERID(rdnis)=value)

 


List of the possible options

value - The new RDNIS number, you want to set on the call.

 


Purpose and usage

The purpose of this function is to allow you to change the RDNIS number on a call

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. We are using Asterisk version1.2.1.

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

 


Asterisk PBX configurations

iax.conf Configurations

We need to create one 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.

extcalleridrdnisnew.jpg

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

In this example, when somebody dials 100, the call will be answered by the Answer application. The next executed extension will be the one which contains the Playback application. As arguments in its brackets we have set welcome. This is a standard welcome message, which comes with the Asterisk and which will be played thanks to the application. We have one extension with the NoOp application - just to check the content of the CALLERID(rdnis) variable.

Then it is time for the CALLERID(rdnis) function. Use the Set application. As argument in the brackets write the following - CALLERID(rdnis)=10102020. This will cause the change of the RDNIS number to 10102020.

We will use another extension with the NoOp application - to verify that the change is successful. Then, by using the Playback application we will play another sound file - vm-goodbye.

NOTE: The function CALLERID(rdnis) is case sensitive. You always have to write it in your dialplans as you see it in our tutorial.

In order to be sure that the Asterisk PBX will hang up the line, when the conversation is over, it is a good idea to use the Hangup application.

 


2. Screenshots of what you could see on the CLI of the Asterisk PBX

clicalleridrdnisnew.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

More information about the Set application could be found here

 


4. Uploaded files

CALLER_rdnis.tar - configuration files

 


5. Similar dialplan functions

CALLERID(num)
CALLERID(all)
CALLERID(name)

 

 
User Comments
SdvillNap (c dot hi dot m dot m dot edu dot r dot l dot s at o5o5 dot ru)
13 November 2022 02:04:06
<a href=https://chimmed.ru/>пробирка купить </a>
Tegs: рифампицин цена https://chimmed.ru/

<u>денситометры </u>
<i>пипетка пастера </i>
<b>натрия бутират </b>
SdvillNap (revers at o5o5 dot ru)
09 February 2022 13:07:20
<a href=https://dezstation.com/>анализ почвы </a>
Tegs: измерение вибраций https://dezstation.com/

<u>обработка от клещей и комаров на участке </u>
<i>тепловизионное обследование зданий </i>
<b>уничтожение клещей </b>
GtcismVably (revers at o5o5 dot ru)
31 August 2021 16:40:45
<a href=https://gmclinica.ru/uslugi/stomatologiya/otbelivanie/>Zoom 4 отбеливание цена</a>
Tegs: Zoom домашнее отбеливание купить https://gmclinica.ru/uslugi/stomatologiya/otbelivanie/

<u>Косметолог недорого Москва</u>
<i>Косметолог эстетист Москва</i>
<b>Косметология gm clinic</b>
حبي (e5e at live dot com)
12 April 2009 13:46:30
[&#1588;&#1575;&#1578; &#1581;&#1576;&#1610;->http://www.7p-e.com],
[&#1583;&#1585;&#1583;&#1588;&#1577; &#1581;&#1576;&#1610;->http://www.7p-e.com],
[&#1588;&#1575;&#1578; &#1587;&#1593;&#1608;&#1583;&#1610;->http://www.7p-e.com],
[&#1583;&#1585;&#1583;&#1588;&#1577;->http://www.7p-e.com],
[&#1588;&#1575;&#1578; ->http://www.7p-e.com],
[&#1588;&#1575;&#1578; &#1589;&#1608;&#1578;&#1610;->http://voice.7p-e.com],
[&#1583;&#1585;&#1583;&#1588;&#1577; &#1589;&#1608;&#1578;&#1610;&#1577;->http://voice.7p-e.com],
[&#1575;&#1602;&#1608;&#1609; &#1583;&#1585;&#1583;&#1588;&#1577; &#1589;&#1608;&#1578;&#1610;&#1577;->http://voice.7p-e.com],
[&#1583;&#1585;&#1583;&#1588;&#1577; &#1603;&#1578;&#1575;&#1576;&#1610;&#1577;->http://chat.7p-e.com],
[&#1588;&#1575;&#1578; &#1603;&#1578;&#1575;&#1576;&#1610;->http://chat.7p-e.com],
[&#1588;&#1576;&#1603;&#1577; &#1581;&#1576;&#1610;->http://www.7p-e.com],
[&#1605;&#1606;&#1578;&#1583;&#1610;&#1575;&#1578; &#1581;&#1576;&#1610;->http://www.7p-e.com/vb],
[&#1581;&#1576;&#1610;->http://www.7p-e.com],
[&#1583;&#1585;&#1583;&#1588;&#1577; &#1575;&#1604;&#1602;&#1589;&#1610;&#1605;->http://www.7p-e.com/qassim.html],
[&#1588;&#1575;&#1578; &#1575;&#1604;&#1602;&#1589;&#1610;&#1605;->http://www.7p-e.com/qassim.html],
[&#1610;&#1608;&#1578;&#1610;&#1608;&#1576;->http://clips.7p-e.com],
[&#1575;&#1604;&#1593;&#1575;&#1576;->http://games.7p-e.com],
[&#1583;&#1604;&#1610;&#1604; &#1605;&#1608;&#1575;&#1602;&#1593;->http://dir.7p-e.com],
[&#1589;&#1608;&#1585;->http://gallery.7p-e.com],
[&#1605;&#1585;&#1603;&#1586; &#1578;&#1581;&#1605;&#1610;&#1604;->http://up.7p-e.com],
[&#1575;&#1604;&#1602;&#1585;&#1575;&#1606; &#1575;&#1604;&#1603;&#1585;&#1610;&#1605;->http://www.7p-e.com/quranflash.htm],
[&#1576;&#1604;&#1608;&#1578;&#1608;&#1579;->http://mob.7p-e.com],
[&#1578;&#1608;&#1576;&#1610;&#1603;&#1575;&#1578;->http://topics.7p-e.com]
http://www.ro-7e.com/ (e5e at live dot com)
12 April 2009 13:45:20
<p><font face="Tahoma" size="2">
&nbsp;<a style="text-decoration: none;" title="&#1605;&#1606;&#1578;&#1583;&#1610;&#1575;&#1578;" href="http://www.7p-e.com/vb">&#1605;&#1606;&#1578;&#1583;&#1610;&#1575;&#1578;</a><a> |<a style="text-decoration: none;" title=" &#1575;&#1604;&#1602;&#1585;&#1570;&#1606; &#1575;&#1604;&#1603;&#1585;&#1610;&#1605;" href="http://www.7p-e.com/quranflash.htm">
&#1575;&#1604;&#1602;&#1585;&#1570;&#1606; &#1575;&#1604;&#1603;&#1585;&#1610;&#1605;</a> |
<a style="text-decoration: none;" title="&#1605;&#1585;&#1603;&#1586; &#1578;&#1581;&#1605;&#1610;&#1604;" href="http://up.7p-e.com/">&#1605;&#1585;&#1603;&#1586; &#1578;&#1581;&#1605;&#1610;&#1604;</a>|
<a style="text-decoration: none;" title="&#1589;&#1608;&#1585;" href="http://gallery.7p-e.com">&#1589;&#1608;&#1585;</a>|
<a style="text-decoration: none;" title="&#1583;&#1604;&#1610;&#1604; &#1575;&#1604;&#1605;&#1608;&#1575;&#1602;&#1593;" href="http://dir.7p-e.com">
<font color="#ff0000">&#1583;&#1604;&#1610;&#1604; &#1575;&#1604;&#1605;&#1608;&#1575;&#1602;&#1593;</font></a> |
<a style="text-decoration: none;" title="&#1575;&#1604;&#1593;&#1575;&#1576;" href="http://games.7p-e.com">&#1575;&#1604;&#1593;&#1575;&#1576;</a> |
<a style="text-decoration: none" title="&#1580;&#1608;&#1575;&#1604;" href="http://mob.7p-e.com">&#1580;&#1608;&#1575;&#1604;</a> |<a style="text-decoration: none" title=" &#1575;&#1604;&#1575;&#1587;&#1585;&#1577; &#1575;&#1604;&#1605;&#1587;&#1604;&#1605;&#1577;" href="http://islame.7p-e.com/"> &#1575;&#1604;&#1575;&#1587;&#1585;&#1577; &#1575;&#1604;&#1605;&#1587;&#1604;&#1605;&#1577;</a><span lang="ar-sa">
</span>|<span lang="ar-sa"> <a href="http://www.7p-e.com/">&#1588;&#1575;&#1578;</a></span> |<a style="text-decoration: none" title=" &#1610;&#1608;&#1578;&#1610;&#1608;&#1576;" href="http://clips.7p-e.com/">
&#1610;&#1608;&#1578;&#1610;&#1608;&#1576;</a> |
<a style="text-decoration: none" title="&#1575;&#1604;&#1605;&#1580;&#1604;&#1577;" href="http://new.7p-e.com/">
&#1575;&#1604;&#1605;&#1580;&#1604;&#1577;</a> |<a title="&#1575;&#1604;&#1591;&#1576; &#1575;&#1604;&#1576;&#1583;&#1610;&#1604;" href="http://ashab.7p-e.com/" style="text-decoration: none">&#1575;&#1604;&#1591;&#1576; &#1575;&#1604;&#1576;&#1583;&#1610;&#1604;</a>
|<a title="&#1604;&#1593;&#1576;&#1577; &#1575;&#1604;&#1578;&#1581;&#1583;&#1610;" href="http://www.7p-e.com/escape.html" style="text-decoration: none">&#1604;&#1593;&#1576;&#1577; &#1575;&#1604;&#1578;&#1581;&#1583;&#1610;</a>
|
<span lang="ar-sa"><a href="http://www.2opmax.com/">&#1583;&#1604;&#1610;&#1604; &#1583;&#1585;&#1583;&#1588;&#1575;&#1578;</a> </span>|<span lang="ar-sa">
</span>
<a title="&#1588;&#1575;&#1578; &#1603;&#1578;&#1575;&#1576;&#1610;" href="http://chat.7p-e.com/" style="text-decoration: none">&#1588;&#1575;&#1578; &#1603;&#1578;&#1575;&#1576;&#1610;</a> |
<a style="text-decoration: none" title="&#1606;&#1603;&#1578; &#1608;&#1591;&#1585;&#1575;&#1574;&#1601;" href="http://www.7p-e.com/jokes">
&#1606;&#1603;&#1578; &#1608;&#1591;&#1585;&#1575;&#1574;&#1601;</a> |<a style="text-decoration: none" title=" &#1575;&#1603;&#1608;&#1575;&#1583; &#1575;&#1604;&#1608;&#1575;&#1606;" href="http://www.7p-e.com/cod.html"> &#1575;&#1603;&#1608;&#1575;&#1583; &#1575;&#1604;&#1608;&#1575;&#1606;</a> |
<a title="&#1578;&#1608;&#1576;&#1610;&#1603;&#1575;&#1578;" href="http://topics.7p-e.com/" style="text-decoration: none">&#1578;&#1608;&#1576;&#1610;&#1603;&#1575;&#1578;</a> |
<a style="text-decoration: none" title="&#1588;&#1575;&#1578; &#1589;&#1608;&#1578;&#1610;" href="http://voice.7p-e.com/">&#1588;&#1575;&#1578; &#1589;&#1608;&#1578;&#1610;</a> |
</font><span lang="ar-sa">
<a style="text-decoration: none" href="http://voice.7p-e.com/">
<font face="Tahoma" color="#FF0000">
&#1583;&#1585;&#1583;&#1588;&#1577; &#1589;&#1608;&#1578;&#1610;&#1577;</font></a></span><font face="Tahoma" size="2"><a href="http://www.7p-e.com/soft.html" style="text-decoration: none;"><font color="#ff0000">
</font></a>|
<a title="&#1583;&#1585;&#1583;&#1588;&#1577; &#1575;&#1604;&#1602;&#1589;&#1610;&#1605;" href="http://www.7p-e.com/qassim.html">&#1583;&#1585;&#1583;&#1588;&#1577; &#1575;&#1604;&#1602;&#1589;&#1610;&#1605;</a> |<a style="text-decoration: none" title="&#1605;&#1575;&#1587;&#1606;&#1580;&#1585;" href="http://msn.7p-e.com/">&#1605;&#1575;&#1587;&#1606;&#1580;&#1585;</a>|
<a style="text-decoration: none;" title="&#1580;&#1575;&#1601;&#1575; " href="http://java.7p-e.com/">
&#1580;&#1575;&#1601;&#1575; </a>|
<a style="text-decoration: none" title="&#1586;&#1582;&#1585;&#1601; &#1575;&#1587;&#1605;&#1603;" href="http://www.7p-e.com/z5arf.html">&#1586;&#1582;&#1585;&#1601; &#1575;&#1587;&#1605;&#1603;</a><a href="http://www.7p-e.com/vb/index.php" style="text-decoration: none;">
</a>|
<a style="text-decoration: none" title="&#1602;&#1610;&#1587; &#1581;&#1576;&#1603;" href="http://www.7p-e.com/love.html">&#1602;&#1610;&#1587; &#1581;&#1576;&#1603;</a>|
<a title="&#1583;&#1585;&#1583;&#1588;&#1577;" href="http://www.7p-e.com/">&#1583;&#1585;&#1583;&#1588;&#1577;</a> |
<a title="&#1581;&#1576;&#1610;" style="text-decoration: none" href="http://www.7p-e.com/">
<span lang="ar-sa">
&#1581;&#1576;&#1610;</span></a> |<span lang="ar-sa"> <a href="http://voice.7p-e.com/">&#1575;&#1602;&#1608;&#1609; &#1588;&#1575;&#1578;
&#1589;&#1608;&#1578;&#1610;</a> </span>|<span lang="ar-sa"> <a href="http://voice.7p-e.com/">&#1575;&#1602;&#1608;&#1609;
&#1583;&#1585;&#1583;&#1588;&#1577; &#1589;&#1608;&#1578;&#1610;&#1577;</a> </span>|<span lang="ar-sa"> <a href="http://voice.7p-e.com/">
&#1575;&#1602;&#1608;&#1609; &#1588;&#1575;&#1578; &#1587;&#1593;&#1608;&#1583;&#1610;</a></span></font></p>
 
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://git-ce.rwth-aachen.de/mbd/kiste_...
    tutorial: Basic Information
  • https://git-ce.rwth-aachen.de/mbd/kiste_...
    tutorial: Basic Information
  • https://www.thebeachlittlehampton.co.uk/...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://www.viessmann-community.com/t5/R...
    tutorial: Asterisk Installation
  • https://d2l.msu.edu/d2l/eP/presentations...
    tutorial: Asterisk Realtime configuration
 
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™