To add: if you use rr module with append from tag enabled, then acc
module can detect the direction of BYE and change From/To tag when
writing the record to database to match the values for INVITE -- look at
the parameters for rr and acc modules.
Cheers,
Daniel
On 20/12/15 11:42, Gholamreza Sabery wrote:
Alright. Thank you. ;)
On Sun, Dec 20, 2015 at 2:11 PM, Dmitri Savolainen
<savolainen(a)erinaco.ru <mailto:savolainen@erinaco.ru>> wrote:
BYE is the request (not response message)
2015-12-20 13:32 GMT+03:00 Gholamreza Sabery <gr.sabery(a)gmail.com
<mailto:gr.sabery@gmail.com>>:
Thank you Dmitri. But It seems that it should not work this
way. Here:
https://supportforums.cisco.com/document/113271/understanding-sip-traces
it is written :
Note that the To and From header fields are not reversed in
the response message as one might expect them to be. This is
because the To and From header fields in SIP are defined to
indicate the direction of the request, not the direction of
the message.
Any ideas?
On Sun, Dec 20, 2015 at 1:47 PM, Dmitri Savolainen
<savolainen(a)erinaco.ru <mailto:savolainen@erinaco.ru>> wrote:
hi, it means BYE was generated by called party, so the To
and From URIs and tags have been swapped.
2015-12-20 11:52 GMT+03:00 Gholamreza Sabery
<gr.sabery(a)gmail.com <mailto:gr.sabery@gmail.com>>:
In the ACC modules' database table (acc) in Kamailio
sometimes from_tag, to_tag and callid of an INVITE and
corresponding BYE completely match. But sometimes
from_tag in INVITE is to_tag of BYE and to_tag of BYE
will become from_tag of INVITE. Why this happens? Is
this normal?
Regards
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) -
sr-users mailing list
sr-users(a)lists.sip-router.org
<mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Savolainen Dmitri
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list
sr-users(a)lists.sip-router.org
<mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list
sr-users(a)lists.sip-router.org
<mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Savolainen Dmitri
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
list
sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users