SIP Common Gateway Interface (CGI)
SIP Common Gateway Interface (CGI)
RFC 3050: Common Gateway Interface for SIP
Similar to HTML CGI, a SIP CGI script resides on the server and passes message parameters via environment variables to a separate process. This process sends instructions back to the server through its standard output file descriptor.
Scripts can be written in Perl, Tcl, C, C++, Java, …
Of course these scripts (being based on general purpose programming languages) do not have the limitations of CPL and hence only trusted users can be allowed to provide such scripts.
CGI scripts have access to both the request headers and the body and can therefore do general computations based on all this information.
Slide Notes
J. Lennox, H. Schulzrinne, and J. Rosenberg, “Common Gateway Interface for SIP”, IETF RFC 3050, January
Transcript
[slide330] We can write CGI scripts in whatever your programming language of choice is, the problem now is they have to run in the server or the gateway, and they have to of course be trusted.