xadhoom created an issue (kamailio/kamailio#4725)

<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature 
requests. Please use this template only for bug reports.

If you have questions about using Kamailio or related to its configuration 
file, ask on sr-users mailing list:

  * 
https://lists.kamailio.org/mailman3/postorius/lists/sr-users.lists.kamailio.org/

If you have questions about developing extensions to Kamailio or its existing C 
code, ask on sr-dev mailing list:

  * 
https://lists.kamailio.org/mailman3/postorius/lists/sr-dev.lists.kamailio.org/

Please try to fill this template as much as possible for any issue. It helps 
the developers to troubleshoot the issue.

Note that an issue report may be closed automatically after about 2 months
if there is no interest from developers or community users on pursuing it, being
considered expired. In such case, it can be reopened by writing a comment that 
includes
the token `/notexpired`. About two weeks before considered expired, the issue is
marked with the label `stale`, trying to notify the submitter and everyone else
that might be interested in it. To remove the label `stale`, write a comment 
that
includes the token `/notstale`. Also, any comment postpone the `expire` 
timeline,
being considered that there is interest in pursuing the issue.

If there is no content to be filled in a section, the entire section can be 
removed.

You can delete the comments from the template sections when filling.

You can delete next line and everything above before submitting (it is a 
comment).
-->

### Description
The new contact mode introduced in 
https://github.com/kamailio/kamailio/commit/8fed4c27a323e3b7fdc61381e06ac265d21fa5b9
 has an "inverted" logic regarding A/B naming (downstream/upstream) directions.

In contact_mode 2:
xavu_field_a_contact and xavu_field_b_contact refers to the downstream / 
upstream direction.

In contact mode 3:
xavu_field_a_contact_host and xavu_field_b_contact_host refers to the upstream 
/ downstream direction, which is the opposite of the previous.

While you cannot use 2&3 at same time (...for now) I think proper naming helps 
in understanding. Probably this cannot fixed anymore, but maybe worth 
documenting this behaviour?

### Possible Solutions

At least add documentation for that difference. Ideally the meaning of A/B 
should be aligned. 

### Additional Information

  * **Kamailio Version**

```
6.1.x
```


-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4725
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to