SIP URI - VoIP-Info

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

A SIP or SIPS URI identifies a communications resource. Like all URIs, SIP and SIPS URIs may be placed in web pages, email messages, or printed literature. FromtheSIPRFC3261: ASIPorSIPSURIidentifiesacommunicationsresource.LikeallURIs,SIPandSIPSURIsmaybeplacedinwebpages,emailmessages,orprintedliterature.Theycontainsufficientinformationtoinitiateandmaintainacommunicationsessionwiththeresource. The“sip:”and“sips:”schemesfollowtheguidelinesinRFC2396–UniformResourceIdentifiers(URI):GenericSyntax. TheyuseaformsimilartothemailtoURL,allowingthespecificationofSIPrequest-headerfieldsandtheSIPmessage-body.Thismakesitpossibletospecifythesubject,mediatype,orurgencyofsessionsinitiatedbyusingaURIonawebpageorinanemailmessage.Itsgeneralform,inthecaseofaSIPURI,is: sip:user:[email protected]:port;uri-parameters?headers TheformatforaSIPSURIisthesame,exceptthattheschemeis“sips”insteadofsip.Thesetokens,andsomeofthetokensintheirexpansions,havethefollowingmeanings: user:Theidentifierofaparticularresourceatthehostbeingaddressed.Theterm“host”inthiscontextfrequentlyreferstoadomain.The“userinfo”ofaURIconsistsofthisuserfield,thepasswordfield,andthe@signfollowingthem.TheuserinfopartofaURIisoptionalandMAYbeabsentwhenthedestinationhostdoesnothaveanotionofusersorwhenthehostitselfistheresourcebeingidentified.Ifthe@signispresentinaSIPorSIPSURI,theuserfieldMUSTNOTbeempty. Ifthehostbeingaddressedcanprocesstelephonenumbers,forinstance,anInternettelephonygateway,atelephonesubscriberfielddefinedinRFC2806MAYbeusedtopopulatetheuserfield.Therearespecialescapingrulesforencodingtelephone-subscriberfieldsinSIPandSIPSURIsdescribedinSection19.1.2. password:Apasswordassociatedwiththeuser.WhiletheSIPandSIPSURIsyntaxallowsthisfieldtobepresent,itsuseisNOTRECOMMENDED,becausethepassingofauthenticationinformationincleartext(suchasURIs)hasproventobeasecurityriskinalmosteverycasewhereithasbeenused.Forinstance, transportingaPINnumberinthisfieldexposesthePIN. Notethatthepasswordfieldisjustanextensionoftheuserportion.ImplementationsnotwishingtogivespecialsignificancetothepasswordportionofthefieldMAYsimplytreat“user:password”asasinglestring. host:ThehostprovidingtheSIPresource.Thehostpartcontainseitherafully-qualifieddomainnameornumericIPv4orIPv6address.Usingthefully-qualifieddomainnameformisRECOMMENDEDwheneverpossible. port:Theportnumberwheretherequestistobesent. Note:AsipURIwith[email protected]:5060isnotthesameas[email protected].Iftheportnumberisgiven,aDNSgethostbynameisusedtofindthehost.Ifthere’sisnoportnumber,thehostnameislookedupwithDNSSRV.ThishostnamecanpointtooneorseveralSIPproxyservers. Telephonenumbers Ifyoudialatelephonenumberonakeypad,thisisconvertedintoaSIPURIoftheformsip:nnnnn@domain;user=phoneorsip:nnnnn@host:5060;user=phone The“user=phone”parameterindicatesthattheuserportionoftheURI(theparttotheleftofthe@sign)shouldbetreatedasatelURI,so“sip:[email protected];user=phone”shouldbetreatedastel:+1555000000″.NotethattelURIparameters(suchasphone-context)asincludedintheuserpart,nottheSIPURIitself,i.e“sip:121;[email protected];user=phone”isthesameas“tel:121;phone-context=+44” Typicallyaproxyserverforthedomainwilluseadialplantoresolvethisintoarealdestination.SeealsoAsteriskExtensionMatching DialbyIPaddress SomephonesletyoudialadestinationdirectlybyIPaddress,e.g.dialling#192168001051wouldplaceacallto192.168.1.51 PresumablythisisresolvedintoaSIPURIoftheformsip:192.168.1.51:5060?(TBC) Seealso TEL:TheTel:URIforspecifyingphonecalls. BacktoSIP LatestPostsQuickLinks Get3CXFreefor1Year Hostedby3CX,inyourprivatecloudoron-premise!Nostringsattached,getstartedtoday: A3CXAccountwiththatemailalreadyexists.YouwillberedirectedtotheCustomerPortaltosigninorresetyourpasswordifyou'veforgottenit. oruse VerifyyourEmail Checkyourinbox! We’vesentyouanemail.Clickonthebuttonintheemailbodytoverifyyouremailaddress–(ifyoucannotfindit,checkyourspamfolder). Uponverificationyouwillbedirectedtothe3CXsetupwizard. Weusecookiestoimproveyourexperienceonourwebsite.Bycontinuingyouaregivingconsenttocookiesbeingused. Accept



請為這篇文章評分?