Sat Nov 25 00:46:16 2006

Asterisk developer's documentation


zt_pvt Struct Reference


Data Fields

char accountcode [AST_MAX_ACCOUNT_CODE]
unsigned int adsi:1
int amaflags
unsigned int answeronpolarityswitch:1
int busy_quietlength
int busy_tonelength
int busycount
unsigned int busydetect:1
char call_forward [AST_MAX_EXTENSION]
ast_group_t callgroup
int callingpres
int callprogress
unsigned int callreturn:1
char callwait_name [AST_MAX_EXTENSION]
char callwait_num [AST_MAX_EXTENSION]
int callwaitcas
unsigned int callwaiting:1
unsigned int callwaitingcallerid:1
int callwaitingrepeat
int callwaitrings
unsigned int cancallforward:1
unsigned int canpark:1
int channel
char cid_name [AST_MAX_EXTENSION]
char cid_num [AST_MAX_EXTENSION]
int cid_signalling
int cid_start
int cid_ton
int cidcwexpire
int cidlen
int cidpos
int cidrings
unsigned char * cidspill
unsigned int confirmanswer:1
int confno
int confusers
char context [AST_MAX_CONTEXT]
int cref
char defcontext [AST_MAX_CONTEXT]
unsigned int destroy:1
char dialdest [256]
unsigned int dialednone:1
unsigned int dialing:1
unsigned int didtdd:1
unsigned int digital:1
int distinctivering
unsigned int dnd:1
char dnid [AST_MAX_EXTENSION]
ZT_DIAL_OPERATION dop
zt_distRings drings
ast_dspdsp
int dsp_features
int dtmfrelax
unsigned int echobreak:1
unsigned int echocanbridged:1
int echocancel
unsigned int echocanon:1
char echorest [20]
int echotraining
char exten [AST_MAX_EXTENSION]
int fake_event
unsigned int faxhandled:1
char finaldial [64]
unsigned int firstradio:1
timeval flashtime
unsigned int group
time_t guardtime
unsigned int hanguponpolarityswitch:1
unsigned int hardwaredtmf:1
unsigned int hidecallerid
unsigned int ignoredtmf:1
unsigned int immediate:1
unsigned int inalarm:1
int inconference
char language [MAX_LANGUAGE]
char lastcid_name [AST_MAX_EXTENSION]
char lastcid_num [AST_MAX_EXTENSION]
int law
ast_mutex_t lock
char mailbox [AST_MAX_EXTENSION]
zt_pvtmaster
unsigned int mate:1
int msgstate
char musicclass [MAX_MUSICCLASS]
zt_pvtnext
int onhooktime
char * origcid_name
char * origcid_num
unsigned int outgoing:1
unsigned int overlapdial:1
ast_channelowner
unsigned int permcallwaiting:1
unsigned int permhidecallerid:1
ast_group_t pickupgroup
int polarity
timeval polaritydelaytv
int polarityonanswerdelay
zt_pvtprev
unsigned int priexclusive:1
unsigned int priindication_oob:1
int propconfno
unsigned int pulse:1
unsigned int pulsedial:1
int radio
char rdnis [AST_MAX_EXTENSION]
unsigned int restrictcid:1
int ringt
int ringt_base
float rxgain
zt_confinfo saveconf
int sendcalleridafter
int sig
zt_pvtslaves [MAX_SLAVES]
int span
int stripmsd
zt_subchannel sub_unused
zt_subchannel subs [3]
tdd_statetdd
unsigned int threewaycalling:1
int tonezone
unsigned int transfer:1
unsigned int transfertobusy:1
float txgain
unsigned int use_callerid:1
unsigned int use_callingpres:1
unsigned int usedistinctiveringdetection:1
int whichwink
unsigned int zaptrcallerid:1

Detailed Description

Definition at line 523 of file chan_zap.c.


Field Documentation

char accountcode[AST_MAX_ACCOUNT_CODE]
 

Account code

Definition at line 660 of file chan_zap.c.

Referenced by zt_new().

unsigned int adsi
 

Definition at line 545 of file chan_zap.c.

Referenced by zt_new().

int amaflags
 

AMA Flags

Definition at line 661 of file chan_zap.c.

Referenced by zt_new().

unsigned int answeronpolarityswitch
 

Definition at line 546 of file chan_zap.c.

Referenced by zt_handle_event().

int busy_quietlength
 

Definition at line 652 of file chan_zap.c.

Referenced by zt_new().

int busy_tonelength
 

Definition at line 651 of file chan_zap.c.

Referenced by zt_new().

int busycount
 

Definition at line 650 of file chan_zap.c.

Referenced by zt_new().

unsigned int busydetect
 

Definition at line 547 of file chan_zap.c.

Referenced by zt_new(), and zt_read().

char call_forward[AST_MAX_EXTENSION]
 

Definition at line 663 of file chan_zap.c.

Referenced by ss_thread(), and zt_new().

ast_group_t callgroup
 

Definition at line 629 of file chan_zap.c.

Referenced by zt_new().

int callingpres
 

The value of callling presentation that we're going to use when placing a PRI call

Definition at line 636 of file chan_zap.c.

Referenced by zt_new().

int callprogress
 

Definition at line 653 of file chan_zap.c.

Referenced by zt_new(), and zt_read().

unsigned int callreturn
 

Definition at line 548 of file chan_zap.c.

Referenced by ss_thread().

char callwait_name[AST_MAX_EXTENSION]
 

Definition at line 621 of file chan_zap.c.

Referenced by send_cwcidspill(), and zt_call().

char callwait_num[AST_MAX_EXTENSION]
 

Definition at line 620 of file chan_zap.c.

Referenced by send_cwcidspill(), and zt_call().

int callwaitcas
 

Definition at line 645 of file chan_zap.c.

Referenced by send_callerid(), send_cwcidspill(), zt_call(), zt_callwait(), zt_handle_event(), zt_hangup(), and zt_read().

unsigned int callwaiting
 

Definition at line 549 of file chan_zap.c.

Referenced by available(), ss_thread(), and zt_hangup().

unsigned int callwaitingcallerid
 

Definition at line 550 of file chan_zap.c.

Referenced by zt_callwait().

int callwaitingrepeat
 

How many samples to wait before repeating call waiting

Definition at line 637 of file chan_zap.c.

Referenced by zt_callwait(), zt_hangup(), and zt_read().

int callwaitrings
 

Definition at line 646 of file chan_zap.c.

Referenced by zt_call(), zt_callwait(), and zt_read().

unsigned int cancallforward
 

Definition at line 551 of file chan_zap.c.

Referenced by ss_thread().

unsigned int canpark
 

Definition at line 552 of file chan_zap.c.

Referenced by ss_thread().

int channel
 

Channel Number or CRV

Definition at line 631 of file chan_zap.c.

Referenced by __zt_exception(), action_zapshowchannels(), alloc_sub(), available(), check_for_conference(), enable_dtmf_detect(), find_channel(), get_alarms(), handle_init_event(), isourconf(), mkintf(), my_zt_write(), reset_conf(), ss_thread(), unalloc_sub(), zap_destroy_channel(), zt_answer(), zt_bridge(), zt_call(), zt_confmute(), zt_disable_ec(), zt_enable_ec(), zt_fixup(), zt_handle_event(), zt_hangup(), zt_new(), zt_read(), zt_setoption(), zt_train_ec(), and zt_write().

char cid_name[AST_MAX_EXTENSION]
 

Definition at line 615 of file chan_zap.c.

Referenced by ss_thread(), zt_handle_event(), zt_hangup(), and zt_new().

char cid_num[AST_MAX_EXTENSION]
 

Definition at line 613 of file chan_zap.c.

Referenced by ss_thread(), zt_handle_event(), zt_hangup(), and zt_new().

int cid_signalling
 

CID signalling type bell202 or v23

Definition at line 634 of file chan_zap.c.

Referenced by ss_thread().

int cid_start
 

CID start indicator, polarity or ring

Definition at line 635 of file chan_zap.c.

Referenced by handle_init_event(), and ss_thread().

int cid_ton
 

Type Of Number (TON)

Definition at line 614 of file chan_zap.c.

Referenced by zt_new().

int cidcwexpire
 

When to expire our muting for CID/CW

Definition at line 638 of file chan_zap.c.

Referenced by send_callerid(), send_cwcidspill(), zt_hangup(), and zt_read().

int cidlen
 

Definition at line 641 of file chan_zap.c.

Referenced by send_callerid(), send_cwcidspill(), zt_call(), and zt_callwait().

int cidpos
 

Definition at line 640 of file chan_zap.c.

Referenced by send_callerid(), send_cwcidspill(), zt_call(), and zt_callwait().

int cidrings
 

Which ring to deliver CID on

Definition at line 669 of file chan_zap.c.

Referenced by zt_call(), zt_handle_event(), zt_hangup(), and zt_read().

unsigned char* cidspill
 

Definition at line 639 of file chan_zap.c.

Referenced by handle_init_event(), send_callerid(), send_cwcidspill(), zt_call(), zt_callwait(), zt_handle_event(), zt_hangup(), zt_read(), and zt_write().

unsigned int confirmanswer
 

Wait for '#' to confirm answer

Definition at line 553 of file chan_zap.c.

Referenced by zt_handle_event(), zt_hangup(), and zt_read().

int confno
 

Our conference

Definition at line 626 of file chan_zap.c.

Referenced by check_for_conference(), conf_add(), isourconf(), and reset_conf().

int confusers
 

Who is using our conference

Definition at line 627 of file chan_zap.c.

char context[AST_MAX_CONTEXT]
 

Definition at line 605 of file chan_zap.c.

Referenced by action_zapshowchannels(), ss_thread(), and zt_new().

int cref
 

Call reference number

Definition at line 656 of file chan_zap.c.

char defcontext[AST_MAX_CONTEXT]
 

Definition at line 606 of file chan_zap.c.

Referenced by ss_thread().

unsigned int destroy
 

Definition at line 554 of file chan_zap.c.

Referenced by chandup(), and zt_hangup().

char dialdest[256]
 

Definition at line 665 of file chan_zap.c.

Referenced by zt_call(), zt_digit(), and zt_handle_event().

unsigned int dialednone
 

Definition at line 556 of file chan_zap.c.

Referenced by zt_call().

unsigned int dialing
 

Definition at line 557 of file chan_zap.c.

Referenced by zt_answer(), zt_call(), zt_digit(), zt_handle_event(), zt_hangup(), zt_read(), and zt_write().

unsigned int didtdd
 

flag to say its done it once

Definition at line 555 of file chan_zap.c.

Referenced by zt_hangup(), and zt_setoption().

unsigned int digital
 

Definition at line 558 of file chan_zap.c.

Referenced by zt_answer(), zt_call(), zt_enable_ec(), zt_hangup(), zt_indicate(), zt_new(), and zt_write().

int distinctivering
 

Which distinctivering to use

Definition at line 668 of file chan_zap.c.

Referenced by zt_call(), and zt_hangup().

unsigned int dnd
 

Definition at line 559 of file chan_zap.c.

Referenced by action_zapdndoff(), action_zapdndon(), action_zapshowchannels(), available(), and ss_thread().

char dnid[AST_MAX_EXTENSION]
 

Definition at line 623 of file chan_zap.c.

Referenced by zt_new().

ZT_DIAL_OPERATION dop
 

Definition at line 657 of file chan_zap.c.

Referenced by ss_thread(), zt_call(), zt_handle_event(), and zt_indicate().

struct zt_distRings drings
 

Definition at line 603 of file chan_zap.c.

struct ast_dsp* dsp
 

Definition at line 655 of file chan_zap.c.

Referenced by disable_dtmf_detect(), enable_dtmf_detect(), ss_thread(), zt_hangup(), zt_new(), zt_read(), and zt_setoption().

int dsp_features
 

Definition at line 688 of file chan_zap.c.

Referenced by disable_dtmf_detect(), enable_dtmf_detect(), and zt_new().

int dtmfrelax
 

whether to run in relaxed DTMF mode

Definition at line 670 of file chan_zap.c.

Referenced by ss_thread(), zt_hangup(), zt_new(), and zt_setoption().

unsigned int echobreak
 

Definition at line 560 of file chan_zap.c.

Referenced by zt_call(), and zt_handle_event().

unsigned int echocanbridged
 

Definition at line 561 of file chan_zap.c.

Referenced by zt_bridge().

int echocancel
 

Definition at line 647 of file chan_zap.c.

Referenced by zt_disable_ec(), zt_enable_ec(), and zt_train_ec().

unsigned int echocanon
 

Definition at line 562 of file chan_zap.c.

Referenced by zt_disable_ec(), and zt_enable_ec().

char echorest[20]
 

Definition at line 649 of file chan_zap.c.

Referenced by zt_call(), and zt_handle_event().

int echotraining
 

Definition at line 648 of file chan_zap.c.

Referenced by zt_call(), zt_handle_event(), and zt_train_ec().

char exten[AST_MAX_EXTENSION]
 

Definition at line 607 of file chan_zap.c.

Referenced by ss_thread(), zt_hangup(), and zt_new().

int fake_event
 

Definition at line 671 of file chan_zap.c.

Referenced by __zt_exception(), zap_fake_event(), zt_handle_event(), zt_new(), and zt_read().

unsigned int faxhandled
 

Has a fax tone already been handled?

Definition at line 563 of file chan_zap.c.

Referenced by zt_hangup(), and zt_read().

char finaldial[64]
 

Definition at line 659 of file chan_zap.c.

Referenced by zt_call(), and zt_handle_event().

unsigned int firstradio
 

Definition at line 564 of file chan_zap.c.

Referenced by zt_read().

struct timeval flashtime
 

Last flash-hook time

Definition at line 654 of file chan_zap.c.

Referenced by zt_handle_event().

unsigned int group
 

Definition at line 624 of file chan_zap.c.

Referenced by available().

time_t guardtime
 

Must wait this much time before using for new call

Definition at line 633 of file chan_zap.c.

Referenced by available(), and zt_hangup().

unsigned int hanguponpolarityswitch
 

Definition at line 565 of file chan_zap.c.

Referenced by zt_answer(), and zt_handle_event().

unsigned int hardwaredtmf
 

Definition at line 566 of file chan_zap.c.

Referenced by disable_dtmf_detect(), enable_dtmf_detect(), ss_thread(), and zt_new().

unsigned int hidecallerid
 

Definition at line 567 of file chan_zap.c.

Referenced by ss_thread(), zt_call(), and zt_hangup().

unsigned int ignoredtmf
 

Definition at line 568 of file chan_zap.c.

Referenced by disable_dtmf_detect(), enable_dtmf_detect(), zt_hangup(), and zt_read().

unsigned int immediate
 

Answer before getting digits?

Definition at line 569 of file chan_zap.c.

Referenced by handle_init_event(), and ss_thread().

unsigned int inalarm
 

Definition at line 570 of file chan_zap.c.

Referenced by handle_init_event(), zt_handle_event(), and zt_read().

int inconference
 

If our real should be in the conference

Definition at line 534 of file chan_zap.c.

char language[MAX_LANGUAGE]
 

Definition at line 608 of file chan_zap.c.

Referenced by zt_new().

char lastcid_name[AST_MAX_EXTENSION]
 

Definition at line 617 of file chan_zap.c.

Referenced by zt_call(), and zt_read().

char lastcid_num[AST_MAX_EXTENSION]
 

Definition at line 616 of file chan_zap.c.

Referenced by ss_thread(), zt_call(), and zt_read().

int law
 

Definition at line 625 of file chan_zap.c.

Referenced by bump_gains(), restore_gains(), zt_call(), and zt_setoption().

ast_mutex_t lock
 

Definition at line 524 of file chan_zap.c.

Referenced by destroy_zt_pvt(), mkintf(), wakeup_sub(), zap_queue_frame(), zt_answer(), zt_bridge(), zt_call(), zt_digit(), zt_exception(), zt_fixup(), zt_handle_event(), zt_hangup(), zt_indicate(), zt_read(), zt_unlink(), and zt_write().

char mailbox[AST_MAX_EXTENSION]
 

Definition at line 664 of file chan_zap.c.

Referenced by has_voicemail().

struct zt_pvt* master
 

Master to us (we follow their conferencing)

Definition at line 533 of file chan_zap.c.

Referenced by check_for_conference().

unsigned int mate
 

flag to say its in MATE mode

Definition at line 571 of file chan_zap.c.

Referenced by zt_sendtext(), and zt_setoption().

int msgstate
 

Definition at line 667 of file chan_zap.c.

Referenced by zt_handle_event().

char musicclass[MAX_MUSICCLASS]
 

Definition at line 609 of file chan_zap.c.

Referenced by zt_new().

struct zt_pvt* next
 

Next channel in list

Definition at line 541 of file chan_zap.c.

Referenced by action_zapshowchannels(), chandup(), destroy_zt_pvt(), find_channel(), mkintf(), zap_destroy_channel(), zt_hangup(), and zt_request().

int onhooktime
 

Definition at line 666 of file chan_zap.c.

Referenced by zt_handle_event(), and zt_hangup().

char* origcid_name
 

malloced original callerid

Definition at line 619 of file chan_zap.c.

Referenced by zt_handle_event(), and zt_hangup().

char* origcid_num
 

malloced original callerid

Definition at line 618 of file chan_zap.c.

Referenced by zt_handle_event(), and zt_hangup().

unsigned int outgoing
 

Definition at line 572 of file chan_zap.c.

Referenced by available(), zt_call(), zt_handle_event(), zt_hangup(), zt_indicate(), zt_new(), zt_read(), and zt_write().

unsigned int overlapdial
 

Definition at line 573 of file chan_zap.c.

Referenced by zt_handle_event(), and zt_read().

struct ast_channel* owner
 

Our current active owner (if applicable) Up to three channels can be associated with this call

Definition at line 525 of file chan_zap.c.

Referenced by __zt_exception(), action_zapdialoffhook(), available(), destroy_channel(), ss_thread(), zap_fake_event(), zap_queue_frame(), zt_answer(), zt_bridge(), zt_call(), zt_digit(), zt_fixup(), zt_handle_event(), zt_hangup(), zt_new(), zt_read(), and zt_write().

unsigned int permcallwaiting
 

Definition at line 574 of file chan_zap.c.

Referenced by zt_hangup().

unsigned int permhidecallerid
 

Whether to hide our outgoing caller ID or not

Definition at line 575 of file chan_zap.c.

Referenced by zt_hangup().

ast_group_t pickupgroup
 

Definition at line 630 of file chan_zap.c.

Referenced by zt_new().

int polarity
 

Definition at line 687 of file chan_zap.c.

Referenced by handle_init_event(), unalloc_sub(), zt_handle_event(), and zt_hangup().

struct timeval polaritydelaytv
 

Definition at line 673 of file chan_zap.c.

Referenced by zt_answer(), and zt_handle_event().

int polarityonanswerdelay
 

Definition at line 672 of file chan_zap.c.

Referenced by zt_handle_event().

struct zt_pvt* prev
 

Prev channel in list

Definition at line 542 of file chan_zap.c.

Referenced by destroy_zt_pvt(), zap_destroy_channel(), zt_hangup(), and zt_request().

unsigned int priexclusive
 

Definition at line 577 of file chan_zap.c.

Referenced by zt_call().

unsigned int priindication_oob
 

Definition at line 576 of file chan_zap.c.

Referenced by zt_indicate().

int propconfno
 

Propagated conference number

Definition at line 628 of file chan_zap.c.

unsigned int pulse
 

Definition at line 578 of file chan_zap.c.

Referenced by zt_call().

unsigned int pulsedial
 

whether a pulse dial phone is detected

Definition at line 579 of file chan_zap.c.

Referenced by zt_bridge(), zt_handle_event(), zt_hangup(), and zt_read().

int radio
 

radio type

Definition at line 537 of file chan_zap.c.

Referenced by __zt_exception(), available(), handle_init_event(), zt_answer(), zt_call(), zt_handle_event(), zt_hangup(), zt_indicate(), and zt_read().

char rdnis[AST_MAX_EXTENSION]
 

Definition at line 622 of file chan_zap.c.

Referenced by zt_hangup(), and zt_new().

unsigned int restrictcid
 

Whether restrict the callerid -> only send ANI

Definition at line 580 of file chan_zap.c.

int ringt
 

Definition at line 642 of file chan_zap.c.

Referenced by handle_init_event(), ss_thread(), zt_answer(), zt_handle_event(), zt_hangup(), and zt_read().

int ringt_base
 

Definition at line 643 of file chan_zap.c.

Referenced by handle_init_event(), ss_thread(), and zt_handle_event().

float rxgain
 

Definition at line 538 of file chan_zap.c.

Referenced by bump_gains(), restore_gains(), zt_call(), and zt_setoption().

struct zt_confinfo saveconf
 

Saved conference info

Definition at line 530 of file chan_zap.c.

Referenced by restore_conference(), and save_conference().

int sendcalleridafter
 

Definition at line 674 of file chan_zap.c.

Referenced by zt_call().

int sig
 

Signalling style

Definition at line 536 of file chan_zap.c.

Referenced by action_zapshowchannels(), available(), handle_init_event(), ss_thread(), zt_answer(), zt_bridge(), zt_call(), zt_confmute(), zt_digit(), zt_enable_ec(), zt_handle_event(), zt_hangup(), zt_indicate(), zt_new(), zt_read(), and zt_write().

struct zt_pvt* slaves[MAX_SLAVES]
 

Slave to us (follows our conferencing)

Definition at line 532 of file chan_zap.c.

int span
 

Span number

Definition at line 632 of file chan_zap.c.

Referenced by get_alarms(), zt_answer(), zt_digit(), zt_hangup(), zt_indicate(), and zt_write().

int stripmsd
 

Definition at line 644 of file chan_zap.c.

Referenced by zt_call().

struct zt_subchannel sub_unused
 

Just a safety precaution

Definition at line 528 of file chan_zap.c.

struct zt_subchannel subs[3]
 

Sub-channels

Definition at line 529 of file chan_zap.c.

Referenced by __zt_exception(), alloc_sub(), attempt_transfer(), available(), bump_gains(), check_for_conference(), destroy_channel(), disable_dtmf_detect(), enable_dtmf_detect(), get_alarms(), handle_init_event(), isslavenative(), mkintf(), my_zt_write(), reset_conf(), restore_conference(), restore_gains(), save_conference(), send_callerid(), ss_thread(), swap_subs(), unalloc_sub(), update_conf(), wakeup_sub(), zt_answer(), zt_bridge(), zt_call(), zt_confmute(), zt_digit(), zt_disable_ec(), zt_enable_ec(), zt_fixup(), zt_get_index(), zt_handle_event(), zt_hangup(), zt_indicate(), zt_new(), zt_read(), zt_ring_phone(), zt_setoption(), zt_train_ec(), zt_wink(), and zt_write().

struct tdd_state* tdd
 

TDD flag

Definition at line 662 of file chan_zap.c.

Referenced by zt_read(), zt_sendtext(), and zt_setoption().

unsigned int threewaycalling
 

Definition at line 581 of file chan_zap.c.

Referenced by zt_handle_event().

int tonezone
 

tone zone for this chan, or -1 for default

Definition at line 540 of file chan_zap.c.

unsigned int transfer
 

Definition at line 582 of file chan_zap.c.

Referenced by ss_thread(), zt_bridge(), and zt_handle_event().

unsigned int transfertobusy
 

allow flash-transfers to busy channels

Definition at line 587 of file chan_zap.c.

Referenced by zt_handle_event().

float txgain
 

Definition at line 539 of file chan_zap.c.

Referenced by bump_gains(), restore_gains(), zt_call(), and zt_setoption().

unsigned int use_callerid
 

Whether or not to use caller id on this channel

Definition at line 583 of file chan_zap.c.

Referenced by ss_thread(), and zt_call().

unsigned int use_callingpres
 

Whether to use the callingpres the calling switch sends

Definition at line 584 of file chan_zap.c.

Referenced by zt_call().

unsigned int usedistinctiveringdetection
 

Definition at line 585 of file chan_zap.c.

Referenced by ss_thread().

int whichwink
 

SIG_FEATDMF_TA Which wink are we on?

Definition at line 658 of file chan_zap.c.

Referenced by zt_call(), and zt_handle_event().

unsigned int zaptrcallerid
 

should we use the callerid from incoming call on zap transfer or not

Definition at line 586 of file chan_zap.c.

Referenced by zt_handle_event().


The documentation for this struct was generated from the following file:
Generated on Sat Nov 25 00:46:16 2006 for Asterisk - the Open Source PBX by  doxygen 1.4.6