Receive call as destination,extension

Morning !

I have to receive calls with dialed numbers as follows:

number,extension (i.e. 17936840247,8001)

I’ve configured in extensions.conf:

exten=> 17936840247,1,Answer();
exten=> 17936840247,n,Wait(1);
exten=> 8001,1,Dial(SIP/${EXTEN})

however this is not working; unfortunatelly I can not change how the number is dialed.
Any suggestions ?.. thanks in advance.

Ronald -

You would have to use WaitExten.

One second is unlikely to be long enough to allow the , delay to complete and the number to be dialed.

Are you sure the full PSTN number is being forwarded to you?

I’m not sure, but I think that you may have some fundamental misunderstanding about how dialplans work.

  • Thanks for your response david55

Are you sure the full PSTN number is being forwarded to you?

  • Yes. I’m sure, unfortunatelly I can not change how the number is being dialed, but it’s working with other destination properly.

I’ve changed my dialplan to:

exten=> 17936840247,1,Answer();
exten=> 17936840247,n,WaitExten(5);
exten=> _800X,1,Dial(SIP/${EXTEN})

however the call goes to extension “t” due to timeout.

You will need to enable DTMF debugging.

Also, what channel technology are you using. If you are using one of the VoIP ones, you need to have compatible settings for handling DTMF. In particular, inband will not work with anything other than G.711.