]> 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:39 +0000 (12:02 +0000)
commit44381b2fe90f7e9663a179a2ab27048f994f75d1
tree2523427cadc3c4e32299b1255a7322a425401b7a
parent2dc89afb2c13c5eb939fc384fbe9b11cba9e1477
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