summaryrefslogtreecommitdiffstats
path: root/callagent/session/SIPSessionBase.st
diff options
context:
space:
mode:
Diffstat (limited to 'callagent/session/SIPSessionBase.st')
-rw-r--r--callagent/session/SIPSessionBase.st10
1 files changed, 8 insertions, 2 deletions
diff --git a/callagent/session/SIPSessionBase.st b/callagent/session/SIPSessionBase.st
index bc4a15d..2cadbad 100644
--- a/callagent/session/SIPSessionBase.st
+++ b/callagent/session/SIPSessionBase.st
@@ -17,7 +17,7 @@
"
Object subclass: SIPSessionBase [
- | rem ua initial_dialog dialog next_cseq |
+ | rem ua identity initial_dialog dialog next_cseq |
<category: 'OsmoSIP-Callagent'>
<comment: 'I am the base for sessions. I am a bit backward as the
Dialog will create/hold the session but we start with the session here
@@ -29,6 +29,7 @@ a proper session.'>
<category: 'creation'>
^ self new
useragent: aUseragent;
+ identity: aUseragent mainIdentity;
initialDialog: aDialog;
yourself
]
@@ -37,7 +38,7 @@ a proper session.'>
<category: 'creation'>
initial_dialog := aDialog.
initial_dialog contact: ('sip:<1s>@<2p>:<3p>'
- expandMacrosWith: ua username with: ua transport address with: ua transport port).
+ expandMacrosWith: identity username with: ua transport address with: ua transport port).
]
useragent: aUseragent [
@@ -45,6 +46,11 @@ a proper session.'>
ua := aUseragent
]
+ identity: anIdentity [
+ <category: 'creation'>
+ identity := anIdentity
+ ]
+
callId [
<category: 'info'>
^ initial_dialog callId