mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-msc.git
synced 2025-10-23 08:12:10 +00:00
This is the first step in creating this repository from the legacy openbsc.git. Like all other Osmocom repositories, keep the autoconf and automake files in the repository root. openbsc.git has been the sole exception, which ends now. Change-Id: I9c6f2a448d9cb1cc088cf1cf6918b69d7e69b4e7
22 lines
596 B
Smalltalk
22 lines
596 B
Smalltalk
"
|
|
Simple UDP replay from the state files
|
|
"
|
|
|
|
PackageLoader fileInPackage: #Sockets.
|
|
FileStream fileIn: 'rtp_replay_shared.st'.
|
|
|
|
|
|
Eval [
|
|
| replay file host dport |
|
|
|
|
file := Smalltalk arguments at: 1 ifAbsent: [ 'rtpstream.state' ].
|
|
host := Smalltalk arguments at: 2 ifAbsent: [ '127.0.0.1' ].
|
|
dport := (Smalltalk arguments at: 3 ifAbsent: [ '4000' ]) asInteger.
|
|
sport := (Smalltalk arguments at: 4 ifAbsent: [ '0' ]) asInteger.
|
|
|
|
replay := RTPReplay on: file fromPort: sport.
|
|
|
|
Transcript nextPutAll: 'Going to stream now'; nl.
|
|
replay streamAudio: host port: dport.
|
|
]
|