SIP users and peers - a confusing concept
Sunday, February 27th, 2005Lately, especially when training people in Asterisk, I\’ve been looking at some of the basic concepts in Asterisk with new eyes. One of the concepts is the SIP user, peer and friends. This concept came from the IAX channel, which has a protocol that clearly defines a user that places a call and a peer that receives a call. In the SIP channel, I find this very confusing as soon as you are trying to do something different from connecting a phone directly to your Asterisk server.
In Asterisk CVS head, version 1.1dev, I\’ve added the capability to configure the peer with the same variables as previously only existed in a user. A SIP peer now supports all of the SIP device configuration settings. With this part done, I\’ll start experimenting with using the peer as both a peer and a user. One object, one client. Let\’s call that configuration object a phone or a client.
After that is done, I\’ll start with trying to simplify configurations for a service - connecting to a SIP provider with Asterisk as a SIP phone client - and a trunk - connecting to a gateway or another Asterisk server. The goal is to make connecting to a SIP service provider like Broadvoice, BBtele.se or FreeWorldDialup a much more simple process. Today, it is way too complicated and hard to explain.




