# Func\_callerid.so loaded but callerid function not registered

**URL:** <https://community.asterisk.org/t/func-callerid-so-loaded-but-callerid-function-not-registered/79330>\
**Category:** Asterisk Support\
**Created:** [April 11, 2019, 10:34pm UTC](https://community.asterisk.org/t/func-callerid-so-loaded-but-callerid-function-not-registered/79330 "2019-04-11T22:34:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anthony1](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@anthony1](https://community.asterisk.org/u/anthony1)\
**Post date:** [April 11, 2019, 10:34pm UTC](https://community.asterisk.org/t/func-callerid-so-loaded-but-callerid-function-not-registered/79330/1 "2019-04-11T22:34:49Z")

</div>

Bit of a curly one here, at least for me. I have a fresh (rebuilt multiple times this week trying to resolve this) CentOS 7.6.180 core with Asterisk 16.2.0 tar and PJProject2.8. My logs show func\_callerid.so is loaded as well as ‘module show’ so the module is definitely loading. However when I use the function in my extensions.conf I get errors. I even tried the ‘connectedline’ function which is part of the same module and the same error occurs. I do have ‘sendrpid=yes’ in my sip.conf but I don’t believe that is relevant in this case.

I am hoping it is something simple. I cannot see anywhere in the documentation or forums that I have to load the function, just the module. Any thoughts?

CODE:  
exten = \_X.,3,noop(Set Ring Groups {callerid(num)} - {connectedline(num,i)})

RESPONSE:  
[Apr 12 08:24:21] ERROR[54252][C-00000001]: pbx\_functions.c:608 ast\_func\_read: Function callerid not registered  
[Apr 12 08:24:21] ERROR[54252][C-00000001]: pbx\_functions.c:608 ast\_func\_read: Function connectedline not registered  
– Executing [201@from-internal:3] NoOp(“SIP/29B1914A-A3FD-998E-E546C359EBE62A-00000000”, "Set Ring Groups - ") in new stack

Module successfully loaded:  
Loading func\_callerid.so.  
== Registered custom function ‘CALLERPRES’  
== Registered custom function ‘CALLERID’  
== Registered custom function ‘CONNECTEDLINE’  
== Registered custom function ‘REDIRECTING’

Module loaded (from CLI):  
module show like caller  
Module Description Use Count Status Support Level  
func\_callerid.so Party ID related dialplan functions (Cal 0 Running core  
res\_pjsip\_caller\_id.so PJSIP Caller ID Support 1 Running core  
2 modules loaded

---

<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:** [April 11, 2019, 11:07pm UTC](https://community.asterisk.org/t/func-callerid-so-loaded-but-callerid-function-not-registered/79330/2 "2019-04-11T23:07:09Z")

</div>

CALLERID was registered, but you tried to use callered!

---

<div class="post-metadata">

**Author:** ![anthony1](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@anthony1](https://community.asterisk.org/u/anthony1)\
**Post date:** [April 11, 2019, 11:39pm UTC](https://community.asterisk.org/t/func-callerid-so-loaded-but-callerid-function-not-registered/79330/3 "2019-04-11T23:39:40Z")

</div>

Sorry, I don’t follow what you mean. the command I used is callerid(num)?

exten = \_X.,3,noop(Set Ring Groups {callerid(num)} - {connectedline(num,i)})

The dollar symbols don’t seem to paste in but they are there where appropriate.

---

<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:** [April 11, 2019, 11:47pm UTC](https://community.asterisk.org/t/func-callerid-so-loaded-but-callerid-function-not-registered/79330/4 "2019-04-11T23:47:57Z")

</div>

Variables and therefore function names are case sensitive. ${callerid()} is undefined.

---

<div class="post-metadata">

**Author:** ![anthony1](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@anthony1](https://community.asterisk.org/u/anthony1)\
**Post date:** [April 11, 2019, 11:53pm UTC](https://community.asterisk.org/t/func-callerid-so-loaded-but-callerid-function-not-registered/79330/5 "2019-04-11T23:53:06Z")

</div>

Thanks, I didn’t know that. Clearly I still have a lot to learn about asterisk. ${CALLERID(num)} worked perfectly.  
Sorry for the noob question.

---

<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:** [May 11, 2019, 11:53pm UTC](https://community.asterisk.org/t/func-callerid-so-loaded-but-callerid-function-not-registered/79330/6 "2019-05-11T23:53:12Z")

</div>

Closed on May 11, 2019, 11:53pm UTC

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