Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/2.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Voorneveld committed Jan 18, 2017
2 parents ca3a0f9 + b2f7cbf commit 6f88c86
Show file tree
Hide file tree
Showing 26 changed files with 510 additions and 163 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
All notable changes to this project will be documented in this file.

---
## [2.1.0](https://github.com/VoIPGRID/VialerSIPLib/tree/2.1.0) (01/09/2017)
## [2.3.0](https://github.com/VoIPGRID/VialerSIPLib/tree/2.3.0) (01/18/2017)
Released on Wednesday, January 18, 2017.

#### Added
* Show stats after call in example app (#46)[https://github.com/VoIPGRID/VialerSIPLib/pull/46]
* Added log callback so that implementing app can get logs (#47)[https://github.com/VoIPGRID/VialerSIPLib/pull/47]


## [2.2.0](https://github.com/VoIPGRID/VialerSIPLib/tree/2.2.0) (01/13/2017)
Released on Friday, January 13, 2017.

#### Added
Expand All @@ -15,6 +23,7 @@ Released on Friday, January 13, 2017.
* When transport is on UDP, transport isn't shutdown on network change. (#38)[https://github.com/VoIPGRID/VialerSIPLib/pull/38]
* Proximity sensor is activated when the call is active (#41)[https://github.com/VoIPGRID/VialerSIPLib/pull/41]


## [2.1.0](https://github.com/VoIPGRID/VialerSIPLib/tree/2.1.0) (01/09/2017)
Released on Monday, January 9, 2017.

Expand Down
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PODS:
- OCMock (3.3.1)
- Reachability (3.2)
- Vialer-pjsip-iOS (1.1.0)
- VialerSIPLib (2.1.0):
- VialerSIPLib (2.2.0):
- CocoaLumberjack
- Reachability
- Vialer-pjsip-iOS
Expand All @@ -30,7 +30,7 @@ SPEC CHECKSUMS:
OCMock: f3f61e6eaa16038c30caa5798c5e49d3307b6f22
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
Vialer-pjsip-iOS: ced3608a20ffdcdf4afdc84a8e381c57525f8f25
VialerSIPLib: 6ce890d4a4804c3baeaeee53d556ecbae781229c
VialerSIPLib: 0f5c476dfbd6b0eadb84e07a761c273c7ddd321c

PODFILE CHECKSUM: 0f7b04fb045caf39ed7c2486524959b2d2be90e8

Expand Down
4 changes: 4 additions & 0 deletions Example/VialerSIPLib.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
C48B488E1D421CB100AB2875 /* SipUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = C48B488D1D421CB100AB2875 /* SipUser.swift */; };
C48B48901D42228900AB2875 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C48B488F1D42228900AB2875 /* AppDelegate.swift */; };
DAEE78D0DFEE673BBB2D3BFA /* libPods-VialerSIPLib_Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FC9964E9ED02C94D58D97B6B /* libPods-VialerSIPLib_Tests.a */; };
EE79A6C51E2CFC0F00AC4AC7 /* VSLEndOfCallViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE79A6C41E2CFC0E00AC4AC7 /* VSLEndOfCallViewController.swift */; };
F26407E11DA7D6FE00393D4B /* CallKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F26407E01DA7D6FE00393D4B /* CallKit.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
F271B54E1DABD18F0028D620 /* IntentHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = F271B54D1DABD18F0028D620 /* IntentHandler.swift */; };
F271B5521DABD18F0028D620 /* IntentsExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = F271B54B1DABD18F0028D620 /* IntentsExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
Expand Down Expand Up @@ -127,6 +128,7 @@
C4A6D7661D5A12720014A4FB /* Keys.swift.example */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Keys.swift.example; sourceTree = "<group>"; };
C64094058567ED161343B634 /* Pods-VialerSIPLib_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-VialerSIPLib_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-VialerSIPLib_Example/Pods-VialerSIPLib_Example.debug.xcconfig"; sourceTree = "<group>"; };
E4DBAC75C9B3D560D6779049 /* Pods-VialerSIPLib_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-VialerSIPLib_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-VialerSIPLib_Tests/Pods-VialerSIPLib_Tests.release.xcconfig"; sourceTree = "<group>"; };
EE79A6C41E2CFC0E00AC4AC7 /* VSLEndOfCallViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = VSLEndOfCallViewController.swift; sourceTree = "<group>"; };
F26407E01DA7D6FE00393D4B /* CallKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CallKit.framework; path = System/Library/Frameworks/CallKit.framework; sourceTree = SDKROOT; };
F271B54B1DABD18F0028D620 /* IntentsExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = IntentsExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; };
F271B54D1DABD18F0028D620 /* IntentHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IntentHandler.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -285,6 +287,7 @@
C44F26451D3FB63600A5A406 /* VSLMainViewController.swift */,
C44F26471D3FBFCF00A5A406 /* VSLMakeCallViewController.swift */,
C44F26491D3FC71D00A5A406 /* VSLCallViewController.swift */,
EE79A6C41E2CFC0E00AC4AC7 /* VSLEndOfCallViewController.swift */,
C457E49C1D3D070D0005D4B4 /* VSLTransferCallViewController.swift */,
C44F26411D3F5B7D00A5A406 /* VSLSecondCallViewController.swift */,
C44F264B1D3FD33F00A5A406 /* VSLIncomingCallViewController.swift */,
Expand Down Expand Up @@ -629,6 +632,7 @@
C44F264C1D3FD33F00A5A406 /* VSLIncomingCallViewController.swift in Sources */,
C457E49D1D3D070D0005D4B4 /* VSLTransferCallViewController.swift in Sources */,
C4441B721D424F8100C98E49 /* DDLogWrapper.m in Sources */,
EE79A6C51E2CFC0F00AC4AC7 /* VSLEndOfCallViewController.swift in Sources */,
C48B488E1D421CB100AB2875 /* SipUser.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
24 changes: 18 additions & 6 deletions Example/VialerSIPLib/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
if #available(iOS 10.0, *) {
setupCallKit()
}


setupLogCallBack()
setupVialerEndpoint()
setupAccount()

return true
}

Expand All @@ -60,10 +60,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
do {
try VialerSIPLib.sharedInstance().configureLibrary(withEndPointConfiguration: endpointConfiguration)
// Set your incoming call block here.
// The code from this block will be called when the framework receives an incoming call.
VialerSIPLib.sharedInstance().setIncomingCall{ [weak self] (call) in
self?.displayIncomingCall(call: call)
}
setupIncomingCallBlock()
} catch let error {
DDLogWrapper.logError("Error setting up VialerSIPLib: \(error)")
}
Expand All @@ -78,6 +75,21 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
}

func setupIncomingCallBlock() {
// The code from this block will be called when the framework receives an incoming call.
VialerSIPLib.sharedInstance().setIncomingCall{ [weak self] (call) in
DispatchQueue.main.async {
self?.displayIncomingCall(call: call)
}
}
}

func setupLogCallBack() {
VialerSIPLib.sharedInstance().setLogCallBack { (logMessage) in
DDLogWrapper.log(message: logMessage)
}
}

func displayIncomingCall(call: VSLCall) {
if #available(iOS 10, *) {
DDLogWrapper.logInfo("Incoming call block invoked, routing through CallKit.")
Expand Down
Loading

0 comments on commit 6f88c86

Please sign in to comment.