summaryrefslogtreecommitdiff
path: root/channels/misdn
diff options
context:
space:
mode:
authorChristian Richter <christian.richter@beronet.com>2006-02-22 21:59:46 +0000
committerChristian Richter <christian.richter@beronet.com>2006-02-22 21:59:46 +0000
commitfdd33866b438de919356cb5bb30a811ecb0e66f9 (patch)
tree90de315a5d411afd3d4b672228afc99ede507e1c /channels/misdn
parenta3580ffdebfec564601ec658b35265e6c43dc65a (diff)
* changed some strncpys to ast_copy_str
* added copying of some IEs (user,rate,urate) with channel vars * added #6251 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/misdn')
-rw-r--r--channels/misdn/isdn_lib.c3
-rw-r--r--channels/misdn/isdn_msg_parser.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c
index 8839be0f1..60f98a1f3 100644
--- a/channels/misdn/isdn_lib.c
+++ b/channels/misdn/isdn_lib.c
@@ -491,7 +491,7 @@ void empty_bc(struct misdn_bchannel *bc)
bc->capability=INFO_CAPABILITY_SPEECH;
bc->law=INFO_CODEC_ALAW;
bc->mode=0;
- bc->rate=0;
+ bc->rate=0x10;
bc->user1=0;
bc->urate=0;
@@ -503,6 +503,7 @@ void empty_bc(struct misdn_bchannel *bc)
bc->infos_pending[0] = 0;
bc->oad[0] = 0;
bc->dad[0] = 0;
+ bc->rad[0] = 0;
bc->orig_dad[0] = 0;
bc->fac_type=FACILITY_NONE;
diff --git a/channels/misdn/isdn_msg_parser.c b/channels/misdn/isdn_msg_parser.c
index 5bce3f523..4935deefa 100644
--- a/channels/misdn/isdn_msg_parser.c
+++ b/channels/misdn/isdn_msg_parser.c
@@ -300,6 +300,8 @@ msg_t *build_setup (struct isdn_msg msgs[], struct misdn_bchannel *bc, int nt)
break;
case INFO_CAPABILITY_DIGITAL_UNRESTRICTED: capability = 8;
user=-1;
+ mode=bc->mode;
+ rate=bc->rate;
break;
case INFO_CAPABILITY_DIGITAL_RESTRICTED: capability = 9;
user=-1;