[Serusers] Problems compiling SER with radius support
Maxim Sobolev
sobomax at FreeBSD.org
Wed Jan 8 19:42:20 CET 2003
On Wed, Jan 08, 2003 at 11:03:42AM +0100, Jan Janak wrote:
> Hello,
>
> there is sip_dictionary file in ser-0.8.10/etc directory which contains
> all the missing definitions. You can find a description how to use it in
>
> ser-0.8.10/modules/radius_acc/project.txt
>
> Radius related modules need to be refurbished and we are currently working
> on it.
Thanks! I was able to compile it just fine using attached patch for
radiusclient, perhaps you can put it somewhere on your site and add
a note to documentation, so that other users will not be stucking to
the same problem
-Maxim
>
> Jan.
>
> On 07-01 13:06, Maxim Sobolev wrote:
> > Dear Sirs,
> >
> > Our company is currently evaluating several freely available SIP
> > proxy/registrars to extend our VoIP billing engine, which currently
> > only supports H323, to support SIP as well. We found SER to be one of
> > the best for our needs: speed, documentation, flexibility - everything
> > is great. Hovewer, since our billing engine uses Radius for AAA, we need
> > to get Radius modules working. Unfortunately, we can't compile radius
> > modules with virgin radiusclient 0.3.2 as suggested in documentation - it
> > seems that some SIP-specific changes need to be applied to radiusclient
> > headers, see the following log:
> >
> > gcc -fPIC -DPIC -pipe -O -mpreferred-stack-boundary=2 -march=pentium2 -funroll-loops -Wcast-align -Wall -minline-all-stringops -malign-double -falign-loops -DNAME='"ser"' -DVERSION='"0.8.10"' -DARCH='"i386"' -DOS='"freebsd"' -DCOMPILER='"gcc 3.2"' -D__CPU_i386 -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DDNS_IP_HACK -DUSE_IPV6 -DDBG_QM_MALLOC -DFAST_LOCK -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_SOCKADDR_SA_LEN -I/usr/local/include -c acc.c -o acc.o
> > acc.c: In function `radius_log_reply':
> > acc.c:125: `PW_SIP_METHOD' undeclared (first use in this function)
> > acc.c:125: (Each undeclared identifier is reported only once
> > acc.c:125: for each function it appears in.)
> > acc.c:136: `PW_SIP_RESPONSE_CODE' undeclared (first use in this function)
> > acc.c:156: `PW_SIP_FROM_TAG' undeclared (first use in this function)
> > acc.c:189: `PW_SIP_TO_TAG' undeclared (first use in this function)
> > acc.c:213: `PW_SIP_CSEQ' undeclared (first use in this function)
> > acc.c:288: `PW_SIP_TRANSLATED_REQ_URI' undeclared (first use in this function)
> > acc.c: In function `radius_log_ack':
> > acc.c:434: `PW_SIP_METHOD' undeclared (first use in this function)
> > acc.c:442: `PW_SIP_RESPONSE_CODE' undeclared (first use in this function)
> > acc.c:461: `PW_SIP_FROM_TAG' undeclared (first use in this function)
> > acc.c:491: `PW_SIP_TO_TAG' undeclared (first use in this function)
> > acc.c:514: `PW_SIP_CSEQ' undeclared (first use in this function)
> > acc.c:588: `PW_SIP_TRANSLATED_REQ_URI' undeclared (first use in this function)
> > acc.c: In function `rad_acc_request':
> > acc.c:733: `PW_SIP_METHOD' undeclared (first use in this function)
> > acc.c:744: `PW_SIP_RESPONSE_CODE' undeclared (first use in this function)
> > acc.c:764: `PW_SIP_FROM_TAG' undeclared (first use in this function)
> > acc.c:797: `PW_SIP_TO_TAG' undeclared (first use in this function)
> > acc.c:821: `PW_SIP_CSEQ' undeclared (first use in this function)
> > acc.c:904: `PW_SIP_TRANSLATED_REQ_URI' undeclared (first use in this function)
> >
> > Would you be so kind to provide us with your changes for radiusclient or
> > point out where that modified version can be downloaded?
> >
> > Thank you in advance!
> >
> > On a separate note I would like to ask you to let me know if there is
> > any progress on pre-paid module discussed on this list recently. Since we
> > will also need this functionality, perhaps we can team-up to implement it.
> >
> > Sincerely,
> >
> > Maxim Sobolev
> > PortaOne Ltd
> > _______________________________________________
> > Serusers mailing list
> > serusers at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> >
-------------- next part --------------
$FreeBSD$
--- include/radiusclient.h.orig Thu Jan 7 01:53:04 1999
+++ include/radiusclient.h Wed Jan 8 16:12:50 2003
@@ -169,6 +169,40 @@
#define PW_ACCT_MULTI_SESSION_ID 50 /* string */
#define PW_ACCT_LINK_COUNT 51 /* integer */
+/* Experimental SIP-specific attributes */
+
+#define PW_SIP_METHOD 101 /* integer */
+#define PW_SIP_RESPONSE_CODE 102 /* integer */
+#define PW_SIP_CSEQ 103 /* string */
+#define PW_SIP_TO_TAG 104 /* string */
+#define PW_SIP_FROM_TAG 105 /* string */
+#define PW_SIP_BRANCH_ID 106 /* string */
+#define PW_SIP_TRANSLATED_REQUEST_URI 107 /* string */
+#define PW_SIP_SOURCE_IP_ADDRESS 108 /* ipaddr */
+#define PW_SIP_SOURCE_PORT 109 /* integer */
+#define PW_SIP_USER_ID 110 /* string */
+#define PW_SIP_USER_REALM 111 /* string */
+#define PW_SIP_USER_NONCE 112 /* string */
+#define PW_SIP_USER_METHOD 113 /* string */
+#define PW_SIP_USER_DIGEST_URI 114 /* string */
+#define PW_SIP_USER_NONCE_COUNT 115 /* string */
+#define PW_SIP_USER_QOP 116 /* string */
+#define PW_SIP_USER_OPAQUE 117 /* string */
+#define PW_SIP_USER_RESPONSE 118 /* string */
+
+#define PW_DIGEST_RESPONSE 206 /* string */
+#define PW_DIGEST_ATTRIBUTES 207 /* string */
+#define PW_DIGEST_REALM 1063 /* string */
+#define PW_DIGEST_NONCE 1064 /* string */
+#define PW_DIGEST_METHOD 1065 /* string */
+#define PW_DIGEST_URI 1066 /* string */
+#define PW_DIGEST_QOP 1067 /* string */
+#define PW_DIGEST_ALGORITHM 1068 /* string */
+#define PW_DIGEST_BODY_DIGEST 1069 /* string */
+#define PW_DIGEST_CNONCE 1070 /* string */
+#define PW_DIGEST_NONCE_COUNT 1071 /* string */
+#define PW_DIGEST_USER_NAME 1072 /* string */
+
/* Merit Experimental Extensions */
#define PW_USER_ID 222 /* string */
More information about the sr-users
mailing list