Problem with Read func and Outgoing calls (input duplicated)

Hi,

I’ have a problem when I use Read function with outgoing calls…

[Context]

exten => s,n,Read(code,“fr/test”,0,5)
exten => s,n,SayDigits(${code})

No problem when I call the context with my phone… I use this input code for example : 12345#… So ${code} = 12345… => perfect, any problem.

But when I call the same context with the server (using outgoing file to external phone number), ${code} = 1122334455 when I used 12345#. I don’t understant why inputs are duplicated…

So I need your help. :smile:

Many thanks.

Sambalec

EDIT : Asterisk v 10.2