phonic
Version:
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [ • 874 B
text/typescript
export interface SipCallError {
error: SipCallError.Error_;
}
export declare namespace SipCallError {
interface Error_ {
/** Human-readable error message. */
message: string;
/** Machine-readable error code. */
code: Error_.Code;
/** The SIP response status code from the carrier (e.g. 403, 486, 603). */
sip_status_code: number;
/** The SIP response reason phrase from the carrier (e.g. "Network Blocked", "Trunk CPS limit exceeded"). */
sip_status: string;
}
namespace Error_ {
/** Machine-readable error code. */
const Code: {
readonly SipCallFailed: "sip_call_failed";
readonly SipAuthFailed: "sip_auth_failed";
readonly InvalidPhoneNumber: "invalid_phone_number";
};
type Code = (typeof Code)[keyof typeof Code];
}
}