# Outbound callerid

**URL:** <https://community.asterisk.org/t/outbound-callerid/4116>\
**Category:** Asterisk Support\
**Created:** [February 2, 2006, 5:04pm UTC](https://community.asterisk.org/t/outbound-callerid/4116 "2006-02-02T17:04:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaBeeeenster](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/dabeeeenster/32/1394_2.png) [@DaBeeeenster](https://community.asterisk.org/u/DaBeeeenster)\
**Post date:** [February 2, 2006, 5:04pm UTC](https://community.asterisk.org/t/outbound-callerid/4116/1 "2006-02-02T17:04:57Z")

</div>

Hi,

I have asterisk hooked up to 3 ISDN2 lines in the UK. At present we have 14 extensions, each bound to a seperate external number (e.g. 020 7613 \*\*\*0, 020 7613 \*\*\*1, 020 7613 \*\*\*2 etc). When we make outbound calls, the callerid for our number is always the first extension, 020 7613 \*\*\*0.

Is there any easy way to get the callerid to show the number bound to that specific phone, rather than the first one?

Ben

---

<div class="post-metadata">

**Author:** ![dswartz](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@dswartz](https://community.asterisk.org/u/dswartz)\
**Post date:** [February 2, 2006, 5:44pm UTC](https://community.asterisk.org/t/outbound-callerid/4116/2 "2006-02-02T17:44:55Z")

</div>

sure, put the caller id in the extension stanza, and make sure the outbound trunk is not forcing one on.

---

<div class="post-metadata">

**Author:** ![DaBeeeenster](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/dabeeeenster/32/1394_2.png) [@DaBeeeenster](https://community.asterisk.org/u/DaBeeeenster)\
**Post date:** [February 2, 2006, 5:49pm UTC](https://community.asterisk.org/t/outbound-callerid/4116/3 "2006-02-02T17:49:47Z")

</div>

> [@dswartz](#):
>
> sure, put the caller id in the extension stanza, and make sure the outbound trunk is not forcing one on.

Hi,

Thanks for the reply. I’m still quite new with Asterisk, and am not sure what you mean by “”…The relevant part of my extensions.conf reads:

[code][capi-out]  
ignorepat =\> 9  
;this is so i only have to include one context  
;for outgoing calls on the isdn line  
exten =\> \_9.,1,Dial(CAPI/ISDN1/${EXTEN:1})

[outbound]  
;this is so i only have to include one context  
;for outgoing calls includes all the relevant contexts  
include =\> capi-out  
include =\> emergency[/code]

---

<div class="post-metadata">

**Author:** ![rusty](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@rusty](https://community.asterisk.org/u/rusty)\
**Post date:** [February 2, 2006, 6:09pm UTC](https://community.asterisk.org/t/outbound-callerid/4116/4 "2006-02-02T18:09:04Z")

</div>

you need to make sure you pstn provider will let you send them the cid info

---

<div class="post-metadata">

**Author:** ![dswartz](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@dswartz](https://community.asterisk.org/u/dswartz)\
**Post date:** [February 2, 2006, 6:13pm UTC](https://community.asterisk.org/t/outbound-callerid/4116/5 "2006-02-02T18:13:18Z")

</div>

what i mean is something like this:

exten =\> XXX.,Y,SetCallerID(${MYPHONENUMBER})

in the section for each extension…

---

<div class="post-metadata">

**Author:** ![bertie\_bassett](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@bertie\_bassett](https://community.asterisk.org/u/bertie_bassett)\
**Post date:** [February 2, 2006, 10:27pm UTC](https://community.asterisk.org/t/outbound-callerid/4116/6 "2006-02-02T22:27:02Z")

</div>

dswartz is right, that’s how you set caller ID on asterisk. I’m assuming that your ISDN2’s are connected to openreach (the bt network that was) and not telewest or NTL, which seems to be the case based on your area code.

Based on my experience with isdn30 and assuming that these are configured as digital system with DDI numbers - i.e so that when someone dialling in 020 7613 \*\*13 gets thru to extension 13 then you can present any valid DDI in your range over the bearer - i.e. achieve what you want.

If you’re struggling to get it working then drop me a PM or email with your issue and mail address and i’ll drop you a note back.

Cheers  
g
