Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention provides a kind of method, relevant apparatus and communication system of feeding back unsuccessful information, and the technical scheme of using the embodiment of the invention to provide can make client obtain failure information.
Embodiment one
Present embodiment is set forth a kind of method of feeding back unsuccessful information, is elaborated below in conjunction with accompanying drawing, and referring to Fig. 1, this method may further comprise the steps:
The user that step 101:CBUS server receives the client transmission selects request;
Client can be the CBUS client.
Above-mentioned user selects to ask to comprise the condition of selection, and the CBUS server will send the request of obtaining appreciation information to the information source corresponding with the condition of selecting.
It can be to select single or multiple users' user to select request that the user selects to ask, and during elected majority user, it can be to comprise a plurality of user uniform resource identifier having that the user selects request, also can be to comprise the tabulation unified resource to identify.
Step 102:CBUS server obtains appreciation information to information source or by Policy evaluation execution management server to information source;
Select to ask to selecting to ask corresponding information source with the user or carrying out management server by Policy evaluation and obtain appreciation information according to the user to information source;
Above-mentioned steps can be to select to ask to selecting to ask corresponding information source or carry out management server by Policy evaluation to send the request of obtaining appreciation information to information source with the user according to the user earlier; Receive information source or Policy evaluation again and carry out the information that management server returns.
Carry out management server at the CBUS server when information source is obtained appreciation information by Policy evaluation, Policy evaluation is carried out management server and is judged whether to allow visit to the information of the tabulation corresponding with tabulation unified resource sign according to the request of obtaining appreciation information, or, Policy evaluation is carried out management server and is judged whether to allow visit to each user profile in the tabulation according to the request of obtaining appreciation information, above-mentioned each user profile can be from sharing tabulation extending mark language (Extensible Markup Language, XML) document management server obtains, and sends the request of obtaining appreciation information to information source when allowing visit.
At the CBUS server directly when information source is obtained appreciation information, the CBUS server can be to select request to xml document management (XML DocumentManagement according to described user, XDM) server sends searching request, and the XDM server is assessed to PEEM server requests authority again.
Carry out management server at the CBUS server when information source is obtained appreciation information by Policy evaluation, Policy evaluation is carried out management server and is carried out the authority assessment according to described request of obtaining appreciation information, when described Policy evaluation execution management server allows client that appreciation information is visited, described request of obtaining appreciation information is sent to described information source.
At the CBUS server directly after information source is obtained appreciation information, receive information source according to described request of obtaining appreciation information judge authentication not by or the information returned when not satisfying the targeted customer of described condition.
Directly after information source is obtained appreciation information, receive the appreciation information of the permission client-access that information source returns and the appreciation information of refusal client-access at the CBUS server.
Step 103:CBUS server is assessed information, when judgement information comprises failure information, to the client feedback failure information.
It can be appreciation information to the client feedback denied access.
Failure information can be the arbitrary or combination in any in the reason of user's refusal of alternative condition, denied access of user's refusal of user's number, denied access of the user uniform resource identifier having that comprises denied access, denied access.
Present embodiment is owing to obtain appreciation information to information source or by Policy evaluation execution management server to information source, above-mentioned information is assessed, when judging that above-mentioned information comprises failure information, to the client feedback failure information, make client when the select target user fails, can understand the appreciation information of its visit of refusal, thereby can avoid client to initiate some useless selections.
The following examples are described embodiments of the present invention under the various scenes.
Information source can be to comprise application server and XDM server, and application server comprises presence server and location server etc.The application server of mentioning in the following examples can replace with information source.
Appreciation information can be the presentation information that comprises the targeted customer, positional information, individual profile (profile) information etc.Targeted customer's information of mentioning in the following examples, positional information etc. can replace with appreciation information.
Embodiment two
Present embodiment is set forth the CBUS server and is obtained the situation of information failure to application server, is elaborated below in conjunction with accompanying drawing, and referring to Fig. 2, the method for present embodiment may further comprise the steps:
Step 201: customer end A initiates to select request to the CBUS server;
The condition and the scope that wherein comprise selection, condition are " state=online; Position=Beijing ", scope is user B and user C;
Step 202:CBUS server obtains targeted customer's information to corresponding application server;
The CBUS server is to the state information of presence server acquisition request user B and user C, to these two user position information of location server acquisition request;
After the CBUS server receives the request of customer end A, to the state information of presence server acquisition request user B and user C, to these two user position information of location server acquisition request.The CBUS server also provides authentication information to these application servers simultaneously, for example the username and password of the username and password of customer end A or certificate, CBUS server or certificate etc.
Presence server authenticates the identity of CBUS server and/or customer end A, presence server to above-mentioned any authenticate not by the time then obtain authenticating the conclusion of not passing through, authenticate unsanctioned information to the CBUS server feedback then.And location server to the CBUS server feedback positional information of user B and user C, for example positional information is to be positioned at Shanghai.
Step 203:CBUS server is assessed feedack;
The CBUS server is assessed back discovery presence server to feedack and has been refused request, and according to the location server feedack, neither one targeted customer's position is in Beijing.
Step 204:CBUS server is selected failure information to the customer end A feedback.
The CBUS server obtain authenticating not by or during the targeted customer's that do not satisfy condition information, the CBUS server can be as follows to the concrete selection failure information of customer end A feedback:
<?xml?version=″1.0″encoding=″UTF-8″?>
<cbus?xmlns=″...″>
...
<FailureResults>
<FailureSource>
<Source>presence</Source>
<Data>403?Authentication?Failed</Data>
</FailureSource>
<FailureSource>
<Source>location</Source>
<Data>405?No?Target?Suitable</Data>
</FailureSource>
</FailureResults>
</cbus>
Wherein FailureResults element representation feedback is failure information, its each daughter element FailureSource represents the relevant information of an application server, the daughter element Source of FailureSource represents the type or the sign of application server, another daughter element Data represents concrete failure information, for presence server, failure information is to authenticate not pass through, and for location server, failure information is the user who does not have to find to satisfy " in Beijing " this condition.
Other failure information can also comprise that CBUS does not receive that for a long time the feedback of application server causes task termination.
Present embodiment CBUS server obtain presence server to the authentication of customer end A not by or the location server feedback do not satisfy condition the targeted customer time, failure information to customer end A feedback select target user B and C, can make customer end A understand the concrete reason of selecting failure, promote user experience.
What embodiment two set forth is that the CBUS server obtains the situation of information failure to application server, and the following examples are set forth a kind of unique user and refused selecteed situation.
Embodiment three
Present embodiment is set forth a kind of unique user and is refused selecteed situation, is elaborated below in conjunction with accompanying drawing, and referring to Fig. 3, the method for present embodiment may further comprise the steps:
Step 301: whether online customer end A initiate to select unique user request to the CBUS server;
Whether certain customer end A wishes to understand targeted customer B by the CBUS server online.
Whether online step 302:CBUS server send unique user the request of obtaining to the PEEM server;
Use proxy mode, the CBUS server sends message by proxy interface to the PEEM server midway to the online information of presence server request target user B, and its main contents can be as follows:
SUBSCRIBE?sip:B@ps.cintel.net.cn?SIP/2.0
...
To:<sip:B@ps.cintel.net.cn>
From:<sip:CBUS@ps.cintel.net.cn>
...
Event:presence
...
Content-Type:application/cbus
Content-Length:xxx
ConsumerID:sip:A@ps.cintel.net.cn
ConsumerServiceID:PoC
ConsumerServiceProviderID:PoC-Provider
This is subscription (SUBSCRIBE) message of a session initiation protocol, is used in the example in the above to presence server request user's online information.The implication of each field is as follows in the message:
??To: |
??<sip:B@ps.cintel.net.cn> |
Targeted customer's URI |
??From: |
??<sip:CBUS@ps.cintel.net.cn> |
The URI of CBUS server |
??Event: |
??presence |
Requested resource |
??Content-Type: |
??application/cbus |
The message body type |
??Content-Length: |
??xxx |
Message body length |
??ConsumerID: |
??<sip:A@ps.cintel.net.cn> |
Client URI |
??ConsumerServiceID??: |
??PoC |
Initiate the traffic ID of request |
??ConsumerServicePr??oviderID: |
??PoC-Provider |
Initiate the service provider of request |
URI, the URI of CBUS server, the requested resource that has indicated the targeted customer in the message is that presentation information, message body type are application/cbus, what carry in the expression subscribe message body is the specific information of CBUS server when initiating request, in this example these specific informations comprise client URI, initiate request service identification (Identifier, ID), the provider that initiates the business of request.
Information after PEEM receives this message more than the analysis-by-synthesis is carried out the authority assessment to this request, whether have the presentation information of authority access destination user B, also can add the traffic ID of the request of initiation and provider again as the assessment reference condition if for example analyzing CBUS server, customer end A.
Step 303:PEEM server is assessed the authority of client;
If the PEEM server allows the visit of A to B through authority assessment back, then the request that A is sent is transmitted to presence server; If PEEM server refusal A then returns the permission failed message to the CBUS server to the visit of B;
If the PEEM server allows the visit to targeted customer B presentation information, then this request is transmitted to presence server, when transmitting, can carry out cutting to some specific informations that has carried out the authority assessment, for example crop message bodies such as ConsumerID, ConsumerServiceID, ConsumerServiceProviderID, Content-Type also crops, Content-Length is made as 0, and at this moment message becomes following form:
SUBSCRIBE?sip:B@ps.cintel.net.cn?SIP/2.0
...
To:<sip:B@ps.cintel.net.cn>
From:<sip:CBUS@ps.cintel.net.cn>
...
Event:presence
...
Content-Length:0
Certainly, also can these information of not cutting, all be transmitted to presence server.
If PEEM server refusal then directly returns the permission failure information to the CBUS server to the visit of targeted customer B presentation information, the permission failure information that returns can be as follows:
SIP/2.0403?Forbidden
...
From:<sip:B@ps.cintel.net.cn>
To:<sip:CBUS@ps.cintel.net.cn>
...
Content-Length:0
Wherein use 403 Forbidden to represent that in response request is rejected, optionally can add the concrete reason of failure and describe in failed message, this can be placed in the message body, as long as indicate the type of message body in message header.
Step 304:CBUS server is permitted failure information to client feedback.
The CBUS server feeds back above-mentioned permission failed message to customer end A after receiving the permission failed message that PEEM returns.
The CBUS server is the information of present condition to customer end A feedback user B denied access.
Present embodiment is because the CBUS server is received the permission failure information that returns after PEEM server refusal customer end A conducts interviews to the presentation information of targeted customer B, the permission failure information is assessed the back is information from present condition to customer end A feedback target user B denied access, can be so that customer end A be understood the concrete reason of the presentation information failure of select target user B, thus user experience promoted.
Embodiment three has set forth the unaccepted situation of a kind of selection unique user, and the following examples are set forth a kind of situation of failing during with a plurality of targeted customer's resource information of tabulation mode request.
Embodiment four
Present embodiment is set forth a kind of situation that a plurality of targeted customer's online information are partly failed of understanding, and is elaborated below in conjunction with accompanying drawing, and referring to Fig. 4, the method for present embodiment may further comprise the steps:
Step 401: whether online customer end A initiate to select a plurality of users request in tabulation URI mode to the CBUS server;
Customer end A wishes to understand by the CBUS server a plurality of targeted customers' online information, and for example whether targeted customer B, C, D, E be online.
Whether online step 402:CBUS server send a plurality of users request of obtaining to the PEEM server;
Use proxy mode, the CBUS server sends message by proxy interface to the PEEM server, and its main contents can be as follows:
SUBSCRIBE?sip:A-list@ps.cintel.net.cn?SIP/2.0
...
To:<sip:A-list@ps.cintel.net.cn>
From:<sip:CBUS@ps.cintel.net.cn>
...
Event:presence
...
Content-Type:application/cbus
Content-Length:xxx
ConsumerID:sip:A@ps.cintel.net.cn
ConsumerServiceID:PoC
ConsumerServiceProviderID:PoC-Provider
This moment, targeted customer URI became the URI of a tabulation, and promptly A-list@ps.cintel.net.cn has comprised B, C, four users of D, E in this tabulation.The user URI that tabulation comprises is stored in one and shares on the tabulation XDM server.
Step 403:PEEM server is assessed the authority of customer end A;
The PEEM server judges whether to allow A that the presentation information of this tabulation URI is conducted interviews, or, after obtaining the targeted customer URI that comprises the tabulation, the shared tabulation XDM server that comprises listuser URI judges whether to allow the visit of A again to each targeted customer's presentation information;
The PEEM server is received after this message can multiple processing mode:
1), judge whether to allow visit to the presentation information of this object listing according to the relevant information in the message, determination methods and follow-up processing are identical with embodiment three;
PEEM also may obtain the user URI that tabulation comprises from sharing tabulation XDM server, and judges whether customer end A has the access right to whole listuser.
2), fetch the targeted customer URI that comprises the tabulation from sharing tabulation XDM server, and judge whether to allow visit to each targeted customer's presentation information according to the relevant information in the subscribe message, wherein, relevant information can be targeted customer ID, authority assessment promoter ID, objective attribute target attribute, objective attribute target attribute user, comprises that optionally targeted customer's attribute uses traffic ID, objective attribute target attribute to use the service provider.For the targeted customer of permits access, (ResourceList Server RLS) transmits subscribe message to PEEM, and for the targeted customer of denied access, PEEM returns denied access information to the CBUS server to presence server or resource list server.
Step 404:PEEM server returns the result after the assessment;
For the user of PEEM server permits access, PEEM transmits subscribe message to presence server or resource list server, and for the targeted customer of PEEM server refusal A visit, PEEM returns the message of denied access to the CBUS server;
Hypothetical target user B and C denied access, and D and E allow visit, the message that PEEM sends is described below respectively.
As follows to the message instances that the PEEM server allows the user of visit to transmit:
SUBSCRIBE?sip:rls@ps.cintel.net.cn?SIP/2.0
...
To:RLS<sip:rls@ps.cintel.net.cn>
From:<sip:CBUS@ps.cintel.net.cn>
...
Event:presence
...
Content-Type:application/resource-lists+xml
Content-Disposition:recipient-list
Content-Length:xxx
<?xml?version=″1.0″encoding=″UTF-8″?>
<resource-lists?xmlns=″urn:ietf:params:xml:ns:resource-lists″
xmlns:xsi=″http://www.w3.org/2001/XMLSchema-instance″>
<list>
<entry?uri=″sip:D@ps.cintel.net.cn″/>
<entry?uri=″sip:E@ps.cintel.net.cn″/>
</list>
</resource-lists>
Owing to need to subscribe to a plurality of users' presentation information this moment, so send this message to presence server, its URI is sip:rls@ps.cintel.net.cn, comprised the URI of two targeted customer D and E in the message body, the type of message body identifies by application/resource-lists+xml.
User for denied access, the PEEM server returns 200OK message before earlier to the message that the CBUS server returns denied access, show the message successfully processing that the CBUS server sends, use notice (NOTIFY) the method feedback denied access message in the session initiation protocol technology then, message can be as follows:
NOTIFY?sip:a.cintel.net.cn?SIP/2.0
...
From:<sip:A-list@ps.cintel.net.cn>
To:<sip:CBUS@ps.cintel.net.cn>
...
Event:presence
Subscription-State:terminated;reason=rejected
...
Content-Type:application/rlmi+xml;char?set=″UTF-8″
Content-Length:xxx
<?xml?version=″1.0″encoding=″UTF-8″?>
<list?xmlns=″urn:ietf:params:xml:ns:rlmi″
uri=″sip:A-list@ps.cintel.net.cn″
version=″1″full?State=″true″>
<name?language=″en″>Buddy?List?of?A</name>
<name?language=″de″>Liste?der?Freunde?of?A</name>
<resource?uri=″sip:B@ps.cintel.net.cn″>
<name>B</name>
<instance?id=″juwigmtboe″state=″active″
cid=″B@ps.cintel.net.cn″/>
</resource>
<resource?uri=″sip:C@ps.cintel.net.cn″>
<name>C</name>
<instance?id=″hqzsuxtfyq″state=″active″
cid=″C@ps.cintel.net.cn″/>
</resource>
</list>
From field in the message header of NOTIFY is that sip:A-list@ps.cintel.net.cn represents it is the message of feeding back from list of targeted subscribers, uses the Subscription-State field to carry " terminated in addition in the message header; Reason=rejected " information; this expression is subscribed to and to be rejected, and the targeted customer of denied access comprises in message body, and the message body type that this NOTIFY request comprises is " application/rlmi+xml "; message body comprises a list of targeted subscribers, and tabulation has included only in this example
The information of targeted customer B and C illustrates that the user of denied access has only these two.
Step 405:CBUS server is to targeted customer's information of client feedback denied access.
The message that the CBUS server sends according to the PEEM server is assessed the targeted customer information of back to the visit of customer end A feedback refusal customer end A.
The CBUS server is by assessing the targeted customer URI that the back satisfies condition to the customer end A feedback, also feedback is refused targeted customer's information that customer end A is visited in addition, these information can comprise user's number of user URI, the refusal of refusal, the alternative condition of user's refusal, the reason of user's refusal etc., can comprise one or more in them.What the user refused can be customer end A, also can be the CBUS server.
The failure information of concrete feedback can be as follows:
<?xml?version=″1.0″encoding=″UTF-8″?>
<cbus?xmlns=″...″>
...
<SuccessfulResults>
...
<Target?uri=″sip:B@ps.cintel.net.cn″/>
<Target?uri=″sip:C@ps.cintel.net.cn″/>
</SuccessfulResults>
<FailureResults>
<FailureSource>
<Source>presence</Source>
<Target?uri=″sip:D@ps.cintel.net.cn″reason=”...”/>
<Target?uri=″sip:E@ps.cintel.net.cn″reason=”...”/>
<TargetNumber>2</TargetNumber>
</FailureSource>
</FailureResults>
</cbus>
Wherein comprised the targeted customer's information that meets this selection in SuccessfulResults, its each daughter element Target has specifically represented each targeted customer's URI, i.e. user B and user C.And use the FailureResults element to comprise targeted customer's information of selecting failure in addition, wherein each daughter element FailureSource carries the failure information of an application server feedback, the daughter element Source of FailureSource carries the type of application server or the URI of application server, in the above-mentioned example presence, the expression application server is a presence server, the daughter element Target of FailureSource has carried user's the URI of denied access and the reason of refusal, and the daughter element TargetNumber of FailureSource carries user's number of refusal.
Present embodiment is because part targeted customer denied access, the PEEM server returns denied access information to the CBUS server, the CBUS server is by the assessment back targeted customer's information to the visit of client feedback refusal customer end A, can make customer end A can understand the reason that can understand failure when the concrete implementation status of its selection and part are selected failure timely.
Embodiment four has set forth a kind of situation when partly failing with tabulation URI mode request a plurality of targeted customer's resource informations, and the following examples are set forth a kind of situation with a plurality of targeted customer's message parts failures of a plurality of URI mode request.
Embodiment five
Present embodiment is set forth the situation that a kind of method that directly comprises a plurality of targeted customer URI in request visits, and is elaborated below in conjunction with accompanying drawing, and referring to Fig. 5, the method for present embodiment may further comprise the steps:
Step 501: whether online customer end A initiate to select a plurality of users request to the CBUS server, and above-mentioned request comprises a plurality of users' URI;
The request message that send this moment can be as follows:
SUBSCRIBE?sip:rls@ps.cintel.net.cn?SIP/2.0
...
To:RLS<sip:rls@ps.cintel.net.cn>
From:<sip:CBUS@ps.cintel.net.cn>
...
Event:presence
Content-Type:multipart/related;type=″application/resource-lists+xml″;
start=″<nXYxAE@ps.cintel.net.cn>″;
boundary=″50UBfW7LSCVLtggUPe5z″
Content-Length:xxx
--50UBfW7LSCVLtggUPe5z
Content-Transfer-Encoding:binary
Content-ID:<nXYxAE@ps.cintel.net.cn>
Content-TyPe:application/resource-lists+xml;charset=″UTF-8″
Content-Disposition:recipient-list
Content-Length:xxx
<?xml?version=″1.0″encoding=″UTF-8″?>
<resource-lists?xmlns=″um:ietf:params:xml:ns:resource-lists″
xmlns:xsi=″http://www.w3.org/2001/XMLSchema-instance″>
<list>
<entry?uri=″sip:B@ps.cintel.net.cn″/>
<entry?uri=″sip:C@ps.cintel.net.cn″/>
<entry?uri=″sip:D@ps.cintel.net.cn″/>
<entry?uri=″sip:E@ps.cintel.net.cn″/>
</list>
</resource-lists>
...
Content-Type:application/cbus+xml;charset=″UTF-8″
Content-ID:<CBUS@ps.cintel.net.cn>
Content-Length:xxx
<?xml?version=″1.0″encoding=″UTF-8″?>
<cbus?xmlns=″urn:ietf:params:xml:ns:cbus″>
<ConsumerID?uri=″sip:A@ps.cintel.net.cn″/>
<ConsumerServiceID>PoC</ConsumerServiceID>
<ConsumerServiceProviderID>PoC-Provider</ConsumerServiceProviderID>
</cbus>
Wherein message header field To and From represent respectively the destination resource list server URI and initiate the URI of the CBUS server of message; Field Event is that presence server is represented subscribing presence information; Content type multipart/related represents that a plurality of parts are arranged in the message, the type of first part is application/resource-lists+xml, the ID sign is nXYxAE@ps.cintel.net.cn, this part is used to carry a plurality of user URI that the Resources list comprises, as having carried B, C, four URI of D, E with list/entry in the example; Second partial content type is application/cbus+xml, and the ID sign is CBUS@ps.cintel.net.cn, and this part has carried client id, has initiated the traffic ID of asking, the provider that initiates the business of request.
Step 502 is identical to step 405 with step 402 to step 505, repeats no more herein, and just in step 503, the PEEM server does not need to get in touch shared tabulation XDM server after receiving subscribe message again.
Present embodiment since the PEEM server to CBUS server returning part targeted customer denied access information, the CBUS server is by the assessment back targeted customer's information to the visit of client feedback refusal customer end A, can make customer end A can understand the reason that can understand failure when the concrete implementation status of its selection and part are selected failure timely.
Embodiment five has set forth the situation that a kind of method that directly comprises a plurality of targeted customer URI in request visits, and the following examples are set forth a kind of situation of asking a plurality of targeted customers under instant invocation pattern.
Embodiment six
Present embodiment is set forth a kind of situation of asking a plurality of targeted customers under instant invocation pattern, is elaborated below in conjunction with accompanying drawing, and referring to Fig. 6, the method for present embodiment may further comprise the steps:
Step 601: whether online customer end A initiate to select a plurality of users request to the CBUS server;
Can be with tabular form, also can be the mode that comprises a plurality of users' URI in request.
Whether customer end A sends request to the CBUS server, online as list of targeted subscribers A-List@ps.cintel.net.cn, comprises 4 user B, C, D, E in the tabulation.
Whether online step 602:CBUS server send a plurality of users request of obtaining to presence server;
Under the pattern of calling immediately, the CBUS server directly sends subscribe message to presence server, and the subscribe message of this moment is identical with the message of embodiment three, four, five.
Step 603: presence server is to the information request authority assessment of PEEM server sending permission assessment;
Whether assess to the information request authority of PEEM server sending permission assessment by online request according to obtaining a plurality of users for presence server;
At first to the assessment of PEEM server requests authority, this request message can be as follows to presence server:
<?xml?version=″1.0″encoding=″UTF-8″?>
<peem?xmlns=″urn:ietf:params:xml:ns:peem″
xmlns:xsi=″http://www.w3.org/2001/XMLSchema-instance″>
<ternplateID>OMA_GPM?1</templateID>
<templateVersion>V1.0.0</templateVersion>
<permissionsTargetID?uri=″sip:A-List@ps.cintel.net.cn″/>
<permissionsRequesterID?uri=″sip:CBUS@ps.cintel.net.cn″/>
<TargetAttributeConsumer>
<ConsumerID?uri=″sip:A@ps.cintel.net.cn″/>
<ServiceID>PoC</ServiceID>
<ServiceProviderID>Poc?Provider</ServiceProviderID>
</TargetAttributeConsumer>
<requestedAttributes>
<targetAttributeName>presence</targetAttributeName>
</requestedAttributes>
</peem>
Wherein comprised the information that is used to carry out the authority assessment as describing among the embodiment three: targeted customer's URI, be a tabulation URI this moment, but also can be the targeted customer URI of a plurality of appointments; The URI of promoter CBUS server; Client URI; Initiate the traffic ID of request; Initiate the provider of the business of request; Requested resource, be presentation information this moment.The message front end comprises and the template identification of PEEM and template version number is respectively OMA_GPM_1 and V1.0.0.
Step 604:PEEM server returns assessment result to presence server after carrying out the authority assessment;
After the PEEM server carries out the authority assessment according to the information of above-mentioned authority assessment,, then return the information of refusal A calling party, optionally, can also return the reason of refusal to presence server for the user of PEEM refusal A visit; User for PEEM allows A to visit feeds back the user ID of permission to presence server;
After PEEM carries out comprehensive assessment, suppose the visit of refusal to targeted customer B and C, allow the visit to targeted customer D and E, then the message of returning to presence server can be as follows:
<?xml?version=″1.0″encoding=″UTF-8″?>
<peem?xmlns=″urn:ietf:params:xml:ns:peem″
xmlns:xsi=″http://www.w3.org/2001/XMLSchema-instance″>
<templateID>OMA_GPM_2</templateID>
<templateVersion>V1.0.0</templateVersion>
<PermissionTarget>
<TargetID?uri=″sip:B@ps.cintel.net.cn″/>
<TargetID?decision=”DENY”/>
<TargetID?reason=”Consumer?A?is?not?permitted?to?visit?B”/>
</PermissionTarget>
<PermissionTarget>
<TargetID?uri=″sip:C@ps.cintel.net.cn″/>
<TargetID?decision=”DENY”/>
<TargetID?reason=”C?is?not?willing?to?accept?PoC?call”/>
</PermissionTarget>
<PermissionTarget>
<TargetID?uri=″sip:D@ps.cintel.net.cn″/>
<TargetID?decision=”GRANT”/>
</PermissionTarget>
<PermissionTarget>
<TargetID?uri=″sip:E@ps.cintel.net.cn″/>
<TargetID?decision=”GRANT”/>
</PermissionTarget>
</peem>
Usually represent allowed results by four PermissionTarget/TargetID units to each targeted customer, the uri attribute representation targeted customer's of each TargetID element URI, corresponding decision attribute representation is to this targeted customer's access permission situation.Optionally also can use the reason attribute to provide the reason of refusal, for example the reason for rejection of B is " not allowing A to visit him " in the example, the reason for rejection of C be " do not want to add based on Cellular Networks one by logical professional (Push to talk over Cellular, PoC) session ".
Step 605: presence server sends to the CBUS server with the targeted customer's of denied access information;
Presence server with above-mentioned denied access user's information, can also comprise that URI information and cause information send to the CBUS server; Presence server will allow the user's of A visit presentation information to send to the CBUS server;
Presence server is informed the CBUS server to the user's of denied access URI information and cause information by the mode of NOTIFY, and this is identical with embodiment four.The PRS server can also be informed the CBUS server to the user's who allows visit presentation information by the mode of NOTIFY.
Step 606:CBUS server is to targeted customer's information of client feedback denied access.
The CBUS server is assessed the targeted customer information of back to the visit of customer end A feedback refusal customer end A to the information of receiving.
This step is identical with step 405, repeats no more herein.
Present embodiment can make client understand the targeted customer URI that it has the authority visit, has also understood the targeted customer's who refuses its visit URI simultaneously, has promoted user experience.
Embodiment six has set forth a kind of situation of asking a plurality of targeted customer's information under instant invocation pattern, sets forth a kind of situation of using a plurality of targeted customer's information of way of search request under instant invocation pattern below.
Embodiment seven
Present embodiment is set forth a kind of situation of using a plurality of targeted customer's information of way of search request under instant invocation pattern, is elaborated below in conjunction with accompanying drawing, and referring to Fig. 7, the method for present embodiment may further comprise the steps:
Step 701: customer end A initiates to select a plurality of users whether to like the request of football to the CBUS server;
Can be with tabulation URI form, also can be the URI that comprises a plurality of users in request.
Under instant invocation pattern, except using the mode of subscribing to, the CBUS server can also use the mode of search at the XDM server, for example shares on the Profile XDM server and carries out resource access, for example the user URI of search hobby football in a tabulation.
Step 702:CBUS server sends searching request to shared profile (Profile) XDM server;
The CBUS server sends searching request according to above-mentioned request to shared Profile XDM server;
The CBUS server sends search message by Aggregation Proxy and search agent to shared Profile XDM server.The range information that comprises the needs search in this message, for example a list of targeted subscribers; The conditional information of search, for example " hobby=football ".
Step 703:Profile XDM server is to the information request authority assessment of PEEM server sending permission assessment;
Shared Profile XDM server can be to use with embodiment six similar methods and to the PEEM request authority of list of targeted subscribers be assessed, and obtains the authority assessment result.
Step 704:PEEM server carries out authority assessment back and returns assessment result to Profile XDM server;
After the PEEM server carries out the authority assessment according to the information of above-mentioned authority assessment,, then return denied access user's information (optionally, can also return the reason of refusal) to Profile XDM server for the user of the visit of PEEM server refusal A; User for the PEEM server allows A to visit sends the user ID that allows visit to Profile XDM server;
Step 705:Profile XDM server is to CBUS server return information;
Profile XDM server will allow targeted customer's the URI of visit and hobby football to send to the CBUS server, and the user profile of denied access is sent to the CBUS server;
Profile XDM server is visited to the permission of CBUS server feedback and hobby is the targeted customer URI of football, indicates the user profile of denied access simultaneously to the CBUS server, and concrete feedback system can be identical with embodiment six.
Step 706:CBUS server is to targeted customer's information of client feedback denied access.
The CBUS server is assessed the targeted customer information of back to the visit of customer end A feedback refusal customer end A to the information of receiving.
Mode to the customer end A feedback can be identical with embodiment six.
Present embodiment since the CBUS server to XDM server search targeted customer information, the XDM server is assessed to PEEM server requests authority, allow targeted customer's information of visit and denied access after the acquisition assessment result to the CBUS server feedback, the CBUS server is to targeted customer's information of client feedback denied access, make client can understand the targeted customer's of its visit of refusal information, thereby promoted user experience.
Need to prove, for aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, do not have the part that describes in detail among certain embodiment, can be referring to the associated description of other embodiment.
A kind of method of feeding back unsuccessful information more than is provided, and the embodiment of the invention also provides a kind of user based on condition to select server and a kind of communication system.
At first set forth a kind of user and select server,, select server to comprise with lower unit based on the user of condition referring to Fig. 8 based on condition:
Receiving element 801 is used to receive the user that client sends and selects request;
Information acquisition unit 802 is used for selecting to ask to selecting to ask corresponding information source with described user or carrying out management server by Policy evaluation and obtain appreciation information to described information source according to the described user that described receiving element 801 receives;
Assessment unit 803 is used to judge whether the information that described information acquisition unit 802 obtains comprises failure information;
Feedback unit 804 is used for when described assessment unit 803 judges that described information comprises failure information, to the described failure information of described client feedback.
Wherein, information acquisition unit 802 can comprise:
Request transmitting unit is used for selecting to ask to selecting to ask corresponding information source or carry out management server by Policy evaluation to send the request of obtaining appreciation information to described information source with described user according to the described user that described receiving element 801 receives;
Information receiving unit is used to receive described information source or Policy evaluation and carries out the information that described request of obtaining appreciation information that management server receives according to the described request transmitting element is returned;
Assessment unit 803 comprises: the assessment subelement is used to judge whether the described information that described information receiving unit receives comprises failure information.
Wherein, receiving element 801 comprises: receive subelement, the user who is used to receive the condition that comprises selection that client sends selects request; Request transmitting unit comprises: request sends subelement, is used for selecting to ask to send the request of obtaining appreciation information to the information source corresponding with described condition according to described user.
Wherein, receive subelement and comprise: first receiving element, be used to receive described information source according to described request of obtaining appreciation information judge authentication not by or the information returned when not satisfying the targeted customer of described condition.
Wherein, receiving element 801 comprises: second receiving element, and the user who is used to receive the single or multiple users of selection that client sends selects request; Request transmitting unit comprises: first request transmitting unit is used for selecting to ask to carry out the information of management server to the described single or multiple users of information source request by Policy evaluation according to the single or multiple users' of described selection user; Feedback unit 804 comprises: the feedback subelement is used for when described assessment unit 803 judges that described information comprises failure information, to the appreciation information of client feedback denied access.
Wherein, receiving element 801 comprises: the 3rd receiving element, and the user who is used to receive a plurality of users of selection that client sends selects request, and a plurality of users' of described selection user selects request to comprise tabulation unified resource sign.
Wherein, receiving element 801 comprises: the 4th receiving element, and the user who is used to receive a plurality of users of selection that client sends selects request, and a plurality of users' of described selection user selects request to comprise tabulation unified resource sign or a plurality of user uniform resource identifier having; Information receiving unit comprises: the message pick-up subelement is used to receive the user profile of the described client-access of permission that information source returns and the user profile of the described client-access of refusal.
Wherein, receiving element 801 comprises: the 4th receiving element, the user who is used to receive a plurality of user profile of selection that client sends selects request, and the user of a plurality of user profile of described selection selects request to comprise tabulation unified resource sign or a plurality of user uniform resource identifier having; Request transmitting unit comprises: second request transmitting unit is used for selecting request to send searching request to extending marking speech documents management server according to described user; Information receiving unit comprises: first information receiving element is used to receive permission that information source returns and the appreciation information of refusing described client-access.
Wherein, above-mentioned failure information comprises the arbitrary or combination in any in the reason of user's refusal of alternative condition, denied access of user's refusal of user's number, denied access of user uniform resource identifier having, the denied access of denied access.
The method of the feeding back unsuccessful information that above-mentioned CBUS server can be used to realize that the embodiment of the invention is mentioned, but be not limited to realize this method.
Set forth a kind of CBUS server above, set forth a kind of communication system below.
Referring to Fig. 9, a kind of communication system comprises:
User based on condition selects server 901, is used to receive the user that client sends and selects request; Select to ask to selecting to ask corresponding information source 902 according to described user with described user; Described information is assessed, when judging that described information comprises failure information, to the described failure information of described client feedback;
Information source 902 is used for selecting server 901 return informations to described user based on condition.
Wherein, above-mentioned communication system also comprises:
Policy evaluation is carried out management server, be used for selecting request to carry out the authority assessment according to the described user that the user based on condition selects server 801 to receive, when permission conducts interviews to appreciation information, to allow targeted customer's sign of visit to send to described information source 902, when refusal conducts interviews to appreciation information, select server 901 to return failure information to described user based on condition.
The embodiment of the invention is owing to obtain appreciation information to information source or by Policy evaluation execution management server to information source, above-mentioned information is assessed, when judging that above-mentioned information comprises failure information, to the client feedback failure information, make client when the select target user fails, can understand the appreciation information of its visit of refusal, thereby can avoid client to initiate some useless selections.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, this program comprises the steps: when carrying out
The user who receives the client transmission selects request;
Select to ask to selecting to ask corresponding information source with described user or carrying out management server by Policy evaluation and obtain appreciation information according to described user to described information source
Described information is assessed, when judging that described information comprises failure information, to the described failure information of described client feedback.
The above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
More than method, relevant apparatus and the communication system of a kind of feeding back unsuccessful information that the embodiment of the invention provided is described in detail, the explanation of above embodiment just is used for helping to understand method of the present invention and thought thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.