I have an extension where the user will call his local access number. This number will connect to Asterisk and Asterisk will call another long distance number to finally connect the two parties.
I am using Dial(SIP/mytrunk/LD) to call the long distance number. But I would like to dynamically override the CallerID on that SIP/mytrunk/LD call.
Can I do that with Dial() or do I need to do this somewhere else? I was thinking, passing a variable from the dialplan to sip.conf as the CallerID? I doubt this will work as the sip.conf is parsed only when forced.
Thanks for your input,