Forum Discussion

vincent_mischke's avatar
vincent_mischke
Historic F5 Account
Jun 26, 2007

SIP Persist for outbound calls

We are trying to use the following irule to delete persistence when BYE received and to create an entry for outbound calls. Line 6 comes up w/ an error:

 

 

when SIP_REQUEST {

 

if {[SIP::method] == "BYE"} {

 

persist delete sip [SIP::call_id]

 

}

 

else {

 

persist add sip [SIP::call_id]

 

}

 

}

 

}

 

 

Any ideas?
  • try this:

     

     

    when SIP_REQUEST {

     

    if {[SIP::method] == "BYE"} {

     

    set ci [SIP::call_id]

     

    persist delete sip "$ci any virtual"

     

    }

     

    else {

     

    persist sip [SIP::call_id]

     

    }

     

    }

     

    }