MR::return

Description

The MR::return command instructs the Message Routing Framework to return the current message to the originating connection. The message’s route status will be updated to ‘returned by irule’ or the provided route status. When the connection is received on the originating connection, MR_FAILED event will be raised.

Syntax

MR::return [no_route_found | queue_full | no_connection | connection_closing | internal_error | max_retries_exceeded]

MR::return

  • Returns the current message to the originating connection with a route status of ‘returned by irule’

MR::return [no_route_found | queue_full | no_connection | connection_closing | internal_error | max_retries_exceeded]

  • Returns the current message to the originating connection and sets the route status to the route status specified.
    ===Examples===
    when MR_EGRESS {
    
    if {[DIAMETER::is_request]} {
    
    if {$pend_req > 100} {
    
    MR::return queue_full
    
    } {
    
    incr pend_req
    
    }
    
    }
    
    }
    
    when MR_INGRESS {
    
    if {[DIAMETER::is_response]} {
    
    incr pend_req -1
    
    }
    
    }