Regional SIP Domains | Twilio

文章推薦指數: 80 %
投票人數:10人

You may create a SIP Domain with the same friendly name and SIP URI in multiple Regions. However, a SIP Domain with a given URI will only be "active" (in the ... TwilioDocs SMS Voice Runtime Video Studio Alldocs... SDKs Help Login Signup SMS Voice Runtime Video Studio Alldocs... SDKs Help Login Signup GlobalInfrastructure Twilio Menu GettingStarted Overview TwilioRegions EdgeLocations Buildinginnon-USRegions Incomingcallroutingforphonenumbers ManagingRegionalResourcesinConsole UsingtheTwilioRESTAPIinanon-USRegion RegionalSIPDomains RegionalSIPTrunks Quickstart:OutboundcallswiththeRESTAPI Quickstart:JavascriptVoiceSDK Quickstart:iOSVoiceSDK MigratingyourapplicationtoanewRegion Reference EdgeLocations Regionsandproductavailability LegacyEdgeLocations(formerlyRegions) FirewallConfigurations ProgrammableVoiceSDKs MediaStreams LocalizedURIs SIPURIs Termination InterconnectSIPURIs InterconnectTermination Collapse Expand Ratethispage: WhencallsarearesenttoorreceivedfromdevicesregisteredwithyourTwilioSIPDomain,theassociatedcalldataisprocessedandstoredwithinaTwilioRegion. ThisguidewillexplaintheimplicationstoyourapplicationofthisRegion-specificprocessingandstorage,andshowyouhowtocontrolwhichTwilioRegionisusedforcallstoandfromyourSIPDomain. SIPDomainsandRegionalRouting BeforeyoucanuseyourSIPDomaininaRegion,youmustfirstcreatetheSIPDomainresourceinthetargetRegion.TolearnhowtomanageRegionalresourcesviatheTwilioConsole,checkoutthisguide. YoumaycreateaSIPDomainwiththesamefriendlynameandSIPURIinmultipleRegions.However,aSIPDomainwithagivenURIwillonlybe"active"(inthesensethatitcanreceiveregistrationsandcalls)inoneRegionatanytime. WhenyouhaveaSIPDomaininmultipleRegions,checkwhichoneisactivebyviewingtheDomain'sconfigurationforaRegioninTwilioConsoleandlookingfortheroutingcard.TochangewhichRegionisactive,clicktheRe-routebuttoninthetargetRegion'sconfiguration. WhicheverRegionisactivewillbetheRegionwheredevicesareregisteredandcallsarehandled. NotethatIPAccessControlListsandCredentialListsarealsoRegion-specific.WhenconfiguringyourSIPDomaininagivenRegion,you'llneedtocreatetheserelatedresourcesinthesameRegion. NowthatyouknowhowtoconfigureandactivateyourSIPDomainintheRegionofyourchoice,let'stakealookatthedifferenttypesofactivitiespoweredbySIPDomains,andseehowtheyeachrelatetoTwilioRegions. RegisterSIPEndpoints BeforeyoucanmakeorreceivecallsviayourSIPDomain,you'llneedtoregisterdeviceswiththedomain. WhenyouregisterSIPdeviceswithyourSIPDomain,theregistrationrecordsarestoredintheTwilioRegionwhereyourSIPDomainiscurrentlyrouted.DevicesregisteredinagivenRegionmayonlyinteractwithCallsthatareprocessedinthesameRegion. Forexample,ifyouhaveadeviceregisteredtoyourSIPDomainIE1,andyouattempttomakeaCalltothedevice'sAORusingtheTwilioAPIinUS1,you'llgetanerrorindicatingthatthedeviceisnotregistered.TosuccessfullymaketheCall,you'llneedtousetheTwilioAPIinIE1.TolearnmoreaboutusingTwilio'sRegionalAPIendpoints,seethisguide. Makecallsfromyourregistereddevices WhenTwilioreceivesaSIPInviterequestfromanendpointregisteredonyourDomain,itcreatesacorrespondingCallrecord,andthenhandlesthecallbasedonyourDomain'swebhookconfiguration.ThisalloccursinwhicheverTwilioRegionyourDomainiscurrentlyroutedto. RequestsareauthenticatedbasedontheIPAccessControlListsandCredentialListsconfiguredforyourDomainintheRegion. MakecallstoyourregistereddevicesviaRESTAPI WhenyourapplicationasksTwiliotoinitiateanoutboundSIPCallfromyourdomainviatheTwilioRESTAPI,theprocessingandstoragerelatedtotheCallwilloccurininthesameRegionthatyousendtheAPIrequestto.TolearnmoreaboutusingtheRESTAPIwithyourtargetRegion,seeourguideonthetopic. MakecallstoyourregistereddevicesviaTwiML AnotherwaytomakeacalltoyourDomain'sregistereddevicesisbyrespondingwithaTwiMLinstructiontoanexistingTwilioCallwebhook.Asyoumightguess,theCallprocessingandstoragefortheresultingSIPcallwilloccurinthesameRegionwheretheTwiMLisprocessed-i.e.theRegionhandlingtheoriginalCall. ConnectingtoalocalEdgeLocationwithlocalizedSIPURIs WhenregisteringdeviceswithyourSIPDomain,youcanconnecttoTwilioviaaspecificEdgeLocationbyusinga"localized"formofyourSIPURI.SeethisreferenceforacompletelistoftheselocalizedURIs. NotethatthelocalizedURIyouselectdoesnotaffectwhichTwilioRegionwillbeusedtoprocessregistrationsandcalls.TheURIitselfaffectsnetworkingressonly,andprocessingRegionisselectedbasedonwhichofyourSIPDomain'sRegionconfigurationsiscurrentlyactive. Ratethispage: Needsomehelp? Wealldosometimes;codeishard.Gethelpnowfromoursupportteam,orleanonthewisdomofthecrowdbyvisitingTwilio'sStackOverflowCollectiveorbrowsingtheTwiliotagonStackOverflow. YouareviewinganoutdatedversionofthisSDK. NextSample ExampleJSONresponse Thankyouforyourfeedback! Pleaseselectthereason(s)foryourfeedback.Theadditionalinformationyouprovidehelpsusimproveourdocumentation: IfapplicablefillinthecountrieswhereyouareusingTwilio Missinginformationorcode Contentisconfusingorhardtofollow Inaccurateoroutdatedinformation Brokenlinkortypo Didnotsolvemyproblem Contentiseasytofollow Solvedmyproblem Other Sendyoursuggestions Needhelp?TalktoSupport ProtectedbyreCAPTCHA–Privacy-Terms Sendingyourfeedback... 🎉Thankyouforyourfeedback! Somethingwentwrong.Pleasetryagain. Thanksforyourfeedback! Referusandget$10in3simplesteps! Step1 Getlink Getafreepersonalreferrallinkhere Step2 Give$10 Yourusersignsupandupgradeusinglink Step3 Get$10 1,250freeSMSesOR1,000freevoiceminsOR12,000chatsORmore Learnmoreaboutthereferralprogram



請為這篇文章評分?