smalltalk
/
osmo-st-sip
Archived
1
0
Fork 0

callagent: Provide a proper Contact header for this service

This commit is contained in:
Holger Hans Peter Freyther 2011-07-05 09:32:20 +02:00
parent d188d2afed
commit bba8bd1bc2
2 changed files with 9 additions and 2 deletions

View File

@ -50,9 +50,9 @@ will simply ignore everything but the first dialog.'>
SIPCall class >> fromUser: aUser host: aHost port: aPort to: aTo on: aUseragent [
<category: 'creation'>
^ self new
useragent: aUseragent;
initialDialog: ((SIPDialog fromUser: aUser host: aHost port: aPort)
to: aTo; yourself);
useragent: aUseragent;
yourself
]
@ -79,7 +79,9 @@ will simply ignore everything but the first dialog.'>
initialDialog: aDialog [
<category: 'creation'>
initial_dialog := aDialog
initial_dialog := aDialog.
initial_dialog contact: 'osmo_st_sip@%1:%2'
% {ua transport address. ua transport port}.
]
useragent: aUseragent [

View File

@ -197,6 +197,11 @@ Object subclass: SIPUserAgentBase [
transport handler: self.
]
transport [
<category: 'accessing'>
^ transport
]
queueData: aDatagram [
transport queueData: aDatagram.
]