Event differences between Set variable in diaplan vs via AGI

I am seeing some strange behavior if I set the CALLERID(num) variable over FastAGI session versus directly in the dialplan, like:

  • Dialplan

exten => _9NXN.,1,Set(CALLERID(num)=8775551212)

  • AGI

DEBUG agi: >>> EXEC SET CALLERID(num)=8775551212
DEBUG agi: <<< 200 result=0

When set in the dialplan, all is fine, when set successfully over AGI I see some anomalies. Is there any fundamental difference between the two in terms of what events may get affected over the Manager API?

There does appear to be a slight difference:

gist.github.com/18654

Described here:

dl-client.getdropbox.com/u/25511 … vs_AGI.mov

What if you change it to this?

SET CALLERID 8775551212

asterisk*CLI> agi show set callerid
Usage: SET CALLERID
Changes the callerid of the current channel.