[asterisk-commits] crichter: branch 1.2 r48321 - in /branches/1.2: channels/ channels/misdn/ doc/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Dec 6 08:48:46 MST 2006


Author: crichter
Date: Wed Dec  6 09:48:45 2006
New Revision: 48321

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48321
Log:
added the export and import of the MISDN_ADDRESS_COMPLETE Variable to inidcate wether the extension is already completely dialed or if there might come additional digits by information elements. also added some docs for that.

Modified:
    branches/1.2/channels/chan_misdn.c
    branches/1.2/channels/misdn/isdn_msg_parser.c
    branches/1.2/doc/README.misdn

Modified: branches/1.2/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_misdn.c?view=diff&rev=48321&r1=48320&r2=48321
==============================================================================
--- branches/1.2/channels/chan_misdn.c (original)
+++ branches/1.2/channels/chan_misdn.c Wed Dec  6 09:48:45 2006
@@ -3183,6 +3183,11 @@
 			if (ch->other_ch) ch->other_ch->other_ch=ch;
 		}
 	}
+
+	tmp=pbx_builtin_getvar_helper(chan,"MISDN_ADDRESS_COMPLETE");
+	if (tmp && (atoi(tmp) == 1)) {
+		bc->sending_complete=1;
+	}
 }
  
 void export_ch(struct ast_channel *chan, struct misdn_bchannel *bc, struct chan_list *ch)
@@ -3192,6 +3197,11 @@
 	chan_misdn_log(3,bc->port," --> EXPORT_PID: pid:%d\n",bc->pid);
 	sprintf(tmp,"%d",bc->pid);
 	pbx_builtin_setvar_helper(chan,"_MISDN_PID",tmp);
+
+	if (bc->sending_complete) {
+		sprintf(tmp,"%d",bc->sending_complete);
+		pbx_builtin_setvar_helper(chan,"MISDN_ADDRESS_COMPLETE",tmp);
+	}
 }
 
 

Modified: branches/1.2/channels/misdn/isdn_msg_parser.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/misdn/isdn_msg_parser.c?view=diff&rev=48321&r1=48320&r2=48321
==============================================================================
--- branches/1.2/channels/misdn/isdn_msg_parser.c (original)
+++ branches/1.2/channels/misdn/isdn_msg_parser.c Wed Dec  6 09:48:45 2006
@@ -322,6 +322,10 @@
 		
     
 		enc_ie_bearer(&setup->BEARER, msg, coding, capability, mode, rate, -1, user, nt,bc);
+	}
+
+	if (bc->sending_complete) {
+		enc_ie_complete(&setup->BEARER,msg, bc->sending_complete, nt, bc);
 	}
   
 #if DEBUG 

Modified: branches/1.2/doc/README.misdn
URL: http://svn.digium.com/view/asterisk/branches/1.2/doc/README.misdn?view=diff&rev=48321&r1=48320&r2=48321
==============================================================================
--- branches/1.2/doc/README.misdn (original)
+++ branches/1.2/doc/README.misdn Wed Dec  6 09:48:45 2006
@@ -40,6 +40,7 @@
 - Configuration
 - Dial and Options String
 - misdn cli commands
+- mISDN Variables
 - Debugging and sending Bugreports
 - Examples
 - Known working Configurations
@@ -235,6 +236,14 @@
 msn (callerid) of the Phone to send the text to.
 
 
+mISDN Variables
+---------------
+
+mISDN Exports/Imports a few Variables: 
+
+- MISDN_ADDRESS_COMPLETE : 	Is either set to 1 from the Provider, or you 
+				can set it to 1 to force a sending complete.
+				
 
 Debugging and sending bug reports
 ---------------------------------



More information about the asterisk-commits mailing list