[svn-commits] branch crichter/0.2.1 - r7414
/team/crichter/0.2.1/channels/misdn/
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Fri Dec 9 05:22:45 CST 2005
Author: crichter
Date: Fri Dec 9 05:22:42 2005
New Revision: 7414
URL: http://svn.digium.com/view/asterisk?rev=7414&view=rev
Log:
when makeing digital call, we shouldn't set a codec
Modified:
team/crichter/0.2.1/channels/misdn/isdn_msg_parser.c
Modified: team/crichter/0.2.1/channels/misdn/isdn_msg_parser.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.2.1/channels/misdn/isdn_msg_parser.c?rev=7414&r1=7413&r2=7414&view=diff
==============================================================================
--- team/crichter/0.2.1/channels/misdn/isdn_msg_parser.c (original)
+++ team/crichter/0.2.1/channels/misdn/isdn_msg_parser.c Fri Dec 9 05:22:42 2005
@@ -284,31 +284,30 @@
{
int coding=0, capability, mode=0 /* 2 for packet ! */
,user, rate=0x10;
+
+ switch (bc->law) {
+ case INFO_CODEC_ULAW: user=2;
+ break;
+ case INFO_CODEC_ALAW: user=3;
+ break;
+ default:
+ user=3;
+ }
+
switch (bc->capability) {
case INFO_CAPABILITY_SPEECH: capability = 0;
-// cb_log(2, bc->stack->port, " --> Speech\n");
break;
case INFO_CAPABILITY_DIGITAL_UNRESTRICTED: capability = 8;
-// cb_log(2, bc->stack->port, " --> cap unres Digital\n");
+ user=-1;
break;
case INFO_CAPABILITY_DIGITAL_RESTRICTED: capability = 9;
-// cb_log(2, bc->stack->port, " --> cap res Digital\n");
+ user=-1;
break;
default:
-// cb_log(2, bc->stack->port, " --> cap Speech\n");
capability=bc->capability;
}
- switch (bc->law) {
- case INFO_CODEC_ULAW: user=2;
-// cb_log(2, bc->stack->port, " --> Codec Ulaw\n");
- break;
- case INFO_CODEC_ALAW: user=3;
-// cb_log(2, bc->stack->port, " --> Codec Alaw\n");
- break;
- default:
- user=3;
- }
+
enc_ie_bearer(&setup->BEARER, msg, coding, capability, mode, rate, -1, user, nt,bc);
}
More information about the svn-commits
mailing list