Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
asterisk-org-access-app[bot] merged 1 commit into
asterisk:masterfrom
InterLinked1:master-issue-681
Apr 22, 2024
Merged

callerid.c: Parse previously ignored Caller ID parameters.#682
asterisk-org-access-app[bot] merged 1 commit into
asterisk:masterfrom
InterLinked1:master-issue-681

Conversation

@InterLinked1

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

Comment thread include/asterisk/callerid.h Outdated
Comment thread funcs/func_callerid.c Outdated
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
@github-actions

Copy link
Copy Markdown

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