db_dlg.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright (C) 2005 iptelorg GmbH
  3. *
  4. * This file is part of ser, a free SIP server.
  5. *
  6. * ser is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version
  10. *
  11. * For a license to use the ser software under conditions
  12. * other than those described here, or to purchase support for this
  13. * software, please contact iptel.org by e-mail at the following addresses:
  14. * [email protected]
  15. *
  16. * ser is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  24. */
  25. #include "dlg_mod_internal.h"
  26. #include "db_dlg.h"
  27. #include <cds/serialize.h>
  28. #include <cds/logger.h>
  29. /*****************************************************************/
  30. /* static void trace_dlg(const char *s, dlg_t *d)
  31. {
  32. rr_t *r;
  33. TRACE_LOG("%s: callid = %.*s \nrem tag = %.*s \nloc tag = %.*s\n"
  34. "loc uri = %.*s\n rem uri = %.*s\n rem target = %.*s\n",
  35. s,
  36. FMT_STR(d->id.call_id),
  37. FMT_STR(d->id.rem_tag),
  38. FMT_STR(d->id.loc_tag),
  39. FMT_STR(d->loc_uri),
  40. FMT_STR(d->rem_uri),
  41. FMT_STR(d->rem_target)
  42. );
  43. r = d->route_set;
  44. while (r) {
  45. TRACE_LOG(" ... name = %.*s\n uri = %.*s",
  46. FMT_STR(r->nameaddr.name),
  47. FMT_STR(r->nameaddr.uri));
  48. r = r->next;
  49. }
  50. }*/
  51. int db_store_dlg(db_con_t* conn, dlg_t *dlg, str *dst_id)
  52. {
  53. return -1;
  54. }
  55. int db_load_dlg(db_con_t* conn, str *id, dlg_t **dst_dialog)
  56. {
  57. return -1;
  58. }