modules_s/dispatcher/dispatch.h

00001 
00038 #ifndef _DISPATCH_H_
00039 #define _DISPATCH_H_
00040 
00041 #include "../../parser/msg_parser.h"
00042 
00043 
00044 #define DS_HASH_USER_ONLY 1  /* use only the uri user part for hashing */
00045 #define DS_HASH_USER_OR_HOST 2  /* use user part of uri for hashing with
00046                                    fallback to host */
00047 extern int ds_flags; 
00048 
00049 int ds_set_hash_f(int n);
00050 
00051 int ds_load_list(char *lfile);
00052 int ds_destroy_list();
00053 int ds_select_dst(struct sip_msg *msg, char *set, char *alg);
00054 int ds_select_new(struct sip_msg *msg, char *set, char *alg);
00055 
00056 #endif
00057