MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / newSipDialogRegister1

Method newSipDialogRegister1

SIP/SIPDialog.cpp:100–113  ·  view source on GitHub ↗

There is just one SipDialog that handles all REGISTER requests.

Source from the content-addressed store, hash-verified

98
99// There is just one SipDialog that handles all REGISTER requests.
100SipDialog *SipDialog::newSipDialogRegister1() // caller imsi
101{
102 LOG(DEBUG);
103 SipDialog *dialog = new SipDialog(SIPDTRegister,gConfig.getStr("SIP.Proxy.Registration"),"SIP.Proxy.Registration");
104 // RFC3261 10.2: REGISTER fields are different from normal requests.
105 // The Request URL is the IP address (only) of the Registrar.
106 // The To: is the 'address of record' formatted as a SIP URI.
107 // The From: is the 'responsible party' and is equal to To: unless it is a third-party registration.
108 // What about tags? I dont think it needs them because it is not a dialog creating request, but we add them
109 // anyway and it hasn't hurt anything.
110 dialog->dsSetCallId(globallyUniqueId(""));
111 gSipInterface.dmAddCallDialog(dialog);
112 return dialog;
113}
114
115// Open an MOSMS [Mobile Originated Short Message Service] SIP Transaction and send the invite.
116// We use a dialog for this even though it is just a message because it was easier to interface

Callers

nothing calls this directly

Calls 3

globallyUniqueIdFunction · 0.85
dsSetCallIdMethod · 0.80
dmAddCallDialogMethod · 0.80

Tested by

no test coverage detected