Forum Discussion

Brandon_Burns_8's avatar
Brandon_Burns_8
Historic F5 Account
Feb 22, 2007

SIP monitor help

I need to be able to create a SIP monitor that uses the REGISTER method rather than using the standard OPTIONS method that our current SIP monitor uses.

 

 

A packet capture of the current monitor looks like this.

 

 

OPTIONS sip:10.10.50.100:5060 SIP/2.0

 

 

Via: SIP/2.0/UDP wa5.sonomatraining.net:5060;branch=z9hG4bK34b56b43

 

 

Max-Forwards: 1

 

 

To: sip:10.10.50.100

 

 

From: sip:anonymous@wa5.sonomatraining.net;tag=51a51a34

 

 

Call-ID: 0000333945ba5e1e@wa5.sonomatraining.net

 

 

CSeq: 1169841694 OPTIONS

 

 

Accept: application/sdp

 

 

Content-Length: 0

 

 

It would need to look like this

 

 

REGISTER sip:10.10.50.100:5060 SIP/2.0

 

 

Max-Forwards: 1

 

 

To: sip:10.10.50.100

 

 

From: sip:anonymous@wa5.sonomatraining.net;tag=51a51a34

 

 

Call-ID: 0000333945ba5e1e@wa5.sonomatraining.net

 

 

CSeq: 1169841694 REGISTER

 

 

Is this possible, and if so how would I go about doing this?

 

 

Thanks in advance

3 Replies

  • I don't think you'd want to use an iRule to do the health checking as the rule would only be triggered when a client request is received.

     

     

    Maybe I'm missing something, but I think you could just use a TCP monitor with the request you posted above configured in the send string of the monitor. You can separate lines with \r\n.

     

     

    Else, you could write an external monitor to make the exact request you want.

     

     

    Askf5.com should have information on configuring custom and/or external monitors.

     

     

    Aaron
  • Brandon_Burns_8's avatar
    Brandon_Burns_8
    Historic F5 Account
    Thanks, I'll try that. Is there a way to generate a random number for the branch portion of the request and insert it as that needs to increment each time?
  • I don't know of any scripting functionality available in the default monitor send string. If you really need to generate an index, I think you'd need to write an external monitor.

     

     

    Aaron