propagate a ctx all the way from input to output of a route

This commit is contained in:
Joel Wetzell
2025-12-28 12:21:58 -06:00
parent 12de947f3d
commit f97f9b9fc9
18 changed files with 21 additions and 22 deletions

View File

@@ -151,7 +151,7 @@ func (sds *SIPDTMFServer) HandleCall(inDialog *diago.DialogServerSession) error
return reader.Listen(func(dtmf rune) error {
if dtmf == rune(sds.Separator[0]) {
if sds.router != nil {
sds.router.HandleInput(sds.Id(), SIPDTMFMessage{
sds.router.HandleInput(sds.ctx, sds.Id(), SIPDTMFMessage{
To: inDialog.ToUser(),
Digits: userString,
})