Deprecated SetCallerID ? New function not working

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:
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)=” ?



Professionally, yes you should try and get it working with Set(CALLERID(all)=blah).
Functionally, if it’s working - just be aware that on the next release 1.6, deprecated stuff in 1.4 will get taken out.