| 3200 | |
| 3201 | |
| 3202 | struct head_db * get_partition(const str *name) |
| 3203 | { |
| 3204 | struct head_db * it = head_db_start; |
| 3205 | |
| 3206 | while( it!= NULL) { |
| 3207 | if( it->partition.len==name->len && memcmp( it->partition.s, name->s, |
| 3208 | name->len)==0 ) { |
| 3209 | return it; |
| 3210 | } |
| 3211 | it = it->next; |
| 3212 | } |
| 3213 | |
| 3214 | return NULL; /* partition was not found */ |
| 3215 | } |
| 3216 | |
| 3217 | |
| 3218 | static int do_routing(struct sip_msg* msg, struct head_db *part, int grp, |
no outgoing calls
no test coverage detected