Sat Aug 6 00:40:08 2011

Asterisk developer's documentation


chan_iax2_pvt Struct Reference


Data Fields

ast_string_field __begin_field [0]
ast_string_field __end_field [0]
ast_string_field_mgr __field_mgr
const ast_string_field accountcode
sockaddr_in addr
int adsi
int amaflags
const ast_string_field ani
unsigned char aseqno
int authfail
int authid
int authmethods
int authrej
int autoid
unsigned short bridgecallno
int calling_pres
int calling_tns
int calling_ton
unsigned short callno
callno_entrycallno_entry
unsigned char calltoken_ie_len
int capability
const ast_string_field challenge
int chosenformat
const ast_string_field cid_name
const ast_string_field cid_num
const ast_string_field context
aes_decrypt_ctx dcx
const ast_string_field dnid
iax2_dpcachedpentries
const ast_string_field dproot
aes_encrypt_ctx ecx
int encmethods
int error
int expiry
const ast_string_field exten
int first_iax_message
unsigned int flags
int frames_dropped
int frames_received
char hold_signaling
const ast_string_field host
int initid
const ast_string_field inkeys
unsigned char iseqno
jitterbufjb
int jbid
int lag
int lagid
const ast_string_field language
unsigned int last
int last_iax_message
unsigned int lastsent
unsigned int lastvsent
int maxtime
int min
const ast_string_field mohinterpret
const ast_string_field mohsuggest
aes_decrypt_ctx mydcx
unsigned int nextpred
int notsilenttx
timeval offset
unsigned char oseqno
const ast_string_field outkey
ast_channelowner
const ast_string_field peer
int peeradsicpe
unsigned short peercallno
int peercapability
int peerformat
iax2_peerpeerpoke
int pingid
unsigned int pingtime
ast_codec_pref prefs
const ast_string_field rdnis
iax2_registryreg
iax_rr remote_rr
ast_codec_pref rprefs
unsigned char rseqno
timeval rxcore
const ast_string_field secret
unsigned char semirand [32]
chan_iax2_pvt::signaling_queue signaling_queue
int sockfd
ast_flags state
int svideoformat
int svoiceformat
aes_encrypt_ctx tdcx
sockaddr_in transfer
unsigned short transfercallno
int transferid
enum iax_transfer_state transferring
const ast_string_field username
ast_variablevars
int videoformat
int voiceformat

Data Structures

struct  signaling_queue

Detailed Description

Definition at line 490 of file chan_iax2.c.


Field Documentation

ast_string_field __begin_field[0]

Hostname/peername for naming purposes

Definition at line 603 of file chan_iax2.c.

ast_string_field __end_field[0]

Definition at line 603 of file chan_iax2.c.

struct ast_string_field_mgr __field_mgr

Definition at line 603 of file chan_iax2.c.

const ast_string_field accountcode

Definition at line 603 of file chan_iax2.c.

Referenced by ast_iax2_new().

struct sockaddr_in addr

Peer Address

Definition at line 522 of file chan_iax2.c.

Referenced by __find_callno(), complete_transfer(), iax2_trunk_queue(), match(), pvt_destructor(), and send_packet().

int adsi

Definition at line 624 of file chan_iax2.c.

Referenced by ast_iax2_new(), check_access(), and iax2_call().

int amaflags

Definition at line 652 of file chan_iax2.c.

Referenced by __find_callno(), ast_iax2_new(), and check_access().

const ast_string_field ani

Definition at line 603 of file chan_iax2.c.

Referenced by ast_iax2_new().

unsigned char aseqno

Last incoming sequence number we have acknowledged

Definition at line 566 of file chan_iax2.c.

Referenced by complete_transfer(), iax2_send(), and resend_with_token().

int authfail

Reason to report failure

Definition at line 647 of file chan_iax2.c.

Referenced by auth_fail().

int authid

Authentication rejection ID

Definition at line 646 of file chan_iax2.c.

Referenced by auth_fail(), auth_reject(), and iax2_destroy_helper().

int authmethods

permitted authentication methods

Definition at line 607 of file chan_iax2.c.

Referenced by authenticate_request(), authenticate_verify(), check_access(), and registry_authrequest().

int authrej

AUTHREJ all AUTHREP frames

Definition at line 605 of file chan_iax2.c.

Referenced by authenticate_verify(), and check_access().

int autoid

Auto hangup for Dialplan requestor

Definition at line 645 of file chan_iax2.c.

Referenced by auto_hangup(), iax2_destroy_helper(), iax2_dprequest(), and iax2_provision().

unsigned short bridgecallno

Who we are bridged to

Definition at line 641 of file chan_iax2.c.

Referenced by iax2_bridge().

int calling_pres

Definition at line 651 of file chan_iax2.c.

Referenced by ast_iax2_new(), and check_access().

int calling_tns

Definition at line 650 of file chan_iax2.c.

Referenced by ast_iax2_new(), and check_access().

int calling_ton

Definition at line 649 of file chan_iax2.c.

Referenced by ast_iax2_new(), and check_access().

unsigned short callno

Our call number

Definition at line 528 of file chan_iax2.c.

Referenced by __find_callno(), ast_iax2_new(), authenticate_reply(), calc_rxstamp(), calc_timestamp(), iax2_send(), iax2_transfer(), iax2_trunk_queue(), make_trunk(), match(), pvt_destructor(), send_command_final(), socket_process(), update_jbsched(), and wait_for_peercallno().

struct callno_entry* callno_entry

Our callno_entry entry

Definition at line 530 of file chan_iax2.c.

Referenced by __find_callno(), make_trunk(), and pvt_destructor().

unsigned char calltoken_ie_len

num bytes used for calltoken ie, even an empty ie should contain 2

Definition at line 664 of file chan_iax2.c.

Referenced by add_empty_calltoken_ie(), and resend_with_token().

int capability

What we are capable of sending

Definition at line 502 of file chan_iax2.c.

Referenced by ast_iax2_new(), cache_get_callno_locked(), and check_access().

const ast_string_field challenge

Definition at line 603 of file chan_iax2.c.

Referenced by authenticate_request(), and authenticate_verify().

int chosenformat

Negotiated format, this is only used to remember what format was chosen for an unauthenticated call so that the channel can get created later using the right format

Definition at line 536 of file chan_iax2.c.

const ast_string_field cid_name

Definition at line 603 of file chan_iax2.c.

Referenced by ast_iax2_new().

const ast_string_field cid_num

Definition at line 603 of file chan_iax2.c.

Referenced by ast_iax2_new().

const ast_string_field context

Definition at line 603 of file chan_iax2.c.

Referenced by ast_iax2_new(), and check_access().

aes_decrypt_ctx dcx

Decryption AES-128 Key used to decrypt peer frames

Definition at line 615 of file chan_iax2.c.

Referenced by build_encryption_keys().

const ast_string_field dnid

Definition at line 603 of file chan_iax2.c.

Referenced by ast_iax2_new().

struct iax2_dpcache* dpentries

Definition at line 653 of file chan_iax2.c.

Referenced by complete_dpreply(), and find_cache().

const ast_string_field dproot

Definition at line 603 of file chan_iax2.c.

aes_encrypt_ctx ecx

Encryption AES-128 Key

Definition at line 611 of file chan_iax2.c.

Referenced by build_ecx_key().

int encmethods

permitted encryption methods

Definition at line 609 of file chan_iax2.c.

Referenced by authenticate_request(), check_access(), iax2_call(), and merge_encryption().

int error

Error, as discovered by the manager

Definition at line 552 of file chan_iax2.c.

Referenced by __attempt_transmit().

int expiry

Expiry (optional)

Definition at line 558 of file chan_iax2.c.

Referenced by __find_callno().

const ast_string_field exten

Definition at line 603 of file chan_iax2.c.

Referenced by ast_iax2_new().

int first_iax_message

iax frame subclass that began iax2_pvt entry. 0x8000 bit is set on TX

Definition at line 512 of file chan_iax2.c.

Referenced by ast_cli_netstats(), iax2_send(), and socket_process().

unsigned int flags

IAX_ flags

Definition at line 623 of file chan_iax2.c.

int frames_dropped

Dropped frame count: (just for stats)

Definition at line 660 of file chan_iax2.c.

int frames_received

received frame count: (just for stats)

Definition at line 662 of file chan_iax2.c.

Referenced by ast_cli_netstats(), pvt_cmp_cb(), socket_process(), and transfercallno_pvt_cmp_cb().

char hold_signaling

hold all signaling frames from the pbx thread until we have a destination callno

Definition at line 666 of file chan_iax2.c.

Referenced by queue_signalling(), and send_signaling().

const ast_string_field host

Definition at line 603 of file chan_iax2.c.

Referenced by ast_iax2_new().

int initid

Initial peer auto-congest ID (based on qualified peers)

Definition at line 648 of file chan_iax2.c.

Referenced by __auto_congest(), iax2_call(), and iax2_destroy_helper().

const ast_string_field inkeys

Definition at line 603 of file chan_iax2.c.

Referenced by authenticate_verify().

unsigned char iseqno

Next incoming sequence number

Definition at line 564 of file chan_iax2.c.

Referenced by complete_transfer(), iax2_send(), resend_with_token(), socket_process(), and update_packet().

jitterbuf* jb

The jitterbuffer

Definition at line 546 of file chan_iax2.c.

Referenced by __get_from_jb(), complete_transfer(), construct_rr(), pvt_destructor(), and update_jbsched().

int jbid

active jb read scheduler id

Definition at line 548 of file chan_iax2.c.

Referenced by __get_from_jb(), iax2_destroy_helper(), and update_jbsched().

int lag

LAG

Definition at line 550 of file chan_iax2.c.

Referenced by complete_transfer().

int lagid

Retransmit lag request

Definition at line 644 of file chan_iax2.c.

Referenced by __find_callno(), __send_lagrq(), iax2_destroy_helper(), and make_trunk().

const ast_string_field language

Definition at line 603 of file chan_iax2.c.

Referenced by ast_iax2_new().

unsigned int last

Last received timestamp

Definition at line 504 of file chan_iax2.c.

Referenced by complete_transfer(), socket_process(), and unwrap_timestamp().

int last_iax_message

Last iax frame subclass sent or received for a iax2_pvt. 0x8000 bit is set on TX

Definition at line 514 of file chan_iax2.c.

Referenced by ast_cli_netstats(), iax2_send(), and socket_process().

unsigned int lastsent

Last sent timestamp - never send the same timestamp twice in a single call

Definition at line 506 of file chan_iax2.c.

Referenced by calc_timestamp(), complete_transfer(), and iax2_send().

unsigned int lastvsent

Timestamp of the last video frame sent

Definition at line 508 of file chan_iax2.c.

Referenced by iax2_send().

int maxtime

Max time for initial response

Definition at line 520 of file chan_iax2.c.

Referenced by iax2_call(), and iax2_request().

int min

Current base time: (just for stats)

Definition at line 658 of file chan_iax2.c.

const ast_string_field mohinterpret

Definition at line 603 of file chan_iax2.c.

Referenced by iax2_call(), and iax2_indicate().

const ast_string_field mohsuggest

Definition at line 603 of file chan_iax2.c.

Referenced by iax2_call().

aes_decrypt_ctx mydcx

Decryption AES-128 Key corresponding to ecx

Definition at line 613 of file chan_iax2.c.

Referenced by build_ecx_key().

unsigned int nextpred

Next outgoing timestamp if everything is good

Definition at line 510 of file chan_iax2.c.

Referenced by calc_timestamp(), and complete_transfer().

int notsilenttx

True if the last voice we transmitted was not silence/CNG

Definition at line 516 of file chan_iax2.c.

Referenced by calc_timestamp().

struct timeval offset

timeval that we base our transmission on

Definition at line 542 of file chan_iax2.c.

Referenced by calc_timestamp(), and complete_transfer().

unsigned char oseqno

Next outgoing sequence number

Definition at line 560 of file chan_iax2.c.

Referenced by complete_transfer(), iax2_send(), and resend_with_token().

const ast_string_field outkey

Definition at line 603 of file chan_iax2.c.

struct ast_channel* owner

Owner if we have one

Definition at line 554 of file chan_iax2.c.

Referenced by __attempt_transmit(), ast_iax2_new(), iax2_destroy(), iax2_fixup(), iax2_predestroy(), iax2_queue_control_data(), iax2_queue_frame(), iax2_queue_hangup(), pvt_destructor(), and socket_process().

const ast_string_field peer

Definition at line 603 of file chan_iax2.c.

Referenced by iax2_request().

int peeradsicpe

Status of knowledge of peer ADSI capability

Definition at line 638 of file chan_iax2.c.

Referenced by ast_iax2_new(), and check_access().

unsigned short peercallno

Peer callno

Definition at line 532 of file chan_iax2.c.

Referenced by __find_callno(), complete_transfer(), iax2_destroy(), iax2_send(), match(), pvt_hash_cb(), remove_by_peercallno(), resend_with_token(), send_packet(), store_by_peercallno(), and wait_for_peercallno().

int peercapability

Peer capability

Definition at line 540 of file chan_iax2.c.

Referenced by check_access().

int peerformat

Peer selected format

Definition at line 538 of file chan_iax2.c.

Referenced by check_access().

struct iax2_peer* peerpoke

Associated peer for poking

Definition at line 621 of file chan_iax2.c.

Referenced by iax2_poke_peer().

int pingid

Transmit PING request

Definition at line 643 of file chan_iax2.c.

Referenced by __find_callno(), __send_ping(), iax2_destroy_helper(), and make_trunk().

unsigned int pingtime

Ping time

Definition at line 518 of file chan_iax2.c.

Referenced by __find_callno(), ast_cli_netstats(), complete_transfer(), iax2_call(), iax2_poke_peer(), and iax2_send().

struct ast_codec_pref prefs

Actual used codec preferences

Definition at line 524 of file chan_iax2.c.

Referenced by check_access().

const ast_string_field rdnis

Definition at line 603 of file chan_iax2.c.

Referenced by ast_iax2_new().

struct iax2_registry* reg

Associated registry

Definition at line 619 of file chan_iax2.c.

Referenced by __attempt_transmit(), delete_users(), iax2_ack_registry(), iax2_do_register(), pvt_destructor(), and registry_rerequest().

struct iax_rr remote_rr

last received remote rr

Definition at line 656 of file chan_iax2.c.

Referenced by ast_cli_netstats(), iax2_show_channels(), and save_rr().

struct ast_codec_pref rprefs

Requested codec preferences

Definition at line 526 of file chan_iax2.c.

unsigned char rseqno

Next sequence number they have not yet acknowledged

Definition at line 562 of file chan_iax2.c.

Referenced by complete_transfer(), resend_with_token(), and socket_process().

struct timeval rxcore

timeval that we base our delivery on

Definition at line 544 of file chan_iax2.c.

Referenced by __get_from_jb(), calc_rxstamp(), complete_transfer(), fix_peerts(), and update_jbsched().

const ast_string_field secret

Definition at line 603 of file chan_iax2.c.

Referenced by authenticate_verify().

unsigned char semirand[32]

32 bytes of semi-random data

Definition at line 617 of file chan_iax2.c.

Referenced by build_ecx_key().

struct chan_iax2_pvt::signaling_queue signaling_queue

frame queue for signaling frames from pbx thread waiting for destination callno

Referenced by pvt_destructor(), queue_signalling(), and send_signaling().

int sockfd

Socket to send/receive on for this call

Definition at line 492 of file chan_iax2.c.

Referenced by __find_callno(), iax2_call(), and iax2_trunk_queue().

struct ast_flags state

What's our state?

Definition at line 556 of file chan_iax2.c.

Referenced by authenticate_verify().

int svideoformat

Last sent video format

Definition at line 500 of file chan_iax2.c.

Referenced by complete_transfer(), and iax2_send().

int svoiceformat

Last sent voice format

Definition at line 498 of file chan_iax2.c.

Referenced by complete_transfer(), and iax2_send().

aes_encrypt_ctx tdcx

Transfer decrypt AES-128 Key

Definition at line 635 of file chan_iax2.c.

struct sockaddr_in transfer

Who we are IAX transfering to

Definition at line 631 of file chan_iax2.c.

Referenced by __find_callno(), complete_transfer(), match(), send_packet(), and try_transfer().

unsigned short transfercallno

What's the new call number for the transfer

Definition at line 633 of file chan_iax2.c.

Referenced by complete_transfer(), iax2_destroy(), iax2_send(), match(), remove_by_transfercallno(), store_by_transfercallno(), transfercallno_pvt_hash_cb(), and try_transfer().

int transferid

Transfer identifier

Definition at line 629 of file chan_iax2.c.

Referenced by try_transfer().

enum iax_transfer_state transferring

Transferring status

Definition at line 627 of file chan_iax2.c.

Referenced by complete_transfer(), iax2_send(), iax2_start_transfer(), match(), socket_process(), and try_transfer().

const ast_string_field username

Definition at line 603 of file chan_iax2.c.

Referenced by authenticate_request(), authenticate_verify(), iax2_call(), and iax2_destroy_helper().

struct ast_variable* vars

Definition at line 654 of file chan_iax2.c.

Referenced by ast_iax2_new(), check_access(), and pvt_destructor().

int videoformat

Last received video format

Definition at line 496 of file chan_iax2.c.

Referenced by complete_transfer(), and socket_process().

int voiceformat

Last received voice format

Definition at line 494 of file chan_iax2.c.

Referenced by __get_from_jb(), complete_transfer(), and socket_process().


The documentation for this struct was generated from the following file:
Generated on Sat Aug 6 00:40:08 2011 for Asterisk - the Open Source PBX by  doxygen 1.4.7