Obi202/Zoiper for Android setup

<< < (2/3) > >>

ats1080:
Quote from: ianobi on May 10, 2016, 10:14:53 am

Quote

Another question...Can I have multiple softphones set up using username 2000 that all ring at the same time, or can you only have 1 softphone per username?

I really don't know! The usual answer is that you can "fork" an incoming call to four devices. The OBi202 ph and ph2 count as devices. I don't have an OBi202 so I can't test how your setup would work.


I'll let you know later today!  I'm not really sure what you mean by "fork"ing ;D the number.  I read over your post and didn't really understand it.  Were you trying to say I would need to set up SP3/ITSP C and SP4/ITSP D to get more phones working?  I need to set up freepbx again and break some stuff to learn VoIP again.  Back in college I did a project with freepbx with trunks to everyone else and a handful of IP phones but VoIP is apparently not like riding a bicycle because I forgot almost all of it lol.

ianobi:
The "forking" is done on inbound calls. In most cases something like this:

Voice Services > SP1 Service > X_InboundCallRoute:
{ph,sp1(2001@192.168.1.10:20123),sp2(2002@192.168.1.11:20124),sp2(2003@192.168.1.12:20125)}

Means: ring the phone attached to the OBi and also use sp1 to ring 2001, sp2 to ring 2002 and 2003. The first to answer wins the race and all other devices will stop ringing.

In your case the incoming calls are being sent to "local_client". I don't know, but maybe something like this would work:

SP1/X_InboundCallRoute = {SP2(2001@local_client),SP2(2002@local_client),SP2(2003@local_client)}

Also change this:
Voice Services -> SP2 Service -> MaxSessions : 4
This allows sp2 to cope with up to four simultaneous calls.

Let us know if you get around to trying it.

ats1080:
Quote from: ianobi on May 10, 2016, 11:04:02 am

The "forking" is done on inbound calls. In most cases something like this:

Voice Services > SP1 Service > X_InboundCallRoute:
{ph,sp1(2001@192.168.1.10:20123),sp2(2002@192.168.1.11:20124),sp2(2003@192.168.1.12:20125)}

Means: ring the phone attached to the OBi and also use sp1 to ring 2001, sp2 to ring 2002 and 2003. The first to answer wins the race and all other devices will stop ringing.


Ah, that makes a lot more sense.  One question for you...where are the other usernames coming from?  2001, 2002, 2003?  In the config for ITSP I can only see 1 box for username per ITSP, unless you can seperate by comma?

I'm not exactly sure what "local_client" is supposed to be, but it works.  Maybe someone else can chime in on that?

I actually saw the MaxSessions change suggested in another thread so I did have that already set up.

ianobi:
Quote

One question for you...where are the other usernames coming from?  2001, 2002, 2003?  In the config for ITSP I can only see 1 box for username per ITSP, unless you can seperate by comma?

Each SPx is equivalent to a "voip device". Voice Services -> SPx Service -> AuthUserName is its CallerID and so it can only have one. This is useful for routing calls to it. Each ITSP does not have to be directly linked with each SPx. In fact several SPx's can share an ITSP. We have to be a bit careful with terminology!

In my example 2001, 2002, 2003 are the usernames (CallerID) of each of the non-OBi devices and can be used to direct calls to them.

CallerIDs can also be used to filter calls arriving at an OBI device. For example, only accepting calls with certain CallerIDs.

In this example:
Voice Services > SP1 Service > X_InboundCallRoute:
{ph,sp1(2001@192.168.1.10:20123),sp2(2002@192.168.1.11:20124),sp2(2003@192.168.1.12:20125)}

2001 etc are only needed to give the correct format, the call will be sent to the ip address / port regardless and if the call is acceptable to the device then it will ring. It may need the correct CallerID from the OBI (its SPx AuthUserName).

The problem with this:
SP1/X_InboundCallRoute = {SP2(2001@local_client),SP2(2002@local_client),SP2(2003@local_client)}

Is that I can't see how the "local_client" can send an incoming call to more than one device. It may be that that's its limit.

Perhaps you would like to consider my alternative method posted earlier. It has been used in various forms by myself, azrobert and RonR and works very reliably. The method you are using was intended to connect one ip phone to the OBi202 by registering it to an SPx.

Anyhow, getting late in my part of the world. I'll be back tomorrow. Keep posting, it's always good to see someone trying new things  :)




ats1080:
I spent another hour or so on this tonight...  But, I finally figured out why my configs from before were not working.  Apparently the local_client is some sort of variable that stores the IP and Port of the client.  What I did NOT know was that Zoiper has a setting for listening ports and by default it is set to Random.  So...After I found that setting I changed it to 20123 on one phone and 20124 on the other phone (just using your ports as a suggestion...doesn't really matter) and now it rings on both phones at the same time.  I updated my original post to reflect these changes.

Navigation

[0] Message Index

[#] Next page

[*] Previous page