Why agi_dnid returned unknown?

I am using python agi before when using agi_dnid I got the number but now returned unknown I do not know why?

and when tried
same => n,Verbose(Dialled is: ${CALLERID(dnid)})

it returned
– Executing [start@ai_callcenter_basic:3] Verbose(“Local/start@ai_callcenter_basic-00000059;2”, "Dialled is: ") in new stack
Dialled is:

{
“agi_request”: “test.py”,
“agi_channel”: “Local/start@ai_callcenter_basic-00000049;2”,
“agi_language”: “en”,
“agi_type”: “Local”,
“agi_uniqueid”: “1740488059.1780”,
“agi_version”: “20.11.0”,
“agi_callerid”: “1000”,
“agi_calleridname”: “test”,
“agi_callingpres”: “0”,
“agi_callingani2”: “0”,
“agi_callington”: “0”,
“agi_callingtns”: “0”,
“agi_dnid”: “unknown”,
“agi_rdnis”: “unknown”,
“agi_context”: “ai_callcenter_basic”,
“agi_extension”: “start”,
“agi_priority”: “8”,
“agi_enhanced”: “0.0”,
“agi_accountcode”: “”,
“agi_threadid”: “140468864206592”
}

What has changed?

  • Asterisk
  • Extensions.*
  • Python
  • Python AGI library
  • Python script (test.py)
  • SIP provider

agi set debug on may yield a clue.

Where did the ‘AGI environment’ snippet come from?

The AGI environment come from Asterisk

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.