RohitJPatil / sipdroid

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

Multiple VoIP accounts... #197

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to implement new feature for the multiple VoIP accounts in
Sipdroid. Let's start a discussion about the right solution here. I propose
to implement it in three steps:

1) Save each account settings into a separate file. User will choose the
appropriate account manually. Only one account registered at a time.

2) Allow registration of more then one account. All selected accounts will
register on Sipdroid startup. Calling out through the default account.

3) Allow to specify rules for outgoing calls. Specific account will be
selected by the number (multiple regexp).

What do you think about it?

Original issue reported on code.google.com by jiri....@gmail.com on 16 Nov 2009 at 11:10

GoogleCodeExporter commented 9 years ago

Original comment by pmerl...@googlemail.com on 17 Nov 2009 at 1:59

GoogleCodeExporter commented 9 years ago
4) Show the account info when receiving an incoming call

5) Call log should include the account info

Original comment by tommy.ht...@gmail.com on 23 Nov 2009 at 1:57

GoogleCodeExporter commented 9 years ago
2) A "line" button for each account (line 1 default) allowing quick selection 
of 
each SIP registration. 4 line buttons should do it for outbound selection.

4) It would be more usefull to show the Dialed Number on incoming calls.

Original comment by msho...@gmail.com on 25 Nov 2009 at 3:47

GoogleCodeExporter commented 9 years ago
4) There will be too many numbers on the LCD if showing the registered number
   along with the calling number.
   Showing line number already implies which number the calling party is dialed,
   and it is identical to most of the mobile/SIP phone UI.
   Of course it can be an option to show the registered number if enabled.

Original comment by tommy.ht...@gmail.com on 30 Nov 2009 at 1:11

GoogleCodeExporter commented 9 years ago
no just add an option for switch an sip and another SIP.

Like this 
Line 1
User
PAssword

Line 2 
User 
password

Use Line 1 
Checkbox

Use line 2
Checkbox

Best regard

Original comment by orion.th...@gmail.com on 5 Jan 2010 at 9:07

GoogleCodeExporter commented 9 years ago
Please!!!

This iS ABSOLUTELY a MUST!

I am currently using several SIP clients on Android to use all my three 
different
accounts :(

I want sipdroid to support multiple accounts and make it possible to select 
which of
these accounts are active (online/connected) and which not.

Original comment by RichardC...@googlemail.com on 15 Jan 2010 at 3:11

GoogleCodeExporter commented 9 years ago
6) for any connection profile a checkbox ("ring on incoming call")

for connection profiles only used to call out.

Original comment by matthias.boden on 16 Jan 2010 at 3:43

GoogleCodeExporter commented 9 years ago
Is there any official statement of the developers if or when this feature will 
come?
Making a PBXes.com account is no alternative to a true Multi-Account client. 

Original comment by RichardC...@googlemail.com on 16 Jan 2010 at 11:41

GoogleCodeExporter commented 9 years ago
I absolutely agree to Richard, PBXes is not an alternative option.

Original comment by tobias.p...@gmail.com on 19 Jan 2010 at 8:14

GoogleCodeExporter commented 9 years ago
I really would like to get some feedback from the developers on this. I get the
strange feeling they want to promote PBXes.com - why else not offer multiple 
accounts?

It is open source though...somebody - perhaps me and some friends - will remove 
the
PBXes.com stuff and add multiple accounts. We talked about it recently and may 
open a
new Google code project based on the SipDroid code. Stay tuned.

Original comment by RichardC...@googlemail.com on 21 Jan 2010 at 8:29

GoogleCodeExporter commented 9 years ago
Richard, you or your friends, can become members here if you have suitable 
patch ready!

Original comment by pmerl...@googlemail.com on 21 Jan 2010 at 9:32

GoogleCodeExporter commented 9 years ago
We don't mind adding more features to Sipdroid. However, dealing with several 
accounts 
via PBXes will probably still be more powerful, and less battery consuming.

Original comment by pmerl...@googlemail.com on 21 Jan 2010 at 9:37

GoogleCodeExporter commented 9 years ago
In reply to Richard:

I have promised to implement the "multiple accounts feature" but I'm 
unfortunately
busy with other things right now so I can not promise when it will be done.

As far I can say, Sipdroid is quite universal SIP client (even if there is still
couple of issues) which doesn't depend only on PBXes.com services. The guys 
have done
a lot of good work which should be supported by more developers and effort and 
not to
undermine it by starting a new project as a fork.

If you want to add some functionality into the Sipdroid, please, do not 
hesitate to
submit your patch. All your help towards better Sipdroid is welcomed.

Original comment by jiri....@gmail.com on 21 Jan 2010 at 9:50

GoogleCodeExporter commented 9 years ago
@jiri.tyr
Well a good start would have been to let both other developers and also 
usersknow
that this issue (#197) is dead. Other devs might pick up the ball if they know 
you
are done and users like me would start commenting this issue.

@pmerl
Thanks for the offer but I don't have a patch yet. Is there already a group of
commiters working on it? I wonder how active SipDroid development is, since 
multiple
VOIP accounts is by far the most-wanted feature but still not implemented. 

Original comment by RichardC...@googlemail.com on 25 Jan 2010 at 2:45

GoogleCodeExporter commented 9 years ago
My family is a mix from different countries, and therefore I have SIP account 
the
places where my family lives, it is therefore very unfortunate that you can only
handle 1 SIP account, at the moment I have 4 countries with 4 different 
companies
it is no problem with my Siemens IP phone as i easily handles 10 different lines
also my softphone Ibeam have no problems with different SIP accounts
I hope this will soon be fixed 
Rick     

Original comment by 121k...@gmail.com on 25 Jan 2010 at 2:12

GoogleCodeExporter commented 9 years ago
I use pbxes with both Sipdroid and a home ATA.  I have multiple SIP trunks 
registered
at pbxes.  
When dialing from an ATA, its easy and practical to set up different Outbound 
Route
for each SIP trunk, based on Custom Dialing Preferences.  For instance, 
9|Nxxxxxxxxx
would mean that dialing "9" before any 10-digit number would make the call go 
through
a specified trunk.  Another Outbound Route with 8|Nxxxxxxxxx would choose a 
different
trunk you set up.  Etc., etc.
To the developers, you mention managing different SIP accounts through pbxes for
Sipdroid, but I haven't found a real practical way to be able to do it on a 
mobile
phone, especially when dialing through the Contacts app.  Sure there is "Find 
and
Replace" in Sipdroid to add a prefix to a number, but needing to change that
complicated info just to choose a different outbound SIP route for each call is 
not
very practical.  
Perhaps there is a way to make dialing with a prefix easier in Settings, or 
maybe a
pbxes Outbound Route selector you could put in Sipdroid's Settings?  
Please let me know if I'm missing something and there already is any easy way to
choose a different outbound route on pbxes, as Sipdroid is now.  

Original comment by AdamRGr...@gmail.com on 6 Feb 2010 at 6:59

GoogleCodeExporter commented 9 years ago
Well, we already see that it is possible to run Multiple SIP accounts by running
multiple SIP-Clients.

SipDroid and the clone aSIP can run both at the same time. In fact I am using 
them
since I have more then one SIP account with different Providers Can wen learn
anything from that? I know they are completely isolated since they are similar 
but
different applications running in different processes. Still, there should be 
some
way to support different SIP accounts directly and not over pbxes.

Original comment by RichardC...@googlemail.com on 6 Feb 2010 at 9:47

GoogleCodeExporter commented 9 years ago
@RichardCurtle:
To each his own, but it seems incredibly wasteful of bandwith on your phone to 
have
Sipdroid running multiple SIP accounts simultaneously when you can easily set 
up 5
different SIP trunks on pbxes(for free accounts), choose Inbound Routing for 
each
that all leads to your pbxes Extension for your Sipdroid Connection, and just 
have
one SIP connection to the Internet running on your phone.  My only issue is 
with a
practical way to select different Outbound Routes via Sipdroid.  Something 
about the
way a mobile phone dials numbers doesn't easily allow pbxes to understand that 
I've
dialed a prefix, like a 9 before a 10 or 11 digit number.  If that were made 
easy,
Sipdroid would be nearly perfect.  

Original comment by AdamRGr...@gmail.com on 6 Feb 2010 at 5:59

GoogleCodeExporter commented 9 years ago
Exactly, each to his own ;)
I was never happy with pbxes. Also it didn't work properly for me. Some 
providers
worked flawlessly, others not. But even if everything would work perfect, I want
multiple SIP accounts. There are many reasons. Let me tell you just one: 
yesterday I
wanted to change my outgoing account and add another account. I am on my
mobile...this would mean logging into pbxes.com and fiddeling with the settings 
on my
small screen. That's why I run multiple Sip appications, which is very wasteful:
SipDroid, aSip, SipAgent, ...
This is just stupid.

Wasteful bandwidth? It doesn't cost much more bandwidth. If you want to use 
pbxes you
still could. Multiple accounts wouldn't change anything for you. 

You want a list of accounts, where you can add/remove and deactivate accounts 
with a
checkbox. Then you can set-up 1-to-n outgoing accounts. If you have more then 
one
outgoing accounts active, SipDroid would show you a list of accounts after you 
dialed
and you select one.

Original comment by RichardC...@googlemail.com on 6 Feb 2010 at 6:51

GoogleCodeExporter commented 9 years ago
I agree with Richard. SIP DROID needs to support multiple SIP accounts. 
PBXes.org is 
not a viable solution. I could setup another Asterisk system, connect all my 
trunks 
and SIP DROID client to it.

However, this is not desirable in many instances. As we all know, the more hops 
and 
soft switches that a call travels over, the more chance of latency, drop outs 
and 
other problems (DTMF over a series of Asterisk boxes) can arise. Add in the 
"not so 
perfect" quality of the cell carries networt and call quality really suffers. 
It is 
better to have the SIP client talk directly to SIP provider or PBX. Less 
distance, 
less latency, less soft switches = BETTER CALL QUALITY.

I maintain several asterisk systems for clients that are not related. I like my 
SIP 
clients to be connected to several of them simultaneously without having to 
front 
end another soft swith - for the reasons stated above.

I would like to see SIP DROID integrated into the DROID "dialer" app. There are 
2 
different ways taht this could work. The frist is like Google Voice which 
prompts 
you after you press the "dial" button to use Google Voice or your cell 
provider. 
Another alternative would be to use an Asterisk style pattern match for each 
SIP line
(account). You could dial *1NPANXXXXXX for line 1, *2NPANXXXXXX for line 2,etc.

It would be really cool if I could use the "Voice Search" and say something 
like "DIAL John Smith MOBILE on SIP LINE 1" (I know this is going to get 
everyone 
all stoked up!)

Each SIP trunk or PBX can have one or more DIDs associated to it. Let's say you 
have 
a home number and a business number. On incoming calls it would be nice to see 
the 
DIALED NUMBER (home or work -or extension)as well as the Line number, and 
CallerID 
info.

Have you ever been talking on SIP DROID on Verizon and have a cell call come 
in? 
Guess what happens? Yep, bye bye SIP call. I'm wondering if there isn't a way 
to 
automatically shut off the cell phone radio without shutting off the data 
radio. I'm 
wondering if SIPDROID could do this automatically. So when on SIPDROID, 
incoming 
cell calls would go right to voicemail.

Original comment by msho...@gmail.com on 10 Feb 2010 at 8:57

GoogleCodeExporter commented 9 years ago
I have just committed the basic implementation of the multiple account feature. 
You
can checkout the trunk version and test it.

Original comment by jiri....@gmail.com on 17 Feb 2010 at 10:27

GoogleCodeExporter commented 9 years ago
Maybe I should also notice how to use it:

1) Download, compile and install trunk version of Sipdroid.
2) Start up Sipdroid
3) Press Menu->Settings
4) Press Menu to see all possible options (Export, Import, Delete)

Export - saves current configuration on the SD card into the directory 
/sdcard/Sipdroid/
Import - imports chosen profile from the SD card
Delete - deletes chosen profile from the SD card

It doesn't support multiple accounts simultaneously. It doesn't allow you to 
choose
which account to use during the dialing. It is really just a very basic
implementation allowing you to export/import current settings on/from the SD 
card.
Feel free to improve it as you wish.

Original comment by jiri....@gmail.com on 17 Feb 2010 at 10:42

GoogleCodeExporter commented 9 years ago
Thanks for your effort.
Tested and working as expected.
I hope it will be a good start for a better multiple account support.

Original comment by gurs...@gmail.com on 18 Feb 2010 at 4:37

GoogleCodeExporter commented 9 years ago
thanks, sipdroid is great

Original comment by liu...@gmail.com on 21 Feb 2010 at 1:26

GoogleCodeExporter commented 9 years ago
Compiled and installed r482 from svn on my N1. After configured setting, it 
displays 
"can not export settings!" when I turned back to main screen. Tried creating 
Sipdroid 
directory under sdcard, but it didn't help. Also, I would like to know what's 
the file 
format/structure for those profile file. 

Rest than that. Sipdroid works really well, and thanks you guys.

Original comment by yuwei.al...@gmail.com on 26 Feb 2010 at 11:28

GoogleCodeExporter commented 9 years ago
Can you check that the file
/data/data/org.sipdroid.sipua/shared_prefs/org.sipdroid.sipua_preferences.xml 
exists?

The file format is standard SharedPreferences format.

Original comment by jiri....@gmail.com on 26 Feb 2010 at 4:14

GoogleCodeExporter commented 9 years ago
Yes, 
/data/data/org.sipdroid.sipua/shared_prefs/org.sipdroid.sipua_preferences.xml 
exists.

Original comment by yuwei.al...@gmail.com on 27 Feb 2010 at 12:48

GoogleCodeExporter commented 9 years ago
if the file /data/data/org.sipdroid.sipua/shared_prefs/
org.sipdroid.sipua_preferences.xml exists and the destination directory /sdcard/
Sipdroid can be created by the Sipdroid process (check the rights of the 
/sdcard 
directory), then it should not show any error message.

Original comment by jiri....@gmail.com on 28 Feb 2010 at 9:50

GoogleCodeExporter commented 9 years ago
Checked the /sdcard/Sipdroid has permission as d---rwxr-x (075), it seems right 
to 
me. I worked around to make it work by actually just copying the .xml file in 
to the 
Sipdroid folder. 

Original comment by yuwei.al...@gmail.com on 28 Feb 2010 at 10:15

GoogleCodeExporter commented 9 years ago
Try to set the rights to 077 (chmod 077 /sdcard/Sipdroid) or try to delete the /
sdcard/Sipdroid directory (Sipdroid should create the directory automatically 
with 
correct permissions).

Original comment by jiri....@gmail.com on 28 Feb 2010 at 10:21

GoogleCodeExporter commented 9 years ago
hasn't this feature been integrated into a release?

Original comment by liu...@gmail.com on 2 Mar 2010 at 10:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Are you going to change the dial modifier so that NPANXXXXXX+1 uses profile 1, 
NPANXXXXXX+2 uses profile 2, etc.. ?

I like the new contacts icon. One minor problem. If the contact does not have a 
number suffixed with" +" then there is no way to dial from the contacts, unless 
of 
course you have SIPDROID setup as the primary, instead of the cell carrier. I 
again 
suggest implementing the "Google Voice" method. Using the phones dialer, after 
dialing, 2 options are presented. Dial with Google Voice and Normal Dial. Yo 
have to 
choose one for the all to complete. In SIPDROIDs case, a dial option for each 
profile could be presented. This could be a configurable feature - it could be 
turned off alltogether through the settings.

Mike

Original comment by msho...@gmail.com on 11 Mar 2010 at 9:17

GoogleCodeExporter commented 9 years ago
Feature suggestion: it would be excellent if Sipdroid could enable/disable SIP 
accounts automatically depending on the SSID of the WiFi network currently 
connected 
(analogous to the SSID plugin for Locale).  The Nokia SIP softphone already 
does 
this.

My use case: I have an Asterisk installation at home and one at work.  When at 
home, 
Sipdroid would register to my home PBX via WiFI, and I would be able to make 
and 
receive calls on that extension.  When I leave home, it would disconnect, and 
Asterisk would know it has to forward the call to my cell number.  When at 
work, 
Sipdroid would register to my work PBX, effectively becoming my work extension.

Original comment by arbran...@gmail.com on 12 Mar 2010 at 12:50

GoogleCodeExporter commented 9 years ago
I wanted to say that the idea of showing the number "dialed" for an incoming 
call is an excellent idea.  That usually is the reason for having multiple 
"line" buttons on a phone (as well as dialing out).  The reverse is not true, 
however.  Knowing which line somenoe has called does not give you the called 
number information.  Having the called number information would be a great 
bonus.  I appreciate the hard work everyone puts into this.  Thank you!

Original comment by matthew%...@gtempaccount.com on 7 Jun 2010 at 8:18

GoogleCodeExporter commented 9 years ago
This is a little OT, but I just stumbled upon a huge problem with PBxes. 

A year ago I testet PBxes for myself and then later got a Nokia and used 
different Voip Clients. Now my wife got an Android phone and I installed 
Sipdroid and tested it first with my own account and then set up a PBxes and an 
additional Sipgate account for her. She is not really using it and Sipdroid has 
not been running for at least a week now. Just last Sunday she got an email, 
that her account has been disabled. No reason was given. Just a couple 
"possible" reasons. 
Unfortunately there is no way to either contact IPTel or even write a message 
in the Forum. Now I understand the reasons for this. They don't want to get 
swamped with "My phone is not working, fix it!" messages from freeloaders, but 
I am already paying for my "real" voip provider and my phone network carrier. 

Maybe it is not a good idea to rely on a service that will suspend accounts 
without telling you why and you not being able to contact them. Even if they 
are free.

So I believe Sipdroid should NOT rely as much on PBXes (as good as it sounds, 
they can pull the rug from under you without notice, giving no reason and 
without even the possibility of contacting them). 

And here I am back on topic: No features should be kept from Sipdroid "because 
it can be done with PBXes". Including the one discussed here.

Original comment by m...@gmx.de on 9 Jun 2010 at 12:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I think we have to wait until some company like Google brings out their own SIP 
Android client very soon. Service like PBX is no alternative to multiple 
accounts.

It is sad that an Open Source project is used to push a service like PBX. This 
would be no problem if multiple accounts are allowed.

Original comment by RichardC...@googlemail.com on 9 Jul 2010 at 9:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sorry for asking questions if some one else did. 

1) Why we do not add the function of multiple concurrent incoming call for 
Sipdroid. This is similar multiple line in EyeBeam. 

2) Does MJSIP stack support multiple dialogs for implementing above functions.

Your answer is highly appreciated.

Original comment by anhtubcvt@gmail.com on 14 Oct 2010 at 1:47

GoogleCodeExporter commented 9 years ago

Original comment by pmerl...@googlemail.com on 14 Oct 2010 at 8:40

GoogleCodeExporter commented 9 years ago
Cheers for finally adding multiple sip accounts 
But how do I choose what Line to dial from ?

Original comment by masterc...@gmail.com on 6 Feb 2011 at 9:54

GoogleCodeExporter commented 9 years ago
I have exactly the same question....

Original comment by radek.an...@gmail.com on 4 Sep 2011 at 9:41

GoogleCodeExporter commented 9 years ago
Would it be possible to enlarge the quantity of the SIP lines  to 4-6? I have  
two different VoIP  for outgo8ng calls, as well - two SIP providers with Sip-In 
PSTN incomin%

Original comment by i...@krumin.com on 11 Nov 2011 at 1:26

GoogleCodeExporter commented 9 years ago
Exactly same problem and question, need to select a sip account to dial

Thanks and regards

Original comment by potac...@gmail.com on 22 Dec 2011 at 8:28

GoogleCodeExporter commented 9 years ago
How Do I change line to call from different SIP. Right now, Sip Account 1 is 
selected by default and I cannot find the option to change or use it.

Original comment by 2amitko...@gmail.com on 19 Nov 2012 at 6:52

GoogleCodeExporter commented 9 years ago
#47: Just unfold your Android blind, there you´ll find both accounts. One of 
them says "Click to select", the other one (the selected one) says "Preferred". 
Quite straight forward.

Back to the VoIP multiaccount issue: My particular case is that I have two 
betamax accounts. One of them gives me 90 freedays on landlines and I use it on 
a daily basis to call other european countries and local landlines as well. The 
other account is outrageously cheap on mobile phones, but it does not have 
freedays, so moneywise I must use both.

In the other hand I am also missing at least a third channel quite A LOT, under 
the idea of using PBXES extensions to make free calls in between different 
members using a given shared VoIP account.

Just waiting to this to happen. I´ve been using CSipSimple for a while now 
having so many issues, thus looking for a solution, SipDroid came to solve all 
my signal problems, it just performed flawlessly for my needs. Adding up this 
multiaccount feature would rise SipDroid to state-o-art. 

Original comment by RafaelBa...@gmail.com on 25 Nov 2012 at 11:36

GoogleCodeExporter commented 9 years ago
It would make sense to have the ability not only to prompt if the call is an 
Internet call or not, but also which SIP account to use to place the call.

Original comment by m8...@abc.se on 14 Apr 2013 at 7:06

GoogleCodeExporter commented 9 years ago
Last comment make sense, we should be able to select voip account to use for 
out going call

Original comment by y.pa...@gmail.com on 23 Aug 2013 at 12:26