diff options
author | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-11 23:52:40 +0000 |
---|---|---|
committer | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-11 23:52:40 +0000 |
commit | fdf21ab1c22743e84fd79e3581feaa94d02fd671 (patch) | |
tree | f3847a722b691032c5101b547e0097dc0c642b41 /channels/h323/ast_h323.cpp | |
parent | 05ddf39975a43725a8f6c44d7be2fd5fd6bfd892 (diff) |
tweak internal codec order
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@837 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/h323/ast_h323.cpp')
-rwxr-xr-x | channels/h323/ast_h323.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp index 04238b4d4..64401111d 100755 --- a/channels/h323/ast_h323.cpp +++ b/channels/h323/ast_h323.cpp @@ -764,6 +764,11 @@ int h323_set_capability(int cap, int dtmfMode) endPoint->SetCapability(0, 0, new SpeexNarrow6AudioCapability()); } + if (cap & AST_FORMAT_G729A) { + H323_G729ACapability *g729aCap; + endPoint->SetCapability(0, 0, g729aCap = new H323_G729ACapability); + } + if (cap & AST_FORMAT_G723_1) { H323_G7231Capability *g7231Cap; endPoint->SetCapability(0, 0, g7231Cap = new H323_G7231Capability); @@ -773,11 +778,6 @@ int h323_set_capability(int cap, int dtmfMode) H323_GSM0610Capability *gsmCap; endPoint->SetCapability(0, 0, gsmCap = new H323_GSM0610Capability); gsmCap->SetTxFramesInPacket(gsmFrames); - } - - if (cap & AST_FORMAT_G729A) { - H323_G729ACapability *g729aCap; - endPoint->SetCapability(0, 0, g729aCap = new H323_G729ACapability); } if (cap & AST_FORMAT_ULAW) { |