2017-02-09 14:44:33.887109 [DEBUG] switch_ivr_originate.c:2138 Parsing global variables
2017-02-09 14:44:33.887109 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f047c0262f0 Connected.
2017-02-09 14:44:33.887109 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f047c0262f0 released.
2017-02-09 14:44:33.887109 [DEBUG] switch_ivr_originate.c:2138 Parsing global variables
2017-02-09 14:44:33.887109 [NOTICE] switch_ivr_originate.c:2841 Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED]
2017-02-09 14:44:33.887109 [DEBUG] switch_ivr_originate.c:3829 Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED]
2017-02-09 14:44:33.887109 [NOTICE] switch_ivr_originate.c:2841 Cannot create outgoing channel of type [user] cause: [USER_NOT_REGISTERED]
2017-02-09 14:44:33.887109 [DEBUG] switch_ivr_originate.c:3829 Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED]
2017-02-09 14:44:33.887109 [INFO] mod_dptools.c:3409 Originate Failed. Cause: USER_NOT_REGISTERED
My dial plan is as follows:
<condition field="${user_exists}" expression="^true$" break="never">
<action application="set" data="call_timeout=20"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<action application="bridge" data="{absolute_codec_string='PCMU'}user/${dialed_number}@${domain_name}"/>
<action application="answer"/>
<action application="sleep" data="1000"/>
<action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_number}"/>
</condition>
So I guess the user should not be registered, as it is for voicemail.