Hangup instead of voicemail when using DID

Hello all,

I have set up Elastix 2.40 using asterisk Asterisk 1.8.20.0 and have it more-or-less configured. I have created 4 extensions, each with a DID inbound route. The route matching is working fine. However, the call is dropped instead of voicemail picking up as expected.

Can someone please help me

Here is the debug output:

sip_additional.conf for my extension 201:

call trace…

Your problem relates to Elastix, not to Asterisk. You need to take it up with the Elastix people. They are the ones who know how their dialplans and AGI scripts are supposed to work.