Android Tutorial Android Sip / Voip tutorial

Giuliano Cucchiarini

Member
Licensed User
Longtime User

Thank you for you reply.
I am new in B4A, I do not know how to write a wrapper. Are there tutorials to learn how to create these wrappers? What could be a good Sip java library for this purpose?
Thank you again for the help.
Giuliano C.
 

AndyW999

Member
Licensed User
Longtime User
I have SIP running as a service based on the SIP example.

When the app starts it says 'SIP Registered' but there are no registration packets at my SIP server.

What it does do after a short while is an OPTIONS request.

Is there any way to force a REGISTER as I need that to get the IP address of the phone for my control application at the SIP server.

Thanks

Andy.
 

AndyW999

Member
Licensed User
Longtime User
I have another slight problem...

I am running SIP in a service module, I can receive calls no problem.

When I make a call I do not get the Call Established event which is in the service module.

Is there a problem doing it this way?

I can email my project if you want...

Thanks

Andy.

Additional..

If I duplicate the SIP_CallEstablished service module routine in the Main routine it fires, but then the whole thing crashes with errors.

It can't be right that the SIP_CallEstablished in the service module does not fire but the one in the Main module does...
 
Last edited:

AndyW999

Member
Licensed User
Longtime User
I am doing that.

The problem is that on an outgoing call the CallEstablished event does not fire in the Service Module.

Do you want my project?
 

AGG

New Member
Licensed User
Longtime User
Let see your project. I did some simple experiments and all worked as expected. I have many real phones and I'm interested to see if I can repeat your problem.
 

AndyW999

Member
Licensed User
Longtime User
In the Main module in btnMakeCall_Click I was calling :-

ServiceModule.CurrentCall = ServiceModule.MySip.MakeCall("sip:136001@" & ServiceModule.SIPServer, 30)

I moved that into a new service module module routine:-

CurrentCall = MySip.MakeCall("sip:136001@" & SIPServer, 30)

Called it from btnMakeCall_Click and it worked!

Must be some weird cross treading/cross routine thing but at least I know what to look out for now...

Thanks

Andy.
 

AndyW999

Member
Licensed User
Longtime User
Can you point me at the rules for where objects can/cannot be called directly?
 

Kevin L. Johnson

Member
Licensed User
Longtime User
I would like to write an app that will take a recorded message, call a phone number and play the recording when the call is answered either by person or answering machine.

Can this library do this? If not, can you point me in the right direction?

Thanks
Kevin
 

Beja

Expert
Licensed User
Longtime User
Hi all,
Need some information about connecting two devices.
I ran the example after registering with iptel.org and hit the Make call button, connection was successful and I heard a something like a ringing but cut.
My question is: How can I call another device.. Should the other party register with iptel.org and provide me with their user name and password?
The code to initiate a call is like this one:

CurrentCall = Sip.MakeCall("sip:8355@ideasip.com", 30)

So I assume the target username should in the place of 8355, and their pwd in the place of 30.
if this is correct then how would a person give away his or her password?

Thanks in advance/
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…