Skip to Content
Switching to VoIP
book

Switching to VoIP

by Theodore Wallingford
June 2005
Intermediate to advanced
502 pages
21h 48m
English
O'Reilly Media, Inc.
Content preview from Switching to VoIP
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
322
|
Chapter 13: Network Infrastructure for VoIP
Controlling Codec Selection in Asterisk SIP Peers
Asterisk’s sip.conf file, in /etc/asterisk, contains entries for each SIP endpoint or trunk
that can communicate with the Asterisk SIP server agent. Each entry can have multi-
ple
allow and disallow keywords, which indicate what codecs are to be used for each
peer. The following configuration sets up a group of LAN phones and a group of
remote, WAN-connected phones:
[general]
disallow=all
allow=ulaw
allow=g279
allow=speex
[301]
; phone on same LAN as
callerid="Jake" <301>
context=Cleveland
host=dynamic
type=friend
username=301
secret=browns
[402]
; phone in remote location, connected by WAN
disallow=all
allow=g729
callerid="Maddie" <402>
context=Maui
host=dynamic
type=friend
username=402
secret=aloha
You can refer back to Project 6.1 for more details about per-peer codec
selection on Asterisk.
Directory Services
Directory services transform your VoIP network from a transport apparatus into a set
of user-friendly voice applications. Without directory services, the network can do
very little. Sure, you can make IP-to-IP phone calls, and you might not mind memo-
rizing IP addresses instead of E.164 numbers or SIP URIs. But, of course, there’s a
better way to get hold of people.
On the PSTN, that better way is the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Voice over IP First-Step

Voice over IP First-Step

Kevin Wallace
Securing VoIP

Securing VoIP

Regis Jr (Bud) Bates
Low-cost Smart Antennas

Low-cost Smart Antennas

Qi Luo, Steven Shichang Gao, Chao Gu, Wei Liu

Publisher Resources

ISBN: 0596008686Catalog PageErrata