Hi Guys,
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
sys.stdout.write(‘EXEC Set(CALLERID(num)=8001234567)\n’)
Neither worked.
I also tried without the EXEC, I tried adding:
sys.stdout.flush()
and
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)=” ?
Thanks,
Dave