variable_DIALSTATUS reset by pickup endpoint
Hi, I was relying on *variable_DIALSTATUS* 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. How can I reliably retrieve the originate cause? Is this a bug or intended? 016-09-01 23:17:35.561182 [NOTICE] switch_ivr_originate.c:2759 Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED] 2016-09-01 23:17:35.561182 [DEBUG] mod_dptools.c:3709 () State Change CS_NEW -> CS_ROUTING 2016-09-01 23:17:35.561182 [DEBUG] switch_core_session.c:1397 Send signal N/A [BREAK] 2016-09-01 23:17:35.561182 [NOTICE] switch_channel.c:1077 New Channel pickup/221@example.com [446024c6-709a-11e6-a2c0-4d1647ad42e6] 2016-09-01 23:17:35.581187 [NOTICE] switch_ivr_originate.c:794 Hangup pickup/221@example.com [CS_ROUTING] [NO_PICKUP] 2016-09-01 23:17:35.581187 [DEBUG] switch_channel.c:3244 Send signal pickup/ 221@example.com [KILL] 2016-09-01 23:17:35.581187 [DEBUG] switch_core_session.c:1397 Send signal pickup/221@example.com [BREAK] And those are the related variables afterwards. variable_originated_legs: [446024c6-709a-11e6-a2c0-4d1647ad42e6;Outbound Call;221] variable_last_bridge_hangup_cause: [NO_PICKUP] variable_originate_causes: [446024c6-709a-11e6-a2c0-4d1647ad42e6;NO_PICKUP] variable_originate_disposition: [NO_PICKUP] variable_DIALSTATUS: [NO_PICKUP] Thanks -- Aron Podrigal - '1000001', '1110010', '1101111', '1101110' '1010000', '1101111', '1100100', '1110010', '1101001', '1100111', '1100001', '1101100' P: '2b', '31', '33', '34', '37', '34', '35', '38', '36', '30', '39', '39'
participants (1)
-
Podrigal, Aron