Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

callerid.c: Parse previously ignored Caller ID parameters. #682

Merged

Conversation

InterLinked1
Copy link
Contributor

Commit f2f397c 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

@InterLinked1
Copy link
Contributor Author

cherry-pick-to: 18
cherry-pick-to: 20
cherry-pick-to: 21

include/asterisk/callerid.h Outdated Show resolved Hide resolved
funcs/func_callerid.c Outdated Show resolved Hide resolved
Commit f2f397c 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: asterisk#681
@gtjoseph gtjoseph added the cherry-pick-test Trigger dry run of cherry-picks label Apr 22, 2024
@github-actions github-actions bot added cherry-pick-testing-in-progress Cherry-Pick tests in progress and removed cherry-pick-test Trigger dry run of cherry-picks labels Apr 22, 2024
@github-actions github-actions bot added cherry-pick-checks-passed Cherry-Pick checks passed cherry-pick-gates-passed Cherry-Pick gates passed and removed cherry-pick-testing-in-progress Cherry-Pick tests in progress labels Apr 22, 2024
@asterisk-org-access-app asterisk-org-access-app bot merged commit c1b69d4 into asterisk:master Apr 22, 2024
60 of 62 checks passed
Copy link

Successfully merged to branch master and cherry-picked to ["18","20","21"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[new-feature]: callerid.c: Parse all received parameters
5 participants