Advanced Scenarios
Examples provided in this first section are supported by the following codec policy and media profile.
codec-policy
name net182
allow-codecs *
add-codecs-on-egress AMR::PT97-5-6-7
order-codecs
force-ptime disabled
packetization-time 20
dtmf-in-audio disabled
media-profile
name AMR
subname PT97-5-6-7
media-type audio
payload-type 97
transport RTP/AVP
req-bandwidth 0
frames-per-packet 0
parameters mode-set="5,6,7"
average-rate-limit 0
peak-rate-limit 0
max-burst-size 0
sdp-rate-limit-headroom 0
sdp-bandwidth disabled
police-rate 0
standard-pkt-rate 0
The following SDP reflects the case where the offer and answer specify non-matching mode-sets.
SDP | Contents |
---|---|
Offer received from session initiator |
|
Offer sent to responder (per the net192 codec policy) |
|
from AMR/PT97-5-6-7 media profile |
|
initiator offer |
|
Answer received from responder |
|
Answer sent to initiator |
|
Codecs | Match | Values |
---|---|---|
codecs | match | AMR/AMR |
payload formats | match | bandwidth-efficient (default value) |
mode-sets | no match | (1,2,3,6) / (5,6,7) |
payload mapping | no match | 96/97 |
Here, given that the offer mode-set (1,2,3,4) does not intersects with the answer mode-set (5,6,7), transcoding is required.
The following SDP reflects the case where the offer and answer specify intersecting mode-sets.
SDP | Contents |
---|---|
Offer received from session initiator |
|
Offer sent to responder (per the net192 codec policy) |
|
from AMR/PT97-5-6-7 media profile |
|
initiator offer |
|
Answer received from responder |
|
Answer sent to initiator |
|
Codecs | Match | Values |
---|---|---|
codecs | match | AMR/AMR |
payload formats | match | bandwidth-efficient (default value) |
mode-sets | no match | (1,2,3,4) / (4,5,6,7) |
payload mapping | no match | 96/97 |
Here, given that the offer mode-set (1,2,3,4) intersects with the answer mode-set (4,5,6,7), transcoding is not required; payload type mapping is used.
Examples provided in this next section are supported by the following codec policy and media profiles.
codec-policy
name net192
allow-codecs *
add-codecs-on-egress AMR::PT96-MAXRED AMR::PT97-BE-0257
AMR::PT98-OA AMR::PT99-OA-0257
order-codecs
force-ptime disabled
packetization-time 20
dtmf-in-audio disabled
media-profile
name AMR
subname PT96-MAXRED
media-type audio
payload-type 96
transport RTP/AVP
req-bandwidth 0
frames-per-packet 0
parameters max-red=220
average-rate-limit 0
peak-rate-limit 0
max-burst-size 0
sdp-rate-limit-headroom 0
sdp-bandwidth disabled
police-rate 0
standard-pkt-rate 0
media-profile
name AMR
subname PT97-BE-0257
media-type audio
payload-type 97
transport RTP/AVP
req-bandwidth 0
frames-per-packet 0
parameters mode-set="0,2,5,7"
average-rate-limit 0
peak-rate-limit 0
max-burst-size 0
sdp-rate-limit-headroom 0
sdp-bandwidth disabled
police-rate 0
standard-pkt-rate 0
media-profile
name AMR
subname PT98-OA
media-type audio
payload-type 98
transport RTP/AVP
req-bandwidth 0
frames-per-packet 0
parameters octet-align=1
average-rate-limit 0
peak-rate-limit 0
max-burst-size 0
sdp-rate-limit-headroom 0
sdp-bandwidth disabled
police-rate 0
standard-pkt-rate 0
media-profile
name AMR
subname PT99-OA-0257
media-type audio
payload-type 99
transport RTP/AVP
req-bandwidth 0
frames-per-packet 0
parameters mode-set="0,2,5,7",octet-align=1
average-rate-limit 0
peak-rate-limit 0
max-burst-size 0
sdp-rate-limit-headroom 0
sdp-bandwidth disabled
police-rate 0
standard-pkt-rate 0
The following SDP reflects the case where the offer and answer differ only in the inclusion of an AMR/AMR-WB parameter in the answer.
SDP | Contents |
---|---|
Offer received from session initiator |
|
Offer sent to responder (per the net192 codec policy) |
|
from AMR/PT97-BE-0257 media profile |
|
from AMR/PT98-OA media profile |
|
from AMR/PT99-OA-0257 media profile |
|
initiator offer |
|
Answer received from responder |
|
Answer sent to initiator |
|
Codecs | Match | Values |
---|---|---|
codecs | match | AMR/AMR |
payload formats | match | bandwidth-efficient (default value) |
mode-sets | match | inclusive mode-set (0,1,2,3,4,5,6,7) |
payload mapping | match | 96/96 |
Here, given that the offer/answer are identical except for the AMR max-red parameter, neither transcoding nor payload type matching is required.
The following SDP reflects the case where the offer and answer differ only in the inclusion of an AMR/AMR-WB parameter in the offer.
SDP | Contents |
---|---|
Offer received from session initiator |
|
Offer sent to responder (per the net192 codec policy) |
|
from AMR/PT96-MAXRED media profile |
|
from AMR/PT98-OA media profile |
|
from AMR/PT99-OA-0257 media profile |
|
initiator offer |
|
Answer received from responder |
|
Answer sent to initiator |
|
Codecs | Match | Values |
---|---|---|
codecs | match | AMR/AMR |
payload formats | match | bandwidth-efficient (default value) |
mode-sets | match | (0,2,5,7) / (0,2,5,7) |
payload mapping | match | 97/97 |
Here, given that the offer/answer are identical except for the AMR max-red parameter, neither transcoding nor payload type matching is required.