ATech Machine LIBRA-02 M Technické informace Strana 184

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 734
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 183
over SIP. In our example, we will creatively refer to the two servers as serverA and
serverB.
The first file that must be modified is /etc/asterisk/sip.conf. This is the main configura-
tion file for setting up SIP accounts. First, this entry must be added to sip.conf on
serverA. It defines a SIP peer for the other server:
[serverB]
;
; Specify the SIP account type as 'peer'. This means that incoming
; calls will be matched on IP address and port number. So, when Asterisk
; receives a call from 192.168.1.102 and the standard SIP port of 5060,
; it will match this entry in sip.conf. It will then request authentication
; and expect the password to match the 'secret' specified here.
;
type = peer
;
; This is the IP address for the remote box (serverB). This option can also
; be provided a hostname.
;
host = 192.168.1.102
;
; When we send calls to this SIP peer and must provide authentication,
; we use 'serverA' as our username.
;
username = serverA
;
; This is the shared secret with serverB. It will be used as the password
; when either receiving a call from serverB, or sending a call to serverB.
;
secret = apples
;
; When receiving a call from serverB, match it against extensions
; in the 'incoming' context of extensions.conf.
;
context = incoming
;
; Start by clearing out the list of allowed codecs.
;
disallow = all
;
; Only allow the ulaw codec.
;
allow = ulaw
Be sure to change the host option to match the appropriate IP address
for your own setup.
148 | Chapter 7:Outside Connectivity
Zobrazit stránku 183
1 2 ... 179 180 181 182 183 184 185 186 187 188 189 ... 733 734

Komentáře k této Příručce

Žádné komentáře