Skip to content

ccg-go works as REST HTTP server, recieve json message from POST http://ip:port/ccr, and send it to Diameter Server

License

Notifications You must be signed in to change notification settings

corbamico/ccg-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ccg-go

ccg-go works as REST HTTP server, recive json message from POST http://ip:port/ccr,
and send it to Diameter Server.

How to Use

  • Just run ccg-go

  • Use REST Client plugin in Visual Studio Code
    Sample REST json message as file test/test-case.http

  • REST format for AVP
    ccg-go support two type formats:

    //format as "avp_code:vendor_id"
    {"20302:2011":"86139"}
    //format as "avp_name"
    {"calling-vlr-number":"86139"}
  • co-works with wireshark
    ccg-go write pcap as DLT_USER15 protocal,
    You can config in wireshark as Edit->Preference->Protocal->DLT_USER, add
    "USER 15(DLT=162)" as Payload 'diameter'

Configuration

    "originHost":          "1.client.ccg-go",
    "originRealm":         "client.ccg-go",
    "diameterServerAddr":  "10.253.191.56:16553",      //remote Diameter Server IP/Port
    "localRESTServerAddr": ":8080",                    //local address for REST server
    "extraDiameterXML":    "vendor1.xml,vendor2.xml",  //extra xml for diameter dictionary
    "dumpMessage":         false,                      //print detail CCR/CCA in console?
    "dumpPCAP":            false,                      //dump packet to pcap file?
    "dumpFile":            "ccg-go.pcap"               //file name for wireshark

Log

  • v20191120 Support Sy SLR/STR

Todo List

  • handle CCR/CCA diameter message
  • Dump detail CCR/CCA in console
  • Return as json format
  • Return detail CCA message as json
  • Write .pacap for wireshark
  • Generate SessionID for automaticlly
  • Support Sy SLR/STR

License

Copyright (c) Corbamico
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007

About

ccg-go works as REST HTTP server, recieve json message from POST http://ip:port/ccr, and send it to Diameter Server

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages