You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a newly built small Asterisk setup that uses SIP only (PJSIP), no legacy protocols. It is connected to the outside world using a SIP trunk. For the SIP trunk and the internal phones, TLS transport is in place. The Asterisk server listens on port 5061 has a certificate that is signed by a CA that is trusted by the desk and soft phones.
All endpoints use transport-tls, direct_media=no, media_encryption=sdes, allow_transfer=yes and media_encryption_optimistic=no.
Most things work without problems! ☺️
Users can call each other, I can call from outside using the phone number provided by the trunk and I can do outbound calls to the PSTN over the trunk.
But one thing constantly doesn't work: If I press the transfer / hold key on a desk phone, the call is terminated immediately. The Asterisk -vvv... output with pjsip log on shows that it starts music on hold but after some milliseconds both parties leave the simple_bridge and the call is killed.
[2024-02-05 00:24:50.358] -- Started music on hold, class 'default', on channel 'PJSIP/mytrunk-00000002'
[2024-02-05 00:24:50.393] <--- Received SIP request (449 bytes) from TLS:10.25.12.14:52057 --->
[2024-02-05 00:24:50.393] BYE sip:01234567890@10.24.12.58:5061;transport=TLS SIP/2.0
[2024-02-05 00:24:50.394] Via: SIP/2.0/TLS 10.25.12.14:52057;rport;branch=z9hG4bKPj98d61745-61c7-4bfe-a62a-375b7b9ed121;alias
[2024-02-05 00:24:50.394] Max-Forwards: 70
[2024-02-05 00:24:50.394] From: <sips:234@10.25.12.14>;tag=1eeefad2-d4c3-4453-9687-823549430280
[2024-02-05 00:24:50.394] To: <sip:0555555555@10.24.12.58>;tag=c39995b5-df11-42bd-9f04-e84e0dbc0fd4
[2024-02-05 00:24:50.394] Call-ID: 331bfab4-44b5-4625-a33b-33b5d72cb5da
[2024-02-05 00:24:50.395] CSeq: 32612 BYE
[2024-02-05 00:24:50.395] Warning: 381 max3b "SIPS Required"
[2024-02-05 00:24:50.395] Content-Length: 0
It seems the desk phone (10.25.12.14) says BYE to Asterisk (10.24.12.58) because it didn't accept whatever Asterisk did in response to pressing the hold key. Maybe it is related to the line: Warning: 381 max3b "SIPS Required"
It's also important to attach these things, and not link to outside resources as they can go away so when someone wants to work on problems they can't.
The phone seems to say "BYE" in line 10022 in response to Asterisk's reaction to pressing the "consultation call" / "transfer" / "hold" key (even before having a chance to type in the number on the keypad of the phone).
Severity
Major
Versions
20.6.0
Components/Modules
Asterisk, PJSIP
Operating Environment
Frequency of Occurrence
Constant
Issue Description
I have a newly built small Asterisk setup that uses SIP only (PJSIP), no legacy protocols. It is connected to the outside world using a SIP trunk. For the SIP trunk and the internal phones, TLS transport is in place. The Asterisk server listens on port 5061 has a certificate that is signed by a CA that is trusted by the desk and soft phones.
All endpoints use
transport-tls
,direct_media=no
,media_encryption=sdes
,allow_transfer=yes
andmedia_encryption_optimistic=no
.Most things work without problems!☺️
Users can call each other, I can call from outside using the phone number provided by the trunk and I can do outbound calls to the PSTN over the trunk.
But one thing constantly doesn't work: If I press the transfer / hold key on a desk phone, the call is terminated immediately. The Asterisk -vvv... output with pjsip log on shows that it starts music on hold but after some milliseconds both parties leave the simple_bridge and the call is killed.
It seems the desk phone (
10.25.12.14
) saysBYE
to Asterisk (10.24.12.58
) because it didn't accept whatever Asterisk did in response to pressing the hold key. Maybe it is related to the line:Warning: 381 max3b "SIPS Required"
The problem occurs with the Bintec Elmeg IP 630 (see phone manual about consulation calls, page 19 in print, 20 in PDF ) and the SNOM D385, both with the latest firmware.
There is a community forum discussion about the problem: https://community.asterisk.org/t/hold-error-when-trying-to-transfer-incoming-call-transfer-of-outgoing-call-works/100840
Here is a more complete SIP trace: https://pastebin.com/p0Fb4qu9
A very helpful forum colleague had the idea, the issue might be related to the construction of the Contact header.
I guess the problem is somehow related to the encryption of SIP and voice.
Relevant log output
Asterisk Issue Guidelines
The text was updated successfully, but these errors were encountered: