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

callagent: Switch to use symbols for the state

This makes printing the state easier.
This commit is contained in:
Holger Hans Peter Freyther 2011-06-23 20:03:20 +02:00
parent 9eacd8c1ad
commit 2ba9986259
1 changed files with 4 additions and 4 deletions

View File

@ -21,10 +21,10 @@ Object subclass: MGCPEndpoint [
<category: 'MGCP-Callagent'>
<comment: 'I am one endpoint. I have a state...'>
MGCPEndpoint class >> stateUnused [ <category: 'states'> ^ 0 ]
MGCPEndpoint class >> stateReserved [ <category: 'states'> ^ 1 ]
MGCPEndpoint class >> stateUsed [ <category: 'states'> ^ 2 ]
MGCPEndpoint class >> stateBlocked [ <category: 'states'> ^ 3 ]
MGCPEndpoint class >> stateUnused [ <category: 'states'> ^ #unused ]
MGCPEndpoint class >> stateReserved [ <category: 'states'> ^ #reserved ]
MGCPEndpoint class >> stateUsed [ <category: 'states'> ^ #used ]
MGCPEndpoint class >> stateBlocked [ <category: 'states'> ^ #blocked ]
MGCPEndpoint class >> initWith: aNr trunk: aTrunk [
^ self new