cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
288
Views
0
Helpful
0
Replies

(iOS) Call failed! - having trouble reaching the sandbox server

mpace1
Level 1
Level 1

Hey guys,

Trying to get ramped up on the JabberGuest iOS SDK and am having trouble utilizing the Jabber Guest Sandbox API. So far, I have a single view controller that looks like this:

import UIKit


class ViewController: UIViewController {

    @IBOutlet weak var remoteView: UIImageView!

    @IBOutlet weak var selfView: UIImageView!

    @IBOutlet weak var callBar: CJGuestCallBarView!

    @IBOutlet weak var callButton: UIButton!

   

    override func viewDidLoad() {

        super.viewDidLoad()

       

        remoteView.contentMode = .scaleAspectFit

        CJGuestCall.sharedInstance().remoteView = remoteView

       

        selfView.contentMode = .scaleAspectFit

        CJGuestCall.sharedInstance().selfView = selfView

       

        callBar.delegate = self

       

        callButton.addTarget(self, action: #selector(startCall), for: .touchUpInside)

    }


    func startCall() {

        let call = CJGuestCall.sharedInstance()!

        call.serverName = "jabberguestsandbox.cisco.com"

        call.toURI = "5555"

        call.start { (isActivated:Bool) -> Void in

            if(isActivated) {

               

            } else {

               

            }

        }

    }

}


When I tap callButton, it asks me to active license - I tap "Activate" and after a short moment, I see a UIAlertView saying "Call Failed! The server cannot be reached, etc".


Is there something I am missing? Do I need to contact someone on the Jabber Guest API team?


Please and thank you in advanced,

Pace

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: