Ask Your Question
0

SMS over SIP trunk does not work

asked 2020-09-18 13:03:57 +0000

JasMan gravatar image

updated 2020-09-18 13:09:51 +0000

Since we've switched our telephone line from an PRI line to an SIP trunk we're not able to send SMS anymore. The SMS is send by an server with fax and SMS functionality, which is connected to our PBX via SIP, to the SMS gateway of Deutsche Telekom. As long as the telephone line was an PRI line, everything worked fine. Now it looks like that the the SMS server is not recognizing that the SMS gateway waits for an data transmission, until the SMS gateway answers with an voice announcement, which you can also hear when you call the SMS gateway by phone.

During troubleshooting I've switched the Fax/SMS servers SIP connection to an AVM Fritz!Box, which is connected to an Deutsche Telekom AllIP line (also SIP, but for privat use), and the server is able to send SMS over this connection. So in generally it works. I'm not very familiar with SIP at the moment. The provider says it's an PBX or SMS server issue, the PBX manufacturer says it's an provider or SMS server issue, and the SMS server manufacture says.....just guess :)

So I did an packet capture on our Fax/SMS server for the SIP connection to the SMS gateway for the working- and the non-working-scenario. According to the captures I've understood the flows like this:

Working scenario (SMS_FritzBox_Working.pcapng)

  1. SIP call established (G.711A)
  2. SMS gateway sends an "beep" to signalize, that he's ready to receive an data/SMS transmission
  3. SMS server answers with an "beep" as well, and transmits data/the SMS
  4. SMS gateway sends "beep" and data (guess acknowledgement that he received the SMS)
  5. SMS server sends another "beep" as acknowledgement
  6. SIP goodbye

Non-working scenario (SMS_PBX_Non-Working.pcapng)

  1. SIP call established (G.711A)
  2. SMS gateway sends an "beep" to signalize, that he's ready to receive an data/SMS transmission
  3. SMS server did not recognize the "beep" of the gateway
  4. After 10 seconds the SMS gateway response with an audio announcment (according to Deutsche Telekom this is a normal behaviour)
  5. After another 9 seconds, the SMS server sends a "beep" (like "Hello? Is there someone who want's to talk with me?")
  6. SIP goodbye after audio announcment

SMS Server (10.3.129.38), PBX (10.3.129.42), Fritz!Box (10.3.129.10) Download

I can't find any differences in the SIP negotioation and the protocol of the both captures. But according to the Wireshark RTP stream graph, the audio volume level of the first incoming "beep" from the SMS gateway in the non-working-scenario is much lower, than the one in the working-scenario. Not sure if this is really the reason for this issue, or if I missunderstood this graph only. But it would be an good explanation for me why our SMS server is not recognizing the SMS gateway. Could something like noise reduction or silence detection be the issue?

I did another capture on the session border controller, the ... (more)

edit retag flag offensive close merge delete

Comments

But have you captured from the FritzBox over it's AIIIP line? What does the SMS gateway beep look like there?

Jaap gravatar imageJaap ( 2020-09-18 15:06:56 +0000 )edit

No, I haven't captured the traffic on the Fritz!Box so far. The capture function of this box is creepy, frames are often mixed up. So your idea is to do another capture of the WAN line on the Fritz!Box to compare, if the audio volume level is as low as the one from the capture of the SBC? But if this is the case it would mean, that the Fritz!Box increases the volume for internal SIP clients. Is that something that the box does? I will try.

JasMan gravatar imageJasMan ( 2020-09-18 15:29:21 +0000 )edit

Are you able to capture on the PBX? That way you can see how the RTP comes in from the SMS-gateway and how it is forwarded to the SMS-server. Before moving from PRI to SIP trunk, was the SMS-server connecting to the PBX through SIP as well? Or did that part of the configuration change too?

SYN-bit gravatar imageSYN-bit ( 2020-09-18 16:07:05 +0000 )edit

@SYN-bit Capturing on the PBX is not possible. But as I wrote I did an capture on the SBC, and the protocols and audio volume levels of the incoming connection / "beep" from outside, and the ones that are going to the PBX, are the same as the ones, that arrives finaly on the SMS server. The connection from the SMS server to the PBX hasn't changed. It was already a SIP connection before we moved from PRI to SIP.

JasMan gravatar imageJasMan ( 2020-09-18 20:46:07 +0000 )edit

Extract the the RTP audio (as .au files) for the Forward Streams from both the Working and Non-Working using Telephony -> RTP -> Stream Analysis dialog's [Save] button. Using Audacity examine the initial SMS "beep" signal for these .au files. If you zoom into the initial "beep" in both .au files the Non-Working version appears to show a dropout where the working one does not. Could this possible dropout be the reason?

Jim Young gravatar imageJim Young ( 2020-09-19 05:24:27 +0000 )edit

Simply zooming in in the RTP player window shows that the waveform in the non-working capture is a distorted version of the waveform (a sync pattern probably) in the working example, due to its low amplitude. Not sure if that matches with this dropout that you see.

Jaap gravatar imageJaap ( 2020-09-19 06:47:16 +0000 )edit

@Jim Young@Jaap Great hints! Looks really that a part of the transmission is missing or at least the amplitude is too low. I compared also the SBC audio and it looks nearly the same as the one of the PBX (see screenshot in dowload folder). So.....any idea what could cause this?

JasMan gravatar imageJasMan ( 2020-09-19 12:43:24 +0000 )edit
1

Back to systems level then. The SMS gateway exists in the PSTN domain, where the PRI was connected also. In this domain the SMS gateway analogue signal was digitised at the PSTN edge and switched along a 3.1 kHz bearer channel (probably) to the PBX. The media converter in the PBX packetised this bearer signal into RTP for the SIP session with the SMS server. Note that these conversions have to be properly tuned to maintain audio level, while suppressing echo.

In the new setup the media conversion happens outside the PBX, at the edge of the SIP network where the interconnect to the PSTN is made. For the PBX SIP trunk and the FritzBox SIP line there's probably another interconnect involved, hence a different media gateway. Perhaps the one behind the SIP trunk isn't very capable of handling modem signals. Or the packet stream is going ...(more)

Jaap gravatar imageJaap ( 2020-09-20 05:48:14 +0000 )edit

@Jaap That was also my conclusion, that the root cause is somewhere at the provider side, and not our PBX or SMS server. I will ask them. I hope they will support us. In the past they were not really helpful. They just said "Some customers are able to send SMS over their SIP trunks, so no fault at our side.". I had the feeling that they have no idea how SIP works, and that they are just happy that it works at all...mostly :) Thank you again. I will post the solution, if there's one.

JasMan gravatar imageJasMan ( 2020-09-20 10:17:09 +0000 )edit
1

One things that always strikes me as odd is that this is in fact a digital technology (SMS) put on a analogue carrier (modulated tones), put on a packet network (RTP), converted to a synchronous bearer (PRI), to be interpreted digitally (DSP) in the analogue domain (modulated tones) to retrieve the data for the SMS service. It's fragile as ๐Ÿ’ฉ and a miracle if this works at all...

I can't shake the feeling the use of a SMS gateway API over the internet would be a more suitable implementation of the service in this day and age, using the communication technologies for what they were intended. But that is not for me to decide.

Jaap gravatar imageJaap ( 2020-09-21 09:32:49 +0000 )edit

@JasMan Has the issue been resolved? And if so, what was the root-cause of the issue?

SYN-bit gravatar imageSYN-bit ( 2020-11-04 12:21:46 +0000 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-01-25 08:59:11 +0000

JasMan gravatar image

The SBC gateway of the SIP trunk provider did some G.711 transcoding, which destroyed the initial "beep" at the start of the data communication. Therefore our SMS server was not able to recognize that the other side is ready to receive its data.

The provider has disabled the transcoding today and now SMS works fine again.

edit flag offensive delete link more

Comments

Didn't I say "fragile as ๐Ÿ’ฉ"? Glad they were willing to work with you and tweak the system to make it work ๐Ÿ˜€

Jaap gravatar imageJaap ( 2021-01-25 10:55:46 +0000 )edit

Yep, you did :-)

I asked the provider if there's no default profile which has been already tested with all services. They told me, that they having not default profile until now, because they're still "testing" which settings are the best for the customers. That's why SMS and fax are working for some customers and for the others not. I will never ever touch this device again.

JasMan gravatar imageJasMan ( 2021-01-26 06:27:01 +0000 )edit

Good to hear it has been resolved, took some time to convince them apparently...

SYN-bit gravatar imageSYN-bit ( 2021-01-26 17:22:55 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-09-18 13:03:57 +0000

Seen: 476 times

Last updated: Jan 25 '21