Forum Discussion
Evelin_195902
Aug 21, 2015Nimbostratus
SIP irule for checking dialed string
Hi guys,
Please help me with creating na irule for checking a dialed string in SIP INVITE request.
I need to drop every call that has !=8 or !=0 symbols in the SIP INVITE. Like this:
sip:3286184@20...
SyedNazir_20946
Aug 23, 2015Historic F5 Account
Hi Evelin,
Check below rule. Correct the syntax for regexp if there is any issue.
when SIP_REQUEST {
set meeting_nbr [findstr [SIP::to] ":" 1 "@"]
if { [regexp {^([0-9]+)$} $meeting_nbr]} {
log local0. "SIP Drop [SIP::uri]"
drop
}
}
-- Syed Nazir
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects