misc_radius.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * misc_radius.h
  3. *
  4. * Copyright (C) 2008 Juha Heinanen <[email protected]>
  5. *
  6. * This file is part of Kamailio, a free SIP server.
  7. *
  8. * Kamailio is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version
  12. *
  13. * Kamailio is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. *
  22. */
  23. #ifndef _MISC_RADIUS_H_
  24. #define _MISC_RADIUS_H_
  25. /* Static attribute indexes */
  26. enum {SA_SERVICE_TYPE = 0, SA_USER_NAME, SA_SIP_AVP, SA_SIP_GROUP,
  27. SA_SIP_URI_HOST, SA_STATIC_MAX};
  28. /* Caller and callee value indexes */
  29. enum {RV_SIP_CALLER_AVPS = 0, RV_STATIC_MAX};
  30. enum {EV_SIP_CALLEE_AVPS = 0, EV_STATIC_MAX};
  31. enum {GV_GROUP_CHECK = 0, GV_STATIC_MAX};
  32. enum {UV_CALL_CHECK = 0, UV_STATIC_MAX};
  33. extern int use_sip_uri_host;
  34. extern void *rh;
  35. extern struct attr caller_attrs[];
  36. extern struct val caller_vals[];
  37. extern struct attr callee_attrs[];
  38. extern struct val callee_vals[];
  39. extern struct attr group_attrs[];
  40. extern struct val group_vals[];
  41. extern struct attr uri_attrs[];
  42. extern struct val uri_vals[];
  43. extern struct extra_attr *caller_extra;
  44. extern struct extra_attr *callee_extra;
  45. extern struct extra_attr *group_extra;
  46. extern struct extra_attr *uri_extra;
  47. #endif