callagent: Stop using hex for the DS endpoints
This commit is contained in:
parent
41b5e63eae
commit
0d952b54fb
|
@ -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}
|
||||
]
|
||||
]
|
||||
|
|
|
@ -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 [
|
||||
|
|
Reference in New Issue