After kamailio upgrade from v3.3 to v4.1.7

in production ~5% of calls with spirals dialog are failed with wrong dialog variables in on-reply/failure routes.

 

The problem has been reproduced in the LAB (load test generated by SIPP).

Please see the attached file with debug3 log.

Scenario:

                                     Proxy                      Location

 Kamailio P1                  Nbr translation                  Redirect

     | INVITE                         |                              |

     | dlg 0x7f8f8501aba0             |                              |

     | Call-ID:(5-8286@10.25.153.150) |                              |

     |------------------------------->|                              |

     | 100 Trying                     |                              |

     | dlg 0x7f8f8501aba0             |                              |

     | Call-ID:(5-8286@10.25.153.150) |                              |

     |<-------------------------------|                              |

     |                                |                              |

     | INVITE                         |                              |

     | dlg 0x7f8f8501aba0             |                              |

     | Call-ID:(5-8286@10.25.153.150) |                              |

     |<-------------------------------|                              |

     | 100 Trying                     |                              |

     | dlg 0x7f8f8501aba0             |                              |

     | Call-ID:(5-8286@10.25.153.150) |                              |

     |------------------------------->|                              |

     |                                |                              |

     | INVITE                         |                              |

     | dlg 0x7f8f8501aba0             |                              |

     | Call-ID:(5-8286@10.25.153.150)                                |    

     |-------------------------------------------------------------->|

     |                             100 Trying                        |

     |                                 dlg 0x7f8f8504cda0 !!!!!!!!   |

     |                                 Call-ID:(5-8286@10.25.153.150)|

     |<--------------------------------------------------------------|

     |                             301 Moved Permanently             |

     |                                 dlg 0x7f8f8504cda0 !!!!!!!!   |

     |                                 Call-ID:(5-8286@10.25.153.150)|

     |<--------------------------------------------------------------|                                  

     |                                                               |

 

Thank you,

Julia.