Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ isdn_cs_stat(3X) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

isdncall(8)

isdndisc(8)

isdnd(8)

ISDN_CS(3X)  —  NEWS-OS Programmer’s Manual

NAME

isdn_cs_call, isdn_cs_disc, isdn_cs_stat, isdn_cs_noinfo  − support IP connection via ISDN

SYNOPSIS

#include <newsisdn/isdn_iotype.h>
 intisdn_cs_stat(info)
structc_status ∗info;

intisdn_cs_noinfo(noinfo)
structn_info∗noinfo;

intisdn_cs_call(addr, sub, wait_time)
char∗addr;
char∗sub;
intwait_time;

intisdn_cs_disc(wait_time)
intwait_time;

DESCRIPTION

isdn_cs_stat copies ISDN call status into info structure. 

isdn_cs_noinfo copies the peer ISDN address into noinfo structure.  However, this information is only valid when isdn_cs_stat() returns status of CALL_SETUP, CALL_ALERT or CALL_EST. 

isdn_cs_call makes an IP connection to the specified peer addr and sub address.  addr may include hyphens `−’ for better readability.  To omit the sub-address, sub should be (char ∗)0.  This function waits in max wait_time seconds for the connection to establish.  It returns immediately if wait_time is set to 0. 

isdn_cs_disc closes an IP connection via ISDN.  This function waits in max wait_time seconds for disconnection.  It returns immediately if wait_time is set to 0. 

RETURN VALUE

All functions described above return 0 on success.  In case of execution error, a −1 is returned with an error code stored in errno.  On timeout a −2 is returned.  In case of failure to establish or deestablish a call, a −3 is returned; the cause value can be interrogated with isdn_cs_stat. 

FILES

/usr/sony/lib/libisdn.a

/sys/newsisdn/isdn_iotype.h

SEE ALSO

isdncall(8), isdndisc(8), isdnd(8)

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026