In this article I will continue the topic I started earlier -
Aastra Mobile Client . Now we will consider additional functionality that allows you to implement a solution from AMC.
Https callback
Callback is a telephone service that allows a customer to order a connection with the desired subscriber in such a way that the call is incoming for both of them. Some companies offer their subscribers a service that allows you to make international calls using the callback method from a regular mobile phone. Since on most mobile operators incoming calls are free, the subscriber pays nothing to his operator and talks on the tariffs of IP-telephony. This is especially convenient when you are roaming and the incoming call is cheaper than outgoing.
In the context of AMC, the callback service is implemented through the method of -
HTTPS callback . Those. the subscriber from his mobile client AMC initiates an https request towards the AMC controller. This request will contain: the subscriber number (this can be any number from intracorporate or fixed to international) that the AMC client wants to call and the mobile number of the AMC client itself (which, by the way, is already contained in the AMC controller).
')
Further, the AMC controller calls the subscriber-B (the one we want to call) and the subscriber-A, i.e. AMC user, calling him back to his mobile number. Subscriber B call begins only after the AMC subscriber answers. Schematically it looks like this:

It is worth paying attention to the fact that the callback service is available to AMC subscribers only in case of insufficient 3G bandwidth. What the icon signals on the status of the panel (only data connection).


Thus, by dialing the number of the called subscriber (according to the rules for dialing your internal PBX) and holding down the call send key for AMC clients under Android OS, the context menu is displayed in which you need to select “Callback”. After that, a connection will be established between our mobile phone, from which the callback request was initiated and the called subscriber.
On the AMC controller side, in the UC → Client Features section, you need to make the following settings: specify the port for https - 448:

And also on the AMC portal, indicate that for https use port 448:

IM and Presence services (instant messaging and presence status)
With the appropriate licenses, messaging functions and a presence status setting service may be available to AMC users.
For the instant messaging service to work, you must have an XMPP server raised, or, as in our case, we used a free, open XMPP server - jabber.ru. Three accounts have been created on this server: Amcuser1, Amcuser2, Amcuser3.
On the AMC controller, in the UC → XMPP Endpoints section, we specify the coordinates of the XMPP server:

Further, in the tab UC → XMPP Users, we indicate our users who are started on jabber.ru and their corresponding AMC subscribers:

In the settings of the AMC client, in the Network Settings section, you must enable the IM / Presence function and specify the host for Instant Messages - jabber.ru:

After that, you can go to the Chat section on your AMC client and exchange messages. There you can change your status:

