SOLVED!!
i was not reseted flag!!! :-( 

This is the right code:

branch_route[2] {
        if (is_method("INVITE") && is_audio_on_hold()) {
             
                 set_dlg_flag("7");
          } else {
                       if (is_method("INVITE")){
                        reset_dlg_flag("7");
                  }
                 } 
                if (is_dlg_flag_set("7") && (status=="200")) {
                
           replace_body("a=sendrecv.", "a=inactive");
          }   

        xlog("new branch at $ru\n");
  }




--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Need-Hint-for-Opensips-as-UDP-TCP-Proxy-tp7582137p7582187.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to