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

callagent: Stop using hex for the DS endpoints

This commit is contained in:
Holger Hans Peter Freyther 2011-06-24 19:57:56 +02:00
parent 41b5e63eae
commit 0d952b54fb
2 changed files with 2 additions and 2 deletions

View File

@ -127,6 +127,6 @@ MGCPTrunkBase subclass: MGCPDSTrunk [
]
endpointName: aNr [
^ 'ds/e1-%1/%2@mgw' % {trunk. ((aNr radix: 16) copyFrom: 4) asLowercase}
^ 'ds/e1-%1/%2@mgw' % {trunk. aNr}
]
]

View File

@ -64,7 +64,7 @@ TestCase subclass: MGCPCommandTest [
"I test the endpoint name on hex part.."
self assert: (MGCPVirtualTrunk new endpointName: 16rA) = 'a@mgw'.
self assert: (trunk endpointName: 16rA) = 'ds/e1-1/a@mgw'.
self assert: (trunk endpointName: 16rA) = 'ds/e1-1/10@mgw'.
]
tearDown [