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

Jabber Guest SDK for iOS: CJGuestCallViewController.configure(from: URL)

vm21
Level 1
Level 1

Hi all!

I am new in Jabber Guest SDK for iOS and try to integrate a Guest Call functionality into the App.

I would like to use method configure(from: URL)  instead to set properties serverName and toUri in order to provide later the caller name as http-parameter callerName within a guest call. Here is the simple example:

@IBAction func startCallButtonPressed(_ sender: UIButton) {

        print("Start video call pressed")

        let guestCallUrlString  = "https://jabberguestsandbox.cisco.com/call/5555"

        let call:CJGuestCall = CJGuestCall.sharedInstance()

        var jabberG: CJGuestCallViewController? = CJGuestCallViewController()

        if jabberG != nil {

            print("Init Jabber Guest")

         

            let guestCallUrl = URL(string: guestCallUrlString)

            jabberG?.configure(from: guestCallUrl)

        }

      

        self.present(jabberG!, animated: true, completion: nil )

    }

So, if I run this example, I get the never-ending message "Checking connection...", it looks like the GuestCallViewController is not configured.

If I try to set the URL via property fullServiceUrl instead using configure(from: URL),

...

let guestCallUrlString  = "https://jabberguestsandbox.cisco.com/call/5555"

...

if jabberG != nil {

            print("Init Jabber Guest")

         

            jabberG!.fullServerUrl = guestCallUrlString

        }

...

I got an error "No server connection. The Jabber Guest server is not reachable".

The only way that works is to set the properties

...

if jabberG != nil {

            print("Init Jabber Guest")

         

           jabberG!.serverName = "jabberguestsandbox.cisco.com"

           jabberG!.toURI = "5555"

        }

...

but in this case, I have no chance to provide the caller name like https://jabberguestsandbox.cisco.com/call/5555?callerName=Alice

What is wrong? Any idea?

0 Replies 0