Echo and voice Clipping on external calls over a UK BT ISDN Channel

OK, So I’ve made some progress. I’m using a milliwatt test number from the US (001 313 937 9996) which is working - yay ! Not exactly local, but at least I have a tone I can use to tune.

Running dadhi_monitor 1 -vv whilst calling the test line has allowed me to tune the rxgain - here are the results so far:

Rx: 14400 rxgain = 0 EC ON
Rx: 13400 rxgain = 0 EC OFF
Rx: 11400 rxgain = -2 EC OFF
…
…
Rx: 4500 rxgain = -10 (this is about 70% full on the rx meter)

I read elsewhere of a magic number of 14800, but was unsure if this again referred to FXO ports ? With the gain down at -10 external calls are very quiet even with the handset volume up at max.

My question is, how do I connect the external milliwatt test number to the internal milliwatt application ?

From info on similar posts, I have added the following to extensions_custom.conf

[custom-testtone]
exten => 88888,1,Answer()
exten => 88888,n,Milliwatt()

If I call the test number then try to transfer the call to ext 8888, I get “Service not Available”. Checking the logs shows

“Channel ‘SIP/250-0000000a’ sent into invalid extension ‘8888’ in context ‘outbound-allroutes’, but no invalid handler”

I know I’m probably being thick here, but do I need to setup an extension 8888 under extensions as well and if so should it have any specific settings ?

I do feel I’m getting closer, albeit slowly. I’ve been reading loads but have probably missed something obvious. Can anyone point me in the right direction ?

Thanks!