Osmocom sms to SIP messaging bridge

Post Reply
User avatar
laptopfm
Site Admin
Posts: 3
Joined: Thu Jun 12, 2025 1:48 am
Location: Greece
Contact:

Osmocom sms to SIP messaging bridge

Post by laptopfm »

Osmocom sms bridge to SIP messaging

So with the help of llms (claude and deepseek mostly) i made a osmocom smpp to SIP messaging bridge on python
that allows messaging between osmocom networks and also other sip softphone (like linphone,microsip)
or even a hardware sip phone.It can work over any sip server as long as it handles sip messaging. Now
most sip trunks dont do sms this way but you can configure a private pbx or use a public one (eg mine https://docs.google.com/forms/d/e/1FAIp ... 5249535951) also a nice addition
is that because of the LTE sg interface you can also use this on DIY LTE networks (that dont have IMS sms).long story short this bridge allows interconnection between private cell networks over a public or private sip server.

the concept is simple
osmonet smpp ->bridge -> sip server (eg asterisk) -> bridge -> osmonet smpp

supported feutures as of now :
  • inbound sms (only one number)
  • outbound sms (works from every osmo extention)
To use this this you need :
  • python3
  • smpplib python3 library (pip3 install smpplib)
  • a sip account with working sip messaging
  • enabled smpp in osmo-msc
for osmo-msc copy the contents of msc.txt into the end of osmo.msc config and replace your desired values or leave them at default

In the attachments you will find the script together with some examples of sip to gsm and vice versa (bonus LTE to sip and etc)
Attachments
bridge (2).zip
(7.01 KiB) Downloaded 2 times
20260619_050042.jpg
20260618_044347.jpg
-laptopfm
User avatar
oracity
Posts: 1
Joined: Fri Jun 19, 2026 1:16 am

Re: Osmocom sms to SIP messaging bridge

Post by oracity »

Cool stuff! :D
visit me here: https://oracity.rocks
I ❤️ 3G
Post Reply