Variable for Caller ID

What’s the variable for the caller ID of an inbound call? I checked here and tried ${CALLERIDNUM} but I get the called party’s extension instead. I tried the other ones but I wasn’t lucky.

We’re using Asterisk 1.2.13 with SIP.

Thanks in advance!

at the CLI look at CLI> show function CALLERID

you probably want CALLERID(num)

How about from the dialplan? I’m trying to pass a variable to an AGI script.

Thanks but I tink this is not the one. This gives my caller ID (my current extension), I need the caller’s caller ID.

well it works for me (and many others). show us your inbound context.

Ugh. This is my bad. I didn’t notice that there was a SetCallerID with a higher priority. Thanks!