[svn-commits] crichter: branch 1.4 r78936 - in /branches/1.4/channels: ./ misdn/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Aug 10 08:24:04 CDT 2007
Author: crichter
Date: Fri Aug 10 08:24:03 2007
New Revision: 78936
URL: http://svn.digium.com/view/asterisk?view=rev&rev=78936
Log:
fixed a bug with the useruser information element. We send them now also in the disconnect message.
Modified:
branches/1.4/channels/chan_misdn.c
branches/1.4/channels/misdn/ie.c
branches/1.4/channels/misdn/isdn_msg_parser.c
Modified: branches/1.4/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_misdn.c?view=diff&rev=78936&r1=78935&r2=78936
==============================================================================
--- branches/1.4/channels/chan_misdn.c (original)
+++ branches/1.4/channels/chan_misdn.c Fri Aug 10 08:24:03 2007
@@ -2415,6 +2415,15 @@
}
bc=p->bc;
+
+ if (bc) {
+ const char *tmp=pbx_builtin_getvar_helper(ast,"MISDN_USERUSER");
+ if (tmp) {
+ ast_log(LOG_NOTICE, "MISDN_USERUSER: %s\n", tmp);
+ strcpy(bc->uu, tmp);
+ bc->uulen=strlen(bc->uu);
+ }
+ }
MISDN_ASTERISK_TECH_PVT(ast)=NULL;
p->ast=NULL;
Modified: branches/1.4/channels/misdn/ie.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/misdn/ie.c?view=diff&rev=78936&r1=78935&r2=78936
==============================================================================
--- branches/1.4/channels/misdn/ie.c (original)
+++ branches/1.4/channels/misdn/ie.c Fri Aug 10 08:24:03 2007
@@ -1353,7 +1353,7 @@
if (MISDN_IE_DEBG) printf(" protocol=%d user-user%s\n", protocol, debug);
- l = user_len;
+ l = user_len+1;
p = msg_put(msg, l+3);
if (nt)
*ntmode = p+1;
Modified: branches/1.4/channels/misdn/isdn_msg_parser.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/misdn/isdn_msg_parser.c?view=diff&rev=78936&r1=78935&r2=78936
==============================================================================
--- branches/1.4/channels/misdn/isdn_msg_parser.c (original)
+++ branches/1.4/channels/misdn/isdn_msg_parser.c Fri Aug 10 08:24:03 2007
@@ -797,6 +797,12 @@
enc_ie_cause(&disconnect->CAUSE, msg, (nt)?1:0, bc->out_cause,nt,bc);
if (nt) enc_ie_progress(&disconnect->PROGRESS, msg, 0, nt?1:5, 8 ,nt,bc);
+
+ if (bc->uulen) {
+ int protocol=4;
+ enc_ie_useruser(&disconnect->USER_USER, msg, protocol, bc->uu, bc->uulen, nt,bc);
+ cb_log(1,bc->port,"ENCODING USERUESRINFO:%s\n",bc->uu);
+ }
#if DEBUG
printf("Building DISCONNECT Msg\n");
@@ -868,6 +874,12 @@
if (bc->out_cause>= 0)
enc_ie_cause(&release->CAUSE, msg, nt?1:0, bc->out_cause, nt,bc);
+
+ if (bc->uulen) {
+ int protocol=4;
+ enc_ie_useruser(&release->USER_USER, msg, protocol, bc->uu, bc->uulen, nt,bc);
+ cb_log(1,bc->port,"ENCODING USERUESRINFO:%s\n",bc->uu);
+ }
#if DEBUG
printf("Building RELEASE Msg\n");
@@ -918,6 +930,12 @@
release_complete=(RELEASE_COMPLETE_t*)((msg->data+HEADER_LEN));
enc_ie_cause(&release_complete->CAUSE, msg, nt?1:0, bc->out_cause, nt,bc);
+
+ if (bc->uulen) {
+ int protocol=4;
+ enc_ie_useruser(&release_complete->USER_USER, msg, protocol, bc->uu, bc->uulen, nt,bc);
+ cb_log(1,bc->port,"ENCODING USERUESRINFO:%s\n",bc->uu);
+ }
#if DEBUG
printf("Building RELEASE_COMPLETE Msg\n");
More information about the svn-commits
mailing list