Numbers ending with space are not dialed due intrnal errors, but the user is not informed about the cause of the failed call
When I copy a telephone number and paste it in Gnome-Calls, sometimes there is an invisible terminating space. Dialing that number logs:
16:02:32.1702 CallsSipOrigin[2140056]: DEBUG: Calling `sip:12345 @192.168.0.199:5066' from origin 'ABC'
16:02:32.1719 CallsDBusManager[2140056]: DEBUG: Exporting 0x23ca1e0 at /org/gnome/Calls/Call/1 16:02:32.2610 CallsSipOrigin[2140056]: DEBUG: Setting local SDP for outgoing call to sip:12345 @192.168.0.199:5066:
v=0
c=IN IP4 192.168.0.199
m=audio 38120 RTP/AVP 9 8 0 3
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtcp:43064
16:02:32.2615 CallsSipMediaPipeline[2140056]: DEBUG: Element rtp-udp-src has changed state from NULL to READY
16:02:32.2620 CallsRecordStore[2140056]: DEBUG: Successfully saved new call record to database
16:02:32.4496 libcallaudio[2140056]: WARNING: SelectMode failed with code 0: GDBus.Error:org.freedesktop.DBus.Error.Failed: Oper
ation failed
16:02:32.4497 Cui[2140056]: WARNING: Failed to select audio mode: GDBus.Error:org.freedesktop.DBus.Error.Failed: Operat
ion failed
16:02:32.4500 CallsSipOrigin[2140056]: DEBUG: response to outgoing INVITE: 900 Internal error at nua_client.c:552
16:02:32.4500 CallsSipOrigin[2140056]: DEBUG: The call state has changed: 900 Internal error at nua_client.c:552
16:02:32.4501 CallsSipOrigin[2140056]: DEBUG: Call terminated. Deactivating media pipeline
16:02:32.4501 CallsSipMediaPipeline[2140056]: DEBUG: Stopping media pipeline
16:02:32.4520 CallsRecordStore[2140056]: DEBUG: Call state changed from 3 to 7
The system shall trim the terminating space, or tell the user that the terminating space leads to “900 Internal error”, or both.