Why is Asterisk not a SIP Proxy?
Asterisk is *not* a SIP proxy. A SIP proxy handles call control on behalf of other user agents (UA) and usually does not maintain state during a call and therefore is never the endpoint of a call.
Asterisk, as a server, is a SIP registrar and location server and also acts as a useragent endpoint (softphone).
If it is ‘controlling’ or relaying a call from a SIP phone to another SIP phone, it simply acts as an endpoint UA to the originating call leg and then creates a new call to the receiving phone. Therefore, it stays “in the middle of the call,” maintaining state and controlling, and optionally bridging, each remote endpoint. The audio channels (RTP) may go directly from phone to phone or may go through Asterisk’s media bridge.
Asterisk can thus be described best as a “back-to-back user agent” (B2BUA), which is also consistent with the use of the term “PBX”. Because of this architecture, fairly simple SIP functions, such as REFER (transfer) involve more aspects of the Asterisk core. On the other hand, the architecture provides additional power and flexibility, because each call leg can just as easily be replaced with a different technology channel (ZAP, H323, MGCP, etc) and, thus, Asterisk becomes a powerful media gateway.
Open Source SIP Proxys
Excellent open source SIP Proxys are available on the Internet. Check
- FreeSwitch: SIP Proxy and PBX
- SIP Express Router: SER is used by many SIP providers standalone or in conjunction with Asterisk
- Vovida.org
- sipX from SIPfoundry is a native SIP proxy but also a complete SIP PBX
- OpenSER – scalable and robust SIP server with TLS support
See also
- FreeSwitch: Combining Asterisk and SIP Proxy
- Asterisk at large: Combining SER and Asterisk
- Asterisk cmd SIPredirect: Sending out a 302 temporarily moved with Asterisk 1.2.x
- Realtime Integration Of Asterisk With OpenSER – step by step integration of Asterisk with OpenSER to provide media services (voicemail service with MWI, conferencing, IVR, …) to large number of VoIP subscribers
- http://lists.digium.com/pipermail/asterisk-users/2007-July/191607.html: Attempt on asterisk-user Mailinglist to explain Asterisk vs. SIP-Proxy