Background() detect digit delay lag (1.4.23.1)

During a Background() in the dial plan, there is a 6-8 second delay in the system responding and moving to the next step.

example:

[contextone]

s,1,answer()
s,n,background(message)

1,1,goto(anothercontext,s,1)

When you press 1, it takes 8 seconds extra to make it to anothercontext,s,1

Above 3 lines, that is the whole dialplan in “contextone” context or only a part ?