Android Tutorial Android Sip / Voip tutorial

deantangNYP

Active Member
Licensed User
Longtime User
may i know what error (ErrorCode=-3) is this? i am using Linphone and trying to Register using the sample app provided.
I did not encounter this error with IPTEL, only with Linphone. But i am required to use Linphone. Please advise.

(My Raspberry Pi has no issue connecting to the SIP server using a separate linphone account)

B4X:
Sip.Initialize2("SIP", "sip:abcdef@sip.linphone.org", "password")
Sip.Register

B4X:
Failed, ErrorCode=-3, Message=transaction terminated
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User

deantangNYP

Active Member
Licensed User
Longtime User

deantangNYP

Active Member
Licensed User
Longtime User
Is there any new update on the SIP native library? Recently, i encountered issues Registering and Establishing calls with another SIP client.
 

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear Erel,

earlier I wrote about free TEK sip software and you gave me an advice -
if the firewall have allow the connection on the port
(page 8)

I allow every connection in firewall, but I get message from the APP : "Transaction terminated"
I cant register the app to teksip software.


Please this Android SIP/VOIP Library is usable only for web SIP projects?
Or it is usable for some local sip service = free TEKsip software and only using my wifi (without internet connection)?

I am using this for registering:
B4X:
Sip.Initialize2("SIP", "sip:5060@192.168.1.108:5060", "")

Thank you very much
Best regards
p4ppc
 

AndyW999

Member
Licensed User
Longtime User
It should work with a local connection. The problem is somewhere else. Maybe the native SIP implementation doesn't support this SIP server.

Maybe you need to supply as password in the last "" field?

Or you do not need the "sip: bit?

This works with FreeSwitch - Sip.Initialize2("SIP", "100103@10.0.0.10", "1234")
 

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear Andy,

thank you very much for your reply.

Excuse me, but I dont understand what you wrote: "Or you do not need the "sip: bit?"

I am trying all of this:
B4X:
Sip.Initialize2("SIP", "sip:5060@192.168.1.108:5060", "1234")

        '    Sip.Initialize("SIP", "", "192.168.1.108:5060", "")
'             Sip.Initialize2("SIP", "5060@192.168.1.108:5060", " ")
'            Sip.Initialize2("SIP", "sip:5060@192.168.1.108", "")
  '          Sip.Initialize2("SIP", "sip:5060@192.168.1.108:5060", "")

I am sending settings of Tsip - please can you give me advice?
Best regards
p4ppc
 

Attachments

  • 1.jpg
    57.8 KB · Views: 637
  • 2.jpg
    21.8 KB · Views: 545
  • 3.jpg
    36.1 KB · Views: 525
  • 4.jpg
    32 KB · Views: 551
  • 5.jpg
    32.8 KB · Views: 505
  • 6.jpg
    15.4 KB · Views: 595
Last edited:

AndyW999

Member
Licensed User
Longtime User
If you are using an Android phone then I would suggest installing Zoiper and making sure it works with TEK sip first.

Then I would try your application.

If TEK sip has logging I would turn that on or use Wireshark with SIP filtering to check what is actually being sent and make sure it is the same from both Zoiper and your application.

I know nothing about TEK sip but I do know that FreeSwitch works very well with my B4A SIP application over WiFi so I would suggest installing FreeSwitch as it actually does everything!
 

petr4ppc

Well-Known Member
Licensed User
Longtime User
Andy,

thank you very much, I understand, I will start with installing : FreeSwitch. It will be better.
I have read, that tek SIP have many limitations and exeptions.

Thank you very much
Best regards
p4ppc
 

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear friends,

I had 3 success calls, but after this calls I cant repeat it. It is possible, that is mistake in Windows, router, or somewhere but not in the APP? I have turn OFF firewall, antivirus...

Wireshark write this:


I not understand why I had 2 or 3 success calls and after this I cant do the call. I have done registraton successfuly, but I cant do the call.
Thank you very much
Best regards
p4ppc
 
Last edited:

petr4ppc

Well-Known Member
Licensed User
Longtime User
It was my mistake - after restarting computer, router, tablets FreeSwitch looks good Andy (for this moment)! thank you
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…