CN108616657A - The method and device that softphone is dialed is realized in mobile terminal - Google Patents
The method and device that softphone is dialed is realized in mobile terminal Download PDFInfo
- Publication number
- CN108616657A CN108616657A CN201810311980.5A CN201810311980A CN108616657A CN 108616657 A CN108616657 A CN 108616657A CN 201810311980 A CN201810311980 A CN 201810311980A CN 108616657 A CN108616657 A CN 108616657A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- softphone
- njs
- dialed
- middle layers
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72406—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/545—Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72469—User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72484—User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/22—Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector
Abstract
The present invention relates to the method and device for realizing that softphone is dialed in a kind of mobile terminal, the method that softphone is dialed is realized in the mobile terminal, including:In the application program for running on mobile terminal, load provides the page that softphone dials function;Operation is dialed according to the softphone for triggering progress in the page, softphone is initiated to the application program and dials request;The softphone is responded by the NJS middle layers of operation, and request, and the primary telephone call interface provided for mobile terminal described in the application call are provided;Primary telephone call interface by calling is that application program execution softphone is dialed.Development cost can be effectively reduced using the method and device that realization softphone is dialed in mobile terminal provided by the present invention.
Description
Technical field
The present invention relates to a kind of methods for realizing that softphone is dialed in technical field of mobile terminals more particularly to mobile terminal
And device.
Background technology
Currently, business personnel is mainly based upon the every business of various functions page processing that the ends PC are provided, one of which
Function pages provide softphone for business personnel and dial function, and business personnel is facilitated to dial function and client's ditch by softphone
It is logical.Once going out it is appreciated that business personnel only carries mobile terminal, such as smart mobile phone, will be unable to be carried based on the ends PC
The softphone of confession dials function and communicates with client.
For this purpose, proposing in the prior art a kind of based on the scheme dialed of softphone is realized in mobile terminal, movement is utilized
The primary telephone call interface that terminal is provided executes softphone and dials.
However, mobile terminal not only provides primary telephone call interface, involved by native interface type it is very huge
Miscellaneous and complexity is higher, is familiar with journey about the provided native interface of mobile terminal and related primary code to developer
Degree requirement is very high, high so as to cause development cost.
Invention content
In order to solve the above-mentioned technical problem, it is an object of the present invention to provide realize softphone in a kind of mobile terminal
The method and device dialed.
Wherein, the technical solution adopted in the present invention is:
On the one hand, the method that softphone is dialed is realized in a kind of mobile terminal, including:In the application for running on mobile terminal
In program, load provides the page that softphone dials function;Operation is dialed according to the softphone for triggering progress in the page, to
The application program initiates softphone and dials request;The softphone is responded by the NJS middle layers of operation and dials request, and is
The primary telephone call interface that mobile terminal described in the application call provides;Pass through the primary telephone call interface of calling
Softphone is executed for the application program to dial.
On the other hand, the device that softphone is dialed is realized in a kind of mobile terminal, including:Page load-on module is used for
It runs in the application program of mobile terminal, load provides the page that softphone dials function;Initiation module is asked, basis is used for
The softphone that progress is triggered in the page dials operation, initiates softphone to the application program and dials request;Interface calls
Module dials request for responding the softphone by the NJS middle layers of operation, and to be moved described in the application call
The primary telephone call interface that dynamic terminal provides;Softphone dials module, for being by the primary telephone call interface of calling
The application program executes softphone and dials.
In one exemplary embodiment, described device further includes:Intermediate layer building module, for being the application program tune
The primary telephone call interface provided with the mobile terminal carries out the structure of the NJS middle layers;Middle layer package module is used
It is encapsulated to the installation kit of the application program in by the NJS middle layers of structure;Middle layer load-on module, for passing through the installation
The operation in the mobile terminal is wrapped, loads the NJS middle layers to the memory of the mobile terminal;Middle layer runs mould
Block, for when the application program runs on the mobile terminal, triggering to be loaded onto the NJS of the mobile terminal memory
Middle layer is run.
In one exemplary embodiment, the intermediate layer building module includes:Object import unit, for importing for retouching
State the primary class object of the primary telephone call interface;Object association unit, for being created according to the primary class object of importing
Associated instance objects;Attribute configuration unit, for calling attribute for the configuration of associated instance objects, by being configured with calling attribute
Instance objects build to obtain the NJS middle layers.
In one exemplary embodiment, the softphone dials module and includes:Parameter extraction unit, for by the soft electricity
Words dial extraction in request and obtain parameter;Parameter is passed to unit, for calling the parameter of the application program configuration to be passed to interface
The parameter is passed to the NJS middle layers;Native interface call unit, for according to described in incoming parameter triggering
NJS middle layers call the primary telephone call interface that the mobile terminal provides.
In one exemplary embodiment, the native interface call unit includes:Environment measuring subelement, for passing through
It states NJS middle layers and detects the running environment disposed in the mobile terminal;Object acquisition subelement, for true according to the parameter
Instance objects in the fixed NJS middle layers, and be associated with and be used for by the instance objects according to the running environment detected
The primary primary class object made a phone call is described;Object reference subelement, for according to configuring for the instance objects
Attribute is called, the calling of the primary class object is carried out.
On the other hand, the device that softphone is dialed, including processor and memory are realized in a kind of mobile terminal, it is described to deposit
It is stored with computer-readable instruction on reservoir, is realized when the computer-readable instruction is executed by the processor as described above
The method that softphone is dialed is realized in mobile terminal.
On the other hand, a kind of computer readable storage medium is stored thereon with computer program, the computer program quilt
Processor realizes the method for realizing that softphone is dialed in mobile terminal as described above when executing.
In the above-mentioned technical solutions, by running in the application program of mobile terminal, load provides softphone and dials work(
The page of energy, and operation is dialed according to the softphone for triggering progress in the page and dials request to application program initiation softphone, into
And dial request, and the primary phone provided for application call mobile terminal by running NJS middle layers response softphone
Interface is dialed, executing softphone as application program dials, that is to say, that is based on NJS middle layers, can be application program tune
With mobile terminal provide primary telephone call interface, developer need not be familiar with the native interface that mobile terminal is provided with
And related primary code can stand-alone development, thus solve the problems, such as that the development cost present in the prior art is excessively high.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
It can the limitation present invention.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention
Example, and in specification together principle for explaining the present invention.
Fig. 1 is a kind of hardware block diagram of mobile terminal shown according to an exemplary embodiment.
Fig. 2 is the flow for the method for realizing that softphone is dialed in a kind of mobile terminal shown according to an exemplary embodiment
Figure.
Fig. 3 is the stream for the method for realizing that softphone is dialed in another mobile terminal shown according to an exemplary embodiment
Cheng Tu.
Fig. 4 be in Fig. 3 corresponding embodiments step 310 in the flow chart of one embodiment.
Fig. 5 be in Fig. 2 corresponding embodiments step 250 in the flow chart of one embodiment.
Fig. 6 be in Fig. 5 corresponding embodiments step 255 in the flow chart of one embodiment.
Fig. 7 is the configuration diagram of the NJS middle layers and application program involved by the embodiment of the present invention.
Fig. 8 is the frame for the device for realizing that softphone is dialed in a kind of mobile terminal shown according to an exemplary embodiment
Figure.
Through the above attached drawings, it has been shown that the specific embodiment of the present invention will be hereinafter described in more detail, these attached drawings
It is not intended to limit the scope of the inventive concept in any manner with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate idea of the invention.
Specific implementation mode
Here will explanation be executed to exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Referring to Fig. 1, Fig. 1 is a kind of block diagram of mobile terminal shown according to an exemplary embodiment.
It should be noted that the mobile terminal is an example for adapting to the present invention, it must not believe that there is provided right
Any restrictions of the use scope of the present invention.The mobile terminal can not be construed to need to rely on or must have in Fig. 1
One or more component in the illustrative mobile terminal 100 shown.
As shown in Figure 1, mobile terminal 100 (only shows including memory 101, storage control 103, one or more in Fig. 1
Go out one) processor 105, Peripheral Interface 107, radio-frequency module 109, locating module 111, photographing module 113, audio-frequency module 115,
Touch Screen 117 and key-press module 119.These components are mutually communicated by one or more communication bus/signal wire 121.
Wherein, memory 101 can be used for storing computer program and module, such as the shifting in exemplary embodiment of the present
Realize that the corresponding computer-readable instruction of method and device and module that softphone is dialed, processor 105 are logical in dynamic mobile terminal
It crosses operation and is stored in computer-readable instruction in memory 101, to perform various functions and data processing, that is, complete to move
The method that softphone is dialed is realized in dynamic mobile terminal.
The carrier that memory 101 is stored as resource, can be random access memory, for example high speed random access memory, it is non-easily
The property lost memory, such as one or more magnetic storage devices, flash memory or other solid-state memories.Storage mode can be short
Temporary storage permanently stores.
Peripheral Interface 107 may include an at least wired or wireless network interface, an at least connection in series-parallel translation interface, at least
One input/output interface and at least USB interface etc., for coupleeing external various input/output devices to memory 101
And processor 105, to realize the communication with external various input/output devices.
Radio-frequency module 109 is used for transceiving electromagnetic wave, the mutual conversion of electromagnetic wave and electric signal is realized, to pass through communication network
Network is communicated with other equipment.Communication network includes cellular telephone networks, WLAN or Metropolitan Area Network (MAN), above-mentioned communication network
Network can use various communication standards, agreement and technology.
Locating module 111 is used to obtain the geographical location of mobile terminal 100 being currently located.The example of locating module 111
Including but not limited to GPS (GPS), the location technology based on WLAN or mobile radio communication.
Photographing module 113 is under the jurisdiction of camera, for shooting picture or video.The picture or video of shooting can be deposited
In storage to memory 101, host computer can also be sent to by radio-frequency module 109.
Audio-frequency module 115 provides a user audio interface, may include one or more microphone interfaces, one or more
Speaker interface and one or more earphone interfaces.The interaction of audio data is carried out by audio interface and miscellaneous equipment.Sound
Frequency can also be sent according to that can store to memory 101 by radio-frequency module 109.
Touch Screen 117 provides an I/O Interface between mobile terminal 100 and user.Specifically, Yong Huke
The gesture operations such as input operation, such as click, touch, sliding are carried out by Touch Screen 117, so that mobile terminal 100 is to this
Input operation is responded.Then by word, picture, either any one form of video or combination are formed by mobile terminal 100
It exports content and output is shown to user by Touch Screen 117.
Key-press module 119 includes at least one button, to provide user's interface inputted to mobile terminal 100,
User can make mobile terminal 100 execute different functions by pressing different buttons.For example, sound regulating key for
Realize the adjusting of the wave volume played to mobile terminal 100 in family.
It is appreciated that structure shown in FIG. 1 is only to illustrate, mobile terminal may also include more more or less than shown in Fig. 1
Component, or with the component different from shown in Fig. 1.Hardware, software or its group may be used in each component shown in Fig. 1
It closes to realize.
Referring to Fig. 2, in one exemplary embodiment, realize that the method that softphone is dialed is suitable in a kind of mobile mobile terminal
For mobile terminal, the structure of the mobile terminal can be as shown in Figure 1.
Realize that the method that softphone is dialed can may include following by mobile terminal execution in the mobile mobile terminal of this kind
Step:
Step 210, in the application program for running on mobile terminal, load provides the page that softphone dials function.
Mobile terminal, can be smart mobile phone, tablet computer, palm PC or other for application program operation just
Formula electronic equipment is taken, herein without limiting.
Correspondingly, application program, refer to can by the page loads provide softphone dial function arbitrarily apply journey
Sequence is not also limited herein.
With the operation of application program in mobile terminal, providing softphone and dialing the page of function can be loaded, and
It shows in the application program of operation, is carried so that user enjoys the page by online access to the display page
The softphone of confession dials function.
In an embodiment in the specific implementation, the page, which is shown, to be realized by floating frame, the page as loaded is created
Floating frame is built, and the relevant component of the page is embedded in the floating frame, to carry out page in the application by floating frame
The floating in face is shown.
In an application scenarios, user is business personnel, which logs in some service class of running of mobile terminal
Application program, the business class method show that providing softphone dials the page of function to the business personnel, and business personnel is just as a result,
Function can be dialed based on the softphone that the page is provided in mobile terminal to communicate with client.
Step 230, operation is dialed according to the softphone for triggering progress in the page, dials and asks to application program initiation softphone
It asks.
In the page of display, provide a softphone to the user and dial entrance, the entrance can be virtual icon in the page,
Virtual key etc. will trigger softphone in the entrance and dial operation when user, which is desired with softphone, to be dialed.
For example, it is a virtual icon that softphone, which dials entrance, when the user clicks when the virtual icon, that is, think that user is uncommon
Hope that carrying out softphone dials, at this point, clicking operation, which is the softphone triggered in the entrance, dials operation.
In being touched in the specific implementation, can detect by event sniffer in the page shown by application program for an embodiment
The softphone that hair carries out dials operation.
After detecting that softphone dials operation, that is, know that user is desired with softphone and dials, just can be user
Softphone is initiated to application program and dials request, can be dialed subsequently executing softphone for user.
Step 250, softphone is responded by the NJS middle layers of operation and dials request, and eventually for application call movement
The primary telephone call interface provided is provided.
NJS (Native Java Script) middle layer is used based on the running environment disposed in mobile terminal
JavaScript technologies are called primary (Native) interface and are built, which includes but not limited to that primary phone is dialled
Beat interface.
Specifically, when application program runs on mobile terminal, NJS middle layers are run therewith, and request is dialed in softphone
After initiation, it is that the primary telephone call of application program progress connects that the NJS middle layers of operation, which will respond the softphone to dial request,
The calling of mouth.
Step 270, it is that application program execution softphone is dialed by the primary telephone call interface of calling.
As previously mentioned, NJS middle layers make the native interface that application program cross-platform access mobile terminal is provided be able to
It realizes.
Specifically, developer will write non-protogenous interface with JavaScript technologies, as a result, NJS middle layers
To call the native interface that mobile terminal is provided by non-protogenous interface.
For application program, what is directly accessed is non-native interface, and is that application program execution softphone is dialed
It is native interface, to realize the cross-platform access of application program.
By process as described above, developer need not be familiar with the native interface that mobile terminal is provided and related original
Raw code and can stand-alone development non-protogenous interface, development efficiency is improved with this, advantageously reduces development cost.
Referring to Fig. 3, in one exemplary embodiment, before step 250, method as described above can also include following
Step:
Step 310, it is that the primary telephone call interface that application call mobile terminal provides carries out the structure of NJS middle layers
It builds.
In an embodiment in the specific implementation, as shown in figure 4, step 310 may comprise steps of:
Step 311, the primary class object for describing primary telephone call interface is imported.
Step 313, associated instance objects are created according to the primary class object of importing.
Wherein, primary class object is that primary telephone call interface is described by primary code, in mobile terminal portion
It is generated when administration's running environment.
Instance objects, also referred to as JS objects are carried out to non-protogenous telephone call interface with JavaScript technologies
Description.
For this purpose, creating, the escape to JS objects by primary class object is referred to, it is understood that be, by primary class object
It is mapped as JS objects.
Further, correspondingly, primary for describing since the native interface type involved by mobile terminal is very complicated
The primary class object of interface is more than one, will also be primary after creating instance objects for primary class object based on this
Incidence relation is established between class object and instance objects, ensures one-to-one relationship between the two with this.
Step 315, it is that attribute is called in the configuration of associated instance objects, calls the instance objects of attribute to build by being configured with
To NJS middle layers.
Wherein, it refers to the method for calling instance objects to call attribute, and then to primary class by the calling of instance objects
Object is called, and the calling of native interface described in primary class object is realized with this.
For example, native interface is dialog box, primary class object creates associated example pair for describing the dialog box, for it
As and the calling attribute that configures be display, be to be shown pair for application program as a result, when for application call native interface
Talk about frame.
By the above process, NJS layers of structure is realized, NJS middle layers are substantially the originals provided according to mobile terminal
Raw interface, JS objects are mapped as by the primary class object for describing the native interface, to carry out institute by the calling of JS objects
It is associated with the calling of primary class object, and then the native interface that cross-platform access mobile terminal provides is realized by application program.
Should be appreciated that NJS middle layers, the primary class object for multiple description native interfaces stores instance objects respectively,
It is not limited only to primary telephone call interface.
Step 330, the NJS middle layers of structure are encapsulated to the installation kit of application program.
Step 350, the operation by installation kit in the terminal, the memory of load NJS middle layers to mobile terminal.
For step 370 when application program runs on mobile terminal, triggering is loaded onto the NJS middle layers fortune of mobile terminal memory
Row.
As a result, with the operation of NJS middle layers, it just can respond the softphone and dial request, with subsequently for using journey
Sequence calls the primary telephone call interface that mobile terminal provides.
Referring to Fig. 5, in one exemplary embodiment, step 250 may comprise steps of:
Step 251, extraction in request is dialed by softphone and obtains parameter.
As previously mentioned, when user wishes to dial softphone, will be triggered in the page carry out softphone dial operation and to answering
Softphone, which is initiated, with program dials request.
For NJS middle layers, dialing request by softphone can know that user is desired with softphone and dials,
And then determine the primary telephone call interface for needing to be provided by application call mobile terminal.
For this purpose, softphone, which is dialed in request, carries parameter, it is application call which, which is used to indicate NJS middle layers,
The primary telephone call interface that mobile terminal is provided.
From the foregoing, it will be observed that after receiving softphone and dialing request, it just can dial in request to extract from softphone and obtain
Parameter, and then so that NJS middle layers is executed subsequent primary telephone call interface and is called according to the instruction of parameter.
Step 253, it calls the parameter of application program configuration to be passed to interface and parameter is passed to NJS middle layers.
Parameter is passed to interface, is configured when being installed to mobile terminal by application program, is passed for executing parameter for application program
It passs, for example, softphone is dialed to the parameter carried in request is passed to NJS middle layers.
Step 255, the primary telephone call for calling mobile terminal to provide according to incoming parameter triggering NJS middle layers connects
Mouthful.
With being passed to for parameter, NJS middle layers just can know that user is desired with softphone and dials, and then for using journey
Sequence calls the primary telephone call interface that mobile terminal is provided.
In an embodiment in the specific implementation, as shown in fig. 6, step 255 may comprise steps of:
Step 2551, the running environment disposed in mobile terminal is detected by NJS middle layers.
It should be appreciated that different mobile terminal can dispose different running environment.For example, the fortune disposed in mobile terminal A
Row environment is Android system, and the running environment disposed in mobile terminal B is IOS systems, and the operation ring disposed in mobile terminal C
Border is other operating systems.
Correspondingly, mobile terminal provides the running environment disposed according to it to corresponding native interface, in other words, no
In same running environment, the version different from for the native interface that mobile terminal is provided.For example, Android system provides Android version
Primary telephone call interface, IOS systems provide IOS editions primary telephone call interfaces.
Therefore, in the present embodiment, before the calling for carrying out primary telephone call interface, need by NJS middle layers into
The detection of the disposed running environment of row mobile terminal.
Specifically, with the deployment of running environment in mobile terminal, a configuration file will be formed, in order to be subsequently fortune
Each application program run in row environment stores relevant application configuration information, for example, application configuration information includes application program
Mark, meanwhile, also provide running environment relevant system configuration information for application program, for example, system configuration information includes behaviour
Make system banner.
NJS middle layers will read the operating system identifies in system configuration information by configuration file as a result, with according to operation
System banner judges the running environment that mobile terminal is disposed.
For example, if operating system identifies are " Android ", judge the running environment disposed in mobile terminal for Android
System.
Step 2553, the instance objects in NJS middle layers are determined according to parameter, and according to the running environment detected by reality
Example object is associated with to obtain for describing the primary primary class object made a phone call.
As shown in fig. 7, in the present embodiment, for the loaded H5 pages of application program, it can both pass through Android system
Embedded browser kernel is shown, can also be shown by the browser kernel that IOS systems embed, that is to say, that
No matter which kind of the running environment that mobile terminal is disposed is, the H5 pages can be compatible with, and the development efficiency of the H5 pages is improved with this.
It is appreciated that since the H5 pages are to the compatibility of running environment, according to the softphone for triggering progress in the H5 pages
The softphone dialed operation and initiated is dialed in request, and parameter only indicates that NJS middle layers carry out the tune of primary telephone call interface
With, and do not indicate NJS middle layers and call the primary telephone call interface of any version.
Therefore, during primary class object obtains, the parameter for combining softphone to dial in request and the operation detected are needed
Environment.
Specifically, in the NJS middle layers of structure, instance objects are determined according to the instruction of parameter, and according to detecting
Running environment is associated with to obtain primary class object by the instance objects, at this point, the primary class object is for describing and running ring
The compatible primary telephone call interface in border, and then provide sufficient guarantee for subsequent calls.
Step 2555, according to the calling attribute configured for instance objects, the calling of primary class object is carried out.
The calling of primary class object as a result, is realized based on the call method for calling the instance objects indicated by attribute,
It allows the application to access the native interface that mobile terminal is provided by instance objects, avoid relying in primary code
Exploitation can be realized, exploitation complexity is considerably reduced, and be conducive to improve development efficiency.
In addition, developer only needs to be familiar with JS objects and JavaScript technologies, and JS objects and
JavaScript technologies are more simple relative to primary class object and related primary code, are further conducive to improve exploitation effect
Rate, to significantly reduce development cost.
It is following be apparatus of the present invention embodiment, can be used for executing realized in mobile mobile terminal according to the present invention it is soft
The method of telephone call.For undisclosed details in apparatus of the present invention embodiment, mobile shifting according to the present invention is please referred to
The embodiment for the method that softphone is dialed is realized in dynamic terminal.
Referring to Fig. 8, in one exemplary embodiment, the device that softphone is dialed is realized in a kind of mobile mobile terminal
900 include but not limited to:Page load-on module 910, request initiation module 930, interface calling module 950 and softphone dial mould
Block 970.
Wherein, page load-on module 910 is used in the application program for running on mobile terminal, and load provides softphone and dials
Beat the page of function.
Request initiation module 930 is used to dial operation according to the softphone for triggering progress in the page, is initiated to application program
Softphone dials request.
Interface calling module 950, which is used to respond softphone by the NJS middle layers run, dials request, and is application program
The primary telephone call interface for calling mobile terminal to provide.
Softphone dials module 970 for being that application program executes softphone group by the primary telephone call interface that calls
It beats.
It should be noted that realized in the mobile mobile terminal that above-described embodiment is provided the device dialed of softphone into
When realizing the processing that softphone is dialed in the mobile mobile terminal of row, only the example of the division of the above functional modules,
In practical application, it can be completed, that is, be moved in mobile terminal by different function modules as needed and by above-mentioned function distribution
Realize that the internal structure of device that softphone is dialed will be divided into different function modules, with complete it is described above whole or
Partial function.
In addition, the device that realization softphone is dialed in the mobile mobile terminal that above-described embodiment is provided is mobile eventually with movement
Realize that the embodiment for the method that softphone is dialed belongs to same design in end, wherein modules have executed the concrete mode of operation
Through being described in detail in embodiment of the method, details are not described herein again.
In one exemplary embodiment, the device that softphone is dialed, including processor are realized in a kind of mobile mobile terminal
And memory.
Wherein, it is stored with computer-readable instruction on memory, which realizes when being executed by processor
The method that softphone is dialed is realized in mobile mobile terminal in the various embodiments described above.
In one exemplary embodiment, a kind of computer readable storage medium, is stored thereon with computer program, the calculating
It is realized when machine program is executed by processor and realizes the method that softphone is dialed in the mobile mobile terminal in the various embodiments described above.
The above, only preferable examples embodiment of the invention, are not intended to limit embodiment of the present invention, this
Field those of ordinary skill central scope according to the present invention and spirit can be carried out very easily corresponding flexible or repaiied
Change, therefore protection scope of the present invention should be subject to the protection domain required by claims.
Claims (10)
1. realizing the method that softphone is dialed in a kind of mobile terminal, which is characterized in that including:
In the application program for running on mobile terminal, load provides the page that softphone dials function;
Operation is dialed according to the softphone for triggering progress in the page, softphone is initiated to the application program and dials request;
The softphone is responded by the NJS middle layers of operation and dials request, and is mobile whole described in the application call
The primary telephone call interface provided is provided;
Primary telephone call interface by calling is that application program execution softphone is dialed.
2. the method as described in claim 1, which is characterized in that the NJS middle layers by operation respond the softphone
Request is dialed, and before the primary telephone call interface provided for mobile terminal described in the application call, the method
Further include:
The structure of the NJS middle layers is carried out for the primary telephone call interface that mobile terminal described in the application call provides
It builds;
The NJS middle layers of structure are encapsulated to the installation kit of the application program;
By operation of the installation kit in the mobile terminal, load in the NJS middle layers to the mobile terminal
It deposits;
When the application program runs on the mobile terminal, triggering is loaded onto in the NJS of the mobile terminal memory
Interbed is run.
3. method as claimed in claim 2, which is characterized in that described to be provided for mobile terminal described in the application call
Primary telephone call interface carry out the structures of the NJS middle layers, including:
Import the primary class object for describing the primary telephone call interface;
Associated instance objects are created according to the primary class object of importing;
It is configured for associated instance objects and calls attribute, call the instance objects of attribute to build to obtain in the NJS by being configured with
Interbed.
4. the method as described in claim 1, which is characterized in that the NJS middle layers by operation respond the softphone
Request, and the primary telephone call interface provided for mobile terminal described in the application call are provided, including:
Extraction in request is dialed by the softphone and obtains parameter;
It calls the parameter of the application program configuration to be passed to interface and the parameter is passed to the NJS middle layers;
The primary telephone call that the NJS middle layers call the mobile terminal to provide is triggered according to the incoming parameter to connect
Mouthful.
5. method as claimed in claim 4, which is characterized in that the incoming parameter of the basis triggers among the NJS
Layer calls the primary telephone call interface that the mobile terminal provides, including:
The running environment disposed in the mobile terminal is detected by the NJS middle layers;
The instance objects in the NJS middle layers are determined according to the parameter, and according to the running environment detected by the reality
Example object is associated with to obtain for describing the primary primary class object made a phone call;
According to the calling attribute configured for the instance objects, the calling of the primary class object is carried out.
6. realizing the device that softphone is dialed in a kind of mobile terminal, which is characterized in that including:
Page load-on module, in the application program for running on mobile terminal, load to provide the page that softphone dials function
Face;
Initiation module is asked, for dialing operation according to the softphone for triggering progress in the page, is sent out to the application program
It plays softphone and dials request;
Interface calling module dials request for responding the softphone by the NJS middle layers of operation, and applies journey to be described
Sequence calls the primary telephone call interface that the mobile terminal provides;
Softphone dials module, is that application program execution softphone is dialled for the primary telephone call interface by calling
It beats.
7. device as claimed in claim 6, which is characterized in that described device further includes:
Intermediate layer building module, primary telephone call interface for being provided for mobile terminal described in the application call into
The structure of the row NJS middle layers;
Middle layer package module, for encapsulating the NJS middle layers of structure to the installation kit of the application program;
Middle layer load-on module loads the NJS middle layers for the operation by the installation kit in the mobile terminal
To the memory of the mobile terminal;
Middle layer runs module, for when the application program runs on the mobile terminal, triggering to be loaded onto the movement
The NJS middle layers of terminal memory are run.
8. device as claimed in claim 6, which is characterized in that the softphone dials module and includes:
Parameter extraction unit obtains parameter for dialing extraction in request by the softphone;
Parameter is passed to unit, and the parameter is passed to the NJS for calling the parameter of the application program configuration to be passed to interface
Middle layer;
Native interface call unit calls the mobile terminal for triggering the NJS middle layers according to the incoming parameter
The primary telephone call interface provided.
9. realizing the device that softphone is dialed in a kind of mobile terminal, which is characterized in that including:
Processor;And
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by the processor
It is realized when row and realizes the method that softphone is dialed in the mobile terminal as described in any one of claim 1 to 5.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
It is realized when being executed by processor and realizes the method that softphone is dialed in the mobile terminal as described in any one of claim 1 to 5.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810311980.5A CN108616657B (en) | 2018-04-09 | 2018-04-09 | Method and device for realizing soft phone dialing in mobile terminal |
PCT/CN2018/101557 WO2019196295A1 (en) | 2018-04-09 | 2018-08-21 | Method and apparatus for achieving soft phone dialing in mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810311980.5A CN108616657B (en) | 2018-04-09 | 2018-04-09 | Method and device for realizing soft phone dialing in mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108616657A true CN108616657A (en) | 2018-10-02 |
CN108616657B CN108616657B (en) | 2021-04-23 |
Family
ID=63659876
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810311980.5A Active CN108616657B (en) | 2018-04-09 | 2018-04-09 | Method and device for realizing soft phone dialing in mobile terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108616657B (en) |
WO (1) | WO2019196295A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639918A (en) * | 2018-10-30 | 2019-04-16 | 平安科技(深圳)有限公司 | Softphone communication means, device, equipment and computer readable storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116301759B (en) * | 2023-05-12 | 2023-11-03 | 国网信息通信产业集团有限公司 | Mobile component sharing method, system, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101005543A (en) * | 2006-12-25 | 2007-07-25 | 北京邮电大学 | IP telephone realizing plan on intelligent mobile terminal |
CN103428384A (en) * | 2013-08-12 | 2013-12-04 | 深圳市吉祥腾达科技有限公司 | System and method for realizing mobile VoIP (Voice over Internet Phone) service of smart handheld device |
US20160119483A1 (en) * | 2014-06-23 | 2016-04-28 | Invariant Telecom | Voip voice and messaging application |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203251323U (en) * | 2012-12-24 | 2013-10-23 | 方正国际软件有限公司 | Call center CTI soft phone implementation device based on HTML5 |
EP3040851B1 (en) * | 2014-12-30 | 2017-11-29 | GN Audio A/S | Method of operating a computer and computer |
CN104683607A (en) * | 2015-03-24 | 2015-06-03 | 深圳市有信网络技术有限公司 | Method and device for enhancing softphone call completing rate |
-
2018
- 2018-04-09 CN CN201810311980.5A patent/CN108616657B/en active Active
- 2018-08-21 WO PCT/CN2018/101557 patent/WO2019196295A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101005543A (en) * | 2006-12-25 | 2007-07-25 | 北京邮电大学 | IP telephone realizing plan on intelligent mobile terminal |
CN103428384A (en) * | 2013-08-12 | 2013-12-04 | 深圳市吉祥腾达科技有限公司 | System and method for realizing mobile VoIP (Voice over Internet Phone) service of smart handheld device |
US20160119483A1 (en) * | 2014-06-23 | 2016-04-28 | Invariant Telecom | Voip voice and messaging application |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639918A (en) * | 2018-10-30 | 2019-04-16 | 平安科技(深圳)有限公司 | Softphone communication means, device, equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108616657B (en) | 2021-04-23 |
WO2019196295A1 (en) | 2019-10-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109032691A (en) | A kind of small routine operation method, device and storage medium | |
US9843667B2 (en) | Electronic device and call service providing method thereof | |
CN109669723A (en) | Hardware access method, apparatus, equipment and machine readable media | |
CN103687060B (en) | Terminal communicating method, device and terminal | |
CN106375465B (en) | A kind of data migration method and server | |
CN109976787A (en) | Application program updating method, apparatus, terminal and computer readable storage medium | |
CN114816208A (en) | Touch control method and device | |
CN110933075B (en) | Service calling method and device, electronic equipment and storage medium | |
CN107613369A (en) | Video broadcasting method, device and electronic equipment based on GStreamer frameworks | |
CN112165704A (en) | Information sharing method, earphone box and computer readable storage medium | |
CN106331055A (en) | Identifier generation device and method | |
CN108495043A (en) | Image processing method and relevant apparatus | |
CN105653195B (en) | Screenshotss method and mobile terminal | |
CN108616657A (en) | The method and device that softphone is dialed is realized in mobile terminal | |
CN109767257A (en) | Advertisement placement method, system and electronic equipment based on big data analysis | |
CN109635993A (en) | Operation behavior monitoring method and device based on prediction model | |
JP2022534346A (en) | Image Acquisition Method, Image Acquisition Apparatus, Server, and Computer Program | |
CN109426532A (en) | It is connected the method, apparatus and electronic equipment of the page in Android system | |
CN105682083B (en) | A kind of communication means of mobile terminal and duplex MODEM system | |
CN103052068B (en) | A kind of intelligent terminal security protection method of testing and system | |
CN114222003A (en) | Service calling method, system, device, equipment and storage medium | |
CN106454541A (en) | Calling method, calling device and calling system | |
CN105681615B (en) | A kind of information processing method and electronic equipment | |
WO2022199672A1 (en) | Access control method for precise permission revocation, related apparatus, and system | |
CN109324816A (en) | Game loading method and Related product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |