[asterisk-commits] jdixon: branch jdixon/chan_usbradio-1.4 r155510 - /team/jdixon/chan_usbradio-...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Nov 8 14:12:23 CST 2008


Author: jdixon
Date: Sat Nov  8 14:12:22 2008
New Revision: 155510

URL: http://svn.digium.com/view/asterisk?view=rev&rev=155510
Log:
Added database entries for nodenum-call

Modified:
    team/jdixon/chan_usbradio-1.4/channels/chan_echolink.c

Modified: team/jdixon/chan_usbradio-1.4/channels/chan_echolink.c
URL: http://svn.digium.com/view/asterisk/team/jdixon/chan_usbradio-1.4/channels/chan_echolink.c?view=diff&rev=155510&r1=155509&r2=155510
==============================================================================
--- team/jdixon/chan_usbradio-1.4/channels/chan_echolink.c (original)
+++ team/jdixon/chan_usbradio-1.4/channels/chan_echolink.c Sat Nov  8 14:12:22 2008
@@ -2052,6 +2052,14 @@
 		if (ast_db_put(EL_DB_ROOT,dbstr,ipaddr))
 		{
  			ast_log(LOG_ERROR,"Error in putting nodenum record %s (ipaddr %s)",nodenum,ipaddr);
+			close(sock);
+			return -1;
+		}
+		sprintf(dbstr,"%c/nodenum-call/%s",db_loading,nodenum);
+		usleep(2000); /* To get to dry land */
+		if (ast_db_put(EL_DB_ROOT,dbstr,call))
+		{
+ 			ast_log(LOG_ERROR,"Error in putting nodenum-call record %s (call %s)",nodenum,call);
 			close(sock);
 			return -1;
 		}




More information about the asterisk-commits mailing list