If I understand your problem correctly, you seem to want to update the CONNECTEDLINE properties and not dhe CALLERID. The outbound channel does not exist before Dial gets called, so you need to do that in a predial handler.
You may also find you’re provider will only accept the callerID of numbers you’ve paid for or proved you own. In the past I would set up local caller ID’s for my wife to use to call people who owed us money but a few years back, that stopped being allowed.
I think it was so misused by scammers it had to go, but it was nice while it lasted. I always had it set up so we could send 123-456-7890 as a CID when we didn’t want to show who we were. That one got answered more often than not.
Thanks guys! This worked! Works a charm now! But now, I have a new issue. Incoming calls give me an error saying it couldn’t be found in context “unauthenticated” Does anyone know why this may be the case?
Because your configuration (sip.conf) says to go to that context and the exten does not exist in that context. That’s a guess, but without a console log (maybe including SIP debugging) wrapped in preformatted text tags, all we can do is guess.