]> 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:42 +0000 (12:02 +0000)
commit4cf8d9d94a46b8b49498e8d15fde9f35dcb3a6d5
tree65fe0ec984a711148f858e39507c750fe9e34e79
parentcf5c46d8ae563c60ff6bf4348fcc0abd723031d6
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