[asterisk-commits] jdixon: branch jdixon/chan_usbradio-1.4 r143124 - /team/jdixon/chan_usbradio-...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Sep 15 08:11:57 CDT 2008
Author: jdixon
Date: Mon Sep 15 08:11:56 2008
New Revision: 143124
URL: http://svn.digium.com/view/asterisk?view=rev&rev=143124
Log:
Fix SDES output to show proper node ID
Modified:
team/jdixon/chan_usbradio-1.4/channels/chan_irlp.c
Modified: team/jdixon/chan_usbradio-1.4/channels/chan_irlp.c
URL: http://svn.digium.com/view/asterisk/team/jdixon/chan_usbradio-1.4/channels/chan_irlp.c?view=diff&rev=143124&r1=143123&r2=143124
==============================================================================
--- team/jdixon/chan_usbradio-1.4/channels/chan_irlp.c (original)
+++ team/jdixon/chan_usbradio-1.4/channels/chan_irlp.c Mon Sep 15 08:11:56 2008
@@ -31,7 +31,7 @@
/*** MODULEINFO
***/
-/* Version 0.11, 9/9/2008
+/* Version 0.12, 9/15/2008
irlp channel driver for Asterisk/app_rpt.
I wish to thank the following people for the immeasurable amount of
@@ -408,18 +408,23 @@
rp->r.sdes.src = htonl(0x0310f987);
ap = (unsigned char *) rp->r.sdes.item;
- strcpy(line,"repeater at irlp.net");
+ strcpy(line,"CALLSIGN");
*ap++ = 1;
*ap++ = l = strlen(line);
memcpy(ap,line,l);
ap += l;
- strcpy(line,"SpeakFreely/IRLP");
+ snprintf(line,sizeof(line) - 1,"%s IRLP",mynode);
+ *ap++ = 2;
+ *ap++ = l = strlen(line);
+ memcpy(ap,line,l);
+ ap += l;
+
+ strcpy(line,"Asterisk/app_rpt/IRLP");
*ap++ = 6;
*ap++ = l = strlen(line);
memcpy(ap,line,l);
ap += l;
-
*ap++ = 0;
*ap++ = 0;
More information about the asterisk-commits
mailing list