Guest User

OpenSIPS Configuration

a guest
Feb 14th, 2025
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. Here is the opensips configuration
  2. udp_workers=16 use_auto_scaling_profile PROFILE_SIP
  3. auto_scaling_profile = PROFILE_SIP
  4. scale up to 32 on 70% for 1 cycles within 3
  5. scale down to 16 on 18% for 10 cycles
  6.  
  7. auto_scaling_profile = PROFILE_TIMER
  8. scale up to 6 on 70% for 4 cycles within 5
  9. scale down to 2 on 18% for 10 cycles
  10.  
  11. tcp_workers = 16 use_auto_scaling_profile PROFILE_SIP
  12.  
  13. timer_workers = 2 use_auto_scaling_profile PROFILE_TIMER
  14.  
  15.  
  16. loadmodule "usrloc.so"
  17. modparam("usrloc", "nat_bflag", "NAT")
  18. modparam("usrloc", "db_url", DBURL) #postgres
  19. modparam("usrloc", "working_mode_preset", "federation-cachedb-cluster")
  20. modparam("usrloc", "location_cluster", CLUSTER_ID)
  21. modparam("usrloc", "pinging_mode", "ownership")
  22. modparam("usrloc", "use_domain", 1)
  23. modparam("usrloc", "cachedb_url", MONGO_URL) #Mongo
  24.  
  25. modparam("nathelper", "natping_interval", 10)
  26. modparam("nathelper", "natping_socket", "ALIAS_IP1:5060")
  27. modparam("nathelper", "received_avp", "$avp(received)")
  28. modparam("nathelper", "sipping_from", "sip:ALIAS_IP1:5060")
  29. modparam("nathelper", "sipping_method", "OPTIONS")
  30. modparam("nathelper", "sipping_bflag", "SIP_PING_FLAG")
  31. modparam("nathelper", "natping_tcp", 1)
  32. modparam("nathelper", "remove_on_timeout_bflag", "SIPPING_RTO")
  33. modparam("nathelper", "ping_nated_only", 1)
Advertisement
Add Comment
Please, Sign In to add comment