Hi Guys,<br><br>Have been playing around with the dialog module and spiralling and one thing I have noticed is that if you spiral and dont have detect_spirals enabled the dialog module will create 2 dialogs. This is great and &#39;expected&#39; in this case. However, as it stands there is no way of distinguishing between the 2 dialogs. So for example, a BYE could come in from either &#39;side&#39; of the spiral and the first dialog is matched - not necessarily the correct one. this is because the match is purely done on callid, from and to tags (if using RFC3261 matching).<br>
<br>My initial thought is to have some sort of direction identifiers stored in the dialog structure itself. Then using Via and contact headers we can make a pretty good assumption as to which &#39;end&#39; of the spiral and therefore choose the correct dialog in the match algorithm.<br>
<br>some may say just enable spiral_detection. Actually, in some cases it is nice to be able to track a spiral in different dialogs, which most likely why the option to enable or disable spiral detection in the first place<br>
<br>What are your thoughts?<br>