Callerid change using .call file

Hi All,

I want a system that dialing a list of numbers and when users answer it should execute AGI, so far dialing part and AGI part is completed, I am using .call file feature to accomplished this task.

I need help to change the callerid when the system dials. I am using asterisk 1.6 version over ISDN PRI’s

SAMPLE .call file:

Channel: DAHDI/g12/923375406437
Callerid: 03332564322
MaxRetries: 0
RetryTime: 20
WaitTime: 10
Context: from-pstn
Extension: 123
Priority: 1
Application: AGI
Data: agi://localhost/mainflow.agi

Is there is any settings required in any asterisk conf files to change Callerid??

Many many thanks in advance

Use a local channel.

thanks david for your reply,

you mean call file must be like mention below??

Channel: Local/g12/923375406437
Callerid: 03332564322
MaxRetries: 0
RetryTime: 20
WaitTime: 10
Context: from-pstn
Extension: 123
Priority: 1
Application: AGI
Data: agi://localhost/mainflow.agi

May be one of my another system will be on SS7 (chan_ss7) so the above call file (with Local Channel) is same for that system as well?

Local channels allow one to reference a dialplan extension in contexts which which require a technology/address device address. The extension should set th caller ID and then Dial the original device address.

david many thanks for replying,

I would highly appreciate if you please further explain what you said in your last reply.thanks

Local/g12/923375406437 is not valid

examples of valid are

DAHDI/g12/923375406437

or

Local/923375406437@from-internal

but if you are using PRI , does the supplier let you change the callerid