Please use [code]code here...[/code] tags when posting code.
Can you post the device logs?
Are you sure that the password is correct?
Hello Erel;
Sub Activity_Create(FirstTime As Boolean)
If Sip.IsInitialized = False Then
'Check if SIP and VOIP are supported.
If Sip.IsSipSupported = False Or Sip.IsVoipSupported = False Then
Log("Not supported.")
ToastMessageShow("SIP not supported.", True)
Else
'Register with the VOIP service
Sip.Initialize2("SIP", "sip:334@192.168.1.233", "1234")
If Sip.IsInitialized = True Then
Log("init ok")
Sip.Register
Else
Log("init fail")
End If
End If
End If
B4x Logs:
** Activity (main) Create, isFirst = true **
init ok
** Activity (main) Resume **
Failed, ErrorCode=-10, Message=no data connection
Registering
Failed, ErrorCode=-5, Message=registration timed out
Registering
Failed, ErrorCode=-9, Message=cannot initiate a new transaction to execute: com.android.server.sip.SipSessionGroup$RegisterCommand[source=com.android.server.sip.SipSessionGroup@acad15d]
Registering
Failed, ErrorCode=-9, Message=cannot initiate a new transaction to execute: com.android.server.sip.SipSessionGroup$RegisterCommand[source=com.android.server.sip.SipSessionGroup@acad15d]
Registering
Failed, ErrorCode=-5, Message=registration timed out
Registering
Failed, ErrorCode=-5, Message=registration timed out
Server Logs : User name and pass word is right
<--- Transmitting (no NAT) to 192.168.1.149:49775 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.149:49775;branch=z9hG4bKba6d71471520065d2a871a3242a97314373736;received=192.168.1.149;rport=49775
From: <sip:334@192.168.1.233>;tag=2733533607
To: <sip:334@192.168.1.233>;tag=as7c31fefe
Call-ID: e53cf90b5d76aa4c01e9f7b609073248@192.168.1.149
CSeq: 5364 REGISTER
Server: FPBX-2.11.0(11.20.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="30f18d9f"
Content-Length: 0
[plain]
I try same operations iptel.org ..
my account register Uri : sip:hakan8922@iptel.org
pass : 8922zkr
but same errors.