There is just one SipDialog that handles all REGISTER requests.
| 98 | |
| 99 | // There is just one SipDialog that handles all REGISTER requests. |
| 100 | SipDialog *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 |
nothing calls this directly
no test coverage detected