[OpenSIPS-Users] OpenSIPS 3.4.5 with CGrateS module sending incorrect OriginID for SessionSv1.ProcessCDR
Salvinder Parhar
salvinder.parhar09 at gmail.com
Fri Oct 25 04:12:06 UTC 2024
Hello OpenSIPS team, userlist,
I've recently started integrating OpenSIPS with CGrateS using the available
CGrateS module[1], and so far everything has been working as expected. But
now I think I may have hit an issue (possibly a bug) where OpenSIPS is not
sending the correct OriginID request parameter value to CGrateS engine as
set in the script when sending the "SessionSv1.ProcessCDR" request at the
end of the call.
My scenario is, a call comes into OpenSIPS from FreeSWITCH (a-leg),
OpenSIPS matches the dialed phone number (To User) with a prefix in
dr_rules and interprets that the dialed phone number is a local on-net
number and the call can be completed locally without sending to upstream
carrier, so it forwards the call back to FreeSWITCH (b-leg). The
call connects just fine with FreeSWITCH and completes as expected.
Before I forward back the call to FreeSWITCH, I invoke the cgrates_auth()
and cgrates_acc() functions for both legs of the call separately. Attached
file 'OpenSIPS_CGrateS_route.cfg' has my CGRATES_AUTH route blocks from my
script. I'm using the multiple sessions usage way[2] to auth/acc the two
call legs separately with CGrateS. Both call legs do get authorized with
CGrateS engine correctly and get terminated just fine after the call is
ended, but it's when OpenSIPS sends CGrateS engine the
"SessionSv1.ProcessCDR" request at the end for b-leg, it sends the wrong
OriginID there. It sends the OriginID for a-leg in the
"SessionSv1.ProcessCDR" request for b-leg, and that same OriginID in the
"SessionSv1.ProcessCDR" request for a-leg as well, to which CGrateS throws
an error saying it already exists
[{"id":132,"result":null,"error":"EXISTS"}] and only logs the CDR for one
call leg.
In my OpenSIPS script, I've correctly defined unique OriginID's for the two
call legs
For a-leg - $cgr(OriginID) = $ci;
For b-leg - $(cgr(OriginID)[$avp(sessionTag)]) = $ci + "_bleg";
OpenSIPS is honoring the defined OriginID's for all other previous requests
(like "SessionSv1.AuthorizeEventWithDigest", "SessionSv1.InitiateSession",
"SessionSv1.TerminateSession" etc) to CGrateS engine just not when sending
the "SessionSv1.ProcessCDR" request for b-leg.
Attached are also the ngrep capture logs from the CGrateS instance showing
all exchanges between OpenSIPS and CGrateS, raw and parsed separately for
a-leg and b-leg messages for easy reading.
I'm using OpenSIPS (3.4.5 (x86_64/linux))
OpenSIPS IP in ngrep logs 192.168.2.204
CGrateS IP in ngrep logs 192.168.2.203
[1] https://opensips.org/docs/modules/3.4.x/cgrates.html
[2] https://opensips.org/docs/modules/3.4.x/cgrates.html#idp5630528
Please let me know if I'm missing something in my config or doing something
wrong here.
Thanks,
Sal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20241025/b317b4cd/attachment-0001.html>
-------------- next part --------------
root at cgrates:~# ngrep -t -W byline port 2012 or 2014 or 8021 -d any
interface: any
filter: ( port 2012 or 2014 or 8021 ) and (ip || ip6)
####################################################################
T 2024/10/24 20:02:20.494524 192.168.2.204:53642 -> 192.168.2.203:2014 [AP] #68
{ "method": "SessionSv1.AuthorizeEventWithDigest", "id": 1868507268, "params": [ { "Tenant": "cx06.fusionpbx01.virtualbox.org", "ProcessStatQueues": false, "ProcessThresholds": false, "ReleaseResources": false, "AllocateResources": false, "AuthorizeResources": false, "GetRoutes": false, "GetSuppliers": false, "GetAttributes": true, "GetMaxUsage": false, "Event": { "Source": "OpenSIPS01", "OriginHost": "192.168.2.204", "RequestType": "*rated", "SetupTime": "1729814540", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a", "CallDirection": "call-out", "Destination": "4164793594", "Subject": "0117*009", "Account": "CUSTOMER006" } } ] }
##
T 2024/10/24 20:02:20.495077 127.0.0.1:53846 -> 127.0.0.1:2012 [AP] #70
{"method":"AttributeSv1.ProcessEvent","params":[{"Tenant":"cx06.fusionpbx01.virtualbox.org","ID":"05341f56-3ee4-40b0-914e-cc2bf7364fee","Time":null,"Event":{"Account":"CUSTOMER006","CallDirection":"call-out","Destination":"4164793594","OriginHost":"192.168.2.204","OriginID":"3f02275f-0d07-123e-51b7-bc2411256e4a","RequestType":"*rated","SetupTime":"1729814540","Source":"OpenSIPS01","Subject":"0117*009"},"APIOpts":{"*attrProfileIDs":null,"*context":"*sessions","*subsys":"*sessions"}}],"id":97}
#
T 2024/10/24 20:02:20.500735 127.0.0.1:2012 -> 127.0.0.1:53846 [AP] #71
{"id":97,"result":null,"error":"NOT_FOUND"}
##
T 2024/10/24 20:02:20.500819 192.168.2.203:2014 -> 192.168.2.204:53642 [AP] #73
{"id":1868507268,"result":{"AttributesDigest":null,"ResourceAllocation":null,"MaxUsage":0,"RoutesDigest":null,"Thresholds":null,"StatQueues":null},"error":null}
##
T 2024/10/24 20:02:20.501386 192.168.2.204:53642 -> 192.168.2.203:2014 [AP] #75
{ "method": "SessionSv1.AuthorizeEventWithDigest", "id": 1868507264, "params": [ { "Tenant": "cx01.fusionpbx01.virtualbox.org", "ProcessStatQueues": false, "ProcessThresholds": false, "ReleaseResources": false, "AllocateResources": false, "AuthorizeResources": false, "GetRoutes": false, "GetSuppliers": false, "GetAttributes": true, "GetMaxUsage": false, "Event": { "Source": "OpenSIPS01", "OriginHost": "192.168.2.204", "RequestType": "*rated", "SetupTime": "1729814540", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg", "CallDirection": "call-in", "Destination": "4164793594", "Subject": "0117*009", "Account": "CUSTOMER001" } } ] }
#
T 2024/10/24 20:02:20.501536 127.0.0.1:53846 -> 127.0.0.1:2012 [AP] #76
{"method":"AttributeSv1.ProcessEvent","params":[{"Tenant":"cx01.fusionpbx01.virtualbox.org","ID":"cdee94d2-bf2d-4bc7-aa82-244ca3788f2a","Time":null,"Event":{"Account":"CUSTOMER001","CallDirection":"call-in","Destination":"4164793594","OriginHost":"192.168.2.204","OriginID":"3f02275f-0d07-123e-51b7-bc2411256e4a_bleg","RequestType":"*rated","SetupTime":"1729814540","Source":"OpenSIPS01","Subject":"0117*009"},"APIOpts":{"*attrProfileIDs":null,"*context":"*sessions","*subsys":"*sessions"}}],"id":98}
#
T 2024/10/24 20:02:20.506846 127.0.0.1:2012 -> 127.0.0.1:53846 [AP] #77
{"id":98,"result":null,"error":"NOT_FOUND"}
#
T 2024/10/24 20:02:20.506918 192.168.2.203:2014 -> 192.168.2.204:53642 [AP] #78
{"id":1868507264,"result":{"AttributesDigest":null,"ResourceAllocation":null,"MaxUsage":0,"RoutesDigest":null,"Thresholds":null,"StatQueues":null},"error":null}
###
T 2024/10/24 20:02:28.361958 192.168.2.204:46748 -> 192.168.2.203:2014 [AP] #81
{ "method": "SessionSv1.InitiateSession", "id": 1868507260, "params": [ { "Tenant": "cx01.fusionpbx01.virtualbox.org", "ProcessStatQueues": false, "ProcessThresholds": false, "ReleaseResources": false, "AllocateResources": false, "AuthorizeResources": false, "GetRoutes": false, "GetSuppliers": false, "GetAttributes": true, "GetMaxUsage": false, "Event": { "Source": "OpenSIPS01", "OriginHost": "192.168.2.204", "RequestType": "*rated", "SetupTime": "1729814540", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg", "CallDirection": "call-in", "Destination": "4164793594", "Subject": "0117*009", "Account": "CUSTOMER001", "DialogID": 2123332762, "DialogEntry": 1429, "AnswerTime": "1729814548" }, "InitSession": true } ] }
##
T 2024/10/24 20:02:28.362398 127.0.0.1:53846 -> 127.0.0.1:2012 [AP] #83
{"method":"AttributeSv1.ProcessEvent","params":[{"Tenant":"cx01.fusionpbx01.virtualbox.org","ID":"e807bffd-e684-403f-a454-4ad1b7ffa521","Time":null,"Event":{"Account":"CUSTOMER001","AnswerTime":"1729814548","CallDirection":"call-in","Destination":"4164793594","DialogEntry":1429,"DialogID":2123332762,"OriginHost":"192.168.2.204","OriginID":"3f02275f-0d07-123e-51b7-bc2411256e4a_bleg","RequestType":"*rated","SetupTime":"1729814540","Source":"OpenSIPS01","Subject":"0117*009"},"APIOpts":{"*attrProfileIDs":null,"*context":"*sessions","*subsys":"*sessions"}}],"id":99}
#
T 2024/10/24 20:02:28.370287 127.0.0.1:2012 -> 127.0.0.1:53846 [AP] #84
{"id":99,"result":null,"error":"NOT_FOUND"}
##
T 2024/10/24 20:02:28.370411 127.0.0.1:53846 -> 127.0.0.1:2012 [AP] #86
{"method":"ChargerSv1.ProcessEvent","params":[{"Tenant":"cx01.fusionpbx01.virtualbox.org","ID":"e807bffd-e684-403f-a454-4ad1b7ffa521","Time":null,"Event":{"Account":"CUSTOMER001","AnswerTime":"1729814548","CGRID":"109862a5d06b707cedd881fad8109b099553ddae","CallDirection":"call-in","Destination":"4164793594","DialogEntry":1429,"DialogID":2123332762,"OriginHost":"192.168.2.204","OriginID":"3f02275f-0d07-123e-51b7-bc2411256e4a_bleg","RequestType":"*rated","SetupTime":"1729814540","Source":"OpenSIPS01","Subject":"0117*009"},"APIOpts":{"*attrProfileIDs":null,"*context":"*sessions","*subsys":"*sessions"}}],"id":100}
#
T 2024/10/24 20:02:28.377998 127.0.0.1:2012 -> 127.0.0.1:53846 [AP] #87
{"id":100,"result":[{"ChargerSProfile":"CUSTOMER001_CP","AttributeSProfiles":null,"AlteredFields":["*req.RunID"],"CGREvent":{"Tenant":"cx01.fusionpbx01.virtualbox.org","ID":"e807bffd-e684-403f-a454-4ad1b7ffa521","Time":null,"Event":{"Account":"CUSTOMER001","AnswerTime":"1729814548","CGRID":"109862a5d06b707cedd881fad8109b099553ddae","CallDirection":"call-in","Destination":"4164793594","DialogEntry":1429,"DialogID":2123332762,"OriginHost":"192.168.2.204","OriginID":"3f02275f-0d07-123e-51b7-bc2411256e4a_bleg","RequestType":"*rated","RunID":"*default","SetupTime":"1729814540","Source":"OpenSIPS01","Subject":"0117*009"},"APIOpts":{"*attrProfileIDs":null,"*context":"*sessions","*subsys":"*chargers"}}}],"error":null}
#
T 2024/10/24 20:02:28.378190 192.168.2.203:2014 -> 192.168.2.204:46748 [AP] #88
{"id":1868507260,"result":{"MaxUsage":10800000000000},"error":null}
##
T 2024/10/24 20:02:28.378373 192.168.2.204:46748 -> 192.168.2.203:2014 [AP] #90
{ "method": "SessionSv1.InitiateSession", "id": 1868507256, "params": [ { "Tenant": "cx06.fusionpbx01.virtualbox.org", "ProcessStatQueues": false, "ProcessThresholds": false, "ReleaseResources": false, "AllocateResources": false, "AuthorizeResources": false, "GetRoutes": false, "GetSuppliers": false, "GetAttributes": true, "GetMaxUsage": false, "Event": { "Source": "OpenSIPS01", "OriginHost": "192.168.2.204", "RequestType": "*rated", "SetupTime": "1729814540", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a", "CallDirection": "call-out", "Destination": "4164793594", "Subject": "0117*009", "Account": "CUSTOMER006", "DialogID": 2123332762, "DialogEntry": 1429, "AnswerTime": "1729814548" }, "InitSession": true } ] }
#
T 2024/10/24 20:02:28.378546 127.0.0.1:53846 -> 127.0.0.1:2012 [AP] #91
{"method":"AttributeSv1.ProcessEvent","params":[{"Tenant":"cx06.fusionpbx01.virtualbox.org","ID":"a4a85fde-542a-4382-9dd2-f2b056828a2b","Time":null,"Event":{"Account":"CUSTOMER006","AnswerTime":"1729814548","CallDirection":"call-out","Destination":"4164793594","DialogEntry":1429,"DialogID":2123332762,"OriginHost":"192.168.2.204","OriginID":"3f02275f-0d07-123e-51b7-bc2411256e4a","RequestType":"*rated","SetupTime":"1729814540","Source":"OpenSIPS01","Subject":"0117*009"},"APIOpts":{"*attrProfileIDs":null,"*context":"*sessions","*subsys":"*sessions"}}],"id":101}
#
T 2024/10/24 20:02:28.386283 127.0.0.1:2012 -> 127.0.0.1:53846 [AP] #92
{"id":101,"result":null,"error":"NOT_FOUND"}
#
T 2024/10/24 20:02:28.386355 127.0.0.1:53846 -> 127.0.0.1:2012 [AP] #93
{"method":"ChargerSv1.ProcessEvent","params":[{"Tenant":"cx06.fusionpbx01.virtualbox.org","ID":"a4a85fde-542a-4382-9dd2-f2b056828a2b","Time":null,"Event":{"Account":"CUSTOMER006","AnswerTime":"1729814548","CGRID":"292cde4bebf5b1e630d483cfe40e01a0379d2418","CallDirection":"call-out","Destination":"4164793594","DialogEntry":1429,"DialogID":2123332762,"OriginHost":"192.168.2.204","OriginID":"3f02275f-0d07-123e-51b7-bc2411256e4a","RequestType":"*rated","SetupTime":"1729814540","Source":"OpenSIPS01","Subject":"0117*009"},"APIOpts":{"*attrProfileIDs":null,"*context":"*sessions","*subsys":"*sessions"}}],"id":102}
#
T 2024/10/24 20:02:28.393846 127.0.0.1:2012 -> 127.0.0.1:53846 [AP] #94
{"id":102,"result":[{"ChargerSProfile":"CUSTOMER006_CP","AttributeSProfiles":null,"AlteredFields":["*req.RunID"],"CGREvent":{"Tenant":"cx06.fusionpbx01.virtualbox.org","ID":"a4a85fde-542a-4382-9dd2-f2b056828a2b","Time":null,"Event":{"Account":"CUSTOMER006","AnswerTime":"1729814548","CGRID":"292cde4bebf5b1e630d483cfe40e01a0379d2418","CallDirection":"call-out","Destination":"4164793594","DialogEntry":1429,"DialogID":2123332762,"OriginHost":"192.168.2.204","OriginID":"3f02275f-0d07-123e-51b7-bc2411256e4a","RequestType":"*rated","RunID":"*default","SetupTime":"1729814540","Source":"OpenSIPS01","Subject":"0117*009"},"APIOpts":{"*attrProfileIDs":null,"*context":"*sessions","*subsys":"*chargers"}}}],"error":null}
#
T 2024/10/24 20:02:28.393982 192.168.2.203:2014 -> 192.168.2.204:46748 [AP] #95
{"id":1868507256,"result":{"MaxUsage":10800000000000},"error":null}
###############################
T 2024/10/24 20:02:38.704588 192.168.2.203:2014 -> 192.168.2.204:46732 [AP] #126
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
#
T 2024/10/24 20:02:38.704603 192.168.2.203:2014 -> 192.168.2.204:46794 [AP] #127
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
#
T 2024/10/24 20:02:38.704618 192.168.2.203:2014 -> 192.168.2.204:46748 [AP] #128
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
#
T 2024/10/24 20:02:38.704654 192.168.2.203:2014 -> 192.168.2.204:46790 [AP] #129
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
#
T 2024/10/24 20:02:38.704662 192.168.2.203:2014 -> 192.168.2.204:46764 [AP] #130
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
#
T 2024/10/24 20:02:38.704700 192.168.2.203:2014 -> 192.168.2.204:46800 [AP] #131
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
#
T 2024/10/24 20:02:38.704707 192.168.2.203:2014 -> 192.168.2.204:46714 [AP] #132
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
#
T 2024/10/24 20:02:38.704734 192.168.2.203:2014 -> 192.168.2.204:46716 [AP] #133
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
#
T 2024/10/24 20:02:38.704741 192.168.2.203:2014 -> 192.168.2.204:46770 [AP] #134
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
#
T 2024/10/24 20:02:38.704766 192.168.2.203:2014 -> 192.168.2.204:46782 [AP] #135
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
#
T 2024/10/24 20:02:38.704773 192.168.2.203:2014 -> 192.168.2.204:46798 [AP] #136
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
#
T 2024/10/24 20:02:38.704798 192.168.2.203:2014 -> 192.168.2.204:46810 [AP] #137
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
#
T 2024/10/24 20:02:38.704805 192.168.2.203:2014 -> 192.168.2.204:46738 [AP] #138
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
##
T 2024/10/24 20:02:38.704851 192.168.2.203:2014 -> 192.168.2.204:46698 [AP] #140
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
###
T 2024/10/24 20:02:38.704888 192.168.2.203:2014 -> 192.168.2.204:53642 [AP] #143
{"method":"SessionSv1.GetActiveSessionIDs","params":[""],"id":1}
#############
T 2024/10/24 20:02:38.705191 192.168.2.204:46764 -> 192.168.2.203:2014 [AP] #156
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
#
T 2024/10/24 20:02:38.705191 192.168.2.204:46732 -> 192.168.2.203:2014 [AP] #157
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
###
T 2024/10/24 20:02:38.705328 192.168.2.204:53642 -> 192.168.2.203:2014 [AP] #160
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
#
T 2024/10/24 20:02:38.705361 192.168.2.204:46748 -> 192.168.2.203:2014 [AP] #161
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
#
T 2024/10/24 20:02:38.705413 192.168.2.204:46782 -> 192.168.2.203:2014 [AP] #162
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
##
T 2024/10/24 20:02:38.705538 192.168.2.204:46800 -> 192.168.2.203:2014 [AP] #164
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
##
T 2024/10/24 20:02:38.705613 192.168.2.204:46790 -> 192.168.2.203:2014 [AP] #166
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
##
T 2024/10/24 20:02:38.705660 192.168.2.204:46716 -> 192.168.2.203:2014 [AP] #168
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
##
T 2024/10/24 20:02:38.705810 192.168.2.204:46770 -> 192.168.2.203:2014 [AP] #170
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
##
T 2024/10/24 20:02:38.705925 192.168.2.204:46794 -> 192.168.2.203:2014 [AP] #172
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
##
T 2024/10/24 20:02:38.705949 192.168.2.204:46810 -> 192.168.2.203:2014 [AP] #174
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
##
T 2024/10/24 20:02:38.706071 192.168.2.204:46698 -> 192.168.2.203:2014 [AP] #176
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
##
T 2024/10/24 20:02:38.706186 192.168.2.204:46738 -> 192.168.2.203:2014 [AP] #178
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
##
T 2024/10/24 20:02:38.706246 192.168.2.204:46798 -> 192.168.2.203:2014 [AP] #180
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
##
T 2024/10/24 20:02:38.706303 192.168.2.204:46714 -> 192.168.2.203:2014 [AP] #182
{ "error": null, "result": [ { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg" }, { "OriginHost": "192.168.2.204", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a" } ], "id": 1 }
####
T 2024/10/24 20:02:40.944406 192.168.2.204:46770 -> 192.168.2.203:2014 [AP] #186
{ "method": "SessionSv1.TerminateSession", "id": 1276540546, "params": [ { "Tenant": "cx01.fusionpbx01.virtualbox.org", "ProcessStatQueues": false, "ProcessThresholds": false, "ReleaseResources": false, "AllocateResources": false, "AuthorizeResources": false, "GetRoutes": false, "GetSuppliers": false, "GetAttributes": true, "GetMaxUsage": false, "Event": { "Source": "OpenSIPS01", "OriginHost": "192.168.2.204", "RequestType": "*rated", "SetupTime": "1729814540", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a_bleg", "CallDirection": "call-in", "Destination": "4164793594", "Subject": "0117*009", "Account": "CUSTOMER001", "AnswerTime": "1729814548", "Usage": "12s" }, "TerminateSession": true } ] }
##
T 2024/10/24 20:02:40.944734 192.168.2.203:2014 -> 192.168.2.204:46770 [AP] #188
{"id":1276540546,"result":"OK","error":null}
#
T 2024/10/24 20:02:40.944934 192.168.2.204:46770 -> 192.168.2.203:2014 [AP] #189
{ "method": "SessionSv1.TerminateSession", "id": 1276540550, "params": [ { "Tenant": "cx06.fusionpbx01.virtualbox.org", "ProcessStatQueues": false, "ProcessThresholds": false, "ReleaseResources": false, "AllocateResources": false, "AuthorizeResources": false, "GetRoutes": false, "GetSuppliers": false, "GetAttributes": true, "GetMaxUsage": false, "Event": { "Source": "OpenSIPS01", "OriginHost": "192.168.2.204", "RequestType": "*rated", "SetupTime": "1729814540", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a", "CallDirection": "call-out", "Destination": "4164793594", "Subject": "0117*009", "Account": "CUSTOMER006", "AnswerTime": "1729814548", "Usage": "12s" }, "TerminateSession": true } ] }
#
T 2024/10/24 20:02:40.945189 192.168.2.203:2014 -> 192.168.2.204:46770 [AP] #190
{"id":1276540550,"result":"OK","error":null}
#
T 2024/10/24 20:02:40.950194 192.168.2.204:46770 -> 192.168.2.203:2014 [AP] #191
{ "method": "SessionSv1.ProcessCDR", "id": 1276540554, "params": [ { "Tenant": "cx01.fusionpbx01.virtualbox.org", "ProcessStatQueues": false, "ProcessThresholds": false, "ReleaseResources": false, "AllocateResources": false, "AuthorizeResources": false, "GetRoutes": false, "GetSuppliers": false, "GetAttributes": true, "GetMaxUsage": false, "Event": { "Source": "OpenSIPS01", "OriginHost": "192.168.2.204", "RequestType": "*rated", "SetupTime": "1729814540", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a", "CallDirection": "call-in", "Destination": "4164793594", "Subject": "0117*009", "Account": "CUSTOMER001", "Usage": "12s", "AnswerTime": "1729814548", "DisconnectCause": "Upstream BYE" } } ] }
#
T 2024/10/24 20:02:40.950493 127.0.0.1:53846 -> 127.0.0.1:2012 [AP] #192
{"method":"CDRsV1.ProcessEvent","params":[{"Flags":["*chargers:false","*attributes:false","*rals:true"],"Tenant":"cx06.fusionpbx01.virtualbox.org","ID":"577bac1","Time":null,"Event":{"Account":"CUSTOMER006","AnswerTime":"2024-10-25T00:02:28Z","CGRID":"292cde4bebf5b1e630d483cfe40e01a0379d2418","CallDirection":"call-out","Destination":"4164793594","DialogEntry":1429,"DialogID":2123332762,"OriginHost":"192.168.2.204","OriginID":"3f02275f-0d07-123e-51b7-bc2411256e4a","RequestType":"*rated","RunID":"*default","SetupTime":"1729814540","Source":"OpenSIPS01","Subject":"0117*009","Usage":12000000000},"APIOpts":{"*attrProfileIDs":null,"*context":"*sessions","*subsys":"*sessions"}}],"id":103}
#
T 2024/10/24 20:02:40.971581 127.0.0.1:53846 -> 127.0.0.1:2012 [AP] #193
{"method":"EeSv1.ProcessEvent","params":[{"EeIDs":null,"Tenant":"cx06.fusionpbx01.virtualbox.org","ID":"81fb0ac","Time":null,"Event":{"Account":"CUSTOMER006","AnswerTime":"2024-10-25T00:02:28Z","CGRID":"292cde4bebf5b1e630d483cfe40e01a0379d2418","CallDirection":"call-out","Category":"call","Cost":0.0021,"CostDetails":{"CGRID":"292cde4bebf5b1e630d483cfe40e01a0379d2418","RunID":"*default","StartTime":"2024-10-25T00:02:28Z","Usage":12000000000,"Cost":0.00204,"Charges":[{"RatingID":"73096a5","Increments":[{"Usage":0,"Cost":0,"AccountingID":"","CompressFactor":1},{"Usage":1000000000,"Cost":0.00017,"AccountingID":"","CompressFactor":12}],"CompressFactor":1}],"AccountSummary":null,"Rating":{"73096a5":{"ConnectFee":0,"RoundingMethod":"*up","RoundingDecimals":4,"MaxCost":1.2,"MaxCostStrategy":"*disconnect","TimingID":"6f26c1b","RatesID":"b2aa91e","RatingFiltersID":"30ffb5c"}},"Accounting":{},"RatingFilters":{"30ffb5c":{"DestinationID":"DST_CA_ALL","DestinationPrefix":"416","RatingPlanID":"RP_CA_ONLY","Subject":"*out:cx06.fusionpbx01.virtualbox.org:call:*any"}},"Rates":{"b2aa91e":[{"GroupIntervalStart":0,"Value":0.01,"RateIncrement":1000000000,"RateUnit":60000000000}]},"Timings":{"6f26c1b":{"Years":[],"Months":[],"MonthDays":[],"WeekDays":[],"StartTime":"00:00:00"}}},"CostSource":"*cdrs","Destination":"4164793594","DialogEntry":"1429","DialogID":"2123332762","ExtraInfo":"","OrderID":0,"OriginHost":"192.168.2.204","OriginID":"3f02275f-0d07-123e-51b7-bc2411256e4a","Partial":false,"PreRated":false,"RequestType":"*rated","RunID":"*default","SetupTime":"2024-10-24T20:02:20-04:00","Source":"OpenSIPS01","Subject":"0117*009","Tenant":"cx06.fusionpbx01.virtualbox.org","ToR":"*voice","Usage":12000000000},"APIOpts":{"*attrProfileIDs":null,"*context":"*sessions","*subsys":"*sessions"}}],"id":104}
##
T 2024/10/24 20:02:40.971974 127.0.0.1:2012 -> 127.0.0.1:53846 [AP] #195
{"id":104,"result":null,"error":"NOT_FOUND"}
##
T 2024/10/24 20:02:40.972058 127.0.0.1:2012 -> 127.0.0.1:53846 [AP] #197
{"id":103,"result":"OK","error":null}
##
T 2024/10/24 20:02:40.972132 192.168.2.203:2014 -> 192.168.2.204:46770 [AP] #199
{"id":1276540554,"result":"OK","error":null}
#
T 2024/10/24 20:02:40.972356 192.168.2.204:46770 -> 192.168.2.203:2014 [AP] #200
{ "method": "SessionSv1.ProcessCDR", "id": 1276540558, "params": [ { "Tenant": "cx06.fusionpbx01.virtualbox.org", "ProcessStatQueues": false, "ProcessThresholds": false, "ReleaseResources": false, "AllocateResources": false, "AuthorizeResources": false, "GetRoutes": false, "GetSuppliers": false, "GetAttributes": true, "GetMaxUsage": false, "Event": { "Source": "OpenSIPS01", "OriginHost": "192.168.2.204", "RequestType": "*rated", "SetupTime": "1729814540", "OriginID": "3f02275f-0d07-123e-51b7-bc2411256e4a", "CallDirection": "call-out", "Destination": "4164793594", "Subject": "0117*009", "Account": "CUSTOMER006", "Usage": "12s", "AnswerTime": "1729814548", "DisconnectCause": "Upstream BYE" } } ] }
#
T 2024/10/24 20:02:40.972613 127.0.0.1:53846 -> 127.0.0.1:2012 [AP] #201
{"method":"CDRsV1.ProcessEvent","params":[{"Flags":["*chargers:false","*attributes:false","*rals:true"],"Tenant":"cx06.fusionpbx01.virtualbox.org","ID":"4f2e47e","Time":null,"Event":{"Account":"CUSTOMER006","AnswerTime":"2024-10-25T00:02:28Z","CGRID":"292cde4bebf5b1e630d483cfe40e01a0379d2418","CallDirection":"call-out","Destination":"4164793594","DialogEntry":1429,"DialogID":2123332762,"OriginHost":"192.168.2.204","OriginID":"3f02275f-0d07-123e-51b7-bc2411256e4a","RequestType":"*rated","RunID":"*default","SetupTime":"1729814540","Source":"OpenSIPS01","Subject":"0117*009","Usage":12000000000},"APIOpts":{"*attrProfileIDs":null,"*context":"*sessions","*subsys":"*sessions"}}],"id":105}
#
T 2024/10/24 20:02:40.972799 127.0.0.1:2012 -> 127.0.0.1:53846 [AP] #202
{"id":105,"result":null,"error":"EXISTS"}
#
T 2024/10/24 20:02:40.973309 192.168.2.203:2014 -> 192.168.2.204:46770 [AP] #203
{"id":1276540558,"result":null,"error":"PARTIALLY_EXECUTED"}
##^Cexit
205 received, 64 matched
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenSIPS_CGrateS_route.cfg
Type: application/octet-stream
Size: 8439 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20241025/b317b4cd/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ngrep_parsed_Call-to-OpenSIPS_a-leg.json
Type: application/json
Size: 10808 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20241025/b317b4cd/attachment-0002.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ngrep_parsed_Call-from-OpenSIPS_b-leg.json
Type: application/json
Size: 14573 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20241025/b317b4cd/attachment-0003.json>
More information about the Users
mailing list