Setting Callerid for Originate app

I’m using Originate() in a dialplan but when it calls out the callerid is not set. How can I go about getting Callerid with this? I do have a callerid number in the dialplan and even tried setting one right before but nothing applies. I see the other originate instances have a callerid field like in AMI but in the wiki this one does not seem to have one.

That’s currently a “ToDo” for the Originate app, specifically to respect dialplan variables as set on the outbound call leg.

Oh ok didn’t know that. Thanks for the fast response!

No problem. :smile:

Cheers.

Can’t you originate to a Local channel that then sets the CLID?

Yes, you should be able to; I just don’t like doing it that way, it’s not as clean as simply calling Originate. :frowning:

That would work? I thought I had tried that but when it calls out the callerid is still not set and in the CLI it executes the SET callerid only after the call is answered. If I can get this working for now it would be an ok workaround till it becomes added in.

The callerid should be set before the call starts dialing. How do you perform your dialing

if it is a .call file. you have to set caller id in .call file itself and then take it to dialplan.

Else you have to set the callerid in dialplan and should dial after that.

Thanks,
marutha

Accessed on local channel as channel side of originate

exten => …,n,Set(CALLERID(num)=…)
exten => …,n,Dial(…)

[quote=“david55”]Accessed on local channel as channel side of originate

exten => …,n,Set(CALLERID(num)=…)
exten => …,n,Dial(…)[/quote]

Thank you, had originate calling out a trunk and passing it to a local channel originally. This looks like it should work.