For AI agents: see the complete documentation index at /llms.txt.
Restrict media zones
Updated
Control and customize Signaling data routing in your app
To comply with local laws and regulations, you can restrict user connections to specific geographic zones. Agora enables you to control data routing in your app by specifying the Agora SDRTN® zones that users can connect to.
Understand the tech
When you set area codes in your client configuration, the SDK only accesses the Agora server in the specified zone(s), irrespective of the geographical location of the user.
The following zones are available:
- GLOB: Global (Default)
- NA: North America
- CN: Mainland China.
- AS: Asia excluding mainland China.
- EU: Europe
- IN: India
- JP: Japan
Prerequisites
Ensure that you have implemented the SDK quickstart in your project.
Configure geographical zones
To configure geographical access, specify area codes in the configuration when you initialize a Signaling client instance. You can combine the codes to include or exclude specific zones.
// Set whitelist and blacklist areas
AgoraRTM.setArea({ areaCodes: ["GLOBAL"], excludedArea: "CHINA" })Reference
This section contains content that completes the information on this page, or points you to documentation that explains other aspects to this product.
API reference
To comply with local laws and regulations, you can restrict user connections to specific geographic zones. Agora enables you to control data routing in your app by specifying the Agora SDRTN® zones that users can connect to.
Understand the tech
When you set area codes in your client configuration, the SDK only accesses the Agora server in the specified zone(s), irrespective of the geographical location of the user.
The following zones are available:
- GLOB: Global (Default)
- NA: North America
- CN: Mainland China.
- AS: Asia excluding mainland China.
- EU: Europe
- IN: India
- JP: Japan
Prerequisites
Ensure that you have implemented the SDK quickstart in your project.
Configure geographical zones
To configure geographical access, specify area codes in the configuration when you initialize a Signaling client instance. You can combine the codes to include or exclude specific zones.
RtmConfig rtmConfig = new RtmConfig.Builder("<your_app_id>", "<your_user_Id>")
.areaCode(EnumSet.of(RtmConstants.RtmAreaCode.AS, RtmConstants.RtmAreaCode.CN))
.eventListener(eventListener)
.build();val rtmConfig = RtmConfig.Builder("appid", "userId")
.areaCode(EnumSet.of(RtmConstants.RtmAreaCode.AS, RtmConstants.RtmAreaCode.CN))
.eventListener(eventListener)
.build()Reference
This section contains content that completes the information on this page, or points you to documentation that explains other aspects to this product.
API reference
To comply with local laws and regulations, you can restrict user connections to specific geographic zones. Agora enables you to control data routing in your app by specifying the Agora SDRTN® zones that users can connect to.
Understand the tech
When you set area codes in your client configuration, the SDK only accesses the Agora server in the specified zone(s), irrespective of the geographical location of the user.
The following zones are available:
- GLOB: Global (Default)
- NA: North America
- CN: Mainland China.
- AS: Asia excluding mainland China.
- EU: Europe
- IN: India
- JP: Japan
Prerequisites
Ensure that you have implemented the SDK quickstart in your project.
Configure geographical zones
To configure geographical access, specify area codes in the configuration when you initialize a Signaling client instance. You can combine the codes to include or exclude specific zones.
{`let config = AgoraRtmClientConfig(appId: "<your_app_id>", userId: "<your_user_id>")
config.areaCode = [.CN, .NA]`}{`AgoraRtmClientConfig *rtm_cfg = [[AgoraRtmClientConfig alloc] initWithAppId:@"<your_app_id>" userId:@"<your_user_id>"];
rtm_cfg.areaCode = AgoraRtmAreaCodeNA;`}Reference
This section contains content that completes the information on this page, or points you to documentation that explains other aspects to this product.
API reference
To comply with local laws and regulations, you can restrict user connections to specific geographic zones. Agora enables you to control data routing in your app by specifying the Agora SDRTN® zones that users can connect to.
Understand the tech
When you set area codes in your client configuration, the SDK only accesses the Agora server in the specified zone(s), irrespective of the geographical location of the user.
The following zones are available:
- GLOB: Global (Default)
- NA: North America
- CN: Mainland China.
- AS: Asia excluding mainland China.
- EU: Europe
- IN: India
- JP: Japan
Prerequisites
Ensure that you have implemented the SDK quickstart in your project.
Configure geographical zones
To configure geographical access, specify area codes in the configuration when you initialize a Signaling client instance. You can combine the codes to include or exclude specific zones.
{`let config = AgoraRtmClientConfig(appId: "<your_app_id>", userId: "<your_user_id>")
config.areaCode = [.CN, .NA]`}{`AgoraRtmClientConfig *rtm_cfg = [[AgoraRtmClientConfig alloc] initWithAppId:@"<your_app_id>" userId:@"<your_user_id>"];
rtm_cfg.areaCode = AgoraRtmAreaCodeNA;`}Reference
This section contains content that completes the information on this page, or points you to documentation that explains other aspects to this product.
API reference
To comply with local laws and regulations, you can restrict user connections to specific geographic zones. Agora enables you to control data routing in your app by specifying the Agora SDRTN® zones that users can connect to.
Understand the tech
When you set area codes in your client configuration, the SDK only accesses the Agora server in the specified zone(s), irrespective of the geographical location of the user.
The following zones are available:
- GLOB: Global (Default)
- NA: North America
- CN: Mainland China.
- AS: Asia excluding mainland China.
- EU: Europe
- IN: India
- JP: Japan
Prerequisites
Ensure that you have implemented the SDK quickstart in your project.
Configure geographical zones
To configure geographical access, specify area codes in the configuration when you initialize a Signaling client instance. You can combine the codes to include or exclude specific zones.
// Create a Set containing specific RtmAreaCode values
Set<RtmAreaCode> areaCodes = {RtmAreaCode.na, RtmAreaCode.eu};
// Use the areaCodes in RtmConfig
RtmConfig config = RtmConfig(
areaCode: areaCodes
);Reference
This section contains content that completes the information on this page, or points you to documentation that explains other aspects to this product.
API reference
To comply with local laws and regulations, you can restrict user connections to specific geographic zones. Agora enables you to control data routing in your app by specifying the Agora SDRTN® zones that users can connect to.
Understand the tech
When you set area codes in your client configuration, the SDK only accesses the Agora server in the specified zone(s), irrespective of the geographical location of the user.
The following zones are available:
- GLOB: Global (Default)
- NA: North America
- CN: Mainland China.
- AS: Asia excluding mainland China.
- EU: Europe
- IN: India
- JP: Japan
Prerequisites
Ensure that you have implemented the SDK quickstart in your project.
Configure geographical zones
To configure geographical access, specify area codes in the configuration when you initialize a Signaling client instance. You can combine the codes to include or exclude specific zones.
const client = createAgoraRtmClient(
new RtmConfig({
userId: '<your_user_id>',
appId: '<your_app_id>',
useStringUserId: true,
areaCode: RtmAreaCode.as | RtmAreaCode.cn, // Multiple areas using bitwise OR
// Or use a single area:
// areaCode: RtmAreaCode.as,
})
);Reference
This section contains content that completes the information on this page, or points you to documentation that explains other aspects to this product.
API reference
To comply with local laws and regulations, you can restrict user connections to specific geographic zones. Agora enables you to control data routing in your app by specifying the Agora SDRTN® zones that users can connect to.
Understand the tech
When you set area codes in your client configuration, the SDK only accesses the Agora server in the specified zone(s), irrespective of the geographical location of the user.
The following zones are available:
- GLOB: Global (Default)
- NA: North America
- CN: Mainland China.
- AS: Asia excluding mainland China.
- EU: Europe
- IN: India
- JP: Japan
Prerequisites
Ensure that you have implemented the SDK quickstart in your project.
Configure geographical zones
To configure geographical access, specify area codes in the configuration when you initialize a Signaling client instance. You can combine the codes to include or exclude specific zones.
rtmConfig.areaCode = RTM_AREA_CODE_NA;
int ret = signalingEngine->initialize(rtmConfig);Reference
This section contains content that completes the information on this page, or points you to documentation that explains other aspects to this product.
API reference
To comply with local laws and regulations, you can restrict user connections to specific geographic zones. Agora enables you to control data routing in your app by specifying the Agora SDRTN® zones that users can connect to.
Understand the tech
When you set area codes in your client configuration, the SDK only accesses the Agora server in the specified zone(s), irrespective of the geographical location of the user.
The following zones are available:
- GLOB: Global (Default)
- NA: North America
- CN: Mainland China.
- AS: Asia excluding mainland China.
- EU: Europe
- IN: India
- JP: Japan
Prerequisites
Ensure that you have implemented the SDK quickstart in your project.
Configure geographical zones
To configure geographical access, specify area codes in the configuration when you initialize a Signaling client instance. You can combine the codes to include or exclude specific zones.
rtmConfig.areaCode = RTM_AREA_CODE_NA;
int ret = signalingEngine->initialize(rtmConfig);Reference
This section contains content that completes the information on this page, or points you to documentation that explains other aspects to this product.
API reference
To comply with local laws and regulations, you can restrict user connections to specific geographic zones. Agora enables you to control data routing in your app by specifying the Agora SDRTN® zones that users can connect to.
Understand the tech
When you set area codes in your client configuration, the SDK only accesses the Agora server in the specified zone(s), irrespective of the geographical location of the user.
The following zones are available:
- GLOB: Global (Default)
- NA: North America
- CN: Mainland China.
- AS: Asia excluding mainland China.
- EU: Europe
- IN: India
- JP: Japan
Prerequisites
Ensure that you have implemented the SDK quickstart in your project.
Configure geographical zones
To configure geographical access, specify area codes in the configuration when you initialize a Signaling client instance. You can combine the codes to include or exclude specific zones.
rtmConfig.areaCode = Agora.Rtm.RTM_AREA_CODE.NA;Reference
This section contains content that completes the information on this page, or points you to documentation that explains other aspects to this product.
