I use Asterisk 1.4.22 with Dahdi. When I use the SetCallerID function (which does works) the Asterisk CLI comes back with a warning that the function has been depracated and use : Set(CALLERID(all) instead.
I use Python AGI.
This is what works:
sys.stdout.write(‘EXEC SetCallerID “TEST NAME”<8001234567>\n’)
I tried the following:
sys.stdout.write(‘EXEC Set(CALLERID(all)=“TEST <8001234567>”)\n’)and
I also tried without the EXEC, I tried adding:
result = sys.stdin.readline().strip()
And it still doesn’t display the callerid on outbound calls.
Should I continue to use the deprecated “SetCallerID” ? Or am I doing something wrong with “'EXEC Set(CALLERID(num)=” ?