osmocom.gsmtap

GSMTAP pseudo-header for protocol traces

Osmocom GSMTAP python implementation. GSMTAP is a packet format used for conveying a number of different telecom-related protocol traces over UDP.

class osmocom.gsmtap.GsmtapMessage(encoded=None)

Class whose objects represent a single GSMTAP message. Can encode and decode messages.

class osmocom.gsmtap.GsmtapReceiver(bind_ip: str = '127.0.0.1', bind_port: int = 4729)

Simple receive-side socket implementation for GSMTAP messages.

read_packet() GsmtapMessage

Perform a blocking read on the GSMTAP socket and decode it as GSMTAP message.