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. Red letters in the Dial Plan
      5. What does %1, %2 mean in rules?
      6. %{} in Dial Plan Deploy Patterns
      7. Global and Local Variables
      8. Add time between dialed prefix and phone number
      9. Change user password in the rule
      10. Connect to Gateways with BSS
      11. Brekeke SIP Server works as Redirect Server
      12. Authenticate callers by IP address
      13. Decline calls from non-numbered callers (SIP ID)
      14. Reject non-registered caller's call
      15. Restrict registration only from single UA
      16. Restrict Upper or Thru Registration
      17. Count registration records per user
      18. Set a registered client never expire
      19. Remove all current registrations
      20. Restrict REGISTER requests
      21. Restrict INVITE Requests
      22. Set time range in Dial Plan
      23. Limit Concurrent Sessions through a specific route
      24. Limit session per sec in Dial Plan
      25. Apply two plugin to one call
      26. Execute SQL query from Dialplan
      27. Define outgoing From and To headers with / method
      28. Response Header Definition
      29. DNS-SRV failover
      30. Failover with the Dial Plan
      31. Change payload type
      32. Change RTP Connection Info
      33. Disable RTP-Relay if SDP indicates a Public IP address
      34. Change Contact header
    5. Block List
    6. SDN
    7. Advanced Edition
    8. Other Functions
  5. Troubleshooting
  6. Known Bugs & Version History

$nsreverse

Get the domain name from the given IP address (Reverse DNS lookup)

 

Syntax:
$nsreverse( ipaddr )
Parameters:

ipaddr – IP address

 

Returns:

Domain name

 

Version Since:

3.8

 

Example:
$nsreverse( $addr ) = (.+)

Get the domian name of the remote IP address

$nsreverse( $addr ) = \.brekeke.com$

Check whether the remote host belongs to the specified domain.

 

See Also:

$nslookup

Yes No
Suggest Edit