📜 ⬆️ ⬇️

How we "married" cloud PBX, GSM and realtors (part 4)

The fourth chapter of the post-industrial telecom saga about the chemical wedding of clouds, virtual PBX, cellular communication, real estate agency and now also geolocation services, which are now being actively tested, is somewhat delayed, contrary to promises.

The task that we solve throughout the 3 previous series is rather simple ideologically, but technically confused: with the help of a cloud-based virtual office and special FMC SIM cards, we want to manage the work of a large real estate agency, automate sales and, in addition, control Conversations from mobile traveling agents-realtors, who constantly strive to grab their piece of cake and behave incorrectly, especially when it comes to the fact that it would be nice to report on transactions completed over the past month. It is understandable: when making a transaction, the payment for renting an apartment often occurs in the kitchen and practically without witnesses, the realtor seeks to keep the interest for work.

Briefly present the main characters of the previous series:
')
image



- The head of a real estate agency , an all-seeing eye, who wants to control everything and everyone, record conversations, pry and eavesdrop, truthfully on completely legal grounds and completely official. He invests in advertising, websites, office rent and salary, so he wants to make a profit. To increase profits, you need constant control over employees. Suffering from chronic insomnia.

- A cunning realtor , a man on a mobile phone who actively moves around the city, meets with clients and homeowners and, in fact, tries to make money to both the manager and himself. Often about the head forgets. Prone to amnesia.

- The owner of the apartment , the grandmother from the 2nd floor, who, after reading the announcement “a young family will rent an apartment in your house”, starts calling the cellular number indicated in the text, sincerely believing that this is a mobile young one, necessarily married and decent , Slav, I.I. Ivanova, and not just another real estate agency. He loves his grandchildren, who are ready to give all the money received from Ivanov.

- A young family , a group of persons consisting of 2-3 people interested in living in a foreign territory, paying for the entire banquet, in which the three previous characters are involved. Suspicious and picky, the only and main source of profit in the complicated business model of realtors.

Heroes must be able to control, and so that everyone is satisfied with the result of the transaction and, above all, the head of the agency.

The main requirements of the customer (director of real estate agency) at the time of writing this part of the story we have already implemented: we launched a virtual PBX, integrated it with the SIM cards of one of the mobile operators, began to record conversations from mobile and record them in statistics, learn how to Calls to cellular numbers did not come to the cellular phones themselves, but in the scenario of the telephone platform, the participants in the process did not know the real cell phones when they called each other, but communicated using short internal numbers and all that was digital ste recorded in the CRM-system for the complete and total accounting.

The platform is ready for implementation and use, it remains to solve one of the most difficult issues: what to do with existing SIM cards of realtors, whose numbers are known to both apartment owners and young families. It’s just that you don’t refuse them, but it’s wrong to leave them to work - these are additional expenses (SIM cards are corporate and you have to pay for them) and, most importantly, a huge hole in the total accounting system - we cannot control calls to these SIM cards, calls they are not controlled by them. In addition, we have a certain number of SIM cards, which were inherited from already escaped realtors, but we keep them safe, because they continue to call.

The task is not simple, but we will solve it. We will solve with the help of such a script:

image

To run all this, we had to tinker. The bottom line:

- select a separate, service, city phone number and direct it to our platform via SIP

- from SIM-cards of already dismissed agents-realtors, we set up unconditional forwarding of all calls to this service number

- we also set up forwarding to the same number from SIM cards of working realtors, we pick up SIM cards ourselves, and in return we issue new FMC SIM cards

- the service number is routed to special virtual PBX scenarios that route calls depending on the number from which the redirection came

Then a certain mysterious entity appears in the scheme - SIP Diversion Header, which is nothing more than information about the source of the redirection (the phone number from which the call to our service number was redirected) in the SIP INVITE. This is what you need!

What do we get? We get a very beautiful scheme:

we took the old sims from the agents, gave them new ones, but at the same time we know that one number is the number of the realtor Natasha, which no longer works, the other number is the number of the realtor Boris, who settled down quite recently, etc. Very valuable information, on the basis of which it will be possible to preserve the communication scheme already established in the agency. With the help of Diversion Header, we understand from which mobile number the call was diverted. Next is a matter of technology: we enter a list of old numbers in the database of our PBX and create scripts that take into account this value and display the Diversion Header in the incoming call card.

If this is a call to the number of an already dismissed employee, then we will route it to the call center operator, who says carelessly and cheerfully that Natasha’s realtor has been promoted and is now working in another department, and if the respected client needs something, execute any other employee.

If this is a call to the number of active and honest realtor, who continues to bring profit to the agency, then such a call is routed to a new, integrated into the PBX, SIM card without any additional conditions (it is clear that all this is now recorded and included in the statistics) - we get calls to old numbers, and we accept them on new sims.

A separate script serves incoming calls to SIM cards of dismissed employees during off-hours: since we do not want to scare grandmothers and young mothers and when calling to the mobile to issue an IVR “Hello, you called ...”, in the evenings and on weekends we issue a standard IVR cellular network "The subscriber is not responding ...", which was downloaded as an mp3. When the call center operator comes to work, he will see such a missing statistic in the section and work it out.

So here, in a rather utilitarian way, we solved the problem of replacing old SIM cards with new ones. The project is ready to launch. But that's not all: while all the above-described tricks were introduced, there was a clear understanding that the project can be made even more beautiful - we want not only to listen to the recordings of mobile conversations, to see them in statistics and to hide the interested parties in every possible way from each other, we also want observe what is happening on Yandex Maps. Realtor, you are now under a hood at all! What is needed for this? For this we need geolocation. Fine! Almost any mobile operator provides this service, but we want to integrate geolocation into our platform, add our own features and place all this in our personal account, and not send customers to watch SIM cards on the site of the cellular operator. This is very inconvenient, and not always beautiful.

Good and close relations with mobile workers worked here in our favor: after intensive negotiations, we got access to the operator's geolocation API, whose SIM cards we use in AltegroCloud .

Right now it's all actively being tested and verified. The most remarkable thing is that all this works and works practically as it should:

- we see our mobile employees on the map

- we can generate reports on the movements of our employees for a selected period of time

- and finally, which is quite cool, we can open the map in your account, see the geo-tags if you need to find a realtor on the map and call him with a simple mouse click

This is what our geo-MVP looks like with which the new “geofich” is being tested and which we quickly sketched

Engineer Anatoly drove home from work, and we followed him:

image
But we found Anatoly on the map and is about to call him (green handset):

image

The service becomes quite convenient, but it’s still rather early in production - the tests continue and there will be a lot of them. We very much hope that everything will turn out and the next chapter of the saga will be about how the director of the agency not only listens to his employees, but also observes them on the map in the personal office of our telephone service.

To be continued…

Source: https://habr.com/ru/post/254993/


All Articles