CISCO 300-815 Exam Question 34

Refer to the exhibit. Outbound calls to the service provider cause intermittent errors due to a codec mismatch. The internal network sends early offer SDP that contains only G.711 A-law. The service provider reports that some destinations support only G.711 A-law while others support only iLBC. The service provider also allows only 20 active calls at a time. Which configuration allows successful media negotiation for all calls using outbound dial peers 5002 and 5003?
A. dial-peer voice 5002 voip
codec g711alaw ilbc
!
dial-peer voice 5003 voip
codec g711alaw ilbc
B. dial-peer voice 5002 voip
voice-class codec 101 offer-all
!
dial-peer voice 5003 voip
voice-class codec 101 offer-all
C. dial-peer voice 5002 voip
voice-class codec 101
!
dial-peer voice 5003 voip
voice-class codec 101
D. dial-peer voice 5002 voip
codec g711alaw
!
dial-peer voice 5003 voip
codec ilbc
Correct Answer: B