JohnHoder / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
1 stars 0 forks source link

Outgoing call numbers get truncated if they contain space characters #1070

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Dial a number with space characters in it:
+49 234 XXXXXX
0049 234 XXXXXX
0234 XXXXXX

What is the expected output? What do you see instead?
Expected: call to +49234XXXXXX / 0049234XXXXXX / 0234XXXXXX
Instead outgoing number gets truncated at the first space character. The call 
is made to +49 / 0049 / 0234 and does not go through.

What version of the product are you using? On what device/operating system?
SIPDroid 2.7 on Android 2.3 (Cyanogenmod 7.2 on Motorola Defy)

Which SIP server are you using? What happens with PBXes?
Sipgate.de through PBXes.
PBXes call monitor shows SIPDroid's number truncation outlined above - the full 
untruncated number never reaches PBXes.

Which type of network are you using?
WiFi

Please provide any additional information below.
Removing space signs through the regex engine (using a regex like " ,") doesn't 
seem to work.

Original issue reported on code.google.com by philipp....@gmail.com on 27 Oct 2012 at 10:50

GoogleCodeExporter commented 8 years ago
How do you dial such numbers on your phone? Are you using the Android dialer?

Original comment by pmerl...@googlemail.com on 3 Dec 2012 at 9:58

GoogleCodeExporter commented 8 years ago
I have the same issue, I use the android dialer.

This is an output when I dial 007 in asterisk:

[Jan 26 14:41:43] NOTICE[19727][C-00000021]: chan_sip.c:25381 
handle_request_invite: Call from 'sumi' (1.1.1.12:59569) to extension '00' 
rejected because extension not found in context 'home'.

The reason is that when I dial via android dialer, the number is displayed as 
00 7 and passed on to sipdroid.

I have another phone with default android sip client and it works fine.

Also when I dial 007 via SIP droid, its fine:

  == Using SIP RTP CoS mark 5
    -- Executing [007@home:1] Dial("SIP/sumi-00000012", "SIP/poopoo") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/poopoo
    -- SIP/poopoo-00000013 is ringing
    -- SIP/poopoo-00000013 is ringing

Original comment by max...@gmail.com on 26 Jan 2014 at 9:23