Hi, the IMS_QOS Module has not been designed to be used twice on a single session. As it was designed to work on a Proxy-CSCF, you should have an originating and one terminating leg, which are two different sessions on the same server (after going through the IMS-Core).
Thanks, Carsten 2018-02-12 4:27 GMT+01:00 Lv, Victor (NSB - CN/Qingdao) <victor...@nokia-sbell.com>: > Hi All, > > > > I am trying to send two Rx_AAR after Kamailio receive 200 OK with SDP: > > > > The first one for termination part is worked well, but in MT_aar_reply route > block, it’s not works. > > The one I marked with red color, is there anyone know how configure Kamailio > to send two Rx_AAR after receive 200 OK SDP? > > > > Thanks a lot!! > > Victor > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > if (t_check_status("200")){ > > xlog("L_DBG", "IMS: Received 200 nside > orig_initial_reply\n"); > > > > $var(aarret) = Rx_AAR("MT_aar_reply", "term","",2); > > xlog("L_DBG", "AAR return code is $var(aarret)\n"); > > } > > on MT_aar_reply block: > > > > route[MT_aar_reply] > > { > > #this is async so to know status we have to check the reply avp > > switch ($avp(s:aar_return_code)) { > > case 1: > > xlog("L_DBG", "Diameter: Term AAR success on media > authorization\n"); > > break; > > default: > > xlog("L_ERR", "IMS: AAR failed Term\n"); > > xlog("L_ERR", "IMS: ttag: "+ > "$avp(TTAG_CUSTOM_AVP)"); > > xlog("L_ERR", "IMS: ftag: "+ > "$avp(FTAG_CUSTOM_AVP)"); > > xlog("L_ERR", "IMS: callid: "+ > "$avp(CALLID_CUSTOM_AVP)"); > > #comment this if you want to allow even if Rx fails > > > if(dlg_get("$avp(CALLID_CUSTOM_AVP)","$avp(FTAG_CUSTOM_AVP)","$avp(TTAG_CUSTOM_AVP)")){ > > dlg_terminate("all", "Sorry no QoS > available"); > > exit; > > } > > $var(aarret) = Rx_AAR("MO_aar_reply", "term","",2); > > xlog("L_DBG", "AAR return code is $var(aarret)\n"); > > > > > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- Carsten Bock CEO (Geschäftsführer) Meet us at MWC 2018 in Barcelona and see IMS and VoLTE in action! (February 26th - March 1st, Hall 7 - Booth 7L80) ng-voice GmbH Millerntorplatz 1 20359 Hamburg / Germany http://www.ng-voice.com mailto:cars...@ng-voice.com Office +49 40 5247593-40 Fax +49 40 5247593-99 Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284 Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/ _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users