Polycom caller id

Can anyone tell me why I cannot see anything in the sip header for my polycom phone

extensions.conf

same => n,Verbose(${SIP_HEADER(Remote-Party-ID)})

sip.conf

template-polycom
type=peer
host=dynamic
port=5060
dtmfmode=rfc2833
canreinvite=yes
disallow=all
allow=ulaw
allow=alaw
context=default

1000
username=XXXXXX
secret=XXXXXXX
callerid=1000

Not sure why a phone would send this header. Can you provide sip debug output showing it being received?

Also note that current version of Asterisk have a trustrpid option which causes the value of this header to take preference over the From header, in setting the caller ID, if it is present. Of course callerid in sip.conf takes precedence over both; why would you want the phone’s caller ID setting if you are going to override it, anyway?

Also canreinvite has been deprecated since Asterisk 1.8 and may even be obsolete, and the current default for directmedia is yes.

Thanks I just used the callerid variable and now it works.

Thank you for your help