PostReadCallHeader executes the defined plugins after reading CALL message header.
(ctx ReadCtx)
| 544 | |
| 545 | // PostReadCallHeader executes the defined plugins after reading CALL message header. |
| 546 | func (p *pluginSingleContainer) postReadCallHeader(ctx ReadCtx) *Status { |
| 547 | var stat *Status |
| 548 | for _, plugin := range p.plugins { |
| 549 | if _plugin, ok := plugin.(PostReadCallHeaderPlugin); ok { |
| 550 | if stat = _plugin.PostReadCallHeader(ctx); !stat.OK() { |
| 551 | Errorf("[PostReadCallHeaderPlugin:%s] %s", plugin.Name(), stat.String()) |
| 552 | return stat |
| 553 | } |
| 554 | } |
| 555 | } |
| 556 | return nil |
| 557 | } |
| 558 | |
| 559 | // PreReadCallBody executes the defined plugins before reading CALL message body. |
| 560 | func (p *pluginSingleContainer) preReadCallBody(ctx ReadCtx) *Status { |
no test coverage detected