Android Tutorial Android Sip / Voip tutorial

Julien Brunelle

Member
Licensed User
@Julien Brunelle I'm not sure that I understand what you are talking about.

The required permissions are added automatically.

its my android os version 4.03 its not a phone....anyway its the sip lib phrasing engine its not there..thats built on a websocket... anyway it stinks.... because you cant create a valid android app.... like on a tablet you want to use as a phone... you then have people installing the app... where it wont work.... making you look stupid.... its why i wont use it or spend the time learning it... i found a js engine that i can use in webview.. problem solved.....
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
anyway it stinks
I am glad you have found a solution using a js engine but sad to read so much aggressiveness.
For other people in the same situation, devices where the native SIP protocol is available could see the APP in GP's Store. Other will simply not see it because of the SIP permission B4A puts in the Manifest.
If you have troubles connecting and get -10,0 or -9,0 after initializing, set the Port and the OutboundProxy like this
B4X:
Sip.Initialize2("SIP", "sip:MySipID@iptel.org", "MyPassword")
Sip.OutboundProxy="sip01.iptel.org"
Sip.Port=5060
It should fix (I am running 100+ copies of an app on several tablets and mobiles models with several Android's versions without any trouble). Of course, when IsSipSupported=False or IsVoipSupported=False you can't do nothing but changing the device.
 

Julien Brunelle

Member
Licensed User
Android-Sip is not part android OS its only a manufacture OS option for a device....you must add it to the OS $$$ i bet.....
thats why it stinks.....

i can run sip app on my android...... i have a phone app working.... its only a socket phrasing engine.... base64 encryption you read the input stream or encode it out... works just like e-mail app headers....

SIP permission B4A ...lol... what is the name of your app.... all check
your code wont work.... i tryed everthing....

understand what i am saying...a client it wont work...ohhh just buy a new android ....comes back again it still wont work..lol...
i did check google developer site they state not all devices have it.... i was thinking of trying studio to see if it would work but it all takes time... if it did work then its B4A problem install.....that's fixable... but the odds are its the OS....

webhosting CEO @ 3taccount.com
 
Last edited:

jefflynn1974

Member
Licensed User
Longtime User
How can I detect when the caller stop the call before the called person answered or reject the call?
 

jefflynn1974

Member
Licensed User
Longtime User
I'll try to reprhase my question I want to detect on the called device when (if) the caller hangs up the call before the called person have answered it. I suppose this is an incoming call because I want this to be detected on the called device. I think there must be an event that is called in this case, but when I test this situation, neither of CallError nor CallBusy events get called.
 

jefflynn1974

Member
Licensed User
Longtime User
Can't you add this function somehow to the library? Other SIP apps can handle this perfectly with an event.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User

dlas

New Member
Licensed User
Longtime User
Hello Erel, there is no "DEREGISTER" method in Library?
All is perfectly functioning, but I have to retrieve a list of registered users in FreeSWITCH and even after calling sip.close or stoping the service the user results still regeistered....
 

dlas

New Member
Licensed User
Longtime User
Thank You Erel.
It works!
(I have only inserted a wait loop of 1 second before the subsequent Activity Finish to let service stopped in an octa-core, in a galaxy P6200 it seem not rquired instead... tried many times.)
Regards
 

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear friends,

I installed teksip.
how can I test the code from tutorial with teksip?
B4X:
http://www.teksip.com/download.asp

Here is setting
see picture

but in TEKSIP is not possible to set password, but in definition B4A
B4X:
Sip.Initialize2("SIP", "sip:5060@10.10.10.23", "psw")
is field for password...

I get eror:
Failed, ErrorCode=-3, Message=transaction terminated

How can I set in B4A account without password, please?
Thenk you very much
p4ppc
 
Last edited:

petr4ppc

Well-Known Member
Licensed User
Longtime User
Thank you Erel,

Yes I have tryed empty field of password, but nothing...

Exists some free SIP software which can I try with your code, please? Can you recommend some sofftware for Windows?

Have a good day
p4ppc
 
Last edited:

Paul Garcia

Member
Licensed User
Longtime User
I have a problem, I have 2 accounts iptel. with "juank@iptel.org" login and the other I put it in the function "btnMakeCall_Click" but never called.
if you run "SIP registered sucessfully"

B4X:
Sip.Initialize2("SIP", "sip:juank@iptel.org", "XXX")
            Sip.Register

B4X:
CurrentCall = Sip.MakeCall("sip:marilu@iptel.org", 30)


please help
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…