# "CALLERID" directive in pjsip.conf

**URL:** <https://community.asterisk.org/t/callerid-directive-in-pjsip-conf/97400>\
**Category:** Asterisk SIP\
**Created:** [June 19, 2023, 2:04am UTC](https://community.asterisk.org/t/callerid-directive-in-pjsip-conf/97400 "2023-06-19T02:04:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![proftech](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@proftech](https://community.asterisk.org/u/proftech)\
**Post date:** [June 19, 2023, 2:04am UTC](https://community.asterisk.org/t/callerid-directive-in-pjsip-conf/97400/1 "2023-06-19T02:04:17Z")

</div>

What does “callerid=” do when used? Maybe a better question is "How do I use it’? It looks like the “from\_user=” directive does the same thing. I have searched the wiki high and low.

---

<div class="post-metadata">

**Author:** ![cable](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@cable](https://community.asterisk.org/u/cable)\
**Post date:** [June 19, 2023, 2:23am UTC](https://community.asterisk.org/t/callerid-directive-in-pjsip-conf/97400/2 "2023-06-19T02:23:17Z")

</div>

One use is ‘callerid=Henry (1001)’ so when you call extension 1008 they will see that Henry (1001) is calling them instead of just a generic ‘1001’, etc.

---

<div class="post-metadata">

**Author:** ![ambiorixg12](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ambiorixg12/32/1887_2.png) [@ambiorixg12](https://community.asterisk.org/u/ambiorixg12)\
**Post date:** [June 19, 2023, 3:06am UTC](https://community.asterisk.org/t/callerid-directive-in-pjsip-conf/97400/3 "2023-06-19T03:06:55Z")

</div>

callerid= ; CallerID information for the endpoint (default: “”)

Assuming you have set the following two headers to “yes”:  
send\_pai  
send\_rpid

And assuming the caller ID value is “ambiorixg12” this value will be present in both of these headers. You can use either header for caller ID purposes, as both headers will contain the caller ID information.

P-Asserted-Identity: “ambiorixg12” sip:12522681342@45.77.107.195

Remote-Party-ID: “ambiorixg12” sip:12522681342@45.77.107.195;party=calling;privacy=off;screen=no

---

<div class="post-metadata">

**Author:** ![cige](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@cige](https://community.asterisk.org/u/cige)\
**Post date:** [June 19, 2023, 7:06am UTC](https://community.asterisk.org/t/callerid-directive-in-pjsip-conf/97400/4 "2023-06-19T07:06:04Z")

</div>

How to change the Caller ID from the provider to replace what ever I need it?

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [June 19, 2023, 10:31am UTC](https://community.asterisk.org/t/callerid-directive-in-pjsip-conf/97400/5 "2023-06-19T10:31:30Z")

</div>

> [@proftech](#):
>
> It looks like the “from\_user=” directive does the same thing.

It does the opposite thing. from\_user sets the value of the user part of the From: header, in the outbound direction, generally when that is used as an account name, rather than a caller ID. callerid sets it in the inbound direction, overriding anything received from the provider.

> [@cige](#):
>
> How to change the Caller ID from the provider to replace what ever I need it?

Generally you wouldn’t do this with pjsip.conf, but rather with Set(CALLERID()= in the dialplan. The typical use of callerid in pjsip.conf is for phones, where there is only only possible value being received, but it isn’t what is wanted.

---

<div class="post-metadata">

**Author:** ![proftech](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@proftech](https://community.asterisk.org/u/proftech)\
**Post date:** [June 19, 2023, 8:44pm UTC](https://community.asterisk.org/t/callerid-directive-in-pjsip-conf/97400/6 "2023-06-19T20:44:22Z")

</div>

Thanks. That was what I thought after I played around with it. One question. If I populate `from_user=12175551212`, Asterisk sends a **from** header similar to `from:12175551212@my.internet.ip`. But if I leave out “from\_user” Asterisk inserts a header that resembles `from:asterisk@my.internet.ip`. Since both headers do not apply to my system [as far as I know] doesn’t the second header offer more anonymity to my system?

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [June 19, 2023, 8:47pm UTC](https://community.asterisk.org/t/callerid-directive-in-pjsip-conf/97400/7 "2023-06-19T20:47:13Z")

</div>

From asterisk will only be for the registration. The caller ID will be used for calls.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [July 19, 2023, 8:47pm UTC](https://community.asterisk.org/t/callerid-directive-in-pjsip-conf/97400/8 "2023-07-19T20:47:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
