1
00:00:08,220 --> 00:00:13,170
Now let's talk about a concept that a lot of engineers struggle with which is incoming and outgoing

2
00:00:13,170 --> 00:00:17,140
Gulp is for incoming and outgoing call legs.

3
00:00:17,190 --> 00:00:23,100
The first thing to remember is always look at adult is from the point of view of the road not from the

4
00:00:23,100 --> 00:00:24,600
phone's point of view.

5
00:00:24,630 --> 00:00:34,050
In other words from the rudest point of view when 1000 phones 1001 there is an incoming call from 1000

6
00:00:34,140 --> 00:00:41,920
and an outgoing call to 1001 so from the writer's point of view there is an incoming call late or incoming

7
00:00:41,930 --> 00:00:42,720
WPA.

8
00:00:42,850 --> 00:00:46,220
When the call arrives from telephone 1000.

9
00:00:46,240 --> 00:00:53,330
So this is an incoming call leg when the call is established to 1001.

10
00:00:53,390 --> 00:00:56,530
That is an outgoing call leg or outgoing dull.

11
00:00:56,560 --> 00:01:01,590
Yeah essentially what happens is the rudder breaks the call up into two parts.

12
00:01:01,730 --> 00:01:09,580
There's the initial call setup from 1000 which is the incoming call leg or incoming Delta the second

13
00:01:09,580 --> 00:01:16,590
half is the establishment of the call to 1001 which is the outgoing call leg or outgoing Delta.

14
00:01:16,780 --> 00:01:21,550
The rudder then combines those to call legs into an internal call.

15
00:01:22,210 --> 00:01:29,050
So we have an incoming call leg and an outgoing call leg to separate calls if you're like or half of

16
00:01:29,050 --> 00:01:34,540
calls which are then bonded together or joined together to form the into n call.

17
00:01:34,540 --> 00:01:39,700
So from the writer's point of view there are two cool legs involved in the establishment of a call from

18
00:01:39,700 --> 00:01:42,130
1000 to 1001.

19
00:01:42,220 --> 00:01:48,890
You have what's called the incoming call leg once again and the outgoing call leg or a call to be established.

20
00:01:48,930 --> 00:01:52,970
There must always be an incoming call leg and an outgoing call leg.

21
00:01:53,070 --> 00:01:58,640
So how does the rider choose which does appear to use as the incoming call leg and which doubled it

22
00:01:58,650 --> 00:02:04,230
to use as the outgoing call leg on our original configuration with these two phones.

23
00:02:04,230 --> 00:02:12,630
We created to Dalby as we credit adults for phone 1000 and we created adult here for phone 1001 so our

24
00:02:12,630 --> 00:02:21,120
configuration would look as follows is adult Pier 1 puts this nation pattern 1000 pointing to the first

25
00:02:21,120 --> 00:02:27,390
port of 0 selection errors there 0 and there's another plot style here pointing to 1001 on the second

26
00:02:27,390 --> 00:02:28,450
port.

27
00:02:28,480 --> 00:02:34,160
Now when a call arrives on the road it the first thing you need to look at is the direction of the call.

28
00:02:34,170 --> 00:02:40,260
So in this example when 1000 phones 1001 the direction is from right to left.

29
00:02:40,980 --> 00:02:47,280
So the call is arriving from 1000 going to 1001.

30
00:02:47,280 --> 00:02:54,180
So from the riders point of view the incoming dot here that is used for 1000 is this all doll.

31
00:02:54,180 --> 00:03:01,290
Pier 1 even though the word destination pattern is configured in the doll pier and this example the

32
00:03:01,290 --> 00:03:04,860
destination pattern is not used as the destination pattern.

33
00:03:04,860 --> 00:03:12,950
It's used as the DNI automatic no identification or CSI whichever term you prefer the caller line ID.

34
00:03:13,080 --> 00:03:17,860
So 1000 is the CLIA that is allocated to the phone.

35
00:03:17,970 --> 00:03:19,440
I'm going to demonstrate this in a moment.

36
00:03:19,760 --> 00:03:21,590
So you'll see exactly what I mean.

37
00:03:21,870 --> 00:03:27,490
But essentially the call is coming from 1000 going to 1001 so dull.

38
00:03:27,500 --> 00:03:34,800
Pier 1 with destination pattern 1000 is uses the incoming WBA adult Pier 2 with this nation pattern

39
00:03:34,800 --> 00:03:36,050
1001.

40
00:03:36,040 --> 00:03:39,160
It uses the outgoing pier.

41
00:03:39,210 --> 00:03:41,210
The reason why is from the rudest point of view.

42
00:03:41,220 --> 00:03:50,100
The call arrived from 1000 and was made to 1001 so it does establish that into then call an incoming

43
00:03:50,100 --> 00:03:56,190
Dole is allocated to this part of the call or call lake and an outgoing adult is allocated to the second

44
00:03:56,190 --> 00:03:57,810
part of the call leg.

45
00:03:57,990 --> 00:04:03,510
The thing to remember is that they are to call legs in this example an incoming call leg and an outgoing

46
00:04:03,510 --> 00:04:12,170
call leg to call legs make the implement call the let's set up a call between this optic communicator

47
00:04:12,440 --> 00:04:18,740
and the optic communicator en route a team so that I can explain some more detail so it's important

48
00:04:18,740 --> 00:04:26,750
to realize that we've got two IP communicators 1004 is registered to the U.S. Five hundred and two thousand

49
00:04:26,750 --> 00:04:30,370
is registered to write it to the going will hook

50
00:04:36,630 --> 00:04:39,930
you can see the call from two thousand two 1004 successful

51
00:04:46,120 --> 00:04:54,770
and I can answer the call and then muted in our example when the call was made from 1004 to thousand.

52
00:04:54,900 --> 00:05:02,700
There was an incoming call leg to the Rada member using the hidden power created by the E F export.

53
00:05:02,790 --> 00:05:09,660
There is an outgoing dollop here from the U.S. 520 V to the VoIP infrastructures so there is an outgoing

54
00:05:09,870 --> 00:05:14,480
VoIP up here on CMC 2 or added two's point of view.

55
00:05:14,480 --> 00:05:22,340
There is an incoming VoIP here and an aunt going hidden pot style peer to the E F access port for the

56
00:05:22,340 --> 00:05:31,910
IP communicator so they are for double peers or for call legs when a call is made from 1040 2000 just

57
00:05:31,910 --> 00:05:33,250
to go through that again.

58
00:05:33,320 --> 00:05:36,920
There is an incoming Potts doll here it's hidden.

59
00:05:36,920 --> 00:05:41,300
It was created when we created the iPhone the for IP phones.

60
00:05:41,420 --> 00:05:44,000
There is an outgoing voice adult here.

61
00:05:44,000 --> 00:05:51,050
There is an incoming VoIP Delta on Roddick 2 and an outgoing hot stop here for the hidden e f access

62
00:05:51,050 --> 00:05:53,580
port for the IP communicator.

63
00:05:53,630 --> 00:06:01,780
So in other words they are for is if we made a call from the IP communicator to the BlackBerry from

64
00:06:01,780 --> 00:06:04,110
the U.S. 500 point of view.

65
00:06:04,150 --> 00:06:11,530
There is an incoming stop here for the hidden E F X a sport and there is an outgoing port stalled on

66
00:06:11,530 --> 00:06:20,830
the ethics O port to get to the PSTN so they are two dull PS so to demonstrate the concept of cool legs

67
00:06:21,160 --> 00:06:27,990
I'm going to make a call from 1000 to 1001 and you should see that from the rudest point of view.

68
00:06:28,000 --> 00:06:31,980
There is an incoming Delta and an outgoing Delta.

69
00:06:32,110 --> 00:06:37,510
The point to remember is always look at Delta is from the rudest point of view not from the phone's

70
00:06:37,510 --> 00:06:38,330
point of view.

71
00:06:38,560 --> 00:06:48,610
When 1000 phones 1001 is an incoming Delta from 1000 and an outgoing does appear to 1001 if the call

72
00:06:48,610 --> 00:06:53,700
was made in the reverse direction it would be an incoming Dolby for this phone one thousand and one

73
00:06:54,160 --> 00:07:00,570
and an outgoing dollop if for 1000 so teleporting to the U.S. 500

74
00:07:05,350 --> 00:07:15,370
I can do the command debug voice C.C. API in out top to month so we can see the DB bucks please be very

75
00:07:15,370 --> 00:07:19,980
careful with this come on in the real world because it's going to produce a lot of output so I'll go

76
00:07:20,030 --> 00:07:20,950
hook on 1000

77
00:07:23,790 --> 00:07:27,840
and you can see already there is a lot of output there and then I'll go on hook again.

78
00:07:34,520 --> 00:07:37,830
So going through the output there's the debug that we typed

79
00:07:40,860 --> 00:07:46,470
you can see here for instance it's a non ISDN call because we making a call from an analog phone and

80
00:07:46,470 --> 00:07:51,060
what I want to point out is notice yet says incoming Delta 1.

81
00:07:51,300 --> 00:07:56,780
The reason why is the call is being made from telephone number 1000.

82
00:07:56,800 --> 00:08:05,040
So that is the source of the call topping the come on show dial dash fear voice summary shows me that

83
00:08:05,040 --> 00:08:12,530
Delta 1 has been configured with telephone number one thousand on Port 0 6 0 7 0

84
00:08:15,970 --> 00:08:24,230
so when I made a call call it originating from 1000 and thus the incoming DOL peers Pier 1

85
00:08:29,040 --> 00:08:36,540
other information to take note of is the digit timeout and into digit timeout by default set to 10 seconds

86
00:08:36,900 --> 00:08:43,200
you have ten seconds when going off foot to put in your first digit and 10 seconds between each digit

87
00:08:43,230 --> 00:08:46,110
before a call is attempted all the call is torn down

88
00:08:50,410 --> 00:08:53,820
so let's go fuck again.

89
00:08:53,890 --> 00:09:03,410
Now I'm gonna double my first digit and you can see the digit that I dialed was 1 second digit.

90
00:09:03,440 --> 00:09:08,010
You can see it's digit zero third digit.

91
00:09:08,090 --> 00:09:10,240
You can see at zero last digit

92
00:09:13,470 --> 00:09:17,160
and you can hear the phone ring and I've just disconnected the call.

93
00:09:17,250 --> 00:09:26,200
Notice that they called Disconnect so if we go through the output again notice yet says outgoing Delta

94
00:09:26,380 --> 00:09:28,400
is Delta 2.

95
00:09:28,450 --> 00:09:36,640
The call is coming from one thousand notice it says Cisco a Anni or automatic no ID or to put into other

96
00:09:36,640 --> 00:09:44,560
terms that people may use calling line ID so see a lie or cell I.D. or meaning.

97
00:09:44,560 --> 00:09:46,790
This is the calling party no.

98
00:09:47,110 --> 00:09:49,900
Notice the destination number is 1001.

99
00:09:50,440 --> 00:09:55,960
But what I want you to take note of these is that the incoming Delta was one and the outgoing gulp is

100
00:09:55,970 --> 00:10:04,260
to show dial dash give voice summary shows us incoming DLP is one.

101
00:10:04,280 --> 00:10:12,880
The call is coming from one thousand outgoing Delta is to call is going to 1001 so back to our simple

102
00:10:12,880 --> 00:10:13,960
example.

103
00:10:13,960 --> 00:10:16,690
We've got a call from 1000 to 1001.

104
00:10:16,780 --> 00:10:21,570
They're going to be to call legs an incoming and outgoing call leg.

105
00:10:21,750 --> 00:10:28,870
So how are incoming colleagues chosen and how are outgoing colleagues chosen if you've only got two

106
00:10:28,870 --> 00:10:31,510
adult is like in this example.

107
00:10:31,510 --> 00:10:38,690
When the call is made from 1000 to 1001 the destination pattern is used for the CLIA.

108
00:10:39,290 --> 00:10:46,630
So in other words DLP one becomes the incoming bulkier and don't get to becomes the outgoing or outgoing

109
00:10:46,630 --> 00:10:47,640
colleague.

110
00:10:47,950 --> 00:10:55,830
When a call is made from 1001 to 1000 then does appear to becomes the incoming bulkier or incoming call

111
00:10:55,830 --> 00:11:01,610
leg and Dulcie one becomes the outgoing call leg or outgoing gulp.

112
00:11:01,960 --> 00:11:09,850
So the direction of the call affects whether adult is used as the incoming or outgoing DLP it unfortunately

113
00:11:09,850 --> 00:11:15,390
can get more complicated than that to choose an incoming WTO inbound all year.

114
00:11:15,480 --> 00:11:21,490
The route to makes the following decision it firstly looks for adult here with this command incoming

115
00:11:21,490 --> 00:11:28,990
cold no which essentially matches the dial number information service or called number or the number

116
00:11:28,990 --> 00:11:32,150
that you dialed to adult peer.

117
00:11:32,260 --> 00:11:38,520
We haven't configured incoming call numbers in our topology but if you had configured an incoming call

118
00:11:38,540 --> 00:11:45,220
number on one of the dope is that adult here would more likely be chosen as the incoming here than others

119
00:11:45,490 --> 00:11:50,030
because the first choice for an incoming adult is based on incoming cold.

120
00:11:50,860 --> 00:11:58,810
This applies to VoIP Potts T1 E1 cars an ISDN bulb is the second choice is based on what's called answer

121
00:11:58,830 --> 00:12:06,890
address which looks for adult here with a command answer address matching the calling number or call

122
00:12:06,890 --> 00:12:10,560
on ID or automatic no identification.

123
00:12:10,570 --> 00:12:16,540
In other words the number that you're calling from it also applies to white clutch t want you on cars

124
00:12:16,930 --> 00:12:18,790
and ISDN is.

125
00:12:18,850 --> 00:12:24,850
So in other words if you've configured a list of dolphins and one of them has incoming call number and

126
00:12:24,850 --> 00:12:29,980
one of them has answer address incoming call number is more likely to be chosen.

127
00:12:29,980 --> 00:12:31,880
I'll show you an example in a moment.

128
00:12:31,930 --> 00:12:33,700
So the first choice is incoming calls.

129
00:12:33,710 --> 00:12:41,500
No second choices answer address and only then is the third choice of incoming bulkier chosen based

130
00:12:41,500 --> 00:12:47,860
on Destination pattern which uses once again the calling number or a Anni to determine the incoming

131
00:12:47,860 --> 00:12:54,420
double yet if none of that is configured then the Rada uses the port to match on an incoming bulkier

132
00:12:55,210 --> 00:13:00,530
set matches the config adult port to the voice port that is associated with incoming call.

133
00:13:00,760 --> 00:13:08,020
That only applies to what stop is because VoIP adult is don't arrive on a port they arrive on an interface.

134
00:13:08,350 --> 00:13:13,570
And if we can match on any of those then we match on a special piece called doll Pier 0.

135
00:13:14,380 --> 00:13:21,130
So let me show you an example to try and clear this up he has a sample topology where we've got 1000

136
00:13:21,400 --> 00:13:27,840
phoning 1000 or 1 and we want to set up an intra in call the right in each to choose an incoming Delta

137
00:13:28,120 --> 00:13:37,240
and an outgoing call yet so the call is made from 1000 to 1000 and one set to match the incoming dob

138
00:13:37,250 --> 00:13:39,710
in the first half of the poll.

139
00:13:39,790 --> 00:13:44,210
Which of the following would be chosen as the incoming bulb.

140
00:13:44,710 --> 00:13:47,710
If we had configured these three adult is on the route.

141
00:13:47,890 --> 00:13:56,170
Notice we've got adult here one incoming cold number 1001 we've got adult voice 2 Potts answer address

142
00:13:56,170 --> 00:13:59,380
one thousand and Delta three parts.

143
00:13:59,620 --> 00:14:01,910
Destination pattern 1000.

144
00:14:02,020 --> 00:14:04,790
Going back to our list of choices.

145
00:14:05,200 --> 00:14:13,150
The first choices based on incoming call number which is based on DNS so the caller arrives at the Rada

146
00:14:13,780 --> 00:14:22,170
it's made from 1000 to 1001 so you must agree that this will match because the called number or dialled

147
00:14:22,180 --> 00:14:26,060
number or DNS number is 1001.

148
00:14:26,230 --> 00:14:34,300
However the C ally also matches answer address and destination pattern but based on what choices this

149
00:14:34,300 --> 00:14:41,200
is chosen first just to remind you first choices choices incoming call no second choices answer address

150
00:14:41,260 --> 00:14:44,200
and third choices destination pattern.

151
00:14:44,200 --> 00:14:49,680
So in this example gold tier 1 is chosen as the incoming gold here.

152
00:14:50,140 --> 00:14:57,640
If we hadn't configured WPA 1 we had only configured these two dolphins then appear to would be chosen

153
00:14:58,000 --> 00:15:02,660
because answer address is chosen before destination pattern.

154
00:15:02,740 --> 00:15:09,970
If we hadn't configured adult there one or Dota 2 and had only configured adult get 3 then this dull

155
00:15:09,970 --> 00:15:16,750
pair would be chosen as the incoming dolphin here because that's the third choice in our list remembered

156
00:15:16,810 --> 00:15:22,680
incoming call no answer address in the destination pattern and we haven't configured an incoming call

157
00:15:22,680 --> 00:15:24,360
number or answer address.

158
00:15:24,550 --> 00:15:30,550
So the next choice is destination pattern if none of those had been configured then the dull pair would

159
00:15:30,550 --> 00:15:37,630
be chosen based on the port if it was a VoIP call as an example or we couldn't use the port then Delta

160
00:15:37,650 --> 00:15:46,270
0 would be use an incoming Delta and an outgoing Delta has to always be chosen if you hadn't configured

161
00:15:46,330 --> 00:15:55,150
any incoming Delta is Delta 0 would be chosen as it said both in here when nothing else matches so when

162
00:15:55,150 --> 00:16:01,900
there's no match the rider will use adult is zero you can configure adult is zero you can't manipulate

163
00:16:01,900 --> 00:16:09,280
it it is bolted to the Iaw and has the following properties none of which you can change so as an example

164
00:16:09,280 --> 00:16:17,020
you cannot disable that you cannot enable X relay if at all possible you should try and avoid the use

165
00:16:17,020 --> 00:16:23,110
of gulp is zero because you cannot control the setting you should always configure your Rada with an

166
00:16:23,140 --> 00:16:25,110
incoming and outgoing Delta.
