Chan variables for peer

Home » Asterisk Users » Chan variables for peer
Asterisk Users 2 Comments

Hi all,

I used to configure each of my sip clients with a unique identifier via
setvar. These clients were all configured as “friends.”

However, now that I’ve got some Polycom phones, which MUST be “peers,” I am
unable to define this variable.

For example, this works:

context = default
accountcode = pcc
type = friend
username = username
secret = ya,right
host = dynamic
nat = yes
canreinvite = no
callerid = User <155512345>
mailbox = 155512345@customers,123456
setvar = id=123

However, if I change the type to “peer,” I am unable to get a value for ${id}.

Is this a known limitation, or am I doing something wrong? If this won’t
work, is there a work-around?

2 thoughts on - Chan variables for peer