Asterisk: callerid is shown as anonymous

1.5k Views Asked by At

I'm trying to use asterisk to dial auto calls, but the problem is that the callerid is shown anonymous in the client device. so how can I set the callerid to be shown correctly in the client device?

1

There are 1 best solutions below

0
On

You're probably originating that call. Two methods are responsible for that:

ast_pbx_outgoing_app
ast_pbx_outgoing_exten

Based on how the origination is done, you may need to slightly modify apps/app_originate.c or res/res_clioriginate.c.

If you're using AMI (The Asterisk Manager Interface) to originate the call, you can just simply "Set" the variable CALLERID(all) to whatever you want to use.

The anonymous is the default value when NULL callerid is passed to one of the functions.