]> git.ipfire.org Git - thirdparty/asterisk.git/commit
callerid.c: Parse previously ignored Caller ID parameters.
authorNaveen Albert <asterisk@phreaknet.org>
Mon, 1 Apr 2024 21:16:29 +0000 (17:16 -0400)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Mon, 22 Apr 2024 12:02:44 +0000 (12:02 +0000)
commitc1b69d460d6ce1614bd65ba2fdcff3edd77d8718
treef2eec272778e237d1270964f22cb7fffc91feea3
parent57ce1fe01b3ac70850ad1dc8007bcc5ebed1ce8e
callerid.c: Parse previously ignored Caller ID parameters.

Commit f2f397c1a8cc48913434ebb297f0ff50d96993db previously
made it possible to send Caller ID parameters to FXS stations
which, prior to that, could not be sent.

This change is complementary in that we now handle receiving
all these parameters on FXO lines and provide these up to
the dialplan, via chan_dahdi. In particular:

* If a redirecting reason is provided, the channel's redirecting
  reason is set. No redirecting number is set, since there is
  no parameter for this in the Caller ID protocol, but the reason
  can be checked to determine if and why a call was forwarded.
* If the Call Qualifier parameter is received, the Call Qualifier
  variable is set.
* Some comments have been added to explain why some of the code
  is the way it is, to assist other people looking at it.

With this change, Asterisk's Caller ID implementation is now
reasonably complete for both FXS and FXO operation.

Resolves: #681
channels/chan_dahdi.c
funcs/func_callerid.c
include/asterisk/callerid.h
main/callerid.c