Understanding SIP integration using an Amazon Chime SDK Voice Connector
Integrate your SIP-compatible voice infrastructure with an Amazon Chime SDK Voice Connector to make SIP voice calls. You must use the us-east-1
or us-east-2
Regions.
You must have an IP Private Branch Exchange (PBX), Session Border Controller (SBC), or other voice infrastructure with internet access that supports Session Initiation Protocol (SIP).
For more information, see Before you begin in the Amazon Chime SDK Administrator Guide.
To integrate your voice infrastructure
Create an Amazon Chime SDK Voice Connector under your AWS account. For more information, see Creating an Amazon Chime SDK Voice Connector in the Amazon Chime SDK Administrator Guide.
Edit your Amazon Chime SDK Voice Connector settings to allow calling from your voice infrastructure to AWS. For more information, see Editing Amazon Chime SDK Voice Connector settings in the Amazon Chime SDK Administrator Guide.
For Termination settings, select Enabled.
For Allowlist, choose New.
Enter the CIDR notations of the IP addresses for your internal SIP infrastructure. This allows your infrastructure to access the Amazon Chime SDK Voice Connector. For example, to allow traffic from IP address
10.24.34.0
, allowlist the CIDR notation10.24.34.0/32
.Choose Add.
For Calling plan, select the country or countries to add to your calling plan.
Edit any other settings as needed, and choose Save.
In the Amazon Chime SDK console, under Voice connectors, view the Outbound host name for your Amazon Chime SDK Voice Connector. For example,
abcdef1ghij2klmno3pqr4
.voiceconnector.chime.aws.To join a meeting using the Amazon Chime SDK, use a SIP URI to make a SIP request to the Outbound host name of your Amazon Chime SDK Voice Connector. Use phone number
+17035550122
in the SIP URI. Set thetransport
parameter to use the TLS protocol. Finally, use the unique join token generated by calling the CreateAttendee API action. For more information, see the following example.
Example: SIP request
The following example shows the contents of a SIP URI used to make a SIP request to an Amazon Chime SDK Voice Connector.
sip:+17035550122@
abcdef1ghij2klmno3pqr4
.voiceconnector.chime.aws;transport=tls;X-chime-join-token=join-token
The following example shows a sample SIP INVITE message to join an Amazon Chime SDK meeting.
INVITE sip:+17035550122@
abcdef1ghij2klmno3pqr4
.voiceconnector.chime.aws;transport=tls;X-chime-join-token=join-token
SIP/2.0 Via: SIP/2.0/TLSIPaddress
:12345;rport;branch=branch
;alias Max-Forwards: 70 From: sip:+12065550100
@IPaddress
;tag=tag
To: sip:+17035550122@abcdef1ghij2klmno3pqr4
.voiceconnector.chime.aws;X-chime-join-token=join-token
Contact: <sip:+12065550100
@IPaddress
:54321;transport=TLS;ob> Call-ID: a1234567-89b0-1c2d-e34f-5gh678j9k2lm CSeq: 6214 INVITE Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Supported: replaces, 100rel, timer, norefersub Session-Expires: 1800 Min-SE: 90 Content-Type: application/sdp Content-Length: 991 v=0 o=- 3775321410 3775321410 IN IP4IPaddress
s=pjmedia b=AS:117 t=0 0 a=X-nat:0 m=audio 4000 RTP/SAVP 0 3 8 9 125 101 c=IN IP4IPaddress
b=TIAS:96000 a=rtcp:4001 IN IP4IPaddress
a=sendrecv a=rtpmap:0 PCMU/8000 a=rtpmap:3 GSM/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:9 G722/8000 a=rtpmap:125 opus/48000/2 a=fmtp:125 useinbandfec=1 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=crypto:1 AEAD_AES_256_GCM inline:EXAMPLE
a=crypto:2 AEAD_AES_256_GCM_8 inline:EXAMPLE
a=crypto:3 AES_256_CM_HMAC_SHA1_80 inline:EXAMPLE
a=crypto:4 AES_256_CM_HMAC_SHA1_32 inline:EXAMPLE
a=crypto:5 AES_CM_128_HMAC_SHA1_80 inline:EXAMPLE
a=crypto:6 AES_CM_128_HMAC_SHA1_32 inline:EXAMPLE
Note
The Amazon Chime SDK recognizes phone numbers only in E.164 format. Make sure that an E.164 phone number is
in your From
header.