...
|
...
|
@@ -143,6 +143,13 @@ static inline int calculate_hooks(dlg_t* _d)
|
143
|
143
|
|
144
|
144
|
if (_d->dst_uri.s) _d->hooks.next_hop = &_d->dst_uri;
|
145
|
145
|
else _d->hooks.next_hop = _d->hooks.request_uri;
|
|
146
|
+
|
|
147
|
+ /*
|
|
148
|
+ * the routes in the hooks need to be reset because if the route_set was dropped somewhere else
|
|
149
|
+ * then these will remain set without the actual routes existing any more
|
|
150
|
+ */
|
|
151
|
+ _d->hooks.first_route = 0;
|
|
152
|
+ _d->hooks.last_route = 0;
|
146
|
153
|
}
|
147
|
154
|
|
148
|
155
|
if ((_d->hooks.request_uri) && (_d->hooks.request_uri->s) && (_d->hooks.request_uri->len)) {
|