Navigation


Changeset 1326:afe0ecdb0692 in freeDiameter for libfdcore/p_psm.c


Ignore:
Timestamp:
Nov 27, 2017, 11:18:57 PM (6 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

Add config option if Route-Record AVPs should be added in Answers.

Some software does not handle them correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/p_psm.c

    r1321 r1326  
    553553
    554554                                        /* Set the message source and add the Route-Record */
    555                                         CHECK_FCT_DO( fd_msg_source_setrr( msg, peer->p_hdr.info.pi_diamid, peer->p_hdr.info.pi_diamidlen, fd_g_config->cnf_dict ), goto psm_end);
     555                                        if (fd_g_config->cnf_rr_in_answers || (hdr->msg_flags & CMD_FLAG_REQUEST)) {
     556                                                CHECK_FCT_DO( fd_msg_source_setrr( msg, peer->p_hdr.info.pi_diamid, peer->p_hdr.info.pi_diamidlen, fd_g_config->cnf_dict ), goto psm_end);
     557                                        }
    556558
    557559                                        if ((hdr->msg_flags & CMD_FLAG_REQUEST)) {
Note: See TracChangeset for help on using the changeset viewer.