Class SimpleOutgoingAudioTestCall
This class creates and sends a single NG9-1-1 audio test call to a test call target and reports the results of the test call. The format of the audio sent is G.711 Mu-Law (PCMU) and each sample is silence.
To use this class, call the constructor and then call the DoTestCall() method. DoTestCall is an awaitable Task that returns the results of the test call.
Inherited Members
Namespace: SipLib.TestCalls
Assembly: SipLib.dll
Syntax
public class SimpleOutgoingAudioTestCall
Constructors
| Edit this page View SourceSimpleOutgoingAudioTestCall(SIPURI, SipTransport, int, int)
Constructor.
Declaration
public SimpleOutgoingAudioTestCall(SIPURI toSipUri, SipTransport transport, int localRtpAudioPort, int maxTestCallDurationSeconds = 2147483647)
Parameters
Type | Name | Description |
---|---|---|
SIPURI | toSipUri | SIPURI of the test call target to send the test call to. The host must be an IP endpoint (IPv4 or IPv6) that contains an IP address and a SIP port number. |
SipTransport | transport | SipTransport to use to communicate with the test call target. The SIPURI of the test call target must be reachable from this SipTransport. |
int | localRtpAudioPort | Local RTP port number to use for receiving and sending RTP packets. If multiple test calls are being performed concurrently on the specified SipTransport, then each test call must have a unique local RTP port. |
int | maxTestCallDurationSeconds | Specifies the maximum duration of a test call in seconds. This parameter is optional. The call duration is measured from the time that this class receives the OK response from the test call target.. If the test call duration exceeds this limit then this class sends a BYE request to terminate the call. The default is int.MaxVal. |
Methods
| Edit this page View SourceDoTestCall()
Starts a test call.
Declaration
public Task<OutgoingTestCallResults> DoTestCall()
Returns
Type | Description |
---|---|
Task<OutgoingTestCallResults> | Returns the results of the test call when the test call is terminated. |