Harald Welte | e6f695e | 2018-06-15 22:04:28 +0200 | [diff] [blame^] | 1 | OsmoHLR> enable |
| 2 | OsmoHLR# configure terminal |
| 3 | OsmoHLR(config)# show running-config |
| 4 | |
| 5 | Current configuration: |
| 6 | ! |
| 7 | ! |
| 8 | log stderr |
| 9 | logging filter all 1 |
| 10 | logging color 1 |
| 11 | logging print category 1 |
| 12 | logging print extended-timestamp 1 |
| 13 | logging print file 1 |
| 14 | logging level all debug |
| 15 | logging level main notice |
| 16 | logging level db notice |
| 17 | logging level auc notice |
| 18 | ... |
| 19 | ! |
| 20 | line vty |
| 21 | no login |
| 22 | ! |
| 23 | ctrl |
| 24 | bind 127.0.0.1 |
| 25 | hlr |
| 26 | gsup |
| 27 | bind ip 127.0.0.1 |
| 28 | no usse-default |
| 29 | end |
| 30 | |
| 31 | OsmoHLR(config)# hlr |
| 32 | OsmoHLR(config-hlr)# no usse test |
| 33 | % Cannot remove non-existent USSE 'test' |
| 34 | |
| 35 | OsmoHLR(config-hlr)# usse gw1 |
| 36 | OsmoHLR(config-hlr-eusse)# no pattern prefix *111* |
| 37 | % Cannot remove non-existent pattern '*111*' of type 'prefix' |
| 38 | |
| 39 | OsmoHLR(config-hlr-eusse)# pattern prefix *110* |
| 40 | OsmoHLR(config-hlr-eusse)# pattern prefix *181* |
| 41 | OsmoHLR(config-hlr-eusse)# pattern prefix *110* |
| 42 | % Pattern already exists! |
| 43 | |
| 44 | OsmoHLR(config-hlr-eusse)# pattern code *110* |
| 45 | OsmoHLR(config-hlr-eusse)# pattern code *888# |
| 46 | OsmoHLR(config-hlr-eusse)# pattern code *110* |
| 47 | % Pattern already exists! |
| 48 | |
| 49 | OsmoHLR(config-hlr-eusse)# pattern regexp ^*[1-3]{3}*[0-9]+#$ |
| 50 | OsmoHLR(config-hlr-eusse)# pattern regexp ^*[5-7]{3}*[0-9]+#$ |
| 51 | OsmoHLR(config-hlr-eusse)# pattern regexp ^*[1-3]{3}*[0-9]+#$ |
| 52 | % Pattern already exists! |
| 53 | |
| 54 | OsmoHLR(config-hlr-eusse)# show running-config |
| 55 | |
| 56 | Current configuration: |
| 57 | ! |
| 58 | ! |
| 59 | log stderr |
| 60 | logging filter all 1 |
| 61 | logging color 1 |
| 62 | logging print category 1 |
| 63 | logging print extended-timestamp 1 |
| 64 | logging print file 1 |
| 65 | logging level all debug |
| 66 | logging level main notice |
| 67 | logging level db notice |
| 68 | logging level auc notice |
| 69 | ... |
| 70 | ! |
| 71 | line vty |
| 72 | no login |
| 73 | ! |
| 74 | ctrl |
| 75 | bind 127.0.0.1 |
| 76 | hlr |
| 77 | gsup |
| 78 | bind ip 127.0.0.1 |
| 79 | no usse-default |
| 80 | usse gw1 |
| 81 | pattern prefix *110* |
| 82 | pattern prefix *181* |
| 83 | pattern code *110* |
| 84 | pattern code *888# |
| 85 | pattern regexp ^*[1-3]{3}*[0-9]+#$ |
| 86 | pattern regexp ^*[5-7]{3}*[0-9]+#$ |
| 87 | end |
| 88 | |
| 89 | OsmoHLR(config-hlr-eusse)# no pattern prefix *181* |
| 90 | OsmoHLR(config-hlr-eusse)# no pattern code *110* |
| 91 | OsmoHLR(config-hlr-eusse)# no pattern regexp ^*[1-3]{3}*[0-9]+#$ |
| 92 | OsmoHLR(config-hlr-eusse)# show running-config |
| 93 | |
| 94 | Current configuration: |
| 95 | ! |
| 96 | ! |
| 97 | log stderr |
| 98 | logging filter all 1 |
| 99 | logging color 1 |
| 100 | logging print category 1 |
| 101 | logging print extended-timestamp 1 |
| 102 | logging print file 1 |
| 103 | logging level all debug |
| 104 | logging level main notice |
| 105 | logging level db notice |
| 106 | logging level auc notice |
| 107 | ... |
| 108 | ! |
| 109 | line vty |
| 110 | no login |
| 111 | ! |
| 112 | ctrl |
| 113 | bind 127.0.0.1 |
| 114 | hlr |
| 115 | gsup |
| 116 | bind ip 127.0.0.1 |
| 117 | no usse-default |
| 118 | usse gw1 |
| 119 | pattern prefix *110* |
| 120 | pattern code *888# |
| 121 | pattern regexp ^*[5-7]{3}*[0-9]+#$ |
| 122 | end |
| 123 | |
| 124 | OsmoHLR(config-hlr-eusse)# exit |
| 125 | OsmoHLR(config-hlr)# usse internal |
| 126 | |
| 127 | OsmoHLR(config-hlr-iusse)# pattern code *#100# |
| 128 | % Command incomplete. |
| 129 | |
| 130 | OsmoHLR(config-hlr-iusse)# pattern code *#100# response Your extension is %m |
| 131 | OsmoHLR(config-hlr-iusse)# pattern regexp ^*999*[0-3]+#$ response Mahlzeit! |
| 132 | |
| 133 | OsmoHLR(config-hlr-iusse)# no pattern code *888# |
| 134 | % Cannot remove non-existent pattern '*888#' of type 'code' |
| 135 | |
| 136 | OsmoHLR(config-hlr-iusse)# show running-config |
| 137 | |
| 138 | Current configuration: |
| 139 | ! |
| 140 | ! |
| 141 | log stderr |
| 142 | logging filter all 1 |
| 143 | logging color 1 |
| 144 | logging print category 1 |
| 145 | logging print extended-timestamp 1 |
| 146 | logging print file 1 |
| 147 | logging level all debug |
| 148 | logging level main notice |
| 149 | logging level db notice |
| 150 | logging level auc notice |
| 151 | ... |
| 152 | ! |
| 153 | line vty |
| 154 | no login |
| 155 | ! |
| 156 | ctrl |
| 157 | bind 127.0.0.1 |
| 158 | hlr |
| 159 | gsup |
| 160 | bind ip 127.0.0.1 |
| 161 | no usse-default |
| 162 | usse gw1 |
| 163 | pattern prefix *110* |
| 164 | pattern code *888# |
| 165 | pattern regexp ^*[5-7]{3}*[0-9]+#$ |
| 166 | usse internal |
| 167 | pattern code *#100# response Your extension is %m |
| 168 | pattern regexp ^*999*[0-3]+#$ response Mahlzeit! |
| 169 | end |
| 170 | |
| 171 | OsmoHLR(config-hlr-iusse)# exit |
| 172 | OsmoHLR(config-hlr)# usse-default test |
| 173 | % Cannot find USSE 'test' |
| 174 | |
| 175 | OsmoHLR(config-hlr)# usse-default internal |
| 176 | OsmoHLR(config-hlr)# usse-default gw1 |
| 177 | OsmoHLR(config-hlr)# show running-config |
| 178 | |
| 179 | Current configuration: |
| 180 | ! |
| 181 | ! |
| 182 | log stderr |
| 183 | logging filter all 1 |
| 184 | logging color 1 |
| 185 | logging print category 1 |
| 186 | logging print extended-timestamp 1 |
| 187 | logging print file 1 |
| 188 | logging level all debug |
| 189 | logging level main notice |
| 190 | logging level db notice |
| 191 | logging level auc notice |
| 192 | ... |
| 193 | ! |
| 194 | line vty |
| 195 | no login |
| 196 | ! |
| 197 | ctrl |
| 198 | bind 127.0.0.1 |
| 199 | hlr |
| 200 | gsup |
| 201 | bind ip 127.0.0.1 |
| 202 | usse-default gw1 |
| 203 | usse gw1 |
| 204 | pattern prefix *110* |
| 205 | pattern code *888# |
| 206 | pattern regexp ^*[5-7]{3}*[0-9]+#$ |
| 207 | usse internal |
| 208 | pattern code *#100# response Your extension is %m |
| 209 | pattern regexp ^*999*[0-3]+#$ response Mahlzeit! |
| 210 | end |
| 211 | |
| 212 | OsmoHLR(config-hlr)# no usse gw1 |
| 213 | % Cannot remove USSE 'gw1', it is the default route |
| 214 | |
| 215 | OsmoHLR(config-hlr)# no usse-default |
| 216 | OsmoHLR(config-hlr)# no usse gw1 |
| 217 | OsmoHLR(config-hlr)# show running-config |
| 218 | |
| 219 | Current configuration: |
| 220 | ! |
| 221 | ! |
| 222 | log stderr |
| 223 | logging filter all 1 |
| 224 | logging color 1 |
| 225 | logging print category 1 |
| 226 | logging print extended-timestamp 1 |
| 227 | logging print file 1 |
| 228 | logging level all debug |
| 229 | logging level main notice |
| 230 | logging level db notice |
| 231 | logging level auc notice |
| 232 | ... |
| 233 | ! |
| 234 | line vty |
| 235 | no login |
| 236 | ! |
| 237 | ctrl |
| 238 | bind 127.0.0.1 |
| 239 | hlr |
| 240 | gsup |
| 241 | bind ip 127.0.0.1 |
| 242 | no usse-default |
| 243 | usse internal |
| 244 | pattern code *#100# response Your extension is %m |
| 245 | pattern regexp ^*999*[0-3]+#$ response Mahlzeit! |
| 246 | end |