cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2415
Views
10
Helpful
2
Replies

how to change codec to g729r8 from default g711

sarahr202
Level 5
Level 5

Hi everybody

Please consider the following set up.

                  

                                              (201.201.201.1)

Ipphone1(201.201.201.11)--------CME------------------------ipphone2(201.201.201.12)

Our design requires ipphone1 to use codec g729r8 not default g711.

I did some research and found I could use these commands to accomplish that:

Router(config)# ephone 1

.

Router(config-ephone)# codec g729r8

However, I still see CME is sending open receive channel with payload capability:

G.711 u-law 64k (4). Below is the packet capture

No.     Time        Source                Destination           Protocol Length Info
    118 18.025218   201.201.201.1         201.201.201.11        SKINNY   134    OpenReceiveChannel

Frame 118: 134 bytes on wire (1072 bits), 134 bytes captured (1072 bits)
Ethernet II, Src: Cisco_37:8a:c0 (00:12:d9:37:8a:c0), Dst: Cisco_7b:84:ef (00:06:53:7b:84:ef)
Internet Protocol Version 4, Src: 201.201.201.1 (201.201.201.1), Dst: 201.201.201.11 (201.201.201.11)
Transmission Control Protocol, Src Port: cisco-sccp (2000), Dst Port: 49527 (49527), Seq: 1601, Ack: 153, Len: 80
Skinny Client Control Protocol
    Data length: 72
    Header version: Basic (0x00000000)
    Message ID: OpenReceiveChannel (0x00000105)
    Conference ID: 2
    Pass-thru party ID: 0
    MS/packet: 20
   Payload capability: G.711 u-law 64k (4)
    Echo-cancel type: Media_EchoCancellation_On (1)
    G723 bitrate: Media_G723BRate_6_4 (2)

=============================================================================

1) How can configure CME to instruct ipphone1 to use desired codec not default?

Thanks and have agreat weekend.

1 Accepted Solution

Accepted Solutions

Ayodeji Okanlawon
VIP Alumni
VIP Alumni

As suggested earlier the codec is changed on the ephone as you have done

Can you send a debug ephone state...Also when you do a test call, once the call is connected press the ? button twice, you should see the codec the phone is using

Please rate all useful posts

"'Nature is too thin a screen, the glory of the omnipresent God bursts through it everywhere"-Ralph Waldo Emerson

Please rate all useful posts

View solution in original post

2 Replies 2

Ayodeji Okanlawon
VIP Alumni
VIP Alumni

As suggested earlier the codec is changed on the ephone as you have done

Can you send a debug ephone state...Also when you do a test call, once the call is connected press the ? button twice, you should see the codec the phone is using

Please rate all useful posts

"'Nature is too thin a screen, the glory of the omnipresent God bursts through it everywhere"-Ralph Waldo Emerson

Please rate all useful posts

Hi there

          

Router#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#ephone 1

Router(config-ephone)#codec?

codec

Router(config-ephone)#codec ?

  g711ulaw  Use G.711 u Law 64000 bps voice codec (default)

  g729r8    Use G.729 8000 bps voice codec to save network bandwidth

Router(config-ephone)#codec g729r8

Next I unplug the phones and plug it back

Router#debug ephone state

EPHONE state debugging is enabled

Router#

00:31:15: ephone-2[2][SEP000628F0F7E7]:Keepalive TIMEOUT on socket [2] ephone-2

SEP000628F0F7E7

00:31:15: ephone-2[2]:DisAssociate: Closed socket 2 while REGISTERED

00:31:15: ephone-2[2][SEP000628F0F7E7]: DN out-of-service for DN 2 chan 1

00:31:15: Skinny DN 2 chan 1 state change to DOWN

00:31:15: %IPPHONE-6-UNREGISTER_ABNORMAL: ephone-2:SEP000628F0F7E7 IP:201.201.20

1.12 Socket:2 DeviceType:Phone has unregistered abnormally.

00:31:19: ephone-1[1][SEP0006537B84EF]:Keepalive TIMEOUT on socket [1] ephone-1

SEP0006537B84EF

00:31:19: ephone-1[1]:DisAssociate: Closed socket 1 while REGISTERED

00:31:19: ephone-1[1][SEP0006537B84EF]: DN out-of-service for DN 1 chan 1

00:31:19: Skinny DN 1 chan 1 state change to DOWN

Router#

00:31:19: %IPPHONE-6-UNREGISTER_ABNORMAL: ephone-1:SEP0006537B84EF IP:201.201.20

1.11 Socket:1 DeviceType:Phone has unregistered abnormally.

I plug the phones back now

Router#

00:33:27: %IPPHONE-6-REG_ALARM: 25: Name=SEP000628F0F7E7 Load=8.0(5.0) Last=Init

ialized

00:33:27: ephone-(2)[1] Register StationIdentifier DeviceName SEP000628F0F7E7

00:33:27: ephone-2[-1]:stationIpAddr 201.201.201.12

00:33:27: ephone-2[-1]:Found entry 1 for 000628F0F7E7

00:33:27: ephone-2[-1]:socket change -1 to 1

00:33:27: ephone-2[1]:phone SEP000628F0F7E7 re-associate OK on socket [1]

00:33:27: %IPPHONE-6-REGISTER: ephone-2:SEP000628F0F7E7 IP:201.201.201.12 Socket

:1 DeviceType:Phone has registered.

00:33:27: ephone-2[1][SEP000628F0F7E7]: DN in-service for DN 2 chan 1

00:33:27: Skinny DN 2 chan 1 state change to UP

00:33:32: %IPPHONE-6-REG_ALARM: 25: Name=SEP0006537B84EF Load=8.0(5.0) Last=Init

ialized

00:33:32: ephone-(1)[2] Register StationIdentifier DeviceName SEP0006537B84EF

00:33:32: ephone-1[-1]:stationIpAddr 201.201.201.11

00:33:32: ephone-1[-1]:Found entry 0 for 0006537B84EF

00:33:32: ephone-1[-1]:socket change -1 to 2

00:33:32: ephone-1[2]:phone SEP0006537B84EF re-associate OK on socket [2]

00:33:32: %IPPHONE-6-REGISTER: ephone-1:SEP0006537B84EF IP:201.201.201.11 Socket

:2 DeviceType:Phone has registered.

00:33:32: ephone-1[2][SEP0006537B84EF]: DN in-service for DN 1 chan 1

00:33:32: Skinny DN 1 chan 1 state change to UP

00:33:37: ephone-2[1]:SetCallState line 1 DN 2(-1) chan 1 ref 0 TsOnHook

Router#

Router#

00:33:42: ephone-1[2]:SetCallState line 1 DN 1(-1) chan 1 ref 0 TsOnHook

Both phones have been registered .

Next I make a call from ipphone1(20001)to ipphone2(20002)

0:36:39: ephone-1[2]:OFFHOOK

00:36:39: ephone-1[2]:---SkinnySyncPhoneDnOverlays is onhook

00:36:39: ephone-1[2]:SIEZE on activeLine 0 activeChan 1

00:36:39: ephone-1[2]:SetCallState line 1 DN 1(-1) chan 1 ref 5 TsOffHook

00:36:39: ephone-1[2]:Check Plar Number

00:36:39: DN 1 chan 1 Voice_Mode

00:36:39: dn_tone_control DN=1 chan 1 tonetype=33:DtInsideDialTone onoff=1 pid=1

72

00:36:41: dn_tone_control DN=1 chan 1 tonetype=0:DtSilence onoff=0 pid=172

00:36:41: ephone-1[2]:

bulk_sd_search_lists: button= 0 state NOT_IN_SD

00:36:42: ephone-1[2]:

bulk_sd_search_lists: button= 0 state NOT_IN_SD

00:36:42: ephone-1[2]:

bulk_sd_search_lists: button= 0 state NOT_IN_SD

00:36:43: ephone-1[2]:

bulk_sd_search_lists: button= 2 state NOT_IN_SD

00:36:43: ephone-1[2]:Skinny-to-Skinny call DN 1 chan 1 to DN 2 chan 1 instance

1

00:36:43: ephone-1[2]:SetCallState line 1 DN 1(-1) chan 1 ref 5 TsProceed

00:36:43: ephone-1[2]:SetCallState line 1 DN 1(-1) chan 1 ref 5 TsRingOut

00:36:43: ephone-1[2]::callingNumber 20001

00:36:43: ephone-1[2]::callingParty 20001

00:36:43: ephone-1[2]:Call Info DN 1 line 1 ref 5 call state 1 called 20002 call

ing 20001 origcalled

00:36:43: ephone-1[2]:Call Info DN 1 line 1 ref 5 called 20002 calling 20001 ori

gcalled 20002 calltype 2

00:36:43: ephone-1[2]:Call Info for chan 1

00:36:43: ephone-1[2]:SkinnyDisplayCallInfo No-callingName

00:36:43: ephone-1[2]:SkinnyDisplayCallInfo No-calledName

00:36:43: ephone-2[1]:SetCallState line 1 DN 2(2) chan 1 ref 6 TsRingIn

00:36:43: ephone-2[1]::callingNumber 20001

00:36:43: ephone-2[1]::callingParty 20001

00:36:43: ephone-2[1]:Call Info DN 2 line 1 ref 6 call state 7 called 20002 call

ing 20001 origcalled

00:36:43: ephone-2[1]:Call Info DN 2 line 1 ref 6 called 20002 calling 20001 ori

gcalled 20002 calltype 1

00:36:43: ephone-2[1]:Call Info for chan 1

00:36:43: ephone-2[1]:SkinnyDisplayCallInfo No-callingName

00:36:43: ephone-2[1]:SkinnyDisplayCallInfo No-calledName

00:36:43: ephone-2[1]:Ringer Inside Ring On

00:36:43: dn_tone_control DN=1 chan 1 tonetype=36:DtAlertingTone onoff=1 pid=172

00:36:44: ephone-1[2]::callingNumber 20001

00:36:44: ephone-1[2]::callingParty 20001

00:36:44: ephone-1[2]:Call Info DN 1 line 1 ref 5 call state 1 called 20002 call

ing 20001 origcalled

00:36:44: ephone-1[2]:Call Info DN 1 line 1 ref 5 called 20002 calling 20001 ori

gcalled 20002 calltype 2

00:36:44: ephone-1[2]:Call Info for chan 1

00:36:44: ephone-1[2]:SkinnyDisplayCallInfo No-callingName

00:36:44: ephone-1[2]:SkinnyDisplayCallInfo No-calledName

00:36:46: ephone-2[1]:OFFHOOK

00:36:46: ephone-2[1]:---SkinnySyncPhoneDnOverlays is onhook

00:36:46: ephone-2[1]:Ringer Off

00:36:46: ephone-2[1]:ANSWER call

00:36:46: ephone-2[1]:SetCallState line 1 DN 2(-1) chan 1 ref 6 TsOffHook

00:36:46: ephone-2[1][SEP000628F0F7E7]:Answer Incoming call from ephone-(1) DN 1

chan 1

00:36:46: ephone-2[1]:SetCallState line 1 DN 2(-1) chan 1 ref 6 TsConnected

00:36:46: defer_start for DN 1 chan 1 at CONNECTED

00:36:46: ephone-1[2]:SetCallState line 1 DN 1(-1) chan 1 ref 5 TsConnected

00:36:46: ephone-2[1]::callingNumber 20001

00:36:46: ephone-2[1]::callingParty 20001

00:36:46: ephone-2[1]:Call Info DN 2 line 1 ref 6 call state 4 called 20002 call

ing 20001 origcalled

00:36:46: ephone-2[1]:Call Info DN 2 line 1 ref 6 called 20002 calling 20001 ori

gcalled 20002 calltype 1

00:36:46: ephone-2[1]:Call Info for chan 1

00:36:46: ephone-2[1]:SkinnyDisplayCallInfo No-callingName

00:36:46: ephone-2[1]:SkinnyDisplayCallInfo No-calledName

00:36:46: ephone-1[2]:OpenReceive DN 1 chan 1 codec 4:G711Ulaw64k  duration 20 m

s bytes 160

00:36:46: ephone-2[1]:OpenReceive DN 2 chan 1 codec 4:G711Ulaw64k  duration 20 m

s bytes 160

00:36:46: dn_tone_control DN=1 chan 1 tonetype=0:DtSilence onoff=0 pid=172

00:36:46: DN 2 chan 1 Voice_Mode

00:36:46: DN 1 chan 1 End Voice_Mode

00:36:46: DN 1 chan 1 Voice_Mode

00:36:46: ephone-1[2]:OpenReceiveChannelAck codec has changed from 4 to 11

00:36:46: ephone-1[2]:CloseReceive

00:36:46: ephone-1[2]:StopMedia

00:36:46: ephone-1[2]:OpenReceive DN 1 chan 1 codec 11:G729  duration 20 ms byte

s 20

00:36:46: ephone-2[1]:OpenReceiveChannelAck codec has changed from 4 to 11

00:36:46: ephone-2[1]:CloseReceive

00:36:46: ephone-2[1]:StopMedia

00:36:46: ephone-2[1]:OpenReceive DN 2 chan 1 codec 11:G729  duration 20 ms byte

s 20

00:36:46: ephone-1[2]:OpenReceiveChannelAck:IP 201.201.201.11, port=20030,

               dn_index=1, dn=1, chan=1

00:36:46: ephone-2[1]:StartMedia 201.201.201.11 port=20030

00:36:46: DN 1 chan 1 codec 11:G729 duration 20 ms bytes 20

00:36:46: ephone-2[1]:OpenReceiveChannelAck:IP 201.201.201.12, port=20596,

               dn_index=2, dn=2, chan=1

00:36:46: ephone-1[2]:StartMedia 201.201.201.12 port=20596

00:36:46: DN 2 chan 1 codec 11:G729 duration 20 ms bytes 20

00:36:47: ephone-1[2]::callingNumber 20001

00:36:47: ephone-1[2]::callingParty 20001

00:36:47: ephone-1[2]:Call Info DN 1 line 1 ref 5 call state 4 called 20002 call

ing 20001 origcalled

00:36:47: ephone-1[2]:Call Info DN 1 line 1 ref 5 called 20002 calling 20001 ori

gcalled 20002 calltype 2

00:36:47: ephone-1[2]:Call Info for chan 1

00:36:47: ephone-1[2]:SkinnyDisplayCallInfo No-callingName

00:36:47: ephone-1[2]:SkinnyDisplayCallInfo No-calledName

00:36:48: ephone-2[1]:ONHOOK (from phone msgID=7)

00:36:48: ephone-1[2]:CloseReceive

00:36:48: ephone-1[2]:StopMedia

00:36:48: ephone-2[1]:call clean up this DN 2 chan 1 was called by other DN 1 ch

an 1

00:36:48: this ephone-2 other ephone-(1) other DN state CONNECTED

00:36:48: ephone-2[1]:CloseReceive

00:36:48: ephone-2[1]:StopMedia

00:36:48: DN 2 chan 1 End Voice_Mode

00:36:48: Reset called DN binding for DN 1 (was 2)

00:36:48: ephone-2[1]:SetCallState line 1 DN 2(-1) chan 1 ref 6 TsOnHook

00:36:48: ephone-2[1]:SpeakerPhoneOnHook

00:36:48: DN 1 chan 1 End Voice_Mode

00:36:48: ephone-1[2]:SetCallState line 1 DN 1(-1) chan 1 ref 5 TsOnHook

00:36:48: ephone-1[2]:SpeakerPhoneOnHook

00:36:48: ephone-1[2]:ONHOOK (internal)

00:36:48: ephone-1[2]:SpeakerPhoneOnHook

00:36:48: ephone-2[1]:---SkinnySyncPhoneDnOverlays is onhook

00:36:48: ephone-2[1]:SpeakerPhoneOnHook

00:36:49: SkinnyReportDnState DN 1 chan 1 ONHOOK

===================================================================

,CME has to send " Open receive channel " twice. I was a little suspicious may be  i am hallucinating.

Performed packet capture, which indeed shows open receive channel " sent twice. One with codec g711, the second one with g729.

"113","15.421039","201.201.201.1","201.201.201.11","SKINNY","134","OpenReceiveChannel "

116 15.442593 201.201.201.11 201.201.201.1 SKINNY 86 OpenReceiveChannelAck

118 15.529320 201.201.201.1 201.201.201.11 SKINNY 78 CloseReceiveChannel

119 15.530124 201.201.201.1 201.201.201.11 SKINNY 78 StopMediaTransmission

123 15.532887 201.201.201.1 201.201.201.11 SKINNY 134 OpenReceiveChannel

127 15.550535 201.201.201.11 201.201.201.1 SKINNY 86 OpenReceiveChannelAck

      

The fist " open receive channel" is shown below:

No.     Time        Source                Destination           Protocol Length Info
    113 15.421039   201.201.201.1         201.201.201.11        SKINNY   134    OpenReceiveChannel

Frame 113: 134 bytes on wire (1072 bits), 134 bytes captured (1072 bits)
Ethernet II, Src: Cisco_37:8a:c0 (00:12:d9:37:8a:c0), Dst: Cisco_7b:84:ef (00:06:53:7b:84:ef)
Internet Protocol Version 4, Src: 201.201.201.1 (201.201.201.1), Dst: 201.201.201.11 (201.201.201.11)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x68 (DSCP 0x1a: Assured Forwarding 31; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
    Total Length: 120
    Identification: 0xea84 (60036)
    Flags: 0x00
    Fragment offset: 0
    Time to live: 255
    Protocol: TCP (6)
    Header checksum: 0xaaf2 [correct]
    Source: 201.201.201.1 (201.201.201.1)
    Destination: 201.201.201.11 (201.201.201.11)
Transmission Control Protocol, Src Port: cisco-sccp (2000), Dst Port: 49823 (49823), Seq: 1501, Ack: 153, Len: 80
Skinny Client Control Protocol
    Data length: 72
    Header version: Basic (0x00000000)
    Message ID: OpenReceiveChannel (0x00000105)
    Conference ID: 2
    Pass-thru party ID: 0
    MS/packet: 20
   Payload capability: G.711 u-law 64k (4)
    Echo-cancel type: Media_EchoCancellation_On (1)
    G723 bitrate: Media_G723BRate_6_4 (2)

No.     Time        Source                Destination           Protocol Length Info
    123 15.532887   201.201.201.1         201.201.201.11        SKINNY   134    OpenReceiveChannel

Frame 123: 134 bytes on wire (1072 bits), 134 bytes captured (1072 bits)
Ethernet II, Src: Cisco_37:8a:c0 (00:12:d9:37:8a:c0), Dst: Cisco_7b:84:ef (00:06:53:7b:84:ef)
Internet Protocol Version 4, Src: 201.201.201.1 (201.201.201.1), Dst: 201.201.201.11 (201.201.201.11)
   Skinny Client Control Protocol
    Data length: 72
    Header version: Basic (0x00000000)
    Message ID: OpenReceiveChannel (0x00000105)
    Conference ID: 2
    Pass-thru party ID: 0
    MS/packet: 20
    Payload capability: G.729 (11)
    Echo-cancel type: Media_EchoCancellation_On (1)
    G723 bitrate: Media_G723BRate_5_3 (1)

Then the second.

No.     Time        Source                Destination           Protocol Length Info
    123 15.532887   201.201.201.1         201.201.201.11        SKINNY   134    OpenReceiveChannel

Frame 123: 134 bytes on wire (1072 bits), 134 bytes captured (1072 bits)
Ethernet II, Src: Cisco_37:8a:c0 (00:12:d9:37:8a:c0), Dst: Cisco_7b:84:ef (00:06:53:7b:84:ef)
Internet Protocol Version 4, Src: 201.201.201.1 (201.201.201.1), Dst: 201.201.201.11 (201.201.201.11)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x68 (DSCP 0x1a: Assured Forwarding 31; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
    Total Length: 120
    Identification: 0xea8a (60042)
    Flags: 0x00
    Fragment offset: 0
    Time to live: 255
    Protocol: TCP (6)
    Header checksum: 0xaaec [correct]
    Source: 201.201.201.1 (201.201.201.1)
    Destination: 201.201.201.11 (201.201.201.11)
Transmission Control Protocol, Src Port: cisco-sccp (2000), Dst Port: 49823 (49823), Seq: 1761, Ack: 257, Len: 80
Skinny Client Control Protocol
    Data length: 72
    Header version: Basic (0x00000000)
    Message ID: OpenReceiveChannel (0x00000105)
    Conference ID: 2
    Pass-thru party ID: 0
    MS/packet: 20
   Payload capability: G.729 (11)
    Echo-cancel type: Media_EchoCancellation_On (1)
    G723 bitrate: Media_G723BRate_5_3 (1)

--------------------------------------------------------------------------------------------------------------------------------

Thanks and have a great day.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: