@@ -24,6 +24,11 @@ AAA_DIAMETER MODULE
24
24
1.4.1. dm_send_request(app_id, cmd_code, avps_json,
25
25
[rpl_avps_pv])
26
26
27
+ 1.5. Exported Asyncronous Functions
28
+
29
+ 1.5.1. dm_send_request(app_id, cmd_code, avps_json,
30
+ [rpl_avps_pv])
31
+
27
32
2. Contributors
28
33
29
34
2.1. By Commit Statistics
@@ -50,6 +55,7 @@ AAA_DIAMETER MODULE
50
55
1.6. Setting the answer_timeout parameter
51
56
1.7. dictionary.opensips extended syntax
52
57
1.8. dm_send_request usage
58
+ 1.9. dm_send_request asynchronous usage
53
59
54
60
Chapter 1. Admin Guide
55
61
@@ -280,15 +286,56 @@ xlog("rc: $var(rc), AVPs: $var(rpl_avps)\n");
280
286
$json(avps) := $var(rpl_avps);
281
287
282
288
289
+ 1.5. Exported Asyncronous Functions
290
+
291
+ 1.5.1. dm_send_request(app_id, cmd_code, avps_json, [rpl_avps_pv])
292
+
293
+ Similar to dm_send_request() but performs an asynchronous
294
+ Diameter request.
295
+
296
+ Uses the same parameters and return codes as dm_send_request().
297
+
298
+ Example 1.9. dm_send_request asynchronous usage
299
+
300
+ # Building an sending an My-Custom-Request (92001) for the
301
+ # My Diameter Application (42)
302
+ $var(payload) = "[
303
+ { \"Origin-Host\": \"client.diameter.test\" },
304
+ { \"Origin-Realm\": \"diameter.test\" },
305
+ { \"Destination-Realm\": \"diameter.test\" },
306
+ { \"Sip-From-Tag\": \"dc93-4fba-91db\" },
307
+ { \"Sip-To-Tag\": \"ae12-47d6-816a\" },
308
+ { \"Acct-Session-Id\": \"a59c-dff0d9efd167\" },
309
+ { \"Sip-Call-Duration\": 6 },
310
+ { \"Sip-Call-Setuptime\": 1 },
311
+ { \"Sip-Call-Created\": 1652372541 },
312
+ { \"Sip-Call-MSDuration\": 5850 },
313
+ { \"out_gw\": \"GW-774\" },
314
+ { \"cost\": \"10.84\" },
315
+ { \"Cost-Information\": [
316
+ {\"Unit-Value\": [{\"Value-Digits\": 1000}]},
317
+ {\"Currency-Code\": 35}
318
+ ]}
319
+ ]";
320
+
321
+ async(dm_send_request(42, 92001, $var(payload), $var(rpl_avps), dm_reply
322
+ );
323
+
324
+ route[dm_reply] {
325
+ xlog("rc: $retcode, AVPs: $var(rpl_avps)\n");
326
+ $json(avps) := $var(rpl_avps);
327
+ }
328
+
329
+
283
330
Chapter 2. Contributors
284
331
285
332
2.1. By Commit Statistics
286
333
287
334
Table 2.1. Top contributors by DevScore^(1), authored
288
335
commits^(2) and lines added/removed^(3)
289
336
Name DevScore Commits Lines ++ Lines --
290
- 1. Liviu Chircu (@liviuchircu) 89 24 5918 955
291
- 2. Razvan Crainea (@razvancrainea) 17 10 584 73
337
+ 1. Liviu Chircu (@liviuchircu) 90 25 5921 958
338
+ 2. Razvan Crainea (@razvancrainea) 21 11 910 109
292
339
3. Maksym Sobolyev (@sobomax) 3 1 5 5
293
340
294
341
(1) DevScore = author_commits + author_lines_added /
@@ -312,7 +359,7 @@ Chapter 2. Contributors
312
359
Table 2.2. Most recently active contributors^(1) to this module
313
360
Name Commit Activity
314
361
1. Razvan Crainea (@razvancrainea) May 2023 - Dec 2023
315
- 2. Liviu Chircu (@liviuchircu) May 2021 - Apr 2023
362
+ 2. Liviu Chircu (@liviuchircu) May 2021 - Dec 2023
316
363
3. Maksym Sobolyev (@sobomax) Feb 2023 - Feb 2023
317
364
318
365
(1) including any documentation-related commits, excluding
0 commit comments