第15章 IP电话配置.pdf

发布于:2021-12-03 11:12:36

IP
IP IP H.225 H.245 IP IP ,RTP/RTCP FXS H.323 FXO / PSTN/PBX FXS , H.323

u u u u IP
voip h323

15.1

FXS Foreign eXchange Station FXO Foreign eXchange Office

15.1.1

Router

config

voice-port

<STRING>

& IP IP S3 show run
Copyright ? 2004 Maipu Communication All Rights Reserved.

x/y 3/1

1

Router Router

config

voice-port 0

config-voice-port #

codec <g723 / g729 / g711a>

G.711a G.723 G.729 G.729 G.723

volume

<Number> <STRING>

number FXO

0 63 <STRING> FXO

connection-plar

[no] shutdown jbuf <0_16>

15.1.2
FXS

Router(config)#voice-port 0/0 Router(config-voice-port)#volume 28 Router(config-voice-port)#codec g729 Router(config-voice-port)#no shutdown

0/0 28 g729

& shutdown

15.2
VoIP

VOIP
Voice over IP dial-peer ,

POTS VoIP 1 IP IP

PSTN

(Z

)

Copyright ? 2004 Maipu Communication

All Rights Reserved.

2

15-1

2

15-2

15.2.1
Router#configure terminal Router(config)#

dial-peer <1_255> <pots/voip>

map 1 255

pots

voip

pots Router(config)#dial-peer 1 pots Router(config-dial-peer)#

destination-pattern port <STRING>

<STRING>

E.164 pots

voip
Copyright ? 2004 Maipu Communication All Rights Reserved.

3

Router(config)#dial-peer 1 voip Router(config-dial-peer)#

destination-pattern session-target dt

<STRING>

E.164 VoIP IP

<STRING>

15.2.2
Router(config)#

dial

peer 1 pots 111 111 111 0/0

destination-pattern port 0/0

Router(config)#

dial

peer 1 voip 111

h323

/ 111

destination-pattern session-target 1.1.1.1

ip

15.2.3

A l

/

111 5148111 l

5148222

222

PSTN

Copyright ? 2004 Maipu Communication

All Rights Reserved.

4

15-3

2

Router(config)#dial

peer 1 voip

h323

/ 1

Router(config)#destination-pattern 1 Router(config)#session-target 1.1.1.1 Router(config)#dt 111 ip 1

111

& 111 1

Router(config)#dial

peer 1 voip

h323

/ 1

Router(config)#destination-pattern 5148222 Router(config)#session-target 2.2.2.2 Router(config)#dt 222 ip 5148222

222

& 5148222 destination-pattern B * * 222 dt

Copyright ? 2004 Maipu Communication

All Rights Reserved.

5

.

Router(config)#

dialplan terminator <#/*/CR>

# *

C

IP *123**

15 /*

*123*#

15-4

& PSTN 111
Copyright ? 2004 Maipu Communication All Rights Reserved.

5148333

5148222

111

111#

6

2 Router(config)#voice-port 3/0

connection-plar 111

5148222

111

& IP FXO

15.2.4
15.2.4.1

15-5

& FXS IP S2

FXS pots voip

1

pots 1

voip

Router#configure terminal Router(config)#dial-peer 1 pots Router(config-dial-peer)#destination-pattern 111 Router(config-dial-peer)#port 2/0 111 111 2/0

Copyright ? 2004 Maipu Communication

All Rights Reserved.

7

Router(config-dial-peer)#exit Router(config)#dial-peer 2 voip Router(config-dial-peer)#destination-pattern 222 Router(config-dial-peer)#session-target 1.1.1.2 Router(config-dial-peer)#exit ip voip

2

Router# configure terminal Router(config)#dial-peer 1 pots Router(config-dial-peer)#destination-pattern 222 Router(config-dial-peer)#port 2/0 Router(config-dial-peer)#exit Router(config)#dial-peer 2 voip Router(config-dial-peer)#destination-pattern 111 Router(config-dial-peer)#session-target 1.1.1.1 Router(config-dial-peer)#exit ip voip 222 222 2/0

1

2

Router(config)#voice-port 2/0 Router(config-voice-port)#codec g729 Router(config-voice-port)#no shutdown g729

15.2.4.2

Copyright ? 2004 Maipu Communication

All Rights Reserved.

8

15-6

& FXS S2/0 FXS FXO FXO IP

pots

voip

1

pots 1

voip

Router# configure terminal Router(config)#dial-peer 1 pots Router(config-dial-peer)#destination-pattern 111 Router(config-dial-peer)#port 2/1 Router(config-dial-peer)#exit Router(config)#dial-peer 2 voip Router(config-dial-peer)#destination-pattern 222 Router(config-dial-peer)#session-target 1.1.1.2 Router(config-dial-peer)#exit Router(config)#dial-peer 3 voip Router(config-dial-peer)#destination-pattern 9....... Router(config-dial-peer)#session-target 1.1.1.3 , ip ip voip 111 111 2/1

Copyright ? 2004 Maipu Communication

All Rights Reserved.

9

Router(config-dial-peer)#exit

2

Router# configure terminal Router(config)#dial-peer 1 pots Router(config-dial-peer)#destination-pattern 222 Router(config- dial-peer)#port 2/1 Router(config- dial-peer)#exit Router(config)#dial-peer 2 voip Router(config-dial-peer)#destination-pattern 111 Router(config-dial-peer)#session-target 1.1.1.1 Router(config-dial-peer)#exit Router(config)#dial-peer 3 voip Router(config-dial-peer)#destination-pattern 9....... Router(config-dial-peer)#session-target 1.1.1.3 Router(config-dial-peer)#exit , ip ip voip 222 222 2/1

3

Router# configure terminal Router(config)#dial-peer 1 pots Router(config-dial-peer)#destination-pattern 9....... Router(config- dial-peer)#port 2/1 Router(config- dial-peer)#exit Router(config)#dial-peer 2 voip Router(config-dial-peer)#destination-pattern 111 Router(config-dial-peer)#session-target 1.1.1.1 Router(config-dial-peer)#exit Router(config)#dial-peer 3 voip Router(config-dial-peer)#destination-pattern 222 Router(config-dial-peer)#session-target 1.1.1.2 ip voip ip voip 9....... 9 2/1

Copyright ? 2004 Maipu Communication

All Rights Reserved.

10

Router(config-dial-peer)#exit

2 1 2

Router(config)#voice-port 2/1 Router(config-voice-port)#codec g729 Router(config-voice-port)#no shutdown g729

3

Router(config)#voice-port 2/1 Router(config-voice-port)#codec g729 Router(config-voice-port)#no shutdown Router(config-voice-port)#connection Router(config-voice-port)#exit plar 111 5148333 111 g729

&

5148333

111 5148333 111 222

connectiong plar

3 1 /

Router# configure terminal Router(config)#dial-peer 1 pots Router(config-dial-peer)#destination-pattern 111 Router(config- dial-peer)#port 2/1 Router(config- dial-peer)#exit 111 111 2/1

Copyright ? 2004 Maipu Communication

All Rights Reserved.

11

Router(config)#dial-peer 2 voip Router(config-dial-peer)#destination-pattern 5148222 Router(config-dial-peer)#session-target 1.1.1.2 Router(config-dial-peer)#dt 222 Router(config-dial-peer)#exit Router(config)#dial-peer 3 voip Router(config-dial-peer)#destination-pattern... Router(config-dial-peer)#session-target 1.1.1.3 Router(config-dial-peer)#dt 95148...

voip

ip 2 222

, ip 7 9

& dt destination-pattern dt

5148222 123 2 5148123

222

Router# configure terminal Router(config)#dial-peer 1 pots Router(config-dial-peer)#destination-pattern 222 Router(config-dial-peer)#port 2/1 Router(config-dial-peer)#exit Router(config)#dial-peer 2 voip Router(config-dial-peer)#destination-pattern 111 Router(config-dial-peer)#session-target 1.1.1.1 Router(config-dial-peer)#exit Router(config)#dial-peer 3 voip Router(config-dial-peer)#destination-pattern 9............. , ip voip 222 222 2/1

Router(config-dial-peer)#session-target 1.1.1.3

ip

Copyright ? 2004 Maipu Communication

All Rights Reserved.

12

Router(config-dial-peer)#exit Router(config)# dialplan terminator

& 111 95148123 voip 5148123 voip 15.2.4.3 11 139123456789 913912345678 pots

15-7

& FXS S2 FXS pots PC voip netmeeting PC IP

PC

netmeeting

1

2

Copyright ? 2004 Maipu Communication

All Rights Reserved.

13

pots voip

Router#configure terminal Router(config)#dial-peer 1 pots Router(config-dial-peer)#destination-pattern 222 Router(config- dial-peer)#port 2/1 Router(config- dial-peer)#exit Router(config)#dial-peer 2 voip Router(config-dial-peer)#destination-pattern 111 Router(config-dial-peer)#session-target 192.168.0.1 Router(config-dial-peer)#exit ip voip 222 222 2/1

Router(config)#voice-port 2/1 Router(config-voice-port)#codec g729 Router(config-voice-port)#no shutdown Router(config-dial-peer)#exit g729

2

PC

netmeeting
Copyright ? 2004 Maipu Communication All Rights Reserved.

14

15-8

IP 1.1.1.2 & PC ping 1.1.1.2 PC

15.3
H.323

h323
, IP , IP PSTN

Registration, Admission, Status

15.3.1

Registration, Admission, Status

H.323

Copyright ? 2004 Maipu Communication

All Rights Reserved.

15

,

,

,

,

,

15.3.2
1

h.323
pots

Router(config)#

dial-peer <1_255> pots destination-pattern dialer_string port 0/0

pots

0/0

2

voip

Router(config)# dial-peer 1 voip

destination-pattern <STRING> supported-prefix

session-target

ras

RAS

IP

3

Router(config)#int s0/0

h323-gateway voip interface h323-gateway voip h323-id <STRING> h323-gateway voip id <STRING> <ipaddr/ multicast> <STRING/CR> h323-gateway voip supported-prefix <STRING> STRING ipaddr ip STRING

&

Copyright ? 2004 Maipu Communication

All Rights Reserved.

16

Multicash 4 Router(config)#

ipaddr

gateway

15.3.3

Router(config)#dial-peer 1 pots Router(config-dial-peer)#destination-pattern 5219609 Router(config-dial-peer)#port 0/0 Router(config-dial-peer)#exit Router(config)#dial-peer 2 voip Router(config-dial-peer)#destination-pattern 5213541 Router(config-dial-peer)#supported-prefix Router(config-dial-peer)#session-target ras 8#

pots 5219609 0/0

RAS

IP

Router(config-dial-peer)#exit Router(config)#int f0 Router(config-if-fastethernet0)#ip address 128.255.255.244 255.255.0.0 Router(config-if-fastethernet0)#h323-gateway voip h323-id mp Router(config-if-fastethernet0)#h323-gateway voip id gk multicast Router(config-if-fastethernet0)#h323-gateway voip supported-prefix 7# Router(config-if-fastethernet0)#h323-gateway voip interface 7# RAS

Router(config-if-fastethernet0)#no shutdown Router(config-if-fastethernet0)#exit Router(config)#gateway

Copyright ? 2004 Maipu Communication

All Rights Reserved.

17

15.4 IP
1 IP

Router(config)#

debug

voipdrv

<STRING> voipdrv

<STRING> busytone event status all

<all/busytone/events/resource/status>

& 0/1 show run 2 IP

Router(config)#

no debug all

& IP 2VOP 2VOS IP 1 Router# H.225 RJ45 RJ45

debug h225

<events/asn1>

H225 ASN1 H225

events ASN1

2 Router#

H.245

debug h245

<events/asn1>

H245 ASN1 H245

events ASN1

Copyright ? 2004 Maipu Communication

All Rights Reserved.

18

IP Router#

no debug all

3 Router(config)#

autoscanbusytone voipdrv <STRING1> < STRING2>

<STRING1> <STRING2> 1 l */* ??? ( ) l 2 l */* ??? ( ) config */* config */*

PBX

VOS

PBX autoscanbusytone PBX VOS ??? PBX

PBX autoscanbusytone VOS ??? PBX

PBX

l
PBX

??? VOS VOS

Copyright ? 2004 Maipu Communication

All Rights Reserved.

19


相关推荐

最新更新

猜你喜欢