Name
Cprgen Request generation of a CPR
Description
Cprgen 8MS offers an add-on feature called CPRgen. It provides a means for automatically generating SMS/800 complex routing (CPR) from user supplied input. For a description of this input, as well as details on the tool itself, see the CPRgen section in the 8MS User's Guide. At a high level, the user will upload a CPR description, requesting that a CPR of a given name be generated for a given number. If CPR generation is successful, there is also an option to automatically activate the new routing in SMS/800.

The Cprgen request provides a means to request CPR generation via the 8MS API. The following are the allowed fields in reqparams:
* cprdata The blob of text that defines the routing to be generated. Details of this format are described in the CPRGen page of the User Guide.
notes Optional text describing the request.

MGI Messages
None.
Results
The result of a Cprgen request is represented in the <msgparams> tag of the normal 8MS API return structure. The parameters indicate the numbers of CPRs successfully generated, the number of failed generation requests, and, if activation was requested, how many activation requests were sent. If the number of activation requests is non-zero, then the SMS/800 responses to the activation requests are also returned.

For example, the following might be returned from a Cprgen request:

<API8MS>
<reqid>OA03743771</reqid>
<message>
<routeid>lt;/routeid>
<termrpt>COMPLD</termrpt>
<errorcd>0</errorcd>
<msgparams>
succeeded=1
failed=0
activate=1
</msgparams>
</message>
<message>
<routeid>RXU</routeid>
<termrpt>DENIED</termrpt>
<errorcd>1</errorcd>
<msgparams>
ID=ART21000
RO=ART01
NUM=8667736580
ED=NOW
ET=
CNT=04
ERR=1006
VERR=IEC:0123
ERR=1006
VERR=IEC:0124
ERR=1005
VERR=IAC:0123
ERR=1005
VERR=IAC:0124
</msgparams>
</message>
</API8MS>
Example
The following parameters will request generation of a CPR.
reqparams=cprdata~

-START NUM-

-START HDR-
Type:6DIGIT
Target#:8662998932
Cprname:BSO Test
Activate:Y
Effdate:11/11/02 10:00A
-END HDR-

-START CPR-
C:222:609332,609333,609334,732456,732649,732655,732889,908233,
      908434,908883,908924,908994
C:444:201338,201336,201998,605552,701898,701899,904332
C:555:212
C:110/9085550123:732445,732988
B:OBA:908312,908322
O:555
-END CPR-

-END NUM-