<div dir="ltr"><div><div>Hi,</div><div><br></div><div>I was relying on <b>variable_DIALSTATUS</b> to check for the originate error cause when dialing a user, it works for error cases like RECOVERY_ON_TIMER_EXPIRE, BUSY, however when the cause is USER_NOT_REGISTERED freeswitch overrides the DIALSTATUS with the pickup endpoint's error cause so I'm unable to detect the reason properly. </div><div><br></div></div><div><br></div><div>How can I reliably retrieve the originate cause? Is this a bug or intended?</div><div><br></div><div><br></div><div><font face="monospace, monospace">016-09-01 23:17:35.561182 [NOTICE] switch_ivr_originate.c:2759 Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED]</font></div><div><font face="monospace, monospace">2016-09-01 23:17:35.561182 [DEBUG] mod_dptools.c:3709 () State Change CS_NEW -> CS_ROUTING</font></div><div><font face="monospace, monospace">2016-09-01 23:17:35.561182 [DEBUG] switch_core_session.c:1397 Send signal N/A [BREAK]</font></div><div><font face="monospace, monospace">2016-09-01 23:17:35.561182 [NOTICE] switch_channel.c:1077 New Channel pickup/<a href="mailto:221@example.com">221@example.com</a> [446024c6-709a-11e6-a2c0-4d1647ad42e6]</font></div><div><font face="monospace, monospace">2016-09-01 23:17:35.581187 [NOTICE] switch_ivr_originate.c:794 Hangup pickup/<a href="mailto:221@example.com">221@example.com</a> [CS_ROUTING] [NO_PICKUP]</font></div><div><font face="monospace, monospace">2016-09-01 23:17:35.581187 [DEBUG] switch_channel.c:3244 Send signal pickup/<a href="mailto:221@example.com">221@example.com</a> [KILL]</font></div><div><font face="monospace, monospace">2016-09-01 23:17:35.581187 [DEBUG] switch_core_session.c:1397 Send signal pickup/<a href="mailto:221@example.com">221@example.com</a> [BREAK]</font></div><div><br></div><div><br></div><div><br></div><div>And those are the related variables afterwards.</div><div><br></div><div><div><div>variable_originated_legs: [446024c6-709a-11e6-a2c0-4d1647ad42e6;Outbound Call;221]</div><div>variable_last_bridge_hangup_cause: [NO_PICKUP]</div><div>variable_originate_causes: [446024c6-709a-11e6-a2c0-4d1647ad42e6;NO_PICKUP]</div><div>variable_originate_disposition: [NO_PICKUP]</div><div>variable_DIALSTATUS: [NO_PICKUP]</div></div><div><br></div></div><div><br></div><div>Thanks</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Aron Podrigal<div>-</div><div>'1000001', '1110010', '1101111', '1101110' '1010000', '1101111', '1100100', '1110010', '1101001', '1100111', '1100001', '1101100'</div><div><br></div><div>P: '2b', '31', '33', '34', '37', '34', '35', '38', '36', '30', '39', '39'<br></div><div><br></div></div></div></div></div>
</div>