Given function predict module

Asterisk 20. I would like to use CHECKSIPDOMAIN() in a dialplan. Sorry to trouble everybody, but I cannot find out which module contains it. I have been loading more and more modules but it refuses to appear. I have spent an hour so far, including doing “string” checks on binary files without success.

So two questions 1. Can someone give me a hint as to which module it is in.
2. Is there any way that, given a function or an APP name, get the module.so name without first loading the module?

It’s in chan_sip, and there is no mapping or index currently of which module a dialplan app/function/etc comes from.

On Friday 15 November 2024 at 12:54:05, Ray-electrotechie via Asterisk
Community wrote:

Asterisk 20. I would like to use CHECKSIPDOMAIN() in a dialplan. Sorry to
trouble everybody, but I cannot find out which module contains it.

asterisk-20.10.0$ grep -ril checksipdomain .
./pbx/pbx_ael.c
./res/ael/pval.c
./channels/chan_sip.c

So, it appears to be in the deprecated and unmaintained chan_sip driver.

Antony.


Pavlov is in the pub enjoying a pint.
The barman rings for last orders, and Pavlov jumps up exclaiming “Damn! I
forgot to feed the dog!”

                                               Please reply to the list;
                                                     please *don't* CC me.

Ah, oh dear. I have been avoiding chan_sip - I am not sure I want to load it.
Thanks for the hint about the grep switches to use. I built asterisk from source, so I do have it all. Rather itimidating code I have to admit. Thanks to both respondents - I guess I will have to change my strategy a bit.

PS, I read somewhere a post from 2021 saying that chan_sip was going to be removed from the standard release “in two years” - so maybe best to really avoid using any of it.

The chan_sip module was removed as of Asterisk 21.

It has been removed. It was removed in release 21; release 22 has is just out.

Ah, useful information! I am currently working with 20.7 (I think) but my plan is to jump to 22 built on a headless raspberry pi 4 or 5 (yes, I don’t need a lot of phones) as soon as I have a working system. So DEFINITELY don’t use anything from chan_sip!

Perhaps somewhere in the doc, the functions only available in chan_sip should be deprecated (or maybe I just missed that because I use docs for 20).

The documentation for each version is generated from that version. If you look at a higher version then it won’t appear since chan_sip isn’t there.

1 Like

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