krunal09 / csipsimple

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

[Motorola] Contacts integration + GSM choice #399

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have installed CSipSimple_0.00-15-13-tls.apk on my Motorola Milestone. There 
is an icon of contact in CSipsimple application but when I click on the icon it 
says 'You dont have any contact to display' To add contact press Menu and 
touch.... Accounts...../New Contact..../Import/Export....' though I have 
contacts available in my contact list. 

I have also installed 3CXPhone application on my phone for one sip account 
which probably is not working fine with CSipSimple while I am on 3G or Data 
Plan. 

Standard dialer integrates only 3CXPhone application and not integrating 
CSipSimple. (Also I have Skype on my phone which is also integrated with 
standard dialer) So if I want to make call using CSipSimple then I have to 
manually enter the numbers. Or I have to exit from 3CXPhone application. How 
can I integrated CSipSimple with standard dialer even if 3CXPhone is on ?

Please help.

Original issue reported on code.google.com by edesk.pr...@gmail.com on 20 Nov 2010 at 4:49

GoogleCodeExporter commented 9 years ago
Well two points here :).

First point about contact. What you see in 0.00-15-13 is an integration to 
phone contacts that is really simple on my side. I did it cause many users 
cried about that but that's not the approach I'd like users to use. There is 
another approach that is much more user friendly. This approach introduced 
recently, requires the phone to use standard android mechanism. I guess 
Motorola has it's own contact app (with Blur) that is not a standard contact 
application.

However, again, there is a really really more powerful way to use the app : 
just read this : 
http://code.google.com/p/csipsimple/wiki/FAQ#There_is_no_contact_list

In fact, CSipSimple is integrated to the entire call system. And if you have 
not disabled the android integration in settings and if there is not other app 
(3cxphone....) that does crappy things with native tel uris, when you make a 
call from anywhere in any android application, you should be asked if you want 
to use SIP (and which account) or GSM. (And there is also a powerful rewriting 
and filtering engine in csipsimple)

Well, second point 3cxphone.... 3cxphone relies on exactly the same opensource 
sip stack that csipsimple (pjsip, it's a library that allow to to SIP).
The difference is that 3cx is closed source application while csipsimple is 
opensource and I put the focus on the user interface. 
So many consequences to that :
* You can't run 3cx and csipsimple at the same time on a phone else you'll have 
conflicts and one of the two will not run properly ! (unless you known exactly 
how to configure each one, but that's pretty complicated). So I'd advise to 
simply have no other SIP application running if you are using csipsimple (as 
csipsimple allow multiple accounts configuration should not be so hard to do ;) 
).
* If an account works with 3cx, it should also works with csipsimple ! It's 
only a matter of configuration then and you should read the first entry of the 
FAQ since it's a frequently encountered issue in 3G (you should also check that 
you've activated the I'm allowed in 3g checkbox).

For the deprecated contact integration that I recently introduced and is not 
compatible with motorola blur, I'll try to have a closer look, but again it's 
not the nicer way to access your contact and make call. The approach of other 
apps is to make you go inside the app to access your contacts, my approach is 
to say you, continue to use contacts as you do previously with gsm, and when 
you'll make the call the app will start and ask you if you want to use gsm or 
sip (and this behavior is customizable with filters and rewriting rules engine).

Original comment by r3gis...@gmail.com on 20 Nov 2010 at 8:09

GoogleCodeExporter commented 9 years ago
Thanks for your detailed explanations. I have removed 3cxphone from my phone. 
Let me see how my specific SIP account works. I have used basic option to add 
this account but I need to add following additional information. 

Realm 1
DTMF Setting : 2833
Inband DTMF : Send DTMF SIP Info
SIP Port: 8088
RTP Port: 60000

STUN Setting
STUN: Off
STUN Server: stun.xten.com
STUN Port: 3478

How Can I do this configuration ?

Secondly I have not disabled the android integration in CSipSimple settings and 
now there are only two applications 1. CSipSimple and 2. Skype. When I make a 
call as you told I should be asked if you want to use SIP (and which account) 
or GSM. I am getting two options i.e. Dialer and Skype but when I select 
Dialer, I get only SIP accounts options and no GSM option.

Customizable filters and rewriting rules are excellent add-ons to the 
application.

Please let me know about above issues.

Regards

Original comment by edesk.pr...@gmail.com on 20 Nov 2010 at 11:35

GoogleCodeExporter commented 9 years ago
Well, 
As for settings :
realm : you can just ignore that (the default wildcard of basic account wizard 
should be good enough).
For DTMF, there is the option in Settings > Media > DTMF Mode (if you are using 
a latest build dev available on download section).
SIP Port : well, here I don't know what 3CX map on this option but if that's 
mapped to the remote port of your remote account this should be added in the 
account settings : In basic wizard creation, on the Server field, just type 
yourservername:8088 . (You'll quickly see if it doesn't registers it means that 
3CX map this option to the local binding port, and it's not really important to 
change it but you can do it in Settings > Network > UDP Port, you can also 
change RTP port here).

For STUN as it's turned off on your configuration, you can turn it off in 
csipsimple also, but to be sure you'll not encounter issues with incoming voice 
I'd advise you to keep it on unless your sip server is a server in your own 
local network.

For the second point, I understand now why you didn't use the integration ;). 
Actually it should allow you to choose for GSM unless csipsimple detect nothing 
on the phone can manage GSM calls... but I think here again Motorala did 
something not standard about "tel:" handling so that CSipSimple is lost. I'll 
add an option to ignore what I detect and force to allow you to choose GSM (I 
did this detection cause some android devices such as tablets doesn't support 
GSM calls ;) ).

As for Skype choice, I think that the best solution would be that I provide in 
choice an entry to redirect call to skype. BTW, you could tick the always use 
'CSipSimple' in the first popup and then choose between SIP, Skype and GSM.
I've to check that skype provide an api that allow that, but technically I 
think that's possible, and that's probably the better solution in term of user 
experience.

Original comment by r3gis...@gmail.com on 20 Nov 2010 at 8:14

GoogleCodeExporter commented 9 years ago
I was maybe not clear in my last comment about dialer integration.

In fact the first popup you get is an android popup that simply ask you which 
application should handle tel:XXXX uris. I don't know exactly where Skype plugs 
it's integration but if you get the choice between dialer and skype, they 
probably did a really really crappy thing integrating themself in a private api 
before everything (which is a really bad idea cause it's a not supported 
android API).
Well that said, you may first get popup that ask you what application you want 
to choose to handle the tel action. In theory in this first popup which is 
managed by the system (and not by any application), you should be able to tick 
an "always use" checkbox, meaning that each future action should be handled by 
one application.

For now, as csipsimple doesn't support skype choice, and seems to have a bug 
with gsm choice on your phone, indeed that's a bad idea to choose always use 
csipsimple.
But if I solve the two problems (gsm first and skype then), should be the 
choice that will provide you the best user experience.

I'll try to search over the web to find out why I get a bug on motorola with my 
GSM detection and keep you in touch about my progress on this point.

Original comment by r3gis...@gmail.com on 20 Nov 2010 at 9:05

GoogleCodeExporter commented 9 years ago
Thanks for your quick response. I have added my SIP account which I had 
configured earlier in 3CXPhone. It is working fine with wifi but in data 
network it is not registered and I get message 'Error while registering - 
Request Timeout'. Also for one or two other sip accounts the same problem is 
noticed. For your information I have configured 6-7 SIP accounts in csipsimple 
and all are working fine with wifi and with good voice quality.

Now I have changed settings as per your suggestions. I shall report you the 
outcome soon.

As regards dialer integration I would appreciate earlier solution for GSM 
detection.

Regards,

Prashant

Original comment by edesk.pr...@gmail.com on 21 Nov 2010 at 4:59

GoogleCodeExporter commented 9 years ago
Additional info/feedback for you information and improvement:
Have made changes as per your suggestions. It is working fine with wifi and 3G 
network. But in other data network sometimes it works and some time showing 
message 'Error while registering - Request Timeout'. In 3CX haven't found such 
problem.

Further when switching over from wifi to data or data to wifi every time 
application is not responding and have to force close the application. 

Original comment by edesk.pr...@gmail.com on 22 Nov 2010 at 7:19

GoogleCodeExporter commented 9 years ago
Thanks for frequent updates of application and contact integration. I am still 
unable to make calls using GSM (Getting only two options 'Dialer' and 'Skype'). 
To make GSM calls every time I have to deactivate csipsimple. Hope you are 
working on it. Earlier resolution is appreciated.

Please let me know how can I know what are changes in new updated version. It 
would be great if information about changes is available to users.

Original comment by edesk.pr...@gmail.com on 5 Dec 2010 at 4:54

GoogleCodeExporter commented 9 years ago
For early test users changes are listed here :

http://code.google.com/p/csipsimple/source/list

Original comment by r3gis...@gmail.com on 5 Dec 2010 at 10:17

GoogleCodeExporter commented 9 years ago
Hi, Thanks for reply. Just wanted to share two ideas for GSM calling feature 
which is in my mind. 
1. Presently getting two option for making call after selecting contact 'Dialer 
and SkypeOut' Feature for GSM may be added here.
2. After selecting Dialer I get option of all SIP clients. Here 'USE GSM' may 
be added which will use SIM for making calls.

Original comment by edesk.pr...@gmail.com on 6 Dec 2010 at 3:28

GoogleCodeExporter commented 9 years ago
Should be fixed with r500 : http://nightlies.csipsimple.com/trunk/

-> I changed the way I detect the native dialer.

Now I should detect more reliably :
GSM and also.... Skype !! 
So you should be now able to tick the always use dialer (and remove this crappy 
integration from skype).

You can also use CSipSimple Filters feature on GSM and on Skype too !! To 
automatically apply rules to outgoing calls.

I've done the integration back to skype. It's not documented by skype and is a 
hack I manually do. So if for some phone numbers it doesn't work properly, the 
first people to cry to is Skype (cause they do not provide anyway for other 
apps to use their app).

Original comment by r3gis...@gmail.com on 23 Dec 2010 at 8:09