Hello,
We think our company buy B4X product.. we start use today trial app. We Try sip sample application . But this code note registered .. we try on asterisk , and diffrent servers. but same problem.
/
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:[email protected]", "1234")
If Sip.IsInitialized = True Then
Log("init ok")
Sip.Register
Else
Log("init fail")
End If
End If
End If
//
server log :
//
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.149:44354;branch=z9hG4bK1e2bdae25a89e87f49470dde66e58078313331;received=192.168.1.149;rport=44354
From: <sip:[email protected]>;tag=3833725293
To: <sip:[email protected]>;tag=as0185069e
Call-ID: [email protected]
CSeq: 1016 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="6601babf"
Content-Length: 0
//
please help..
We think our company buy B4X product.. we start use today trial app. We Try sip sample application . But this code note registered .. we try on asterisk , and diffrent servers. but same problem.
/
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:[email protected]", "1234")
If Sip.IsInitialized = True Then
Log("init ok")
Sip.Register
Else
Log("init fail")
End If
End If
End If
//
server log :
//
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.149:44354;branch=z9hG4bK1e2bdae25a89e87f49470dde66e58078313331;received=192.168.1.149;rport=44354
From: <sip:[email protected]>;tag=3833725293
To: <sip:[email protected]>;tag=as0185069e
Call-ID: [email protected]
CSeq: 1016 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="6601babf"
Content-Length: 0
//
please help..