Brekeke SIP Server Wiki

  1. Brekeke SIP Server Basic Info
  2. Avoid Attacks
  3. Update & Upgrade
  4. Configuration
    1. Installation
    2. SIP UA Configuration
    3. Network Configuration
    4. Dial Plan
      1. Dial Plan Reference
        1. Matching Patterns functions
          1. $addr
          2. $addrPort
          3. $addrPrefix
          4. $addrRange
          5. $addrType
          6. $alias
          7. $and
          8. $body
          9. $date
          10. $db
          11. $dispatcher
          12. $eval and $e
          13. $evalRule
          14. $exist
          15. $getDisplayName
          16. $getHost
          17. $getSIPuser
          18. $getUri
          19. $globalAddr
          20. $header
          21. $headerParam
          22. $hop
          23. $if
          24. $ifAddr
          25. $isNull
          26. $isReachable
          27. $isTalking
          28. $localhost
          29. $math
          30. $mirroring
          31. $mydomain
          32. $not
          33. $nslookup
          34. $nsreverse
          35. $or
          36. $outbound
          37. $param
          38. $pb.displayname
          39. $pb
          40. $pn
          41. $port
          42. $primary
          43. $radius
          44. $regAddr
          45. $regdb
          46. $registered
          47. $registeredSender
          48. $regUa
          49. $regUri
          50. $request
          51. $rule
          52. $route
          53. $sdp
          54. $servertime
          55. $sessionNum
          56. $sid
          57. $soapGet
          58. $sps
          59. $stackSize
          60. $str
          61. $subParam
          62. $threadNum
          63. $time
          64. $timeRange
          65. $transport
          66. $uriParam
          67. $url
          68. $webGet
          69. $ws
        2. Deploy Patterns functions
        3. Deploy Patterns variables
      2. $webget method examples
      3. How do I create a Dial Plan rule?
      4. Dial Plan Tutorial
      5. Red letters in the Dial Plan
      6. What does %1, %2 mean in rules?
      7. %{} in Dial Plan Deploy Patterns
      8. Global and Local Variables
      9. Add time between dialed prefix and phone number
      10. Change user password in the rule
      11. Connect to Gateways with BSS
      12. Brekeke SIP Server works as Redirect Server
      13. Authenticate callers by IP address
      14. Decline calls from non-numbered callers (SIP ID)
      15. Reject non-registered caller's call
      16. Restrict registration only from single UA
      17. Restrict Upper or Thru Registration
      18. Count registration records per user
      19. Set a registered client never expire
      20. Remove all current registrations
      21. Restrict REGISTER requests
      22. Restrict INVITE Requests
      23. Set time range in Dial Plan
      24. Limit Concurrent Sessions through a specific route
      25. Limit session per sec in Dial Plan
      26. Apply two plugin to one call
      27. Execute SQL query from Dialplan
      28. Define outgoing From and To headers with / method
      29. Response Header Definition
      30. DNS-SRV failover
      31. Failover with the Dial Plan
      32. Change payload type
      33. Change RTP Connection Info
      34. Disable RTP-Relay if SDP indicates a Public IP address
      35. Change Contact header
    5. Block List
    6. SDN
    7. Advanced Edition
    8. Other Functions
    9. Third-Party Database
  5. Troubleshooting
  6. Version History
  7. Developer's Guide

$request

Get the request line of the incoming SIP packet

Syntax:
$request
Returns:

The SIP request Line

 

Version Since:

1.0

 

Examples:
$request = ^INVITE

If the request is INVITE.

 

$request = ^INVITE|^SUBSCRIBE

If the request is INVITE or SUBSCRIBE.

 

$getUri($request) = (.+)

Get the Request-URI.

Yes No
Suggest Edit