1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #ifndef __JNI_SIP_CONFIG_H_
- #define __JNI_SIP_CONFIG_H_
- #include "base/strings.hpp"
- #define SIP_REG_DOMAIN "sip_reg_domain"
- #define SIP_REG_ACCOUNT "sip_reg_account"
- #define SIP_REG_PASSWORD "sip_reg_password"
- #define SIP_REG_PORT "sip_reg_port"
- #define SIP_REG_DOOR_ACCOUNT "sip_reg_door_account"
- #define SIP_REG_WUYEADDRESS "sip_reg_wuyeaddress"
- #define SIP_AUTO_ANSWER "sip_auto_answer"
- #define SIP_ENABLE_VIDEO "sip_enable_video"
- #define SIP_ENABLE_ICE "sip_enable_ice"
- #define SIP_STUN_TURN_SERVER "sip_stun_turn_server"
- #define SIP_DTMF "sip_dtmf_method"
- #define SIP_UNLOCK_TEXT "sip_unlock_text"
- #define SIP_REG_URI "sip_reg_uri"
- #define SIP_JHWS_TOKEN "sip_jhws_token"
- #define SIP_JHWS_USERSID "sip_jhws_usersid"
- #define SIP_JHWS_USERSPASSWORD "sip_jhws_userspassword"
- #define SIP_JHWS_COMMUNITYCODE "sip_jhws_communitycode"
- #define SIP_JHWS_FLOORCODE "sip_jhws_floorcode"
- #define SIP_JHWS_ROOMCODE "sip_jhws_roomcode"
- #define SIP_JHWS_ROOMID "sip_jhws_roomid"
- #define SIP_JHWS_COMMUNITYID "sip_jhws_communityid"
- #define SIP_JHWS_UNITID "sip_jhws_unitid"
- #define SIP_JHWS_UPDATETIME "sip_jhws_updatetime"
- #if 1
- #define SIP_REG_DOMAIN_DEFAULT "172.28.100.100"
- #define SIP_REG_ACCOUNT_DEFAULT "4000117370"
- #define SIP_REG_PASSWORD_DEFAULT "4000117370"
- #define SIP_REG_DOOR_ACCOUNT_DEFAULT "4000510200"
- #define SIP_REG_PORT_DEFAULT 5060
- #else
- #define SIP_REG_URI_DEFAULT "sip:RM-414-1-1-1-1-7@test.jhws.top"
- #define SIP_REG_SERVER_DEFAULT "sip:test.jhws.top"
- #define SIP_REG_NAME_DEFAULT "RM-414-1-1-1-1-7"
- #define SIP_REG_PASSWORD_DEFAULT ""
- #define SIP_REG_DOOR_URI_DEFAULT "sip:OD-414-1-1-1-0-1@jhws.top"
- #define SIP_REG_PORT_DEFAULT 58583
- #endif
- inline std::string URI(const std::string& account) {
- return base::format("sip:%s@jhws.top", account.c_str());
- }
- inline std::string URI(const std::string& account,
- const std::string& domain) {
- return base::format("sip:%s@%s", account.c_str(), domain.c_str());
- }
- inline std::string URI(const std::string& account,
- const std::string& domain, int port) {
- return base::format("sip:%s@%s:%d", account.c_str(), domain.c_str(), port);
- }
- #endif
|