]> 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)
committerNaveen Albert <asterisk@phreaknet.org>
Mon, 22 Apr 2024 12:02:37 +0000 (12:02 +0000)
commit6bd0b6708186fcfa6928b3bdc97cfd097a2f92e7
treea7b364dadf7a94ba5cce2a651f787894eb654548
parent65018e8ebf23118a64e335f61ca07b13a232f5b9
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