# Dialplan to setup caller id same as extention number

**URL:** <https://community.asterisk.org/t/dialplan-to-setup-caller-id-same-as-extention-number/48833>\
**Category:** Asterisk General\
**Created:** [May 7, 2015, 3:09pm UTC](https://community.asterisk.org/t/dialplan-to-setup-caller-id-same-as-extention-number/48833 "2015-05-07T15:09:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr.x](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/dr.x/32/2052_2.png) [@dr.x](https://community.asterisk.org/u/dr.x)\
**Post date:** [May 7, 2015, 3:09pm UTC](https://community.asterisk.org/t/dialplan-to-setup-caller-id-same-as-extention-number/48833/1 "2015-05-07T15:09:30Z")

</div>

Hi ,  
i have a dial plan that set the caller id with specific number , but i need ot to be modified such as the caller id is set based on the extention number who is dialing out of that trunk

here is my conext below :  
==\>\>\>added /etc/asterisk/extensions\_custom.conf

[plivo\_outgoing]  
exten =\> \_7X.,1,SIPAddHeader(X-PH-destination: ${EXTEN:1})  
exten =\> \_7X.,2,SIPAddHeader(X-PH-clid: 123456)  
exten =\> \_7X.,3,SIPAddHeader(X-PH-auth: 4673837rhyfh736462)  
exten =\> \_7X.,4,Dial(SIP/354688764638@app.plivo.com, 30)

as we see above , the caller id is 123456 , but i need to modify it so that its same as extention , if extention 111111 is using outtrunk CID as 11111  
im sure there is some modification needed

thanks alot

---

<div class="post-metadata">

**Author:** ![navaismo](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/navaismo/32/2481_2.png) [@navaismo](https://community.asterisk.org/u/navaismo)\
**Post date:** [May 7, 2015, 4:08pm UTC](https://community.asterisk.org/t/dialplan-to-setup-caller-id-same-as-extention-number/48833/2 "2015-05-07T16:08:25Z")

</div>

${CALLERID(num)}

---

<div class="post-metadata">

**Author:** ![dr.x](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/dr.x/32/2052_2.png) [@dr.x](https://community.asterisk.org/u/dr.x)\
**Post date:** [May 7, 2015, 4:54pm UTC](https://community.asterisk.org/t/dialplan-to-setup-caller-id-same-as-extention-number/48833/3 "2015-05-07T16:54:43Z")

</div>

> [@navaismo](#):
>
> ${CALLERID(num)}

thank you so much  
it worked 😄
