Communication system and method for hotel robot and digital mobile phone
Technical Field
The invention relates to the technical field of robots, in particular to a hotel robot and digital mobile phone communication system and a hotel robot and digital mobile phone communication method.
Background
The service robot is a young member of the robot family, and there is no strict definition yet. Different countries have different awareness of the service robots. The service robot can be divided into a professional field service robot and a personal/family service robot, has a wide application range, and is mainly used for maintenance, repair, transportation, cleaning, security, rescue, monitoring and the like.
Patent document No. CN111464701A discloses a method and a device for performing simulation multi-round test on a robot outgoing call telephone system, wherein the method comprises the following steps: step S2: setting a corresponding conversation process according to the conversation process diagram, and checking the correctness of the conversation process and the broadcast audio of the outbound call system; wherein, the verification specifically comprises: step S21, the dialogue audio in the dialogue process is played and the broadcast audio of the outbound system to the dialogue audio is received; step S22: and identifying the broadcast audio through a voice recognition technology to generate broadcast audio data corresponding to the broadcast audio, comparing the broadcast audio data with an expected result corresponding to the conversation audio in the conversation process, and counting the specific parameter information of which the verification passes and the specific parameter information of which the verification fails after the conversation process is executed.
In view of the above-mentioned related technologies, the inventor believes that the above-mentioned solution requires more resources and is therefore costly, and therefore needs to provide a technical solution to improve the above-mentioned technical problems.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a hotel robot and digital mobile phone communication system and method.
The communication system of the hotel robot and the digital mobile phone comprises an sip client, an sip server and a Mysql real-time database;
and (3) the sip client: the robot configures a sip client, logs in a sip account to a sip server, and the sip client is used for acquiring call dialing information transmitted by the robot, processing the call dialing information and transmitting data to the sip server;
and (4) the sip server: the local server is connected with all the sip clients, acquires all the information, and registers the sip server through an account number provided by the ITSP;
mysql real-time database: all sip client accounts are managed.
Preferably, registering the sip client telephone to be used with the sip server; and registering the sip server to the communication operator ITSP through the sip trunk, and dialing the mobile phone through the sip client.
Preferably, the sip server uses a real-time mysql database to manage the account number of the sip client and the account number of the sip trunk in real time, and performs addition, deletion, modification and check; run on the robot using the sip client.
Preferably, the sip client software registers a corresponding account password, and the account is managed in a mysql real-time database on the sip server; performing sip trunk connection on the robot, and registering a sip server according to an account number acquired from an ITSP operator; and configuring a corresponding dialing scheme, and directly dialing the digital mobile phone by matching the dialing scheme when the robot dials.
Preferably, for the communication of the sip phone or the sip client randomly registered to the sip server, selecting to use the physical equipment or the sip phone software; and for the sip server behind the NAT, performing sip trunk by using an NAT penetration scheme.
The invention also provides a communication method of the hotel robot and the digital mobile phone, which applies the communication system of the hotel robot and the digital mobile phone, and comprises the following steps:
step S1: the robot sends a call request to the sip client to judge whether the sip client is registered to the sip server;
step S2: the Sip client processes the incoming data;
step S3: registering the sip server with the ITSP operator;
step S4: and judging the related telephone number.
Preferably, if the sip client is not registered in step S1, an error is directly reported, and then an operation is performed to log in the sip account.
Preferably, the step S2 further includes extracting a phone number and an id of the robot, performing sip dialing, and transmitting data to the sip server.
Preferably, the step S3 further includes matching according to the incoming phone number, and dialing the mobile phone.
Preferably, in step S4, if no phone number exists, an error is directly reported and fed back to the robot, and if a phone number exists, a call is made and a call is made.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention directly operates all robot sip accounts and sip relays through the real-time database, records all sip client states and telephone dialing, and uniformly performs addition, deletion, check and modification, thereby facilitating the management of the robot and simultaneously obtaining related states;
2. the invention can enable the local sip server to register all remote servers through the sip trunk technology, ensure one-to-many connection, save the use resources and realize unified management;
3. the robot end uses the sip client to directly replace the traditional physical telephone equipment, so that the resource is saved, and the efficiency of the robot is improved;
4. the invention simplifies the robot arrangement process, and after the server is not known to be finished, the subsequent robot can be used only by registering in the database without additional configuration.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a system flow diagram of the present invention;
fig. 2 is a system configuration diagram of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
The invention provides a hotel robot and digital mobile phone communication system, which comprises an sip client, an sip server and a Mysql real-time database.
And (3) the sip client: the robot configures a sip client, logs in a sip account to a sip server, and the sip client is used for acquiring call dialing information transmitted by the robot, processing the call dialing information and transmitting data to the sip server;
and (4) the sip server: the local server is connected with all the sip clients, acquires all the information, and registers the sip server through an account number provided by the ITSP;
mysql real-time database: managing all the account numbers of the sip client, logging in only the account number registered in the server, and configuring all the account numbers of the sip trunk so as to ensure that the sip server can be registered to the ITSP of the communication operator. Unified management is realized, and all robot information and call making records are conveniently acquired.
The scheme registers the sip client telephone to be used to the sip server, thereby facilitating the unified management of the digital telephone of the robot and the reference of the relevant telephone records. The sip server registers to the communication operator ITSP through sip trunk, and the digital mobile phone can be dialed through the sip client. The sip server uses the real-time mysql database to manage the account number of the sip client and the account number of the sip trunk in real time, flexibly performs addition, deletion, modification and check, facilitates the configuration of the robot, and does not need to re-import the configuration file. The robot is directly operated by using the sip client, a physical sip digital telephone machine is not needed, and the arrangement flow and the equipment cost are saved.
And the sip client software registers the corresponding account password. And the account is managed in a mysql real-time database on the sip server. And (5) performing sip trunk connection on the robot. And registering the sip server according to the account acquired from the ITSP operator. And configuring a corresponding sip trunk dialing scheme, so that when the robot dials, the mobile phone can be directly dialed by matching the dialing scheme. The scheme can be used for communication of any sip phone or sip client registered to the sip server, and can flexibly select and use physical equipment or sip phone software. And for the sip server behind the NAT, performing sip trunk by using an NAT penetration scheme.
The invention provides a communication method between a hotel robot and a digital mobile phone, which comprises the following steps:
step S1: the robot firstly sends a telephone request to the sip client, then judges whether the sip client is registered to the sip server or not, if not, directly reports an error, and then operates to log in an sip account; step S2: the Sip client processes the incoming data, extracts the telephone number and the id of the robot, then performs Sip dialing and transmits the data to the Sip server; step S3: registering the sip server to an ITSP operator, matching according to the incoming telephone number, and then dialing the mobile phone; step S4: and judging the related telephone number, if no telephone number exists, directly reporting an error and feeding back to the robot, and if a telephone number exists, dialing to perform conversation.
The invention directly operates all robot sip accounts and sip relays through the real-time database, records all sip client states and telephone dialing, and uniformly performs addition, deletion, check and modification, thereby facilitating the management of the robot and simultaneously obtaining related states; the local sip server can be registered to all remote servers through the sip trunk technology, so that one-to-many connection is ensured, the use of resources is saved, and unified management is realized; the robot end uses the sip client end to directly replace the traditional physical telephone equipment, so that the resource is saved, and the efficiency of the robot is improved; the robot layout process is simplified, and when the server is not known to be finished, the follow-up robot can be used only by registering in the database without additional configuration.
Those skilled in the art will appreciate that, in addition to implementing the system and its various devices, modules, units provided by the present invention as pure computer readable program code, the system and its various devices, modules, units provided by the present invention can be fully implemented by logically programming method steps in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system and various devices, modules and units thereof provided by the invention can be regarded as a hardware component, and the devices, modules and units included in the system for realizing various functions can also be regarded as structures in the hardware component; means, modules, units for performing the various functions may also be regarded as structures within both software modules and hardware components for performing the method.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.