[UNMAINTAINED] Telon GSM-SIP Gateway Android application
Last updated Jun 30, 2026
83
Stars
90
Forks
12
Issues
+83
Stars/day
Attention Score
64
Language breakdown
No language data available.
โธ Files
click to expand
README
Telon GSM-SIP Gateway

About
๐ฑ The Telon GSM-SIP Gateway is an Android application that acts as a bidirectional bridge between GSM telephony and SIP (Session Initiation Protocol). It enables seamless integration of local GSM calls with SIP-based telephony systems, allowing users to make and receive calls through SIP infrastructure while using GSM hardware.How It Works
Core Architecture
The application consists of two main endpoints that work together to bridge GSM and SIP communications:- Telephony Endpoint (
react-native-tele): Handles GSM/telephony operations - SIP Endpoint (
react-native-sip2): Manages SIP protocol communications
Call Flow
Incoming SIP โ Outgoing GSM
- SIP call is received by the SIP endpoint
- Application extracts the destination number from SIP call
- Initiates outgoing GSM call using the telephony endpoint
- Bridges audio between SIP and GSM calls
- Handles call state synchronization (ringing, connected, terminated)
Incoming GSM โ Outgoing SIP
- GSM call is received by the telephony endpoint
- Application automatically rejects incoming GSM calls (for security)
- Only outgoing GSM calls initiated by SIP are processed
Device-Specific Configuration
The application automatically configures itself based on the device ID:| Device ID | SIP Account | GSM Configuration | |-----------|-------------|-------------------| | sp7731cea | 50015 | ReplaceDialer: true, Permissions: true | | Impress_City | 50014 | ReplaceDialer: false, Permissions: false | | Impress_Tor | 50017 | ReplaceDialer: true, Permissions: true | | QCReferencePhone | 50019 | ReplaceDialer: true, Permissions: true, fas: false | | MSM8937 | 50018 | ReplaceDialer: true, Permissions: true, fas: false | | Default | 50016 | ReplaceDialer: false, Permissions: false |
SIP Configuration
- Server: 192.168.88.254
- Transport: UDP
- Registration Timeout: 3600 seconds
- Network: Supports WiFi, 3G, Edge, GPRS, and roaming
Special Test Numbers
- 50014-50019: Test calls with fast answer
- 3333: Test call with destination "900"
- 4444: Test call with audio session activation
Features
- ๐ Bidirectional Gateway: Routes calls between GSM and SIP networks
- ๐ฑ Device Auto-Configuration: Automatically detects and configures based on device ID
- ๐ Security: Rejects incoming GSM calls to prevent unauthorized access
- ๐ Real-time Logging: Comprehensive logging for monitoring and debugging
- โ๏ธ Magisk Integration: System-level permissions for telephony operations
- ๐ต Audio Bridging: Seamless audio routing between GSM and SIP calls
Technical Requirements
Prerequisites
- ๐ฑ Android device running version 8.0 (Oreo) or higher
- ๐ง Root access (for Magisk module installation)
- ๐ก GSM SIM card with active service
- ๐ Network connectivity for SIP registration
System Permissions
The application requires elevated permissions through Magisk:android.permission.READ_LOGSandroid.permission.CAPTUREAUDIOOUTPUTandroid.permission.READPRECISEPHONE_STATEandroid.permission.MODIFYPHONESTATE
Installation
Pre-installation Setup
Clone the required repositories to a common folder:# Clone the main repository
git clone https://github.com/telon-org/telon-gsm-sip-gateway.git
Clone the required libraries to the same directory level
git clone https://github.com/telon-org/react-native-tele.git
git clone https://github.com/telon-org/react-native-sip2.git
git clone https://github.com/telon-org/react-native-replace-dialer.git
Your directory structure should look like this:
common-folder/ โโโ telon-gsm-sip-gateway/ โโโ react-native-tele/ โโโ react-native-sip2/ โโโ react-native-replace-dialer/
Build and Installation
- Install Magisk Module: Flash the
magisk/gateway.zipmodule - Build Application: Use GitHub Actions or run
yarn android - Install APK: Install the generated APK on your device
Usage
Initial Setup
- ๐ Launch the Telon GSM-SIP Gateway app
- ๐ฑ Grant necessary permissions when prompted
- ๐ง The app will automatically configure based on your device ID
- ๐ Monitor the gateway log for connection status
Operation
- The application runs in the background
- SIP calls are automatically routed to GSM
- All call states are synchronized between networks
- Real-time logs show call progress and any issues
Troubleshooting
Common Issues
- SIP Registration Failed: Check network connectivity and server configuration
- Audio Issues: Verify device audio permissions and hardware compatibility
- Call Routing Problems: Check device ID configuration and SIP account settings
Debug Information
- View real-time logs in the application console
- Check Magisk module installation status
- Verify system permissions are properly granted
Development
Dependencies
react-native-tele: GSM/telephony operationsreact-native-sip2: SIP protocol handlingreact-native-replace-dialer: Default dialer replacementreact-native-device-info: Device identification
Building from Source
cd telon-gateway-app
yarn install
yarn android
Contributing
๐ค We welcome contributions! Here's how you can help:- ๐ด Fork the repository
- ๐ฑ Create a feature branch:
git checkout -b feature-name - ๐พ Commit your changes:
git commit -m "Add feature description" - ๐ผ Push the branch:
git push origin feature-name - ๐ Create a pull request
License
๐ This project is licensed under the ISC License.Support
๐ For support or inquiries, please visit telon.org or contact us at support@telon.org.Acknowledgments
๐ Special thanks to the contributors and the open-source community for making this project possible.๐ More in this category