<p>I added some INFO call to  set_rtpengine_set_f():</p>
<pre lang="INFO("set1/set2" data-meta="= %u/%u\n", selected_rtpp_set_1->id_set,"><code>         selected_rtpp_set_2->id_set);

        return 1;
</code></pre>
<p>and it correctly printed:</p>
<pre><code>Aug 22 17:20:47 salmon /usr/bin/sip-proxy[29734]: INFO: set_rtpengine_set(1, 0)
</code></pre>
<p>Then I added INFO call to set_rtpengine_set_from_avp():</p>
<pre><code>if ((setid_avp_param == NULL) ||
           (avp = search_first_avp(setid_avp_type, setid_avp, &setid_val, 0)) == NULL) {
                if (direction == 1 || !selected_rtpp_set_2)
                        active_rtpp_set = selected_rtpp_set_1;
                else
                        active_rtpp_set = selected_rtpp_set_2;
                LM_INFO("active_rttp_set = %u\n", active_rtpp_set->id_set);
                return 1;
        }
</code></pre>
<p>and it showed that first active set is 1 and second is 0:</p>
<pre><code>Aug 22 17:20:47 salmon /usr/bin/sip-proxy[29734]: INFO: rtpengine [rtpengine.c:3169]: set_rtpengine_set_from_avp(): active_rttp_set = 1
Aug 22 17:20:47 salmon /usr/bin/sip-proxy[29734]: INFO: rtpengine [rtpengine.c:3169]: set_rtpengine_set_from_avp(): active_rttp_set = 0
</code></pre>
<p>Still both offers are sent to engine in set 1.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2039?email_source=notifications&email_token=ABO7UZPZH2T42U56C7W6OPLQF2O6BA5CNFSM4IN3G6LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD45IU4A#issuecomment-523930224">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPNAX5EWBHIPWL7UILQF2O6BANCNFSM4IN3G6LA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZMKF4DDCY2C2D7VUVTQF2O6BA5CNFSM4IN3G6LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD45IU4A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2039?email_source=notifications\u0026email_token=ABO7UZPZH2T42U56C7W6OPLQF2O6BA5CNFSM4IN3G6LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD45IU4A#issuecomment-523930224",
"url": "https://github.com/kamailio/kamailio/issues/2039?email_source=notifications\u0026email_token=ABO7UZPZH2T42U56C7W6OPLQF2O6BA5CNFSM4IN3G6LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD45IU4A#issuecomment-523930224",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>