This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process.env.OPENAI_API_BASE = 'http://127.0.0.1:5001/v1'; | |
const { OpenAI } = require("langchain/llms/openai"); | |
const model = new OpenAI( | |
{ | |
openAIApiKey: 'sk-dummy', | |
temperature: 0.9, | |
}, | |
{ | |
basePath: process.env.OPENAI_API_BASE | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User Agent A | B2BUA server | rtpengine | User Agent B | |
INVITE (offer) | | | |
-------------|-------> | | | |
| ng offer | | |
| ---------|-----> | | |
| ng rewritten offer| | |
| <--------|------ | | |
| INVITE (rewritten offer) | |
| ---------|-----------|-----> | |
| 200 (answer) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User Agent A | UAS server | rtpengine | |
INVITE (offer) | | |
-------------|-------> | | |
| ng offer | |
| ---------|-----> | |
| ng answer | |
| <--------|------ | |
200 (answer) | | |
<-------|--------- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Srf = require('drachtio-srf'); | |
const srf = new Srf(); | |
const rtpengineClient = require('rtpengine-client').Client; | |
const { v4: uuid } = require('uuid'); | |
const sdpTransform = require('sdp-transform'); | |
const config = { | |
'drachtio': { | |
"host": "drachtio", | |
"port": 9022, |
OlderNewer