Asterisk - The Open Source Telephony Project
18.5.0
|
Implementation of the Skinny protocol. More...
#include "asterisk.h"
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <fcntl.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <signal.h>
#include <ctype.h>
#include "asterisk/lock.h"
#include "asterisk/channel.h"
#include "asterisk/config.h"
#include "asterisk/module.h"
#include "asterisk/pbx.h"
#include "asterisk/sched.h"
#include "asterisk/io.h"
#include "asterisk/rtp_engine.h"
#include "asterisk/netsock2.h"
#include "asterisk/acl.h"
#include "asterisk/callerid.h"
#include "asterisk/cli.h"
#include "asterisk/manager.h"
#include "asterisk/say.h"
#include "asterisk/astdb.h"
#include "asterisk/causes.h"
#include "asterisk/pickup.h"
#include "asterisk/app.h"
#include "asterisk/mwi.h"
#include "asterisk/musiconhold.h"
#include "asterisk/utils.h"
#include "asterisk/dsp.h"
#include "asterisk/stringfields.h"
#include "asterisk/abstract_jb.h"
#include "asterisk/threadstorage.h"
#include "asterisk/devicestate.h"
#include "asterisk/indications.h"
#include "asterisk/linkedlists.h"
#include "asterisk/stasis_endpoints.h"
#include "asterisk/bridge.h"
#include "asterisk/parking.h"
#include "asterisk/stasis_channels.h"
#include "asterisk/format_cache.h"
#include <byteswap.h>
Go to the source code of this file.
Macros | |
#define | ACTIVATE_CALL_PLANE_MESSAGE 0x0116 |
#define | ALARM_MESSAGE 0x0020 |
#define | BKSP_REQ_MESSAGE 0x0119 |
#define | BT_AUTOANSWER STIMULUS_AUTOANSWER |
#define | BT_CALLPARK STIMULUS_CALLPARK |
#define | BT_CALLPICKUP STIMULUS_CALLPICKUP |
#define | BT_CONFERENCE STIMULUS_CONFERENCE |
#define | BT_CUST_LINE 0xB1 /* line or speeddial with hint only */ |
#define | BT_CUST_LINESPEEDDIAL 0xB0 /* line or speeddial with/without hint */ |
#define | BT_DISPLAY STIMULUS_DISPLAY |
#define | BT_DND STIMULUS_DND |
#define | BT_FORWARDALL STIMULUS_FORWARDALL |
#define | BT_FORWARDBUSY STIMULUS_FORWARDBUSY |
#define | BT_FORWARDNOANSWER STIMULUS_FORWARDNOANSWER |
#define | BT_HOLD STIMULUS_HOLD |
#define | BT_LINE STIMULUS_LINE |
#define | BT_NONE 0x00 |
#define | BT_REDIAL STIMULUS_REDIAL |
#define | BT_SERVICEURL STIMULUS_SERVICEURL |
#define | BT_SPEEDDIAL STIMULUS_SPEEDDIAL |
#define | BT_TRANSFER STIMULUS_TRANSFER |
#define | BT_VOICEMAIL STIMULUS_VOICEMAIL |
#define | BUTTON_TEMPLATE_REQ_MESSAGE 0x000E |
#define | BUTTON_TEMPLATE_RES_MESSAGE 0x0097 |
#define | CALL_INFO_MESSAGE 0x008F |
#define | CALL_INFO_MESSAGE_VARIABLE 0x014A |
#define | CALL_STATE_MESSAGE 0x0111 |
#define | CALLSTATE2STR_BUFSIZE 15 |
#define | CAPABILITIES_REQ_MESSAGE 0x009B |
#define | CAPABILITIES_RES_MESSAGE 0x0010 |
#define | CDEV ((struct skinny_device *)item) |
#define | CDEV_OPTS ((struct skinny_device_options *)item) |
#define | CLEAR_DISPLAY_MESSAGE 0x009A |
#define | CLEAR_NOTIFY_MESSAGE 0x0115 |
#define | CLEAR_PRINOTIFY_MESSAGE 0x0121 |
#define | CLEAR_PROMPT_MESSAGE 0x0113 |
#define | CLINE ((struct skinny_line *)item) |
#define | CLINE_OPTS ((struct skinny_line_options *)item) |
#define | CLOSE_RECEIVE_CHANNEL_MESSAGE 0x0106 |
#define | CONTROL2STR_BUFSIZE 100 |
#define | DEBUG_AUDIO (1 << 4) |
#define | DEBUG_GENERAL (1 << 1) |
#define | DEBUG_HINT (1 << 8) |
#define | DEBUG_KEEPALIVE (1 << 9) |
#define | DEBUG_LOCK (1 << 5) |
#define | DEBUG_PACKET (1 << 3) |
#define | DEBUG_SUB (1 << 2) |
#define | DEBUG_TEMPLATE (1 << 6) |
#define | DEBUG_THREAD (1 << 7) |
#define | DEFAULT_AUTH_LIMIT 50 |
#define | DEFAULT_AUTH_TIMEOUT 30 |
#define | DEFAULT_SKINNY_BACKLOG 2 |
#define | DEFAULT_SKINNY_PORT 2000 |
#define | DEFINETIMEDATE_MESSAGE 0x0094 |
#define | DEVICE2STR_BUFSIZE 15 |
#define | DIALED_NUMBER_MESSAGE 0x011D |
#define | DIALTYPE_CFWD 1<<1 |
#define | DIALTYPE_NORMAL 1<<0 |
#define | DIALTYPE_XFER 1<<2 |
#define | DISPLAY_NOTIFY_MESSAGE 0x0114 |
#define | DISPLAY_PRINOTIFY_MESSAGE 0x0120 |
#define | DISPLAY_PRINOTIFY_MESSAGE_VARIABLE 0x0144 |
#define | DISPLAY_PROMPT_STATUS_MESSAGE 0x0112 |
#define | DISPLAY_PROMPT_STATUS_MESSAGE_VARIABLE 0x0145 |
#define | DISPLAYTEXT_MESSAGE 0x0099 |
#define | ENBLOC_CALL_MESSAGE 0x0004 |
#define | FORWARD_STAT_MESSAGE 0x0090 |
#define | HEADSET_STATUS_MESSAGE 0x002B |
#define | htolel(x) bswap_32(x) |
#define | htoles(x) bswap_16(x) |
#define | IP_PORT_MESSAGE 0x0002 |
#define | KEEP_ALIVE_ACK_MESSAGE 0x0100 |
#define | KEEP_ALIVE_MESSAGE 0x0000 |
#define | KEYDEF_CONNECTED 1 |
#define | KEYDEF_CONNWITHCONF 7 |
#define | KEYDEF_CONNWITHTRANS 5 |
#define | KEYDEF_DADFD 6 /* Digits After Dialing First Digit */ |
#define | KEYDEF_OFFHOOK 4 |
#define | KEYDEF_OFFHOOKWITHFEAT 9 |
#define | KEYDEF_ONHOLD 2 |
#define | KEYDEF_ONHOOK 0 |
#define | KEYDEF_RINGIN 3 |
#define | KEYDEF_RINGOUT 8 |
#define | KEYDEF_RINGOUTWITHTRANS 13 |
#define | KEYDEF_SLACONNECTEDNOTACTIVE 12 |
#define | KEYDEF_SLAHOLD 11 |
#define | KEYDEF_UNKNOWN 10 |
#define | KEYMASK_ALL 0xFFFFFFFF |
#define | KEYMASK_ANSWER (1 << 11) |
#define | KEYMASK_BKSPC (1 << 8) |
#define | KEYMASK_CFWDALL (1 << 5) |
#define | KEYMASK_CFWDBUSY (1 << 6) |
#define | KEYMASK_CFWDNOANSWER (1 << 7) |
#define | KEYMASK_CONFRN (1 << 13) |
#define | KEYMASK_DND (1 << 29) |
#define | KEYMASK_ENDCALL (1 << 9) |
#define | KEYMASK_FORCEDIAL (1 << 21) |
#define | KEYMASK_GPICKUP (1 << 18) |
#define | KEYMASK_HOLD (1 << 3) |
#define | KEYMASK_IDIVERT (1 << 20) |
#define | KEYMASK_INFO (1 << 12) |
#define | KEYMASK_JOIN (1 << 15) |
#define | KEYMASK_MEETME (1 << 16) |
#define | KEYMASK_NEWCALL (1 << 2) |
#define | KEYMASK_NONE (1 << 0) |
#define | KEYMASK_PARK (1 << 14) |
#define | KEYMASK_PICKUP (1 << 17) |
#define | KEYMASK_REDIAL (1 << 1) |
#define | KEYMASK_RESUME (1 << 10) |
#define | KEYMASK_TRNSFER (1 << 4) |
#define | KEYPAD_BUTTON_MESSAGE 0x0003 |
#define | letohl(x) bswap_32(x) |
#define | letohs(x) bswap_16(x) |
#define | LINE_STAT_RES_MESSAGE 0x0092 |
#define | LINE_STATE_REQ_MESSAGE 0x000B |
#define | MAX_SERVICEURL 256 |
#define | MAXCALLINFOSTR 256 |
#define | MAXDISPLAYNOTIFYSTR 32 |
#define | MESSAGE2STR_BUFSIZE 35 |
#define | OCTAL_ANSWER "\200\013" /* Answer */ |
#define | OCTAL_BARGE "\200\103" /* Barge */ |
#define | OCTAL_BARGEEXIST "\200\105" /* Another Barge exists */ |
#define | OCTAL_BARGEFAIL "\200\104" /* Failed to setup Barge */ |
#define | OCTAL_BKSPC "\200\010" /* << */ |
#define | OCTAL_BUSY "\200\031" /* Busy */ |
#define | OCTAL_CALLBACK "\200\101" /* CallBack */ |
#define | OCTAL_CALLDURTIMEOUT "\200\131" /* Max Call Duration Timeout */ |
#define | OCTAL_CALLPARK "\200\035" /* Call Park */ |
#define | OCTAL_CALLPROCEED "\200\036" /* Call Proceed */ |
#define | OCTAL_CALLWAITING "\200\033" /* Call Waiting */ |
#define | OCTAL_CALLXFER "\200\034" /* Call Transfer */ |
#define | OCTAL_CANTCOMPCNF "\200\046" /* Can Not Complete Conference */ |
#define | OCTAL_CANTCOMPLXFER "\200\122" /* Can Not Complete Transfer */ |
#define | OCTAL_CANTJOINCALLS "\200\123" /* Can Not Join Calls */ |
#define | OCTAL_CBARGE "\200\121" /* cBarge */ |
#define | OCTAL_CFWDALL "\200\005" /* CFwdALL */ |
#define | OCTAL_CFWDBUSY "\200\006" /* CFwdBusy */ |
#define | OCTAL_CFWDNOAN "\200\007" /* CFwdNoAnswer */ |
#define | OCTAL_CM1 "\200\167" /* CallManager 1 */ |
#define | OCTAL_CM2 "\200\170" /* CallManager 2 */ |
#define | OCTAL_CM3 "\200\171" /* CallManager 3 */ |
#define | OCTAL_CM4 "\200\172" /* CallManager 4 */ |
#define | OCTAL_CM5 "\200\173" /* CallManager 5 */ |
#define | OCTAL_CONFERENCE "\200\064" /* Conference */ |
#define | OCTAL_CONFLIST "\200\117" /* ConfList */ |
#define | OCTAL_CONFRN "\200\015" /* Confrn */ |
#define | OCTAL_CONNECTED "\200\030" /* Connected */ |
#define | OCTAL_CUROPTS "\200\023" /* Your current options */ |
#define | OCTAL_DIRTRFR "\200\115" /* DirTrfr */ |
#define | OCTAL_DIVALL "\200\100" /* DivAll */ |
#define | OCTAL_DND "\200\077" /* DND */ |
#define | OCTAL_DNS1 "\200\160" /* DNS Server 1 */ |
#define | OCTAL_DNS2 "\200\161" /* DNS Server 2 */ |
#define | OCTAL_DNS3 "\200\162" /* DNS Server 3 */ |
#define | OCTAL_DNS4 "\200\163" /* DNS Server 4 */ |
#define | OCTAL_DNS5 "\200\164" /* DNS Server 5 */ |
#define | OCTAL_DOMAIN "\200\147" /* Domain Name */ |
#define | OCTAL_ENDCALL "\200\011" /* EndCall */ |
#define | OCTAL_ENTRNUM "\200\040" /* Enter number */ |
#define | OCTAL_ERRDB "\200\060" /* Error Database */ |
#define | OCTAL_ERRDBCFG "\200\057" /* Error DBConfig */ |
#define | OCTAL_ERRMISMATCH "\200\063" /* Error Mismatch */ |
#define | OCTAL_ERRNOLIC "\200\056" /* Error No License */ |
#define | OCTAL_ERRPASSLMT "\200\061" /* Error Pass Limit */ |
#define | OCTAL_ERRUNK "\200\062" /* Error Unknown */ |
#define | OCTAL_EXTXFERRESTRICT "\200\141" /* External Transfer Restricted */ |
#define | OCTAL_FROM "\200\027" /* From */ |
#define | OCTAL_FWDEDTO "\200\045" /* Forwarded to */ |
#define | OCTAL_GPICKUP "\200\022" /* GPickUp */ |
#define | OCTAL_HAVEVMAIL "\200\044" /* You Have VoiceMail */ |
#define | OCTAL_HITRAFFIC "\200\112" /* High Traffic Try Again Later */ |
#define | OCTAL_HOLD "\200\003" /* Hold */ |
#define | OCTAL_HOLDDURTIMEOUT "\200\132" /* Max Hold Duration Timeout */ |
#define | OCTAL_HOST "\200\146" /* Host Name */ |
#define | OCTAL_IDIVERT "\200\120" /* iDivert */ |
#define | OCTAL_IMMDIV "\200\073" /* ImmDiv */ |
#define | OCTAL_INCOMPATDEV "\200\106" /* Incompatible device type */ |
#define | OCTAL_INCONFALREADY "\200\052" /* In Conference Already */ |
#define | OCTAL_INFO "\200\014" /* Info */ |
#define | OCTAL_INSUFBANDW "\200\067" /* Not Enough Bandwidth */ |
#define | OCTAL_INTRCPT "\200\074" /* Intrcpt */ |
#define | OCTAL_INUSEREMOTE "\200\037" /* In Use Remote */ |
#define | OCTAL_INVALCONFPART "\200\051" /* Invalid Conference Participant */ |
#define | OCTAL_IPADD "\200\150" /* IP Address */ |
#define | OCTAL_JOIN "\200\017" /* Join */ |
#define | OCTAL_KEYNOTACTIVE "\200\055" /* Key Is Not Active */ |
#define | OCTAL_LINEINUSE "\200\032" /* Line In Use */ |
#define | OCTAL_MACADD "\200\145" /* Mac Address */ |
#define | OCTAL_MAXPARTEXCEED "\200\054" /* Exceed Maximum Parties */ |
#define | OCTAL_MCID "\200\114" /* MCID */ |
#define | OCTAL_MCIDSUCCESS "\200\124" /* Mcid Successful */ |
#define | OCTAL_MEETME "\200\020" /* MeetMe */ |
#define | OCTAL_NETCNGREROUT "\200\102" /* Network congestion,rerouting */ |
#define | OCTAL_NEWCALL "\200\002" /* New Call */ |
#define | OCTAL_NOCONFBRDG "\200\047" /* No Conference Bridge */ |
#define | OCTAL_NOPARTINFO "\200\053" /* No Participant Info */ |
#define | OCTAL_NOPRIMARYCTL "\200\050" /* Can Not Hold Primary Control */ |
#define | OCTAL_NUMNOTCFG "\200\125" /* Number Not Configured */ |
#define | OCTAL_OFFHOOK "\200\024" /* Off Hook */ |
#define | OCTAL_ONHOOK "\200\025" /* On Hook */ |
#define | OCTAL_OPICKUP "\200\133" /* OPickUp */ |
#define | OCTAL_PARK "\200\016" /* Park */ |
#define | OCTAL_PARKAT "\200\041" /* Call park At */ |
#define | OCTAL_PARKNO "\200\065" /* Park Number */ |
#define | OCTAL_PARKNONUM "\200\107" /* No Park Number Available */ |
#define | OCTAL_PARKREVERSION "\200\110" /* CallPark Reversion */ |
#define | OCTAL_PICKUP "\200\021" /* PickUp */ |
#define | OCTAL_PRIMONLY "\200\042" /* Primary Only */ |
#define | OCTAL_PRIVATE "\200\066" /* Private */ |
#define | OCTAL_QRT "\200\113" /* QRT */ |
#define | OCTAL_REDIAL "\200\001" /* Redial */ |
#define | OCTAL_RESUME "\200\012" /* Resume */ |
#define | OCTAL_RINGOUT "\200\026" /* Ring out */ |
#define | OCTAL_RMLSTC "\200\071" /* RmLstC */ |
#define | OCTAL_ROUTER1 "\200\153" /* Default Router 1 */ |
#define | OCTAL_ROUTER2 "\200\154" /* Default Router 2 */ |
#define | OCTAL_ROUTER3 "\200\155" /* Default Router 3 */ |
#define | OCTAL_ROUTER4 "\200\156" /* Default Router 4 */ |
#define | OCTAL_ROUTER5 "\200\157" /* Default Router 5 */ |
#define | OCTAL_SECERROR "\200\126" /* Security Error */ |
#define | OCTAL_SELECT "\200\116" /* Select */ |
#define | OCTAL_SETWTCH "\200\075" /* SetWtch */ |
#define | OCTAL_SRVNOTACTIVE "\200\111" /* Service is not Active */ |
#define | OCTAL_SUBMASK "\200\151" /* Subnet Mask */ |
#define | OCTAL_TFTP1 "\200\152" /* TFTP Server 1 */ |
#define | OCTAL_TMPFAIL "\200\043" /* Temp Fail */ |
#define | OCTAL_TRANSFER "\200\004" /* Transfer */ |
#define | OCTAL_TRNSFVM "\200\076" /* TrnsfVM */ |
#define | OCTAL_UNKNUM "\200\070" /* Unknown Number */ |
#define | OCTAL_URLDIRS "\200\175" /* Directories URL */ |
#define | OCTAL_URLINFO "\200\174" /* Information URL */ |
#define | OCTAL_URLMSGS "\200\176" /* Messages URL */ |
#define | OCTAL_URLSRVS "\200\177" /* Services URL */ |
#define | OCTAL_VIDBANDWNA "\200\127" /* Video Bandwidth Unavailable */ |
#define | OCTAL_VIDMODE "\200\130" /* VidMode */ |
#define | OCTAL_VLANADID "\200\166" /* Admin. VLAN Id */ |
#define | OCTAL_VLANOPID "\200\165" /* Operational VLAN Id */ |
#define | OCTAL_VOICEMAIL "\200\072" /* Voicemail */ |
#define | OFFHOOK_MESSAGE 0x0006 |
#define | ONHOOK_MESSAGE 0x0007 |
#define | OPEN_RECEIVE_CHANNEL_ACK_MESSAGE 0x0022 |
#define | OPEN_RECEIVE_CHANNEL_MESSAGE 0x0105 |
#define | PACKET_TIMEOUT 10000 |
#define | REGISTER_ACK_MESSAGE 0x0081 |
#define | REGISTER_AVAILABLE_LINES_MESSAGE 0x002D |
#define | REGISTER_MESSAGE 0x0001 |
#define | REGISTER_REJ_MESSAGE 0x009D |
#define | RESET_MESSAGE 0x009F |
#define | SELECT_SOFT_KEYS_MESSAGE 0x0110 |
#define | SERVER_REQUEST_MESSAGE 0x0012 |
#define | SERVER_RES_MESSAGE 0x009E |
#define | SERVICEURL_STAT_MESSAGE 0x012F |
#define | SERVICEURL_STATREQ_MESSAGE 0x0033 |
#define | SET_LAMP_MESSAGE 0x0086 |
#define | SET_MICROPHONE_MESSAGE 0x0089 |
#define | SET_RINGER_MESSAGE 0x0085 |
#define | SET_SPEAKER_MESSAGE 0x0088 |
#define | SKINNY_ALERT 0x24 |
#define | SKINNY_BARGIN 0x43 |
#define | SKINNY_BEEPBONK 0x33 |
#define | SKINNY_BUSY 6 |
#define | SKINNY_BUSYTONE 0x23 |
#define | SKINNY_CALLREMOTEMULTILINE 13 |
#define | SKINNY_CALLWAIT 9 |
#define | SKINNY_CALLWAITTONE 0x2D |
#define | SKINNY_CFWD_ALL (1 << 0) |
#define | SKINNY_CFWD_BUSY (1 << 1) |
#define | SKINNY_CFWD_NOANSWER (1 << 2) |
#define | SKINNY_CONGESTION 7 |
#define | SKINNY_CONNECTED 5 |
#define | SKINNY_CX_CONF 3 |
#define | SKINNY_CX_CONFERENCE 3 |
#define | SKINNY_CX_INACTIVE 4 |
#define | SKINNY_CX_MUTE 4 |
#define | SKINNY_CX_RECVONLY 1 |
#define | SKINNY_CX_SENDONLY 0 |
#define | SKINNY_CX_SENDRECV 2 |
#define | SKINNY_DEBUG(type, verb_level, text, ...) |
#define | SKINNY_DEVICE_12 4 |
#define | SKINNY_DEVICE_12SP 3 |
#define | SKINNY_DEVICE_12SPPLUS 2 |
#define | SKINNY_DEVICE_30SPPLUS 1 |
#define | SKINNY_DEVICE_30VIP 5 |
#define | SKINNY_DEVICE_7902 30008 |
#define | SKINNY_DEVICE_7905 20000 |
#define | SKINNY_DEVICE_7906 369 |
#define | SKINNY_DEVICE_7910 6 |
#define | SKINNY_DEVICE_7911 307 |
#define | SKINNY_DEVICE_7912 30007 |
#define | SKINNY_DEVICE_7914 124 /* Expansion module */ |
#define | SKINNY_DEVICE_7920 30002 |
#define | SKINNY_DEVICE_7921 365 |
#define | SKINNY_DEVICE_7931 348 |
#define | SKINNY_DEVICE_7935 9 |
#define | SKINNY_DEVICE_7936 30019 |
#define | SKINNY_DEVICE_7937 431 |
#define | SKINNY_DEVICE_7940 8 |
#define | SKINNY_DEVICE_7941 115 |
#define | SKINNY_DEVICE_7941GE 309 |
#define | SKINNY_DEVICE_7942 434 |
#define | SKINNY_DEVICE_7945 435 |
#define | SKINNY_DEVICE_7960 7 |
#define | SKINNY_DEVICE_7961 30018 |
#define | SKINNY_DEVICE_7961GE 308 |
#define | SKINNY_DEVICE_7962 404 /* Not found */ |
#define | SKINNY_DEVICE_7965 436 |
#define | SKINNY_DEVICE_7970 30006 |
#define | SKINNY_DEVICE_7971 119 |
#define | SKINNY_DEVICE_7975 437 |
#define | SKINNY_DEVICE_7985 302 |
#define | SKINNY_DEVICE_ATA186 12 /* Cisco ATA-186 */ |
#define | SKINNY_DEVICE_CIPC 30016 /* Cisco IP Communicator */ |
#define | SKINNY_DEVICE_NONE 0 |
#define | SKINNY_DEVICE_OPTIONS |
#define | SKINNY_DEVICE_SCCPGATEWAY_AN 30027 /* Analog gateway */ |
#define | SKINNY_DEVICE_SCCPGATEWAY_BRI 30028 /* BRI gateway */ |
#define | SKINNY_DEVICE_UNKNOWN -1 |
#define | SKINNY_DEVICECONTAINER 1 |
#define | SKINNY_DIALTONE 0x21 |
#define | SKINNY_HOLD 8 |
#define | SKINNY_INCOMING 1 |
#define | SKINNY_INVALID 14 |
#define | SKINNY_LAMP_BLINK 5 |
#define | SKINNY_LAMP_FLASH 4 |
#define | SKINNY_LAMP_OFF 1 |
#define | SKINNY_LAMP_ON 2 |
#define | SKINNY_LAMP_WINK 3 |
#define | SKINNY_LINE_OPTIONS |
#define | SKINNY_LINECONTAINER 2 |
#define | SKINNY_MAX_CAPABILITIES 18 |
#define | SKINNY_MAX_PACKET 2000 |
#define | SKINNY_MICOFF 2 |
#define | SKINNY_MICON 1 |
#define | SKINNY_NOTONE 0x7F |
#define | SKINNY_OFFHOOK 1 |
#define | SKINNY_ONHOOK 2 |
#define | SKINNY_OUTGOING 2 |
#define | SKINNY_PARK 11 |
#define | SKINNY_PROGRESS 12 |
#define | SKINNY_REORDER 0x25 |
#define | SKINNY_RING_FEATURE 4 |
#define | SKINNY_RING_INSIDE 2 |
#define | SKINNY_RING_OFF 1 |
#define | SKINNY_RING_OUTSIDE 3 |
#define | SKINNY_RINGIN 4 |
#define | SKINNY_RINGOUT 3 |
#define | SKINNY_SDCONTAINER 4 |
#define | SKINNY_SILENCE 0x00 /* Note sure this is part of the protocol, remove? */ |
#define | SKINNY_SPEAKEROFF 2 |
#define | SKINNY_SPEAKERON 1 |
#define | SKINNY_SUBLINECONTAINER 3 |
#define | SKINNY_TRANSFER 10 |
#define | SKINNY_ZIP 0x32 |
#define | SKINNY_ZIPZIP 0x31 |
#define | SOFT_KEY_EVENT_MESSAGE 0x0026 |
#define | SOFT_KEY_SET_REQ_MESSAGE 0x0025 |
#define | SOFT_KEY_SET_RES_MESSAGE 0x0109 |
#define | SOFT_KEY_TEMPLATE_REQ_MESSAGE 0x0028 |
#define | SOFT_KEY_TEMPLATE_RES_MESSAGE 0x0108 |
#define | SOFTKEY_ANSWER 0x0B |
#define | SOFTKEY_BKSPC 0x08 |
#define | SOFTKEY_CFWDALL 0x05 |
#define | SOFTKEY_CFWDBUSY 0x06 |
#define | SOFTKEY_CFWDNOANSWER 0x07 |
#define | SOFTKEY_CONFRN 0x0D |
#define | SOFTKEY_DND 0x13 |
#define | SOFTKEY_ENDCALL 0x09 |
#define | SOFTKEY_FORCEDIAL 0x15 |
#define | SOFTKEY_GPICKUP 0x12 |
#define | SOFTKEY_HOLD 0x03 |
#define | SOFTKEY_IDIVERT 0x14 |
#define | SOFTKEY_INFO 0x0C |
#define | SOFTKEY_JOIN 0x0F |
#define | SOFTKEY_MEETME 0x10 |
#define | SOFTKEY_NEWCALL 0x02 |
#define | SOFTKEY_NONE 0x00 |
#define | SOFTKEY_PARK 0x0E |
#define | SOFTKEY_PICKUP 0x11 |
#define | SOFTKEY_REDIAL 0x01 |
#define | SOFTKEY_RESUME 0x0A |
#define | SOFTKEY_TRNSFER 0x04 |
#define | SPEED_DIAL_STAT_REQ_MESSAGE 0x000A |
#define | SPEED_DIAL_STAT_RES_MESSAGE 0x0091 |
#define | START_MEDIA_TRANSMISSION_MESSAGE 0x008A |
#define | START_TONE_MESSAGE 0x0082 |
#define | STIMULUS_AUTOANSWER 0x11 |
#define | STIMULUS_CALLPARK 0x7E |
#define | STIMULUS_CALLPICKUP 0x7F |
#define | STIMULUS_CONFERENCE 0x7D |
#define | STIMULUS_DISPLAY 0x08 |
#define | STIMULUS_DND 0x3F |
#define | STIMULUS_FORWARDALL 0x05 |
#define | STIMULUS_FORWARDBUSY 0x06 |
#define | STIMULUS_FORWARDNOANSWER 0x07 |
#define | STIMULUS_HOLD 0x03 |
#define | STIMULUS_LINE 0x09 |
#define | STIMULUS_MESSAGE 0x0005 |
#define | STIMULUS_NONE 0xFF |
#define | STIMULUS_REDIAL 0x01 |
#define | STIMULUS_SERVICEURL 0x14 |
#define | STIMULUS_SPEEDDIAL 0x02 |
#define | STIMULUS_TRANSFER 0x04 |
#define | STIMULUS_VOICEMAIL 0x0F |
#define | STOP_MEDIA_TRANSMISSION_MESSAGE 0x008B |
#define | STOP_TONE_MESSAGE 0x0083 |
#define | SUBSTATE2STR_BUFSIZE 15 |
#define | SUBSTATE_BUSY 6 |
#define | SUBSTATE_CALLWAIT 9 |
#define | SUBSTATE_CONGESTION 7 |
#define | SUBSTATE_CONNECTED 5 |
#define | SUBSTATE_DIALING 101 |
#define | SUBSTATE_HOLD 8 |
#define | SUBSTATE_OFFHOOK 1 |
#define | SUBSTATE_ONHOOK 2 |
#define | SUBSTATE_PROGRESS 12 |
#define | SUBSTATE_RINGIN 4 |
#define | SUBSTATE_RINGOUT 3 |
#define | SUBSTATE_UNSET 0 |
#define | TIME_DATE_REQ_MESSAGE 0x000D |
#define | TYPE_DEF_DEVICE 2 |
#define | TYPE_DEF_LINE 4 |
#define | TYPE_DEVICE 8 |
#define | TYPE_GENERAL 1 |
#define | TYPE_LINE 16 |
#define | UNREGISTER_MESSAGE 0x0027 |
#define | VERSION_REQ_MESSAGE 0x000F |
#define | VERSION_RES_MESSAGE 0x0098 |
Enumerations | |
enum | skinny_codecs { SKINNY_CODEC_ALAW = 2, SKINNY_CODEC_ULAW = 4, SKINNY_CODEC_G722 = 6, SKINNY_CODEC_G723_1 = 9, SKINNY_CODEC_G729A = 12, SKINNY_CODEC_G726_32 = 82, SKINNY_CODEC_H261 = 100, SKINNY_CODEC_H263 = 101 } |
Functions | |
static void | __init_callstate2str_threadbuf (void) |
static void | __init_control2str_threadbuf (void) |
static void | __init_device2str_threadbuf (void) |
static void | __init_message2str_threadbuf (void) |
static void | __init_substate2str_threadbuf (void) |
static void | __reg_module (void) |
static void | __unreg_module (void) |
static char * | _skinny_message_clear (int type, int fd, struct mansession *s, const struct message *m, int argc, const char *const *argv) |
static char * | _skinny_message_set (int type, int fd, struct mansession *s, const struct message *m, int argc, const char *const *argv) |
static char * | _skinny_show_device (int type, int fd, struct mansession *s, const struct message *m, int argc, const char *const *argv) |
static char * | _skinny_show_devices (int fd, int *total, struct mansession *s, const struct message *m, int argc, const char *const *argv) |
static char * | _skinny_show_line (int type, int fd, struct mansession *s, const struct message *m, int argc, const char *const *argv) |
static char * | _skinny_show_lines (int fd, int *total, struct mansession *s, const struct message *m, int argc, const char *const *argv) |
static void | _transmit_displayprinotify (struct skinny_device *d, const char *text, const char *extratext, int timeout, int priority) |
static void | _transmit_displayprinotifyvar (struct skinny_device *d, const char *text, const char *extratext, int timeout, int priority) |
static void * | accept_thread (void *ignore) |
static void | activatesub (struct skinny_subchannel *sub, int state) |
static struct ast_variable * | add_var (const char *buf, struct ast_variable *list) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static char * | callstate2str (int ind) |
static void | cleanup_stale_contexts (char *new, char *old) |
static int | codec_ast2skinny (const struct ast_format *astcodec) |
static struct ast_format * | codec_skinny2ast (enum skinny_codecs skinnycodec) |
static char * | complete_skinny_debug (const char *line, const char *word, int pos, int state) |
static char * | complete_skinny_devices (const char *word, int state) |
static char * | complete_skinny_reset (const char *line, const char *word, int pos, int state) |
static char * | complete_skinny_show_device (const char *line, const char *word, int pos, int state) |
static char * | complete_skinny_show_line (const char *line, const char *word, int pos, int state) |
static struct skinny_device * | config_device (const char *dname, struct ast_variable *v) |
static struct skinny_line * | config_line (const char *lname, struct ast_variable *v) |
static int | config_load (void) |
static void | config_parse_variables (int type, void *item, struct ast_variable *vptr) |
static char * | control2str (int ind) |
static void | delete_devices (void) |
static void | destroy_rtp (struct skinny_subchannel *sub) |
static void | destroy_session (struct skinnysession *s) |
static char * | device2str (int type) |
static void | dialandactivatesub (struct skinny_subchannel *sub, char exten[AST_MAX_EXTENSION]) |
static void | dumpsub (struct skinny_subchannel *sub, int forcehangup) |
static void | end_session (struct skinnysession *s) |
static struct skinny_line * | find_line_by_instance (struct skinny_device *d, int instance) |
static struct skinny_line * | find_line_by_name (const char *dest) |
static struct skinny_speeddial * | find_speeddial_by_instance (struct skinny_device *d, int instance, int isHint) |
static struct skinny_subchannel * | find_subchannel_by_instance_reference (struct skinny_device *d, int instance, int reference) |
static struct skinny_subchannel * | find_subchannel_by_reference (struct skinny_device *d, int reference) |
static struct skinny_subline * | find_subline_by_callid (struct skinny_device *d, int callid) |
static struct skinny_subline * | find_subline_by_name (const char *dest) |
static void * | get_button_template (struct skinnysession *s, struct button_definition_template *btn) |
static int | get_devicestate (struct skinny_line *l) |
static int | handle_button_template_req_message (struct skinny_req *req, struct skinnysession *s) |
static void | handle_callforward_button (struct skinny_line *l, struct skinny_subchannel *sub, int cfwdtype) |
static int | handle_capabilities_res_message (struct skinny_req *req, struct skinnysession *s) |
static int | handle_enbloc_call_message (struct skinny_req *req, struct skinnysession *s) |
static int | handle_hold_button (struct skinny_subchannel *sub) |
static int | handle_ip_port_message (struct skinny_req *req, struct skinnysession *s) |
static void | handle_keepalive_message (struct skinny_req *req, struct skinnysession *s) |
static int | handle_keypad_button_message (struct skinny_req *req, struct skinnysession *s) |
static int | handle_message (struct skinny_req *req, struct skinnysession *s) |
static int | handle_offhook_message (struct skinny_req *req, struct skinnysession *s) |
static int | handle_onhook_message (struct skinny_req *req, struct skinnysession *s) |
static int | handle_open_receive_channel_ack_message (struct skinny_req *req, struct skinnysession *s) |
static char * | handle_skinny_message_clear (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
Handle clearing messages to devices. More... | |
static char * | handle_skinny_message_set (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
Handle sending messages to devices. More... | |
static char * | handle_skinny_reload (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | handle_skinny_reset (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | handle_skinny_set_debug (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | handle_skinny_show_device (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
Show device information. More... | |
static char * | handle_skinny_show_devices (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | handle_skinny_show_line (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
List line information. More... | |
static char * | handle_skinny_show_lines (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | handle_skinny_show_settings (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
List global settings for the Skinny subsystem. More... | |
static int | handle_soft_key_event_message (struct skinny_req *req, struct skinnysession *s) |
static int | handle_stimulus_message (struct skinny_req *req, struct skinnysession *s) |
static int | handle_transfer_button (struct skinny_subchannel *sub) |
static int | keyset_translatebitmask (int keyset, int intmask) |
static int | load_module (void) |
Load the module. More... | |
static int | manager_skinny_show_device (struct mansession *s, const struct message *m) |
static int | manager_skinny_show_devices (struct mansession *s, const struct message *m) |
Show SKINNY devices in the manager API. More... | |
static int | manager_skinny_show_line (struct mansession *s, const struct message *m) |
static int | manager_skinny_show_lines (struct mansession *s, const struct message *m) |
Show Skinny lines in the manager API. More... | |
static void | mwi_event_cb (void *userdata, struct stasis_subscription *sub, struct stasis_message *msg) |
static void | push_callinfo (struct skinny_subline *subline, struct skinny_subchannel *sub) |
static void | register_exten (struct skinny_line *l) |
static int | reload (void) |
static struct skinny_req * | req_alloc (size_t size, int response_message) |
static void | send_callinfo (struct skinny_subchannel *sub) |
static void | send_displayprinotify (struct skinny_device *d, const char *text, const char *extratext, int timeout, int priority) |
static void | send_displaypromptstatus (struct skinny_device *d, const char *text, const char *extratext, int t, int instance, int callid) |
static int | set_callforwards (struct skinny_line *l, const char *cfwd, int cfwdtype) |
static void | setsubstate (struct skinny_subchannel *sub, int state) |
static int | skinny_answer (struct ast_channel *ast) |
static int | skinny_autoanswer_cb (const void *data) |
static int | skinny_call (struct ast_channel *ast, const char *dest, int timeout) |
static int | skinny_cfwd_cb (const void *data) |
static char * | skinny_debugs (void) |
static struct skinny_device * | skinny_device_alloc (const char *dname) |
static struct skinny_device * | skinny_device_destroy (struct skinny_device *d) |
static int | skinny_devicestate (const char *data) |
static void | skinny_dialer (struct skinny_subchannel *sub, int timedout) |
static int | skinny_dialer_cb (const void *data) |
static int | skinny_extensionstate_cb (const char *context, const char *exten, struct ast_state_cb_info *info, void *data) |
static int | skinny_fixup (struct ast_channel *oldchan, struct ast_channel *newchan) |
static enum ast_rtp_glue_result | skinny_get_rtp_peer (struct ast_channel *c, struct ast_rtp_instance **instance) |
static enum ast_rtp_glue_result | skinny_get_vrtp_peer (struct ast_channel *c, struct ast_rtp_instance **instance) |
static int | skinny_hangup (struct ast_channel *ast) |
static int | skinny_indicate (struct ast_channel *ast, int ind, const void *data, size_t datalen) |
static struct skinny_line * | skinny_line_alloc (void) |
static struct skinny_line * | skinny_line_destroy (struct skinny_line *l) |
static void | skinny_locksub (struct skinny_subchannel *sub) |
static struct ast_channel * | skinny_new (struct skinny_line *l, struct skinny_subline *subline, int state, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, int direction) |
static void * | skinny_newcall (void *data) |
static int | skinny_noauth_cb (const void *data) |
static int | skinny_nokeepalive_cb (const void *data) |
static struct ast_frame * | skinny_read (struct ast_channel *ast) |
static int | skinny_register (struct skinny_req *req, struct skinnysession *s) |
static int | skinny_reload (void) |
static struct ast_channel * | skinny_request (const char *type, struct ast_format_cap *cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *dest, int *cause) |
static struct ast_frame * | skinny_rtp_read (struct skinny_subchannel *sub) |
static int | skinny_sched_add (int when, ast_sched_cb callback, struct skinny_subchannel *sub) |
static int | skinny_sched_del (int sched_id, struct skinny_subchannel *sub) |
static int | skinny_senddigit_begin (struct ast_channel *ast, char digit) |
static int | skinny_senddigit_end (struct ast_channel *ast, char digit, unsigned int duration) |
static void * | skinny_session (void *data) |
static void | skinny_session_cleanup (void *data) |
static void | skinny_set_owner (struct skinny_subchannel *sub, struct ast_channel *chan) |
static int | skinny_set_rtp_peer (struct ast_channel *c, struct ast_rtp_instance *rtp, struct ast_rtp_instance *vrtp, struct ast_rtp_instance *trtp, const struct ast_format_cap *codecs, int nat_active) |
static void | skinny_transfer_attended (struct skinny_subchannel *sub) |
static void | skinny_transfer_blind (struct skinny_subchannel *sub) |
static void | skinny_unlocksub (struct skinny_subchannel *sub) |
static int | skinny_write (struct ast_channel *ast, struct ast_frame *frame) |
static void | start_rtp (struct skinny_subchannel *sub) |
static char * | substate2str (int ind) |
static void | transmit_activatecallplane (struct skinny_device *d, struct skinny_line *l) |
static void | transmit_backspace (struct skinny_device *d, int instance, unsigned callid) |
static void | transmit_callinfo (struct skinny_device *d, int instance, int callid, char *fromname, char *fromnum, char *toname, char *tonum, int calldirection, char *origtonum, char *origtoname) |
static void | transmit_callinfo_variable (struct skinny_device *d, int instance, int callreference, char *fromname, char *fromnum, char *toname, char *tonum, int calldirection, char *origtonum, char *origtoname) |
static void | transmit_callstate (struct skinny_device *d, int buttonInstance, unsigned callid, int state) |
static void | transmit_capabilitiesreq (struct skinny_device *d) |
static void | transmit_cfwdstate (struct skinny_device *d, struct skinny_line *l) |
static void | transmit_clear_display_message (struct skinny_device *d, int instance, int reference) |
static void | transmit_clearprinotify (struct skinny_device *d, int priority) |
static void | transmit_clearpromptmessage (struct skinny_device *d, int instance, int callid) |
static void | transmit_closereceivechannel (struct skinny_device *d, struct skinny_subchannel *sub) |
static void | transmit_connect (struct skinny_device *d, struct skinny_subchannel *sub) |
static void | transmit_definetimedate (struct skinny_device *d) |
static void | transmit_dialednumber (struct skinny_device *d, const char *text, int instance, int callid) |
static void | transmit_displaynotify (struct skinny_device *d, const char *text, int t) |
static void | transmit_displaypromptstatus (struct skinny_device *d, const char *text, const char *extratext, int t, int instance, int callid) |
static void | transmit_displaypromptstatusvar (struct skinny_device *d, const char *text, const char *extratext, int t, int instance, int callid) |
static void | transmit_keepaliveack (struct skinnysession *s) |
static void | transmit_lamp_indication (struct skinny_device *d, int stimulus, int instance, int indication) |
static void | transmit_linestatres (struct skinny_device *d, int instance) |
static void | transmit_microphone_mode (struct skinny_device *d, int mode) |
static void | transmit_registerack (struct skinny_device *d) |
static void | transmit_registerrej (struct skinnysession *s) |
static void | transmit_reset (struct skinny_device *d, int fullrestart) |
static void | transmit_response (struct skinny_device *d, struct skinny_req *req) |
static int | transmit_response_bysession (struct skinnysession *s, struct skinny_req *req) |
static void | transmit_ringer_mode (struct skinny_device *d, int mode) |
static void | transmit_selectsoftkeys (struct skinny_device *d, int instance, int callid, int softkey, int mask) |
static void | transmit_serverres (struct skinny_device *d) |
static void | transmit_serviceurlstat (struct skinny_device *d, int instance) |
static void | transmit_softkeysetres (struct skinny_device *d) |
static void | transmit_softkeytemplateres (struct skinny_device *d) |
static void | transmit_speaker_mode (struct skinny_device *d, int mode) |
static void | transmit_speeddialstatres (struct skinny_device *d, struct skinny_speeddial *sd) |
static void | transmit_start_tone (struct skinny_device *d, int tone, int instance, int reference) |
static void | transmit_startmediatransmission (struct skinny_device *d, struct skinny_subchannel *sub, struct sockaddr_in dest, struct ast_format *format, unsigned int framing) |
static void | transmit_stop_tone (struct skinny_device *d, int instance, int reference) |
static void | transmit_stopmediatransmission (struct skinny_device *d, struct skinny_subchannel *sub) |
static void | transmit_versionres (struct skinny_device *d) |
static int | unload_module (void) |
static void | unregister_exten (struct skinny_line *l) |
static void | update_connectedline (struct skinny_subchannel *sub, const void *data, size_t datalen) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Skinny Client Control Protocol (Skinny)" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "30ef0c93b36035ec78c9cfd712d36d9b" , .support_level = AST_MODULE_SUPPORT_EXTENDED, .load = load_module, .unload = unload_module, .reload = reload, .load_pri = AST_MODPRI_CHANNEL_DRIVER, } |
static struct in_addr | __ourip |
static pthread_t | accept_t |
static struct ast_hostent | ahp |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static int | auth_limit = DEFAULT_AUTH_LIMIT |
static int | auth_timeout = DEFAULT_AUTH_TIMEOUT |
static struct sockaddr_in | bindaddr |
static int | callnums = 1 |
static struct ast_threadstorage | callstate2str_threadbuf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_callstate2str_threadbuf , .custom_init = NULL , } |
static struct ast_cli_entry | cli_skinny [] |
static const char | config [] = "skinny.conf" |
static struct ast_threadstorage | control2str_threadbuf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_control2str_threadbuf , .custom_init = NULL , } |
static char | date_format [6] = "D-M-Y" |
char | dbgcli_buf [256] |
static struct ast_format_cap * | default_cap |
static struct skinny_device_options * | default_device = &default_device_struct |
static struct skinny_device_options | default_device_struct |
static struct ast_jb_conf | default_jbconf |
static struct skinny_line_options * | default_line = &default_line_struct |
static struct skinny_line_options | default_line_struct |
static struct ast_threadstorage | device2str_threadbuf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_device2str_threadbuf , .custom_init = NULL , } |
static struct devices | devices = { .first = NULL, .last = NULL, .lock = { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP , NULL, {1, 0} } , } |
static int | firstdigittimeout = 16000 |
static int | gendigittimeout = 8000 |
static struct ast_jb_conf | global_jbconf |
static struct hostent * | hp |
static char | immed_dialchar |
static int | keep_alive = 120 |
static struct lines | lines = { .first = NULL, .last = NULL, .lock = { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP , NULL, {1, 0} } , } |
static int | matchdigittimeout = 3000 |
static struct ast_threadstorage | message2str_threadbuf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_message2str_threadbuf , .custom_init = NULL , } |
static ast_mutex_t | netlock = { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP , NULL, {1, 0} } |
static int | not_used |
static char | ourhost [256] |
static int | ourport |
struct { | |
unsigned int cos | |
unsigned int cos_audio | |
unsigned int cos_video | |
unsigned int tos | |
unsigned int tos_audio | |
unsigned int tos_video | |
} | qos = { 0, 0, 0, 0, 0, 0 } |
static char | regcontext [AST_MAX_CONTEXT] |
static struct ast_sched_context * | sched = NULL |
static struct sessions | sessions = { .first = NULL, .last = NULL, .lock = { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP , NULL, {1, 0} } , } |
static int | skinny_header_size = 12 |
static struct ast_rtp_glue | skinny_rtp_glue |
static struct ast_channel_tech | skinny_tech |
static int | skinnydebug = 0 |
static int | skinnyreload = 0 |
static int | skinnysock = -1 |
static const uint8_t | soft_key_default_connected [] |
static const uint8_t | soft_key_default_connwithconf [] |
static const uint8_t | soft_key_default_connwithtrans [] |
static const uint8_t | soft_key_default_dadfd [] |
static const struct soft_key_definitions | soft_key_default_definitions [] |
static const uint8_t | soft_key_default_offhook [] |
static const uint8_t | soft_key_default_offhookwithfeat [] |
static const uint8_t | soft_key_default_onhold [] |
static const uint8_t | soft_key_default_onhook [] |
static const uint8_t | soft_key_default_ringin [] |
static const uint8_t | soft_key_default_ringout [] |
static const uint8_t | soft_key_default_ringoutwithtransfer [] |
static const uint8_t | soft_key_default_SLAconnectednotactive [] |
static const uint8_t | soft_key_default_SLAhold [] |
static const uint8_t | soft_key_default_unknown [] |
static struct soft_key_template_definition | soft_key_template_default [] |
static struct ast_threadstorage | substate2str_threadbuf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_substate2str_threadbuf , .custom_init = NULL , } |
static const char | tdesc [] = "Skinny Client Control Protocol (Skinny)" |
static int | unauth_sessions = 0 |
static char | used_context [AST_MAX_EXTENSION] |
static char | version_id [16] = "P002F202" |
static char | vmexten [AST_MAX_EXTENSION] |
Implementation of the Skinny protocol.
Definition in file chan_skinny.c.
#define ACTIVATE_CALL_PLANE_MESSAGE 0x0116 |
Definition at line 1092 of file chan_skinny.c.
Referenced by transmit_activatecallplane().
#define ALARM_MESSAGE 0x0020 |
Definition at line 368 of file chan_skinny.c.
Referenced by handle_message().
#define BKSP_REQ_MESSAGE 0x0119 |
Definition at line 688 of file chan_skinny.c.
Referenced by transmit_backspace().
#define BT_AUTOANSWER STIMULUS_AUTOANSWER |
Definition at line 602 of file chan_skinny.c.
#define BT_CALLPARK STIMULUS_CALLPARK |
Definition at line 606 of file chan_skinny.c.
Referenced by get_button_template().
#define BT_CALLPICKUP STIMULUS_CALLPICKUP |
Definition at line 607 of file chan_skinny.c.
#define BT_CONFERENCE STIMULUS_CONFERENCE |
Definition at line 605 of file chan_skinny.c.
Referenced by get_button_template().
#define BT_CUST_LINE 0xB1 /* line or speeddial with hint only */ |
Definition at line 614 of file chan_skinny.c.
Referenced by get_button_template(), and handle_button_template_req_message().
#define BT_CUST_LINESPEEDDIAL 0xB0 /* line or speeddial with/without hint */ |
Definition at line 613 of file chan_skinny.c.
Referenced by get_button_template(), and handle_button_template_req_message().
#define BT_DISPLAY STIMULUS_DISPLAY |
Definition at line 599 of file chan_skinny.c.
Referenced by get_button_template().
#define BT_DND STIMULUS_DND |
Definition at line 604 of file chan_skinny.c.
#define BT_FORWARDALL STIMULUS_FORWARDALL |
Definition at line 596 of file chan_skinny.c.
Referenced by get_button_template().
#define BT_FORWARDBUSY STIMULUS_FORWARDBUSY |
Definition at line 597 of file chan_skinny.c.
#define BT_FORWARDNOANSWER STIMULUS_FORWARDNOANSWER |
Definition at line 598 of file chan_skinny.c.
#define BT_HOLD STIMULUS_HOLD |
Definition at line 594 of file chan_skinny.c.
Referenced by get_button_template().
#define BT_LINE STIMULUS_LINE |
Definition at line 600 of file chan_skinny.c.
Referenced by get_button_template(), and handle_button_template_req_message().
#define BT_NONE 0x00 |
Definition at line 608 of file chan_skinny.c.
Referenced by get_button_template(), and handle_button_template_req_message().
#define BT_REDIAL STIMULUS_REDIAL |
Definition at line 592 of file chan_skinny.c.
Referenced by get_button_template().
#define BT_SERVICEURL STIMULUS_SERVICEURL |
Definition at line 603 of file chan_skinny.c.
Referenced by handle_button_template_req_message().
#define BT_SPEEDDIAL STIMULUS_SPEEDDIAL |
Definition at line 593 of file chan_skinny.c.
Referenced by get_button_template(), and handle_button_template_req_message().
#define BT_TRANSFER STIMULUS_TRANSFER |
Definition at line 595 of file chan_skinny.c.
Referenced by get_button_template().
#define BT_VOICEMAIL STIMULUS_VOICEMAIL |
Definition at line 601 of file chan_skinny.c.
Referenced by get_button_template().
#define BUTTON_TEMPLATE_REQ_MESSAGE 0x000E |
Definition at line 364 of file chan_skinny.c.
Referenced by handle_message().
#define BUTTON_TEMPLATE_RES_MESSAGE 0x0097 |
Definition at line 561 of file chan_skinny.c.
Referenced by handle_button_template_req_message().
#define CALL_INFO_MESSAGE 0x008F |
Definition at line 499 of file chan_skinny.c.
Referenced by transmit_callinfo().
#define CALL_INFO_MESSAGE_VARIABLE 0x014A |
Definition at line 1127 of file chan_skinny.c.
Referenced by transmit_callinfo_variable().
#define CALL_STATE_MESSAGE 0x0111 |
Definition at line 1063 of file chan_skinny.c.
Referenced by transmit_callstate().
#define CALLSTATE2STR_BUFSIZE 15 |
Definition at line 279 of file chan_skinny.c.
Referenced by callstate2str().
#define CAPABILITIES_REQ_MESSAGE 0x009B |
Definition at line 639 of file chan_skinny.c.
Referenced by transmit_capabilitiesreq().
#define CAPABILITIES_RES_MESSAGE 0x0010 |
Definition at line 336 of file chan_skinny.c.
Referenced by handle_message().
#define CDEV ((struct skinny_device *)item) |
Definition at line 7768 of file chan_skinny.c.
Referenced by config_parse_variables().
#define CDEV_OPTS ((struct skinny_device_options *)item) |
Definition at line 7767 of file chan_skinny.c.
Referenced by config_parse_variables().
#define CLEAR_DISPLAY_MESSAGE 0x009A |
Definition at line 634 of file chan_skinny.c.
Referenced by transmit_clear_display_message().
#define CLEAR_NOTIFY_MESSAGE 0x0115 |
Definition at line 633 of file chan_skinny.c.
#define CLEAR_PRINOTIFY_MESSAGE 0x0121 |
Definition at line 1122 of file chan_skinny.c.
Referenced by transmit_clearprinotify().
#define CLEAR_PROMPT_MESSAGE 0x0113 |
Definition at line 1080 of file chan_skinny.c.
Referenced by transmit_clearpromptmessage().
#define CLINE ((struct skinny_line *)item) |
Definition at line 7766 of file chan_skinny.c.
Referenced by config_parse_variables().
#define CLINE_OPTS ((struct skinny_line_options *)item) |
Definition at line 7765 of file chan_skinny.c.
Referenced by config_parse_variables().
#define CLOSE_RECEIVE_CHANNEL_MESSAGE 0x0106 |
Definition at line 675 of file chan_skinny.c.
Referenced by transmit_closereceivechannel().
#define CONTROL2STR_BUFSIZE 100 |
Definition at line 273 of file chan_skinny.c.
Referenced by control2str().
#define DEBUG_AUDIO (1 << 4) |
Definition at line 151 of file chan_skinny.c.
Referenced by destroy_rtp(), handle_capabilities_res_message(), handle_message(), handle_skinny_set_debug(), skinny_debugs(), skinny_get_rtp_peer(), skinny_set_rtp_peer(), and start_rtp().
#define DEBUG_GENERAL (1 << 1) |
Definition at line 148 of file chan_skinny.c.
Referenced by handle_skinny_set_debug(), and skinny_debugs().
#define DEBUG_HINT (1 << 8) |
Definition at line 155 of file chan_skinny.c.
Referenced by handle_skinny_set_debug(), skinny_debugs(), and skinny_extensionstate_cb().
#define DEBUG_KEEPALIVE (1 << 9) |
Definition at line 156 of file chan_skinny.c.
Referenced by handle_keepalive_message(), handle_skinny_set_debug(), and skinny_debugs().
#define DEBUG_LOCK (1 << 5) |
Definition at line 152 of file chan_skinny.c.
Referenced by handle_skinny_set_debug(), and skinny_debugs().
#define DEBUG_PACKET (1 << 3) |
Definition at line 150 of file chan_skinny.c.
Referenced by _transmit_displayprinotify(), _transmit_displayprinotifyvar(), handle_button_template_req_message(), handle_keepalive_message(), handle_message(), handle_open_receive_channel_ack_message(), handle_skinny_set_debug(), handle_soft_key_event_message(), handle_stimulus_message(), skinny_debugs(), transmit_activatecallplane(), transmit_backspace(), transmit_callinfo(), transmit_callinfo_variable(), transmit_callstate(), transmit_capabilitiesreq(), transmit_cfwdstate(), transmit_clear_display_message(), transmit_clearprinotify(), transmit_clearpromptmessage(), transmit_closereceivechannel(), transmit_connect(), transmit_definetimedate(), transmit_dialednumber(), transmit_displaynotify(), transmit_displaypromptstatus(), transmit_displaypromptstatusvar(), transmit_keepaliveack(), transmit_lamp_indication(), transmit_linestatres(), transmit_microphone_mode(), transmit_registerack(), transmit_registerrej(), transmit_reset(), transmit_ringer_mode(), transmit_selectsoftkeys(), transmit_serverres(), transmit_serviceurlstat(), transmit_softkeysetres(), transmit_softkeytemplateres(), transmit_speaker_mode(), transmit_speeddialstatres(), transmit_start_tone(), transmit_startmediatransmission(), transmit_stop_tone(), transmit_stopmediatransmission(), and transmit_versionres().
#define DEBUG_SUB (1 << 2) |
Definition at line 149 of file chan_skinny.c.
Referenced by activatesub(), dialandactivatesub(), dumpsub(), handle_keypad_button_message(), handle_skinny_set_debug(), setsubstate(), skinny_answer(), skinny_call(), skinny_cfwd_cb(), skinny_debugs(), skinny_dialer(), skinny_dialer_cb(), skinny_hangup(), skinny_indicate(), skinny_new(), skinny_sched_add(), skinny_sched_del(), skinny_transfer_attended(), skinny_transfer_blind(), and update_connectedline().
#define DEBUG_TEMPLATE (1 << 6) |
Definition at line 153 of file chan_skinny.c.
Referenced by handle_button_template_req_message(), handle_skinny_set_debug(), skinny_debugs(), and transmit_softkeysetres().
#define DEBUG_THREAD (1 << 7) |
Definition at line 154 of file chan_skinny.c.
Referenced by accept_thread(), handle_skinny_set_debug(), and skinny_debugs().
#define DEFAULT_AUTH_LIMIT 50 |
Definition at line 190 of file chan_skinny.c.
Referenced by config_parse_variables().
#define DEFAULT_AUTH_TIMEOUT 30 |
Definition at line 189 of file chan_skinny.c.
Referenced by config_parse_variables().
#define DEFAULT_SKINNY_BACKLOG 2 |
Definition at line 187 of file chan_skinny.c.
Referenced by config_load().
#define DEFAULT_SKINNY_PORT 2000 |
Definition at line 186 of file chan_skinny.c.
Referenced by config_device(), and config_load().
#define DEFINETIMEDATE_MESSAGE 0x0094 |
Definition at line 548 of file chan_skinny.c.
Referenced by transmit_definetimedate().
#define DEVICE2STR_BUFSIZE 15 |
Definition at line 270 of file chan_skinny.c.
Referenced by device2str().
#define DIALED_NUMBER_MESSAGE 0x011D |
Definition at line 1097 of file chan_skinny.c.
Referenced by transmit_dialednumber().
#define DIALTYPE_CFWD 1<<1 |
Definition at line 1385 of file chan_skinny.c.
Referenced by dialandactivatesub(), and handle_callforward_button().
#define DIALTYPE_NORMAL 1<<0 |
Definition at line 1384 of file chan_skinny.c.
Referenced by dialandactivatesub(), handle_transfer_button(), and skinny_new().
#define DIALTYPE_XFER 1<<2 |
Definition at line 1386 of file chan_skinny.c.
Referenced by dialandactivatesub(), and handle_transfer_button().
#define DISPLAY_NOTIFY_MESSAGE 0x0114 |
Definition at line 1086 of file chan_skinny.c.
Referenced by transmit_displaynotify().
#define DISPLAY_PRINOTIFY_MESSAGE 0x0120 |
Definition at line 1115 of file chan_skinny.c.
Referenced by _transmit_displayprinotify().
#define DISPLAY_PRINOTIFY_MESSAGE_VARIABLE 0x0144 |
Definition at line 1140 of file chan_skinny.c.
Referenced by _transmit_displayprinotifyvar().
#define DISPLAY_PROMPT_STATUS_MESSAGE 0x0112 |
Definition at line 1071 of file chan_skinny.c.
Referenced by transmit_displaypromptstatus().
#define DISPLAY_PROMPT_STATUS_MESSAGE_VARIABLE 0x0145 |
Definition at line 1147 of file chan_skinny.c.
Referenced by transmit_displaypromptstatusvar().
#define DISPLAYTEXT_MESSAGE 0x0099 |
Definition at line 628 of file chan_skinny.c.
#define ENBLOC_CALL_MESSAGE 0x0004 |
Definition at line 312 of file chan_skinny.c.
Referenced by handle_message().
#define FORWARD_STAT_MESSAGE 0x0090 |
Definition at line 521 of file chan_skinny.c.
Referenced by transmit_cfwdstate().
#define HEADSET_STATUS_MESSAGE 0x002B |
Definition at line 402 of file chan_skinny.c.
Referenced by handle_message().
#define htolel | ( | x | ) | bswap_32(x) |
Definition at line 222 of file chan_skinny.c.
Referenced by _transmit_displayprinotify(), _transmit_displayprinotifyvar(), handle_button_template_req_message(), load_module(), req_alloc(), transmit_activatecallplane(), transmit_backspace(), transmit_callinfo(), transmit_callinfo_variable(), transmit_callstate(), transmit_cfwdstate(), transmit_clearprinotify(), transmit_clearpromptmessage(), transmit_closereceivechannel(), transmit_connect(), transmit_definetimedate(), transmit_dialednumber(), transmit_displaynotify(), transmit_displaypromptstatus(), transmit_displaypromptstatusvar(), transmit_lamp_indication(), transmit_microphone_mode(), transmit_registerack(), transmit_ringer_mode(), transmit_selectsoftkeys(), transmit_serverres(), transmit_serviceurlstat(), transmit_softkeysetres(), transmit_softkeytemplateres(), transmit_speaker_mode(), transmit_speeddialstatres(), transmit_start_tone(), transmit_startmediatransmission(), transmit_stop_tone(), and transmit_stopmediatransmission().
#define htoles | ( | x | ) | bswap_16(x) |
Definition at line 223 of file chan_skinny.c.
Referenced by transmit_softkeysetres().
#define IP_PORT_MESSAGE 0x0002 |
Definition at line 302 of file chan_skinny.c.
Referenced by handle_message().
#define KEEP_ALIVE_ACK_MESSAGE 0x0100 |
Definition at line 662 of file chan_skinny.c.
Referenced by transmit_keepaliveack().
#define KEEP_ALIVE_MESSAGE 0x0000 |
Definition at line 285 of file chan_skinny.c.
Referenced by handle_message().
#define KEYDEF_CONNECTED 1 |
Definition at line 695 of file chan_skinny.c.
Referenced by setsubstate(), and skinny_extensionstate_cb().
#define KEYDEF_CONNWITHCONF 7 |
Definition at line 701 of file chan_skinny.c.
#define KEYDEF_CONNWITHTRANS 5 |
Definition at line 699 of file chan_skinny.c.
#define KEYDEF_DADFD 6 /* Digits After Dialing First Digit */ |
Definition at line 700 of file chan_skinny.c.
Referenced by handle_keypad_button_message(), and skinny_dialer().
#define KEYDEF_OFFHOOK 4 |
Definition at line 698 of file chan_skinny.c.
Referenced by handle_soft_key_event_message(), and setsubstate().
#define KEYDEF_OFFHOOKWITHFEAT 9 |
Definition at line 703 of file chan_skinny.c.
#define KEYDEF_ONHOLD 2 |
Definition at line 696 of file chan_skinny.c.
Referenced by setsubstate().
#define KEYDEF_ONHOOK 0 |
Definition at line 694 of file chan_skinny.c.
Referenced by handle_message(), and skinny_extensionstate_cb().
#define KEYDEF_RINGIN 3 |
Definition at line 697 of file chan_skinny.c.
Referenced by setsubstate().
#define KEYDEF_RINGOUT 8 |
Definition at line 702 of file chan_skinny.c.
Referenced by setsubstate().
#define KEYDEF_RINGOUTWITHTRANS 13 |
Definition at line 707 of file chan_skinny.c.
Referenced by setsubstate().
#define KEYDEF_SLACONNECTEDNOTACTIVE 12 |
Definition at line 706 of file chan_skinny.c.
Referenced by setsubstate(), and skinny_extensionstate_cb().
#define KEYDEF_SLAHOLD 11 |
Definition at line 705 of file chan_skinny.c.
Referenced by skinny_extensionstate_cb().
#define KEYDEF_UNKNOWN 10 |
Definition at line 704 of file chan_skinny.c.
#define KEYMASK_ALL 0xFFFFFFFF |
Definition at line 732 of file chan_skinny.c.
Referenced by handle_keypad_button_message(), handle_message(), handle_soft_key_event_message(), setsubstate(), skinny_dialer(), and skinny_extensionstate_cb().
#define KEYMASK_ANSWER (1 << 11) |
Definition at line 744 of file chan_skinny.c.
#define KEYMASK_BKSPC (1 << 8) |
Definition at line 741 of file chan_skinny.c.
#define KEYMASK_CFWDALL (1 << 5) |
Definition at line 738 of file chan_skinny.c.
#define KEYMASK_CFWDBUSY (1 << 6) |
Definition at line 739 of file chan_skinny.c.
#define KEYMASK_CFWDNOANSWER (1 << 7) |
Definition at line 740 of file chan_skinny.c.
#define KEYMASK_CONFRN (1 << 13) |
Definition at line 746 of file chan_skinny.c.
#define KEYMASK_DND (1 << 29) |
Definition at line 752 of file chan_skinny.c.
#define KEYMASK_ENDCALL (1 << 9) |
Definition at line 742 of file chan_skinny.c.
#define KEYMASK_FORCEDIAL (1 << 21) |
Definition at line 754 of file chan_skinny.c.
Referenced by handle_keypad_button_message().
#define KEYMASK_GPICKUP (1 << 18) |
Definition at line 751 of file chan_skinny.c.
#define KEYMASK_HOLD (1 << 3) |
Definition at line 736 of file chan_skinny.c.
#define KEYMASK_IDIVERT (1 << 20) |
Definition at line 753 of file chan_skinny.c.
#define KEYMASK_INFO (1 << 12) |
Definition at line 745 of file chan_skinny.c.
#define KEYMASK_JOIN (1 << 15) |
Definition at line 748 of file chan_skinny.c.
#define KEYMASK_MEETME (1 << 16) |
Definition at line 749 of file chan_skinny.c.
#define KEYMASK_NEWCALL (1 << 2) |
Definition at line 735 of file chan_skinny.c.
#define KEYMASK_NONE (1 << 0) |
Definition at line 733 of file chan_skinny.c.
#define KEYMASK_PARK (1 << 14) |
Definition at line 747 of file chan_skinny.c.
#define KEYMASK_PICKUP (1 << 17) |
Definition at line 750 of file chan_skinny.c.
#define KEYMASK_REDIAL (1 << 1) |
Definition at line 734 of file chan_skinny.c.
#define KEYMASK_RESUME (1 << 10) |
Definition at line 743 of file chan_skinny.c.
#define KEYMASK_TRNSFER (1 << 4) |
Definition at line 737 of file chan_skinny.c.
#define KEYPAD_BUTTON_MESSAGE 0x0003 |
Definition at line 304 of file chan_skinny.c.
Referenced by handle_message().
#define letohl | ( | x | ) | bswap_32(x) |
Definition at line 220 of file chan_skinny.c.
Referenced by handle_capabilities_res_message(), handle_keypad_button_message(), handle_message(), handle_offhook_message(), handle_onhook_message(), handle_open_receive_channel_ack_message(), handle_soft_key_event_message(), handle_stimulus_message(), skinny_register(), skinny_session(), transmit_linestatres(), and transmit_response_bysession().
#define letohs | ( | x | ) | bswap_16(x) |
Definition at line 221 of file chan_skinny.c.
#define LINE_STAT_RES_MESSAGE 0x0092 |
Definition at line 540 of file chan_skinny.c.
Referenced by transmit_linestatres().
#define LINE_STATE_REQ_MESSAGE 0x000B |
Definition at line 358 of file chan_skinny.c.
Referenced by handle_message().
#define MAX_SERVICEURL 256 |
Definition at line 1104 of file chan_skinny.c.
#define MAXCALLINFOSTR 256 |
Definition at line 1112 of file chan_skinny.c.
Referenced by transmit_callinfo_variable(), and transmit_displaypromptstatusvar().
#define MAXDISPLAYNOTIFYSTR 32 |
Definition at line 1113 of file chan_skinny.c.
Referenced by _transmit_displayprinotifyvar().
#define MESSAGE2STR_BUFSIZE 35 |
Definition at line 266 of file chan_skinny.c.
#define OCTAL_ANSWER "\200\013" /* Answer */ |
Definition at line 770 of file chan_skinny.c.
#define OCTAL_BARGE "\200\103" /* Barge */ |
Definition at line 826 of file chan_skinny.c.
#define OCTAL_BARGEEXIST "\200\105" /* Another Barge exists */ |
Definition at line 828 of file chan_skinny.c.
#define OCTAL_BARGEFAIL "\200\104" /* Failed to setup Barge */ |
Definition at line 827 of file chan_skinny.c.
#define OCTAL_BKSPC "\200\010" /* << */ |
Definition at line 767 of file chan_skinny.c.
#define OCTAL_BUSY "\200\031" /* Busy */ |
Definition at line 784 of file chan_skinny.c.
Referenced by setsubstate().
#define OCTAL_CALLBACK "\200\101" /* CallBack */ |
Definition at line 824 of file chan_skinny.c.
#define OCTAL_CALLDURTIMEOUT "\200\131" /* Max Call Duration Timeout */ |
Definition at line 848 of file chan_skinny.c.
#define OCTAL_CALLPARK "\200\035" /* Call Park */ |
Definition at line 788 of file chan_skinny.c.
#define OCTAL_CALLPROCEED "\200\036" /* Call Proceed */ |
Definition at line 789 of file chan_skinny.c.
#define OCTAL_CALLWAITING "\200\033" /* Call Waiting */ |
Definition at line 786 of file chan_skinny.c.
Referenced by setsubstate().
#define OCTAL_CALLXFER "\200\034" /* Call Transfer */ |
Definition at line 787 of file chan_skinny.c.
#define OCTAL_CANTCOMPCNF "\200\046" /* Can Not Complete Conference */ |
Definition at line 797 of file chan_skinny.c.
#define OCTAL_CANTCOMPLXFER "\200\122" /* Can Not Complete Transfer */ |
Definition at line 841 of file chan_skinny.c.
#define OCTAL_CANTJOINCALLS "\200\123" /* Can Not Join Calls */ |
Definition at line 842 of file chan_skinny.c.
#define OCTAL_CBARGE "\200\121" /* cBarge */ |
Definition at line 840 of file chan_skinny.c.
#define OCTAL_CFWDALL "\200\005" /* CFwdALL */ |
Definition at line 764 of file chan_skinny.c.
#define OCTAL_CFWDBUSY "\200\006" /* CFwdBusy */ |
Definition at line 765 of file chan_skinny.c.
#define OCTAL_CFWDNOAN "\200\007" /* CFwdNoAnswer */ |
Definition at line 766 of file chan_skinny.c.
#define OCTAL_CM1 "\200\167" /* CallManager 1 */ |
Definition at line 878 of file chan_skinny.c.
#define OCTAL_CM2 "\200\170" /* CallManager 2 */ |
Definition at line 879 of file chan_skinny.c.
#define OCTAL_CM3 "\200\171" /* CallManager 3 */ |
Definition at line 880 of file chan_skinny.c.
#define OCTAL_CM4 "\200\172" /* CallManager 4 */ |
Definition at line 881 of file chan_skinny.c.
#define OCTAL_CM5 "\200\173" /* CallManager 5 */ |
Definition at line 882 of file chan_skinny.c.
#define OCTAL_CONFERENCE "\200\064" /* Conference */ |
Definition at line 811 of file chan_skinny.c.
#define OCTAL_CONFLIST "\200\117" /* ConfList */ |
Definition at line 838 of file chan_skinny.c.
#define OCTAL_CONFRN "\200\015" /* Confrn */ |
Definition at line 772 of file chan_skinny.c.
#define OCTAL_CONNECTED "\200\030" /* Connected */ |
Definition at line 783 of file chan_skinny.c.
Referenced by setsubstate(), and skinny_extensionstate_cb().
#define OCTAL_CUROPTS "\200\023" /* Your current options */ |
Definition at line 778 of file chan_skinny.c.
#define OCTAL_DIRTRFR "\200\115" /* DirTrfr */ |
Definition at line 836 of file chan_skinny.c.
#define OCTAL_DIVALL "\200\100" /* DivAll */ |
Definition at line 823 of file chan_skinny.c.
#define OCTAL_DND "\200\077" /* DND */ |
Definition at line 822 of file chan_skinny.c.
#define OCTAL_DNS1 "\200\160" /* DNS Server 1 */ |
Definition at line 871 of file chan_skinny.c.
#define OCTAL_DNS2 "\200\161" /* DNS Server 2 */ |
Definition at line 872 of file chan_skinny.c.
#define OCTAL_DNS3 "\200\162" /* DNS Server 3 */ |
Definition at line 873 of file chan_skinny.c.
#define OCTAL_DNS4 "\200\163" /* DNS Server 4 */ |
Definition at line 874 of file chan_skinny.c.
#define OCTAL_DNS5 "\200\164" /* DNS Server 5 */ |
Definition at line 875 of file chan_skinny.c.
#define OCTAL_DOMAIN "\200\147" /* Domain Name */ |
Definition at line 862 of file chan_skinny.c.
#define OCTAL_ENDCALL "\200\011" /* EndCall */ |
Definition at line 768 of file chan_skinny.c.
#define OCTAL_ENTRNUM "\200\040" /* Enter number */ |
Definition at line 791 of file chan_skinny.c.
Referenced by setsubstate().
#define OCTAL_ERRDB "\200\060" /* Error Database */ |
Definition at line 807 of file chan_skinny.c.
#define OCTAL_ERRDBCFG "\200\057" /* Error DBConfig */ |
Definition at line 806 of file chan_skinny.c.
#define OCTAL_ERRMISMATCH "\200\063" /* Error Mismatch */ |
Definition at line 810 of file chan_skinny.c.
#define OCTAL_ERRNOLIC "\200\056" /* Error No License */ |
Definition at line 805 of file chan_skinny.c.
#define OCTAL_ERRPASSLMT "\200\061" /* Error Pass Limit */ |
Definition at line 808 of file chan_skinny.c.
#define OCTAL_ERRUNK "\200\062" /* Error Unknown */ |
Definition at line 809 of file chan_skinny.c.
#define OCTAL_EXTXFERRESTRICT "\200\141" /* External Transfer Restricted */ |
Definition at line 856 of file chan_skinny.c.
#define OCTAL_FROM "\200\027" /* From */ |
Definition at line 782 of file chan_skinny.c.
Referenced by setsubstate().
#define OCTAL_FWDEDTO "\200\045" /* Forwarded to */ |
Definition at line 796 of file chan_skinny.c.
#define OCTAL_GPICKUP "\200\022" /* GPickUp */ |
Definition at line 777 of file chan_skinny.c.
#define OCTAL_HAVEVMAIL "\200\044" /* You Have VoiceMail */ |
Definition at line 795 of file chan_skinny.c.
#define OCTAL_HITRAFFIC "\200\112" /* High Traffic Try Again Later */ |
Definition at line 833 of file chan_skinny.c.
#define OCTAL_HOLD "\200\003" /* Hold */ |
Definition at line 762 of file chan_skinny.c.
#define OCTAL_HOLDDURTIMEOUT "\200\132" /* Max Hold Duration Timeout */ |
Definition at line 849 of file chan_skinny.c.
#define OCTAL_HOST "\200\146" /* Host Name */ |
Definition at line 861 of file chan_skinny.c.
#define OCTAL_IDIVERT "\200\120" /* iDivert */ |
Definition at line 839 of file chan_skinny.c.
#define OCTAL_IMMDIV "\200\073" /* ImmDiv */ |
Definition at line 818 of file chan_skinny.c.
#define OCTAL_INCOMPATDEV "\200\106" /* Incompatible device type */ |
Definition at line 829 of file chan_skinny.c.
#define OCTAL_INCONFALREADY "\200\052" /* In Conference Already */ |
Definition at line 801 of file chan_skinny.c.
#define OCTAL_INFO "\200\014" /* Info */ |
Definition at line 771 of file chan_skinny.c.
#define OCTAL_INSUFBANDW "\200\067" /* Not Enough Bandwidth */ |
Definition at line 814 of file chan_skinny.c.
#define OCTAL_INTRCPT "\200\074" /* Intrcpt */ |
Definition at line 819 of file chan_skinny.c.
#define OCTAL_INUSEREMOTE "\200\037" /* In Use Remote */ |
Definition at line 790 of file chan_skinny.c.
#define OCTAL_INVALCONFPART "\200\051" /* Invalid Conference Participant */ |
Definition at line 800 of file chan_skinny.c.
#define OCTAL_IPADD "\200\150" /* IP Address */ |
Definition at line 863 of file chan_skinny.c.
#define OCTAL_JOIN "\200\017" /* Join */ |
Definition at line 774 of file chan_skinny.c.
#define OCTAL_KEYNOTACTIVE "\200\055" /* Key Is Not Active */ |
Definition at line 804 of file chan_skinny.c.
#define OCTAL_LINEINUSE "\200\032" /* Line In Use */ |
Definition at line 785 of file chan_skinny.c.
#define OCTAL_MACADD "\200\145" /* Mac Address */ |
Definition at line 860 of file chan_skinny.c.
#define OCTAL_MAXPARTEXCEED "\200\054" /* Exceed Maximum Parties */ |
Definition at line 803 of file chan_skinny.c.
#define OCTAL_MCID "\200\114" /* MCID */ |
Definition at line 835 of file chan_skinny.c.
#define OCTAL_MCIDSUCCESS "\200\124" /* Mcid Successful */ |
Definition at line 843 of file chan_skinny.c.
#define OCTAL_MEETME "\200\020" /* MeetMe */ |
Definition at line 775 of file chan_skinny.c.
#define OCTAL_NETCNGREROUT "\200\102" /* Network congestion,rerouting */ |
Definition at line 825 of file chan_skinny.c.
#define OCTAL_NEWCALL "\200\002" /* New Call */ |
Definition at line 761 of file chan_skinny.c.
#define OCTAL_NOCONFBRDG "\200\047" /* No Conference Bridge */ |
Definition at line 798 of file chan_skinny.c.
#define OCTAL_NOPARTINFO "\200\053" /* No Participant Info */ |
Definition at line 802 of file chan_skinny.c.
#define OCTAL_NOPRIMARYCTL "\200\050" /* Can Not Hold Primary Control */ |
Definition at line 799 of file chan_skinny.c.
#define OCTAL_NUMNOTCFG "\200\125" /* Number Not Configured */ |
Definition at line 844 of file chan_skinny.c.
#define OCTAL_OFFHOOK "\200\024" /* Off Hook */ |
Definition at line 779 of file chan_skinny.c.
#define OCTAL_ONHOOK "\200\025" /* On Hook */ |
Definition at line 780 of file chan_skinny.c.
#define OCTAL_OPICKUP "\200\133" /* OPickUp */ |
Definition at line 850 of file chan_skinny.c.
#define OCTAL_PARK "\200\016" /* Park */ |
Definition at line 773 of file chan_skinny.c.
#define OCTAL_PARKAT "\200\041" /* Call park At */ |
Definition at line 792 of file chan_skinny.c.
#define OCTAL_PARKNO "\200\065" /* Park Number */ |
Definition at line 812 of file chan_skinny.c.
#define OCTAL_PARKNONUM "\200\107" /* No Park Number Available */ |
Definition at line 830 of file chan_skinny.c.
#define OCTAL_PARKREVERSION "\200\110" /* CallPark Reversion */ |
Definition at line 831 of file chan_skinny.c.
#define OCTAL_PICKUP "\200\021" /* PickUp */ |
Definition at line 776 of file chan_skinny.c.
#define OCTAL_PRIMONLY "\200\042" /* Primary Only */ |
Definition at line 793 of file chan_skinny.c.
#define OCTAL_PRIVATE "\200\066" /* Private */ |
Definition at line 813 of file chan_skinny.c.
#define OCTAL_QRT "\200\113" /* QRT */ |
Definition at line 834 of file chan_skinny.c.
#define OCTAL_REDIAL "\200\001" /* Redial */ |
Definition at line 760 of file chan_skinny.c.
#define OCTAL_RESUME "\200\012" /* Resume */ |
Definition at line 769 of file chan_skinny.c.
#define OCTAL_RINGOUT "\200\026" /* Ring out */ |
Definition at line 781 of file chan_skinny.c.
Referenced by setsubstate().
#define OCTAL_RMLSTC "\200\071" /* RmLstC */ |
Definition at line 816 of file chan_skinny.c.
#define OCTAL_ROUTER1 "\200\153" /* Default Router 1 */ |
Definition at line 866 of file chan_skinny.c.
#define OCTAL_ROUTER2 "\200\154" /* Default Router 2 */ |
Definition at line 867 of file chan_skinny.c.
#define OCTAL_ROUTER3 "\200\155" /* Default Router 3 */ |
Definition at line 868 of file chan_skinny.c.
#define OCTAL_ROUTER4 "\200\156" /* Default Router 4 */ |
Definition at line 869 of file chan_skinny.c.
#define OCTAL_ROUTER5 "\200\157" /* Default Router 5 */ |
Definition at line 870 of file chan_skinny.c.
#define OCTAL_SECERROR "\200\126" /* Security Error */ |
Definition at line 845 of file chan_skinny.c.
#define OCTAL_SELECT "\200\116" /* Select */ |
Definition at line 837 of file chan_skinny.c.
#define OCTAL_SETWTCH "\200\075" /* SetWtch */ |
Definition at line 820 of file chan_skinny.c.
#define OCTAL_SRVNOTACTIVE "\200\111" /* Service is not Active */ |
Definition at line 832 of file chan_skinny.c.
#define OCTAL_SUBMASK "\200\151" /* Subnet Mask */ |
Definition at line 864 of file chan_skinny.c.
#define OCTAL_TFTP1 "\200\152" /* TFTP Server 1 */ |
Definition at line 865 of file chan_skinny.c.
#define OCTAL_TMPFAIL "\200\043" /* Temp Fail */ |
Definition at line 794 of file chan_skinny.c.
#define OCTAL_TRANSFER "\200\004" /* Transfer */ |
Definition at line 763 of file chan_skinny.c.
#define OCTAL_TRNSFVM "\200\076" /* TrnsfVM */ |
Definition at line 821 of file chan_skinny.c.
#define OCTAL_UNKNUM "\200\070" /* Unknown Number */ |
Definition at line 815 of file chan_skinny.c.
#define OCTAL_URLDIRS "\200\175" /* Directories URL */ |
Definition at line 884 of file chan_skinny.c.
#define OCTAL_URLINFO "\200\174" /* Information URL */ |
Definition at line 883 of file chan_skinny.c.
#define OCTAL_URLMSGS "\200\176" /* Messages URL */ |
Definition at line 885 of file chan_skinny.c.
#define OCTAL_URLSRVS "\200\177" /* Services URL */ |
Definition at line 886 of file chan_skinny.c.
#define OCTAL_VIDBANDWNA "\200\127" /* Video Bandwidth Unavailable */ |
Definition at line 846 of file chan_skinny.c.
#define OCTAL_VIDMODE "\200\130" /* VidMode */ |
Definition at line 847 of file chan_skinny.c.
#define OCTAL_VLANADID "\200\166" /* Admin. VLAN Id */ |
Definition at line 877 of file chan_skinny.c.
#define OCTAL_VLANOPID "\200\165" /* Operational VLAN Id */ |
Definition at line 876 of file chan_skinny.c.
#define OCTAL_VOICEMAIL "\200\072" /* Voicemail */ |
Definition at line 817 of file chan_skinny.c.
#define OFFHOOK_MESSAGE 0x0006 |
Definition at line 324 of file chan_skinny.c.
Referenced by handle_message().
#define ONHOOK_MESSAGE 0x0007 |
Definition at line 330 of file chan_skinny.c.
Referenced by handle_message().
#define OPEN_RECEIVE_CHANNEL_ACK_MESSAGE 0x0022 |
Definition at line 376 of file chan_skinny.c.
Referenced by handle_message().
#define OPEN_RECEIVE_CHANNEL_MESSAGE 0x0105 |
Definition at line 664 of file chan_skinny.c.
Referenced by transmit_connect().
#define PACKET_TIMEOUT 10000 |
Definition at line 7518 of file chan_skinny.c.
Referenced by skinny_session().
#define REGISTER_ACK_MESSAGE 0x0081 |
Definition at line 410 of file chan_skinny.c.
Referenced by transmit_registerack().
#define REGISTER_AVAILABLE_LINES_MESSAGE 0x002D |
Definition at line 403 of file chan_skinny.c.
Referenced by handle_message().
#define REGISTER_MESSAGE 0x0001 |
Definition at line 288 of file chan_skinny.c.
Referenced by handle_message().
#define REGISTER_REJ_MESSAGE 0x009D |
Definition at line 641 of file chan_skinny.c.
Referenced by transmit_registerrej().
#define RESET_MESSAGE 0x009F |
Definition at line 657 of file chan_skinny.c.
Referenced by transmit_reset().
#define SELECT_SOFT_KEYS_MESSAGE 0x0110 |
Definition at line 1055 of file chan_skinny.c.
Referenced by transmit_selectsoftkeys().
#define SERVER_REQUEST_MESSAGE 0x0012 |
Definition at line 366 of file chan_skinny.c.
Referenced by handle_message().
#define SERVER_RES_MESSAGE 0x009E |
Definition at line 646 of file chan_skinny.c.
Referenced by transmit_serverres().
#define SERVICEURL_STAT_MESSAGE 0x012F |
Definition at line 1105 of file chan_skinny.c.
Referenced by transmit_serviceurlstat().
#define SERVICEURL_STATREQ_MESSAGE 0x0033 |
Definition at line 405 of file chan_skinny.c.
Referenced by handle_message().
#define SET_LAMP_MESSAGE 0x0086 |
Definition at line 442 of file chan_skinny.c.
Referenced by transmit_lamp_indication().
#define SET_MICROPHONE_MESSAGE 0x0089 |
Definition at line 455 of file chan_skinny.c.
Referenced by transmit_microphone_mode().
#define SET_RINGER_MESSAGE 0x0085 |
Definition at line 434 of file chan_skinny.c.
Referenced by transmit_ringer_mode().
#define SET_SPEAKER_MESSAGE 0x0088 |
Definition at line 449 of file chan_skinny.c.
Referenced by transmit_speaker_mode().
#define SKINNY_ALERT 0x24 |
Definition at line 1307 of file chan_skinny.c.
Referenced by setsubstate().
#define SKINNY_BARGIN 0x43 |
Definition at line 1313 of file chan_skinny.c.
#define SKINNY_BEEPBONK 0x33 |
Definition at line 1312 of file chan_skinny.c.
#define SKINNY_BUSY 6 |
Definition at line 1291 of file chan_skinny.c.
Referenced by callstate2str(), and setsubstate().
#define SKINNY_BUSYTONE 0x23 |
Definition at line 1306 of file chan_skinny.c.
Referenced by setsubstate().
#define SKINNY_CALLREMOTEMULTILINE 13 |
Definition at line 1298 of file chan_skinny.c.
Referenced by setsubstate(), and skinny_extensionstate_cb().
#define SKINNY_CALLWAIT 9 |
Definition at line 1294 of file chan_skinny.c.
Referenced by callstate2str(), and setsubstate().
#define SKINNY_CALLWAITTONE 0x2D |
Definition at line 1309 of file chan_skinny.c.
Referenced by setsubstate().
#define SKINNY_CFWD_ALL (1 << 0) |
Definition at line 1327 of file chan_skinny.c.
Referenced by _skinny_show_line(), handle_soft_key_event_message(), handle_stimulus_message(), set_callforwards(), skinny_new(), skinny_register(), and transmit_cfwdstate().
#define SKINNY_CFWD_BUSY (1 << 1) |
Definition at line 1328 of file chan_skinny.c.
Referenced by _skinny_show_line(), handle_soft_key_event_message(), handle_stimulus_message(), set_callforwards(), skinny_new(), skinny_register(), and transmit_cfwdstate().
#define SKINNY_CFWD_NOANSWER (1 << 2) |
Definition at line 1329 of file chan_skinny.c.
Referenced by _skinny_show_line(), handle_soft_key_event_message(), handle_stimulus_message(), set_callforwards(), skinny_new(), skinny_register(), and transmit_cfwdstate().
#define SKINNY_CONGESTION 7 |
Definition at line 1292 of file chan_skinny.c.
Referenced by callstate2str(), and setsubstate().
#define SKINNY_CONNECTED 5 |
Definition at line 1290 of file chan_skinny.c.
Referenced by callstate2str(), setsubstate(), skinny_autoanswer_cb(), and skinny_extensionstate_cb().
#define SKINNY_CX_CONF 3 |
Definition at line 1335 of file chan_skinny.c.
#define SKINNY_CX_CONFERENCE 3 |
Definition at line 1336 of file chan_skinny.c.
#define SKINNY_CX_INACTIVE 4 |
Definition at line 1338 of file chan_skinny.c.
Referenced by skinny_new().
#define SKINNY_CX_MUTE 4 |
Definition at line 1337 of file chan_skinny.c.
#define SKINNY_CX_RECVONLY 1 |
Definition at line 1333 of file chan_skinny.c.
Referenced by setsubstate().
#define SKINNY_CX_SENDONLY 0 |
Definition at line 1332 of file chan_skinny.c.
#define SKINNY_CX_SENDRECV 2 |
Definition at line 1334 of file chan_skinny.c.
Referenced by skinny_answer().
Definition at line 157 of file chan_skinny.c.
Referenced by _transmit_displayprinotify(), _transmit_displayprinotifyvar(), accept_thread(), activatesub(), destroy_rtp(), dialandactivatesub(), dumpsub(), handle_button_template_req_message(), handle_capabilities_res_message(), handle_keepalive_message(), handle_keypad_button_message(), handle_message(), handle_open_receive_channel_ack_message(), handle_soft_key_event_message(), handle_stimulus_message(), setsubstate(), skinny_answer(), skinny_call(), skinny_cfwd_cb(), skinny_dialer(), skinny_dialer_cb(), skinny_extensionstate_cb(), skinny_get_rtp_peer(), skinny_hangup(), skinny_indicate(), skinny_new(), skinny_sched_add(), skinny_sched_del(), skinny_set_rtp_peer(), skinny_transfer_attended(), skinny_transfer_blind(), start_rtp(), transmit_activatecallplane(), transmit_backspace(), transmit_callinfo(), transmit_callinfo_variable(), transmit_callstate(), transmit_capabilitiesreq(), transmit_cfwdstate(), transmit_clear_display_message(), transmit_clearprinotify(), transmit_clearpromptmessage(), transmit_closereceivechannel(), transmit_connect(), transmit_definetimedate(), transmit_dialednumber(), transmit_displaynotify(), transmit_displaypromptstatus(), transmit_displaypromptstatusvar(), transmit_keepaliveack(), transmit_lamp_indication(), transmit_linestatres(), transmit_microphone_mode(), transmit_registerack(), transmit_registerrej(), transmit_reset(), transmit_ringer_mode(), transmit_selectsoftkeys(), transmit_serverres(), transmit_serviceurlstat(), transmit_softkeysetres(), transmit_softkeytemplateres(), transmit_speaker_mode(), transmit_speeddialstatres(), transmit_start_tone(), transmit_startmediatransmission(), transmit_stop_tone(), transmit_stopmediatransmission(), transmit_versionres(), and update_connectedline().
#define SKINNY_DEVICE_12 4 |
Definition at line 1246 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_12SP 3 |
Definition at line 1245 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_12SPPLUS 2 |
Definition at line 1244 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_30SPPLUS 1 |
Definition at line 1243 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_30VIP 5 |
Definition at line 1247 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7902 30008 |
Definition at line 1273 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7905 20000 |
Definition at line 1269 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7906 369 |
Definition at line 1262 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7910 6 |
Definition at line 1248 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7911 307 |
Definition at line 1257 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7912 30007 |
Definition at line 1272 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7914 124 /* Expansion module */ |
Definition at line 1255 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7920 30002 |
Definition at line 1270 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7921 365 |
Definition at line 1261 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7931 348 |
Definition at line 1260 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7935 9 |
Definition at line 1251 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7936 30019 |
Definition at line 1276 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7937 431 |
Definition at line 1264 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7940 8 |
Definition at line 1250 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7941 115 |
Definition at line 1253 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7941GE 309 |
Definition at line 1259 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7942 434 |
Definition at line 1265 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7945 435 |
Definition at line 1266 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7960 7 |
Definition at line 1249 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7961 30018 |
Definition at line 1275 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7961GE 308 |
Definition at line 1258 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7962 404 /* Not found */ |
Definition at line 1263 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7965 436 |
Definition at line 1267 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7970 30006 |
Definition at line 1271 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7971 119 |
Definition at line 1254 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7975 437 |
Definition at line 1268 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_7985 302 |
Definition at line 1256 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_ATA186 12 /* Cisco ATA-186 */ |
Definition at line 1252 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_CIPC 30016 /* Cisco IP Communicator */ |
Definition at line 1274 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_NONE 0 |
Definition at line 1242 of file chan_skinny.c.
Referenced by device2str().
#define SKINNY_DEVICE_OPTIONS |
Definition at line 1561 of file chan_skinny.c.
#define SKINNY_DEVICE_SCCPGATEWAY_AN 30027 /* Analog gateway */ |
Definition at line 1277 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_SCCPGATEWAY_BRI 30028 /* BRI gateway */ |
Definition at line 1278 of file chan_skinny.c.
Referenced by device2str(), and get_button_template().
#define SKINNY_DEVICE_UNKNOWN -1 |
Definition at line 1241 of file chan_skinny.c.
Referenced by device2str().
#define SKINNY_DEVICECONTAINER 1 |
Definition at line 1544 of file chan_skinny.c.
#define SKINNY_DIALTONE 0x21 |
Definition at line 1305 of file chan_skinny.c.
Referenced by handle_soft_key_event_message(), and setsubstate().
#define SKINNY_HOLD 8 |
Definition at line 1293 of file chan_skinny.c.
Referenced by callstate2str(), setsubstate(), and skinny_extensionstate_cb().
#define SKINNY_INCOMING 1 |
Definition at line 1301 of file chan_skinny.c.
Referenced by handle_offhook_message(), handle_soft_key_event_message(), handle_stimulus_message(), push_callinfo(), send_callinfo(), and skinny_request().
#define SKINNY_INVALID 14 |
Definition at line 1299 of file chan_skinny.c.
#define SKINNY_LAMP_BLINK 5 |
Definition at line 1320 of file chan_skinny.c.
Referenced by mwi_event_cb(), setsubstate(), and skinny_extensionstate_cb().
#define SKINNY_LAMP_FLASH 4 |
Definition at line 1319 of file chan_skinny.c.
Referenced by skinny_extensionstate_cb().
#define SKINNY_LAMP_OFF 1 |
Definition at line 1316 of file chan_skinny.c.
Referenced by handle_soft_key_event_message(), handle_stimulus_message(), mwi_event_cb(), setsubstate(), and skinny_extensionstate_cb().
#define SKINNY_LAMP_ON 2 |
Definition at line 1317 of file chan_skinny.c.
Referenced by handle_offhook_message(), handle_soft_key_event_message(), handle_stimulus_message(), mwi_event_cb(), and skinny_extensionstate_cb().
#define SKINNY_LAMP_WINK 3 |
Definition at line 1318 of file chan_skinny.c.
Referenced by setsubstate(), and skinny_extensionstate_cb().
#define SKINNY_LINE_OPTIONS |
Definition at line 1420 of file chan_skinny.c.
#define SKINNY_LINECONTAINER 2 |
Definition at line 1545 of file chan_skinny.c.
Referenced by config_line().
#define SKINNY_MAX_CAPABILITIES 18 |
Definition at line 346 of file chan_skinny.c.
Referenced by handle_capabilities_res_message().
#define SKINNY_MAX_PACKET 2000 |
Definition at line 188 of file chan_skinny.c.
Referenced by skinny_session(), and transmit_response_bysession().
#define SKINNY_MICOFF 2 |
Definition at line 1284 of file chan_skinny.c.
Referenced by setsubstate().
#define SKINNY_MICON 1 |
Definition at line 1283 of file chan_skinny.c.
#define SKINNY_NOTONE 0x7F |
Definition at line 1314 of file chan_skinny.c.
#define SKINNY_OFFHOOK 1 |
Definition at line 1286 of file chan_skinny.c.
Referenced by callstate2str(), handle_enbloc_call_message(), handle_offhook_message(), handle_soft_key_event_message(), handle_stimulus_message(), setsubstate(), and skinny_dialer().
#define SKINNY_ONHOOK 2 |
Definition at line 1287 of file chan_skinny.c.
Referenced by callstate2str(), dumpsub(), get_devicestate(), handle_onhook_message(), handle_soft_key_event_message(), setsubstate(), skinny_call(), and skinny_extensionstate_cb().
#define SKINNY_OUTGOING 2 |
Definition at line 1302 of file chan_skinny.c.
Referenced by handle_callforward_button(), handle_enbloc_call_message(), handle_offhook_message(), handle_soft_key_event_message(), handle_stimulus_message(), handle_transfer_button(), push_callinfo(), send_callinfo(), transmit_callinfo_variable(), and update_connectedline().
#define SKINNY_PARK 11 |
Definition at line 1296 of file chan_skinny.c.
#define SKINNY_PROGRESS 12 |
Definition at line 1297 of file chan_skinny.c.
Referenced by callstate2str(), and setsubstate().
#define SKINNY_REORDER 0x25 |
Definition at line 1308 of file chan_skinny.c.
Referenced by setsubstate(), skinny_dialer(), and skinny_newcall().
#define SKINNY_RING_FEATURE 4 |
Definition at line 1325 of file chan_skinny.c.
#define SKINNY_RING_INSIDE 2 |
Definition at line 1323 of file chan_skinny.c.
Referenced by setsubstate().
#define SKINNY_RING_OFF 1 |
Definition at line 1322 of file chan_skinny.c.
Referenced by handle_offhook_message(), handle_soft_key_event_message(), handle_stimulus_message(), setsubstate(), and skinny_extensionstate_cb().
#define SKINNY_RING_OUTSIDE 3 |
Definition at line 1324 of file chan_skinny.c.
#define SKINNY_RINGIN 4 |
Definition at line 1289 of file chan_skinny.c.
Referenced by callstate2str(), setsubstate(), and skinny_extensionstate_cb().
#define SKINNY_RINGOUT 3 |
Definition at line 1288 of file chan_skinny.c.
Referenced by callstate2str(), and setsubstate().
#define SKINNY_SDCONTAINER 4 |
Definition at line 1547 of file chan_skinny.c.
Referenced by config_parse_variables(), and skinny_extensionstate_cb().
#define SKINNY_SILENCE 0x00 /* Note sure this is part of the protocol, remove? */ |
Definition at line 1304 of file chan_skinny.c.
#define SKINNY_SPEAKEROFF 2 |
Definition at line 1281 of file chan_skinny.c.
Referenced by dumpsub().
#define SKINNY_SPEAKERON 1 |
Definition at line 1280 of file chan_skinny.c.
Referenced by handle_soft_key_event_message(), handle_stimulus_message(), and setsubstate().
#define SKINNY_SUBLINECONTAINER 3 |
Definition at line 1546 of file chan_skinny.c.
Referenced by config_parse_variables(), and skinny_extensionstate_cb().
#define SKINNY_TRANSFER 10 |
Definition at line 1295 of file chan_skinny.c.
#define SKINNY_ZIP 0x32 |
Definition at line 1311 of file chan_skinny.c.
Referenced by setsubstate().
#define SKINNY_ZIPZIP 0x31 |
Definition at line 1310 of file chan_skinny.c.
#define SOFT_KEY_EVENT_MESSAGE 0x0026 |
Definition at line 393 of file chan_skinny.c.
Referenced by handle_message().
#define SOFT_KEY_SET_REQ_MESSAGE 0x0025 |
Definition at line 391 of file chan_skinny.c.
Referenced by handle_message().
#define SOFT_KEY_SET_RES_MESSAGE 0x0109 |
Definition at line 1040 of file chan_skinny.c.
Referenced by transmit_softkeysetres().
#define SOFT_KEY_TEMPLATE_REQ_MESSAGE 0x0028 |
Definition at line 401 of file chan_skinny.c.
Referenced by handle_message().
#define SOFT_KEY_TEMPLATE_RES_MESSAGE 0x0108 |
Definition at line 682 of file chan_skinny.c.
Referenced by transmit_softkeytemplateres().
#define SOFTKEY_ANSWER 0x0B |
Definition at line 720 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_BKSPC 0x08 |
Definition at line 717 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_CFWDALL 0x05 |
Definition at line 714 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_CFWDBUSY 0x06 |
Definition at line 715 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_CFWDNOANSWER 0x07 |
Definition at line 716 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_CONFRN 0x0D |
Definition at line 722 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_DND 0x13 |
Definition at line 728 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_ENDCALL 0x09 |
Definition at line 718 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_FORCEDIAL 0x15 |
Definition at line 730 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_GPICKUP 0x12 |
Definition at line 727 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_HOLD 0x03 |
Definition at line 712 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_IDIVERT 0x14 |
Definition at line 729 of file chan_skinny.c.
#define SOFTKEY_INFO 0x0C |
Definition at line 721 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_JOIN 0x0F |
Definition at line 724 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_MEETME 0x10 |
Definition at line 725 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_NEWCALL 0x02 |
Definition at line 711 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_NONE 0x00 |
Definition at line 709 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_PARK 0x0E |
Definition at line 723 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_PICKUP 0x11 |
Definition at line 726 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_REDIAL 0x01 |
Definition at line 710 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_RESUME 0x0A |
Definition at line 719 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SOFTKEY_TRNSFER 0x04 |
Definition at line 713 of file chan_skinny.c.
Referenced by handle_soft_key_event_message().
#define SPEED_DIAL_STAT_REQ_MESSAGE 0x000A |
Definition at line 353 of file chan_skinny.c.
Referenced by handle_message().
#define SPEED_DIAL_STAT_RES_MESSAGE 0x0091 |
Definition at line 533 of file chan_skinny.c.
Referenced by transmit_speeddialstatres().
#define START_MEDIA_TRANSMISSION_MESSAGE 0x008A |
Definition at line 460 of file chan_skinny.c.
Referenced by transmit_startmediatransmission().
#define START_TONE_MESSAGE 0x0082 |
Definition at line 419 of file chan_skinny.c.
Referenced by transmit_start_tone().
#define STIMULUS_AUTOANSWER 0x11 |
Definition at line 583 of file chan_skinny.c.
#define STIMULUS_CALLPARK 0x7E |
Definition at line 587 of file chan_skinny.c.
Referenced by handle_stimulus_message().
#define STIMULUS_CALLPICKUP 0x7F |
Definition at line 588 of file chan_skinny.c.
#define STIMULUS_CONFERENCE 0x7D |
Definition at line 586 of file chan_skinny.c.
Referenced by handle_stimulus_message().
#define STIMULUS_DISPLAY 0x08 |
Definition at line 580 of file chan_skinny.c.
Referenced by handle_stimulus_message().
#define STIMULUS_DND 0x3F |
Definition at line 585 of file chan_skinny.c.
Referenced by handle_soft_key_event_message(), and handle_stimulus_message().
#define STIMULUS_FORWARDALL 0x05 |
Definition at line 577 of file chan_skinny.c.
Referenced by handle_stimulus_message().
#define STIMULUS_FORWARDBUSY 0x06 |
Definition at line 578 of file chan_skinny.c.
Referenced by handle_stimulus_message().
#define STIMULUS_FORWARDNOANSWER 0x07 |
Definition at line 579 of file chan_skinny.c.
Referenced by handle_stimulus_message().
#define STIMULUS_HOLD 0x03 |
Definition at line 575 of file chan_skinny.c.
Referenced by handle_stimulus_message().
#define STIMULUS_LINE 0x09 |
Definition at line 581 of file chan_skinny.c.
Referenced by handle_offhook_message(), handle_soft_key_event_message(), handle_stimulus_message(), setsubstate(), and skinny_extensionstate_cb().
#define STIMULUS_MESSAGE 0x0005 |
Definition at line 317 of file chan_skinny.c.
Referenced by handle_message().
#define STIMULUS_NONE 0xFF |
Definition at line 589 of file chan_skinny.c.
#define STIMULUS_REDIAL 0x01 |
Definition at line 573 of file chan_skinny.c.
Referenced by handle_stimulus_message().
#define STIMULUS_SERVICEURL 0x14 |
Definition at line 584 of file chan_skinny.c.
#define STIMULUS_SPEEDDIAL 0x02 |
Definition at line 574 of file chan_skinny.c.
Referenced by handle_stimulus_message().
#define STIMULUS_TRANSFER 0x04 |
Definition at line 576 of file chan_skinny.c.
Referenced by handle_stimulus_message().
#define STIMULUS_VOICEMAIL 0x0F |
Definition at line 582 of file chan_skinny.c.
Referenced by handle_stimulus_message(), and mwi_event_cb().
#define STOP_MEDIA_TRANSMISSION_MESSAGE 0x008B |
Definition at line 492 of file chan_skinny.c.
Referenced by transmit_stopmediatransmission().
#define STOP_TONE_MESSAGE 0x0083 |
Definition at line 427 of file chan_skinny.c.
Referenced by transmit_stop_tone().
#define SUBSTATE2STR_BUFSIZE 15 |
Definition at line 276 of file chan_skinny.c.
Referenced by substate2str().
#define SUBSTATE_BUSY 6 |
Definition at line 1377 of file chan_skinny.c.
Referenced by setsubstate(), skinny_indicate(), and substate2str().
#define SUBSTATE_CALLWAIT 9 |
Definition at line 1380 of file chan_skinny.c.
Referenced by activatesub(), dumpsub(), setsubstate(), and substate2str().
#define SUBSTATE_CONGESTION 7 |
Definition at line 1378 of file chan_skinny.c.
Referenced by setsubstate(), skinny_indicate(), and substate2str().
#define SUBSTATE_CONNECTED 5 |
Definition at line 1376 of file chan_skinny.c.
Referenced by handle_hold_button(), handle_offhook_message(), handle_soft_key_event_message(), handle_stimulus_message(), setsubstate(), skinny_answer(), skinny_call(), and substate2str().
#define SUBSTATE_DIALING 101 |
Definition at line 1382 of file chan_skinny.c.
Referenced by dialandactivatesub(), setsubstate(), and substate2str().
#define SUBSTATE_HOLD 8 |
Definition at line 1379 of file chan_skinny.c.
Referenced by activatesub(), dumpsub(), get_devicestate(), handle_hold_button(), handle_offhook_message(), handle_soft_key_event_message(), handle_transfer_button(), setsubstate(), and substate2str().
#define SUBSTATE_OFFHOOK 1 |
Definition at line 1372 of file chan_skinny.c.
Referenced by handle_callforward_button(), handle_offhook_message(), handle_soft_key_event_message(), handle_stimulus_message(), handle_transfer_button(), setsubstate(), skinny_dialer(), and substate2str().
#define SUBSTATE_ONHOOK 2 |
Definition at line 1373 of file chan_skinny.c.
Referenced by activatesub(), dumpsub(), setsubstate(), and substate2str().
#define SUBSTATE_PROGRESS 12 |
Definition at line 1381 of file chan_skinny.c.
Referenced by setsubstate(), skinny_indicate(), and substate2str().
#define SUBSTATE_RINGIN 4 |
Definition at line 1375 of file chan_skinny.c.
Referenced by activatesub(), dumpsub(), setsubstate(), skinny_call(), and substate2str().
#define SUBSTATE_RINGOUT 3 |
Definition at line 1374 of file chan_skinny.c.
Referenced by setsubstate(), skinny_indicate(), and substate2str().
#define SUBSTATE_UNSET 0 |
Definition at line 1371 of file chan_skinny.c.
Referenced by handle_stimulus_message(), skinny_request(), and substate2str().
#define TIME_DATE_REQ_MESSAGE 0x000D |
Definition at line 363 of file chan_skinny.c.
Referenced by handle_message().
#define TYPE_DEF_DEVICE 2 |
Definition at line 7760 of file chan_skinny.c.
Referenced by config_load(), and config_parse_variables().
#define TYPE_DEF_LINE 4 |
Definition at line 7761 of file chan_skinny.c.
Referenced by config_load(), and config_parse_variables().
#define TYPE_DEVICE 8 |
Definition at line 7762 of file chan_skinny.c.
Referenced by config_device(), and config_parse_variables().
#define TYPE_GENERAL 1 |
Definition at line 7759 of file chan_skinny.c.
Referenced by config_load(), and config_parse_variables().
#define TYPE_LINE 16 |
Definition at line 7763 of file chan_skinny.c.
Referenced by config_line(), and config_parse_variables().
#define UNREGISTER_MESSAGE 0x0027 |
Definition at line 400 of file chan_skinny.c.
Referenced by handle_message().
#define VERSION_REQ_MESSAGE 0x000F |
Definition at line 365 of file chan_skinny.c.
Referenced by handle_message().
#define VERSION_RES_MESSAGE 0x0098 |
Definition at line 623 of file chan_skinny.c.
Referenced by transmit_versionres().
enum skinny_codecs |
Enumerator | |
---|---|
SKINNY_CODEC_ALAW | |
SKINNY_CODEC_ULAW | |
SKINNY_CODEC_G722 | |
SKINNY_CODEC_G723_1 | |
SKINNY_CODEC_G729A | |
SKINNY_CODEC_G726_32 | |
SKINNY_CODEC_H261 | |
SKINNY_CODEC_H263 |
Definition at line 175 of file chan_skinny.c.
|
static |
Definition at line 278 of file chan_skinny.c.
|
static |
Definition at line 272 of file chan_skinny.c.
|
static |
Definition at line 269 of file chan_skinny.c.
|
static |
Definition at line 265 of file chan_skinny.c.
|
static |
Definition at line 275 of file chan_skinny.c.
|
static |
Definition at line 8832 of file chan_skinny.c.
|
static |
Definition at line 8832 of file chan_skinny.c.
|
static |
Definition at line 4702 of file chan_skinny.c.
References AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, CLI_SHOWUSAGE, CLI_SUCCESS, d, skinny_device::list, priority, and transmit_clearprinotify().
Referenced by handle_skinny_message_clear().
|
static |
Definition at line 4652 of file chan_skinny.c.
References ast_copy_string(), AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, CLI_SHOWUSAGE, CLI_SUCCESS, d, skinny_device::list, priority, send_displayprinotify(), and timeout.
Referenced by handle_skinny_message_set().
|
static |
Definition at line 4192 of file chan_skinny.c.
References skinny_device::addons, ast_cli(), ast_format_cap_get_names(), AST_FORMAT_CAP_NAMES_LEN, ast_inet_ntoa(), AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_str_alloca, astman_append(), skinny_device::cap, CLI_SHOWUSAGE, CLI_SUCCESS, skinny_device::confcap, d, device2str(), skinny_serviceurl::displayName, skinny_speeddial::exten, skinny_speeddial::isHint, skinny_speeddial::label, skinny_device::lines, S_OR, skinny_device::serviceurls, skinny_device::session, skinnysession::sin, skinny_device::speeddials, skinny_addon::type, and skinny_serviceurl::url.
Referenced by handle_skinny_show_device(), and manager_skinny_show_device().
|
static |
Definition at line 4088 of file chan_skinny.c.
References ast_cli(), ast_inet_ntoa(), AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_strlen_zero, astman_append(), astman_get_header(), CLI_SHOWUSAGE, CLI_SUCCESS, d, device2str(), id, skinny_device::lines, skinny_line::list, skinny_device::session, and skinnysession::sin.
Referenced by handle_skinny_show_devices(), and manager_skinny_show_devices().
|
static |
Definition at line 4443 of file chan_skinny.c.
References ast_callerid_merge(), ast_channel_amaflags2string(), ast_cli(), ast_format_cap_get_names(), AST_FORMAT_CAP_NAMES_LEN, AST_LIST_FIRST, AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_print_group(), ast_print_namedgroups(), ast_str_alloca, ast_str_reset(), astman_append(), skinny_line::cap, CLI_SHOWUSAGE, CLI_SUCCESS, skinny_line::confcap, skinny_subline::context, d, skinny_subline::exten, skinny_device::lines, skinny_subline::name, S_COR, S_OR, SKINNY_CFWD_ALL, SKINNY_CFWD_BUSY, SKINNY_CFWD_NOANSWER, and skinny_line::sublines.
Referenced by handle_skinny_show_line(), and manager_skinny_show_line().
|
static |
Definition at line 4324 of file chan_skinny.c.
References skinny_line::activesub, ao2_cleanup, ast_channel_bridge_peer(), ast_channel_name(), ast_cli(), AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_strlen_zero, astman_append(), astman_get_header(), CLI_SHOWUSAGE, CLI_SUCCESS, skinny_line::device, id, skinny_subchannel::list, skinny_subchannel::owner, RAII_VAR, sub, and skinny_line::sub.
Referenced by handle_skinny_show_lines(), and manager_skinny_show_lines().
|
static |
Definition at line 2847 of file chan_skinny.c.
References ast_copy_string(), skinny_req::data, DEBUG_PACKET, DISPLAY_PRINOTIFY_MESSAGE, skinny_data::displayprinotify, htolel, display_prinotify_message::priority, req_alloc(), SKINNY_DEBUG, display_prinotify_message::text, display_prinotify_message::timeout, and transmit_response().
Referenced by send_displayprinotify().
|
static |
Definition at line 2872 of file chan_skinny.c.
References ast_copy_string(), skinny_req::data, DEBUG_PACKET, DISPLAY_PRINOTIFY_MESSAGE_VARIABLE, skinny_data::displayprinotifyvar, htolel, skinny_req::len, MAXDISPLAYNOTIFYSTR, display_prinotify_message_variable::priority, req_alloc(), SKINNY_DEBUG, display_prinotify_message_variable::text, display_prinotify_message_variable::timeout, and transmit_response().
Referenced by send_displayprinotify().
|
static |
Definition at line 7657 of file chan_skinny.c.
References ast_atomic_fetchadd_int(), ast_calloc, ast_log, ast_mutex_init, ast_pthread_create, AST_PTHREADT_NULL, auth_limit, skinnysession::auth_timeout_sched, DEBUG_THREAD, destroy_session(), errno, skinnysession::fd, skinnysession::keepalive_timeout_sched, skinnysession::lock, LOG_NOTICE, LOG_WARNING, NULL, skinnysession::sin, SKINNY_DEBUG, skinny_session(), skinnysock, skinnysession::t, and unauth_sessions.
Referenced by config_load().
|
static |
Definition at line 6049 of file chan_skinny.c.
References skinny_line::activesub, skinny_subchannel::callid, DEBUG_SUB, skinny_subchannel::line, setsubstate(), SKINNY_DEBUG, sub, skinny_subchannel::substate, SUBSTATE_CALLWAIT, SUBSTATE_HOLD, SUBSTATE_ONHOOK, and SUBSTATE_RINGIN.
Referenced by dialandactivatesub(), handle_hold_button(), and handle_soft_key_event_message().
|
static |
implement the setvar config line
Definition at line 1993 of file chan_skinny.c.
References ast_strdupa, ast_variable_new, ast_variable::next, and NULL.
Referenced by config_parse_variables().
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 8832 of file chan_skinny.c.
|
static |
Definition at line 2342 of file chan_skinny.c.
References ast_threadstorage_get(), CALLSTATE2STR_BUFSIZE, callstate2str_threadbuf, SKINNY_BUSY, SKINNY_CALLWAIT, SKINNY_CONGESTION, SKINNY_CONNECTED, SKINNY_HOLD, SKINNY_OFFHOOK, SKINNY_ONHOOK, SKINNY_PROGRESS, SKINNY_RINGIN, SKINNY_RINGOUT, and tmp().
Referenced by transmit_callstate().
|
static |
Definition at line 2187 of file chan_skinny.c.
References ast_context_destroy_by_name(), ast_copy_string(), AST_MAX_CONTEXT, NULL, and strsep().
Referenced by config_parse_variables().
|
static |
Definition at line 2129 of file chan_skinny.c.
References ast_format_alaw, ast_format_cmp(), AST_FORMAT_CMP_EQUAL, ast_format_g722, ast_format_g723, ast_format_g726, ast_format_g729, ast_format_h261, ast_format_h263, ast_format_ulaw, SKINNY_CODEC_ALAW, SKINNY_CODEC_G722, SKINNY_CODEC_G723_1, SKINNY_CODEC_G726_32, SKINNY_CODEC_G729A, SKINNY_CODEC_H261, SKINNY_CODEC_H263, and SKINNY_CODEC_ULAW.
Referenced by transmit_connect(), and transmit_startmediatransmission().
|
static |
Definition at line 2105 of file chan_skinny.c.
References ast_format_alaw, ast_format_g722, ast_format_g723, ast_format_g726, ast_format_g729, ast_format_h261, ast_format_h263, ast_format_none, ast_format_ulaw, SKINNY_CODEC_ALAW, SKINNY_CODEC_G722, SKINNY_CODEC_G723_1, SKINNY_CODEC_G726_32, SKINNY_CODEC_G729A, SKINNY_CODEC_H261, SKINNY_CODEC_H263, and SKINNY_CODEC_ULAW.
Referenced by handle_capabilities_res_message().
|
static |
Definition at line 3762 of file chan_skinny.c.
References ast_copy_string(), ast_strdup, buf, and NULL.
Referenced by handle_skinny_set_debug().
|
static |
Definition at line 3904 of file chan_skinny.c.
References AST_LIST_TRAVERSE, ast_strdup, d, skinny_device::list, and NULL.
Referenced by complete_skinny_reset(), complete_skinny_show_device(), and complete_skinny_show_line().
|
static |
Definition at line 3923 of file chan_skinny.c.
References ast_cli_complete(), complete_skinny_devices(), and NULL.
Referenced by handle_skinny_reset().
|
static |
Definition at line 3918 of file chan_skinny.c.
References complete_skinny_devices(), and NULL.
Referenced by handle_skinny_message_clear(), handle_skinny_message_set(), and handle_skinny_show_device().
|
static |
Definition at line 3940 of file chan_skinny.c.
References ast_cli_complete(), AST_LIST_TRAVERSE, ast_strdup, complete_skinny_devices(), d, skinny_device::lines, skinny_line::list, and NULL.
Referenced by handle_skinny_show_line().
|
static |
Definition at line 8350 of file chan_skinny.c.
References skinny_device::activeline, skinny_line::activesub, skinny_device::addr, ast_copy_string(), ast_format_cap_append_from_cap(), AST_LIST_EMPTY, AST_LIST_FIRST, AST_LIST_INSERT_TAIL, AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_log, AST_MEDIA_TYPE_UNKNOWN, ast_mutex_init, ast_mutex_lock, ast_mutex_unlock, ast_verb, skinny_device::confcap, config_parse_variables(), d, DEFAULT_SKINNY_PORT, skinnysession::device, skinny_subchannel::line, skinny_device::lines, skinny_subchannel::list, skinny_line::lock, skinny_device::lock, LOG_ERROR, LOG_NOTICE, NULL, skinny_device::session, skinny_device_alloc(), skinnyreload, sub, skinny_line::sub, TYPE_DEVICE, and update().
Referenced by config_load().
|
static |
Definition at line 8285 of file chan_skinny.c.
References ast_calloc, ast_copy_string(), ast_format_cap_append_from_cap(), AST_LIST_INSERT_TAIL, AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_log, AST_MEDIA_TYPE_UNKNOWN, ast_mutex_init, ast_mutex_lock, ast_mutex_unlock, ast_mwi_subscribe_pool(), ast_strlen_zero, ast_verb, skinny_line::confcap, config_parse_variables(), container, skinny_line::container, skinny_container::data, skinny_line::lock, LOG_NOTICE, LOG_WARNING, mwi_event_cb(), skinny_line::mwi_event_sub, NULL, skinny_line_alloc(), skinny_line_destroy(), SKINNY_LINECONTAINER, skinnyreload, skinny_container::type, TYPE_LINE, update(), and vmexten.
Referenced by config_load().
|
static |
Definition at line 8443 of file chan_skinny.c.
References __ourip, accept_t, accept_thread(), ahp, ast_category_browse(), ast_config_destroy(), ast_config_load, ast_gethostbyname(), ast_inet_ntoa(), ast_log, ast_mutex_lock, ast_mutex_unlock, ast_pthread_create_background, ast_set_qos(), ast_variable_browse(), ast_verb, bindaddr, config, config_device(), config_line(), config_parse_variables(), CONFIG_STATUS_FILEINVALID, DEFAULT_SKINNY_BACKLOG, DEFAULT_SKINNY_PORT, errno, global_jbconf, hp, immed_dialchar, LOG_ERROR, LOG_NOTICE, LOG_WARNING, netlock, NULL, ourhost, qos, skinnysock, TYPE_DEF_DEVICE, TYPE_DEF_LINE, TYPE_GENERAL, and vmexten.
Referenced by load_module(), and skinny_reload().
|
static |
Definition at line 7770 of file chan_skinny.c.
References a, add_var(), ahp, skinny_line::all, ast_append_ha(), ast_callerid_split(), ast_calloc, ast_channel_string2amaflag(), ast_context_find_or_create(), ast_copy_string(), ast_format_cap_update_by_allow_disallow(), ast_free, ast_get_group(), ast_get_ip(), ast_get_namedgroups(), ast_gethostbyname(), ast_jb_read_conf(), AST_LIST_FIRST, AST_LIST_INSERT_HEAD, AST_LIST_TRAVERSE, ast_log, AST_MAX_CONTEXT, ast_mutex_init, ast_sockaddr_to_sin, ast_str2cos(), ast_str2tos(), ast_strip(), ast_strlen_zero, ast_true(), auth_limit, auth_timeout, bindaddr, buf, CDEV, CDEV_OPTS, cleanup_stale_contexts(), CLINE, CLINE_OPTS, config, container, skinny_subline::container, skinny_speeddial::container, context, skinny_subline::context, skinny_speeddial::context, d, skinny_container::data, date_format, DEFAULT_AUTH_LIMIT, DEFAULT_AUTH_TIMEOUT, skinny_line::device, skinny_serviceurl::device, skinny_serviceurl::displayName, exten, skinny_subline::exten, skinny_speeddial::exten, global_jbconf, hp, immed_dialchar, skinny_speeddial::instance, skinny_serviceurl::instance, skinny_speeddial::isHint, keep_alive, skinny_speeddial::label, skinny_subline::line, ast_variable::lineno, skinny_device::lines, skinny_line::list, skinny_serviceurl::list, skinny_addon::list, skinny_subline::lnname, skinny_speeddial::lock, skinny_addon::lock, LOG_ERROR, LOG_WARNING, ast_variable::name, skinny_subline::name, ast_variable::next, NULL, ourport, skinny_speeddial::parent, qos, regcontext, S_OR, SKINNY_SDCONTAINER, SKINNY_SUBLINECONTAINER, ast_sockaddr::ss, skinny_subline::stname, strsep(), skinny_subline::sub, timeout, skinny_container::type, skinny_addon::type, TYPE_DEF_DEVICE, TYPE_DEF_LINE, TYPE_DEVICE, TYPE_GENERAL, TYPE_LINE, skinny_serviceurl::url, used_context, ast_variable::value, and vmexten.
Referenced by config_device(), config_line(), and config_load().
|
static |
Definition at line 5183 of file chan_skinny.c.
References AST_CONTROL_ANSWER, AST_CONTROL_BUSY, AST_CONTROL_CC, AST_CONTROL_CONGESTION, AST_CONTROL_CONNECTED_LINE, AST_CONTROL_FLASH, AST_CONTROL_HANGUP, AST_CONTROL_HOLD, AST_CONTROL_INCOMPLETE, AST_CONTROL_OFFHOOK, AST_CONTROL_OPTION, AST_CONTROL_PROCEEDING, AST_CONTROL_PROGRESS, AST_CONTROL_RADIO_KEY, AST_CONTROL_RADIO_UNKEY, AST_CONTROL_REDIRECTING, AST_CONTROL_RING, AST_CONTROL_RINGING, AST_CONTROL_SRCCHANGE, AST_CONTROL_SRCUPDATE, AST_CONTROL_T38_PARAMETERS, AST_CONTROL_TAKEOFFHOOK, AST_CONTROL_TRANSFER, AST_CONTROL_UNHOLD, AST_CONTROL_VIDUPDATE, AST_CONTROL_WINK, ast_threadstorage_get(), CONTROL2STR_BUFSIZE, control2str_threadbuf, and tmp().
Referenced by skinny_indicate().
|
static |
Definition at line 8556 of file chan_skinny.c.
References a, skinny_device::addons, ast_free, AST_LIST_LOCK, AST_LIST_REMOVE, AST_LIST_REMOVE_HEAD, AST_LIST_UNLOCK, skinny_speeddial::container, d, skinny_device::lines, skinny_serviceurl::list, skinny_device::serviceurls, skinny_device_destroy(), skinny_line_destroy(), and skinny_device::speeddials.
Referenced by unload_module().
|
static |
Definition at line 4807 of file chan_skinny.c.
References ast_rtp_instance_destroy(), ast_rtp_instance_stop(), skinny_subchannel::callid, DEBUG_AUDIO, NULL, skinny_subchannel::rtp, SKINNY_DEBUG, and skinny_subchannel::vrtp.
Referenced by skinny_hangup().
|
static |
Definition at line 7426 of file chan_skinny.c.
References ast_atomic_fetchadd_int(), ast_free, ast_mutex_destroy, ast_mutex_lock, ast_mutex_unlock, AST_PTHREADT_NULL, skinnysession::device, skinnysession::fd, skinnysession::lock, NULL, skinny_device::session, skinnysession::t, and unauth_sessions.
Referenced by accept_thread(), and skinny_session_cleanup().
|
static |
Definition at line 3999 of file chan_skinny.c.
References ast_threadstorage_get(), DEVICE2STR_BUFSIZE, device2str_threadbuf, SKINNY_DEVICE_12, SKINNY_DEVICE_12SP, SKINNY_DEVICE_12SPPLUS, SKINNY_DEVICE_30SPPLUS, SKINNY_DEVICE_30VIP, SKINNY_DEVICE_7902, SKINNY_DEVICE_7905, SKINNY_DEVICE_7906, SKINNY_DEVICE_7910, SKINNY_DEVICE_7911, SKINNY_DEVICE_7912, SKINNY_DEVICE_7914, SKINNY_DEVICE_7920, SKINNY_DEVICE_7921, SKINNY_DEVICE_7931, SKINNY_DEVICE_7935, SKINNY_DEVICE_7936, SKINNY_DEVICE_7937, SKINNY_DEVICE_7940, SKINNY_DEVICE_7941, SKINNY_DEVICE_7941GE, SKINNY_DEVICE_7942, SKINNY_DEVICE_7945, SKINNY_DEVICE_7960, SKINNY_DEVICE_7961, SKINNY_DEVICE_7961GE, SKINNY_DEVICE_7962, SKINNY_DEVICE_7965, SKINNY_DEVICE_7970, SKINNY_DEVICE_7971, SKINNY_DEVICE_7975, SKINNY_DEVICE_7985, SKINNY_DEVICE_ATA186, SKINNY_DEVICE_CIPC, SKINNY_DEVICE_NONE, SKINNY_DEVICE_SCCPGATEWAY_AN, SKINNY_DEVICE_SCCPGATEWAY_BRI, SKINNY_DEVICE_UNKNOWN, and tmp().
Referenced by _skinny_show_device(), and _skinny_show_devices().
|
static |
Definition at line 6071 of file chan_skinny.c.
References activatesub(), ast_copy_string(), skinny_subchannel::callid, d, DEBUG_SUB, skinny_line::device, skinny_subchannel::dialType, DIALTYPE_CFWD, DIALTYPE_NORMAL, DIALTYPE_XFER, dumpsub(), exten, skinny_subchannel::exten, skinny_subchannel::getforward, skinny_subchannel::line, set_callforwards(), SKINNY_DEBUG, skinny_transfer_blind(), SUBSTATE_DIALING, transmit_cfwdstate(), and transmit_displaynotify().
Referenced by handle_enbloc_call_message(), handle_soft_key_event_message(), handle_stimulus_message(), and skinny_dialer().
|
static |
Definition at line 5997 of file chan_skinny.c.
References skinny_line::activesub, AST_LIST_TRAVERSE, ast_log, skinny_subchannel::callid, d, DEBUG_SUB, skinny_line::device, skinny_subchannel::line, skinny_subchannel::list, LOG_WARNING, NULL, skinny_subchannel::related, setsubstate(), SKINNY_DEBUG, SKINNY_ONHOOK, SKINNY_SPEAKEROFF, skinny_line::sub, skinny_subchannel::substate, SUBSTATE_CALLWAIT, SUBSTATE_HOLD, SUBSTATE_ONHOOK, SUBSTATE_RINGIN, and transmit_speaker_mode().
Referenced by dialandactivatesub(), handle_callforward_button(), handle_onhook_message(), handle_soft_key_event_message(), skinny_dialer(), skinny_hangup(), and skinny_transfer_blind().
|
static |
Definition at line 2336 of file chan_skinny.c.
References skinnysession::t.
Referenced by handle_message(), skinny_noauth_cb(), skinny_nokeepalive_cb(), and transmit_response_bysession().
|
static |
Definition at line 1882 of file chan_skinny.c.
References AST_LIST_TRAVERSE, ast_log, skinny_device::lines, skinny_line::list, and LOG_WARNING.
Referenced by find_subchannel_by_instance_reference(), handle_enbloc_call_message(), handle_offhook_message(), handle_soft_key_event_message(), handle_stimulus_message(), and transmit_linestatres().
|
static |
Definition at line 1903 of file chan_skinny.c.
References ast_copy_string(), AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_log, ast_strlen_zero, d, skinny_device::lines, skinny_device::list, LOG_WARNING, and NULL.
Referenced by skinny_devicestate(), and skinny_request().
|
static |
Definition at line 2090 of file chan_skinny.c.
References AST_LIST_TRAVERSE, ast_log, skinny_speeddial::instance, skinny_speeddial::isHint, skinny_speeddial::list, LOG_WARNING, and skinny_device::speeddials.
Referenced by handle_message(), handle_stimulus_message(), and transmit_linestatres().
|
static |
Definition at line 2039 of file chan_skinny.c.
References AST_LIST_FIRST, AST_LIST_TRAVERSE, ast_log, skinny_subchannel::callid, find_line_by_instance(), skinny_subchannel::list, LOG_WARNING, NULL, sub, and skinny_line::sub.
Referenced by handle_enbloc_call_message(), handle_keypad_button_message(), handle_offhook_message(), handle_onhook_message(), handle_soft_key_event_message(), and handle_stimulus_message().
|
static |
Definition at line 2066 of file chan_skinny.c.
References AST_LIST_TRAVERSE, ast_log, skinny_subchannel::callid, skinny_device::lines, skinny_subchannel::list, LOG_WARNING, NULL, sub, and skinny_line::sub.
Referenced by handle_open_receive_channel_ack_message().
|
static |
Definition at line 1975 of file chan_skinny.c.
References AST_LIST_TRAVERSE, skinny_subline::callid, skinny_device::lines, skinny_line::list, NULL, and skinny_line::sublines.
Referenced by handle_soft_key_event_message().
|
static |
Definition at line 1949 of file chan_skinny.c.
References AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_verb, d, skinny_device::lines, skinny_device::list, skinny_subline::name, NULL, and skinny_line::sublines.
Referenced by skinny_request().
|
static |
Definition at line 1731 of file chan_skinny.c.
References a, skinny_device::addons, AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_log, BT_CALLPARK, BT_CONFERENCE, BT_CUST_LINE, BT_CUST_LINESPEEDDIAL, BT_DISPLAY, BT_FORWARDALL, BT_HOLD, BT_LINE, BT_NONE, BT_REDIAL, BT_SPEEDDIAL, BT_TRANSFER, BT_VOICEMAIL, d, skinnysession::device, skinny_addon::list, LOG_WARNING, SKINNY_DEVICE_12, SKINNY_DEVICE_12SP, SKINNY_DEVICE_12SPPLUS, SKINNY_DEVICE_30SPPLUS, SKINNY_DEVICE_30VIP, SKINNY_DEVICE_7902, SKINNY_DEVICE_7905, SKINNY_DEVICE_7906, SKINNY_DEVICE_7910, SKINNY_DEVICE_7911, SKINNY_DEVICE_7912, SKINNY_DEVICE_7914, SKINNY_DEVICE_7920, SKINNY_DEVICE_7921, SKINNY_DEVICE_7931, SKINNY_DEVICE_7935, SKINNY_DEVICE_7936, SKINNY_DEVICE_7937, SKINNY_DEVICE_7940, SKINNY_DEVICE_7941, SKINNY_DEVICE_7941GE, SKINNY_DEVICE_7942, SKINNY_DEVICE_7945, SKINNY_DEVICE_7960, SKINNY_DEVICE_7961, SKINNY_DEVICE_7961GE, SKINNY_DEVICE_7962, SKINNY_DEVICE_7965, SKINNY_DEVICE_7970, SKINNY_DEVICE_7971, SKINNY_DEVICE_7975, SKINNY_DEVICE_7985, SKINNY_DEVICE_ATA186, SKINNY_DEVICE_CIPC, SKINNY_DEVICE_SCCPGATEWAY_AN, SKINNY_DEVICE_SCCPGATEWAY_BRI, and skinny_addon::type.
Referenced by handle_button_template_req_message().
|
static |
Definition at line 5154 of file chan_skinny.c.
References AST_DEVICE_BUSY, AST_DEVICE_INUSE, AST_DEVICE_INVALID, AST_DEVICE_NOT_INUSE, AST_DEVICE_ONHOLD, AST_DEVICE_UNAVAILABLE, AST_DEVICE_UNKNOWN, AST_LIST_TRAVERSE, skinny_line::device, skinny_subchannel::list, skinny_device::session, SKINNY_ONHOOK, sub, skinny_line::sub, skinny_subchannel::substate, and SUBSTATE_HOLD.
Referenced by skinny_devicestate(), and skinny_new().
|
static |
Definition at line 6703 of file chan_skinny.c.
References AST_LIST_TRAVERSE, BT_CUST_LINE, BT_CUST_LINESPEEDDIAL, BT_LINE, BT_NONE, BT_SERVICEURL, BT_SPEEDDIAL, BUTTON_TEMPLATE_RES_MESSAGE, button_template_res_message::buttonCount, button_definition::buttonDefinition, button_definition_template::buttonDefinition, button_template_res_message::buttonOffset, skinny_data::buttontemplate, d, skinny_req::data, DEBUG_PACKET, DEBUG_TEMPLATE, button_template_res_message::definition, skinnysession::device, get_button_template(), htolel, skinny_speeddial::instance, skinny_serviceurl::instance, button_definition::instanceNumber, skinny_speeddial::isHint, skinny_device::lines, req_alloc(), skinny_device::serviceurls, SKINNY_DEBUG, skinny_device::speeddials, button_template_res_message::totalButtonCount, and transmit_response().
Referenced by handle_message().
|
static |
Definition at line 6160 of file chan_skinny.c.
References skinny_line::activesub, ast_channel_tech_pvt(), ast_log, AST_STATE_DOWN, c, d, skinny_line::device, skinny_subchannel::dialType, DIALTYPE_CFWD, dumpsub(), skinny_subchannel::getforward, LOG_WARNING, NULL, skinny_subchannel::owner, skinny_device::session, set_callforwards(), setsubstate(), skinny_new(), SKINNY_OUTGOING, sub, SUBSTATE_OFFHOOK, transmit_cfwdstate(), and transmit_displaynotify().
Referenced by handle_soft_key_event_message(), and handle_stimulus_message().
|
static |
Definition at line 6660 of file chan_skinny.c.
References ao2_ref, ast_format_cap_alloc, ast_format_cap_append, AST_FORMAT_CAP_FLAG_DEFAULT, ast_format_cap_get_compatible(), ast_format_cap_get_names(), AST_FORMAT_CAP_NAMES_LEN, ast_format_get_name(), AST_LIST_TRAVERSE, ast_log, ast_mutex_lock, ast_mutex_unlock, ast_str_alloca, skinny_line::cap, skinny_device::cap, capabilities_res_message::caps, skinny_data::caps, station_capabilities::codec, codec_skinny2ast(), codecs, skinny_line::confcap, skinny_device::confcap, capabilities_res_message::count, d, skinny_req::data, DEBUG_AUDIO, skinnysession::device, letohl, skinny_device::lines, skinny_line::lock, LOG_WARNING, SKINNY_DEBUG, and SKINNY_MAX_CAPABILITIES.
Referenced by handle_message().
|
static |
Definition at line 6942 of file chan_skinny.c.
References ast_channel_tech_pvt(), ast_log, AST_STATE_DOWN, c, enbloc_call_message::calledParty, d, skinny_req::data, skinnysession::device, dialandactivatesub(), skinny_data::enbloccallmessage, find_line_by_instance(), find_subchannel_by_instance_reference(), skinny_subchannel::line, LOG_WARNING, NULL, skinny_new(), SKINNY_OFFHOOK, SKINNY_OUTGOING, and sub.
Referenced by handle_message().
|
static |
Definition at line 6092 of file chan_skinny.c.
References activatesub(), skinny_subchannel::related, setsubstate(), skinny_subchannel::substate, SUBSTATE_CONNECTED, and SUBSTATE_HOLD.
Referenced by handle_stimulus_message().
|
static |
Definition at line 6192 of file chan_skinny.c.
Referenced by handle_message().
|
static |
Definition at line 6198 of file chan_skinny.c.
References ast_sched_add(), ast_sched_del(), ast_tv(), ast_tvadd(), ast_tvdiff_ms(), ast_tvnow(), DEBUG_KEEPALIVE, DEBUG_PACKET, skinnysession::device, keep_alive, skinnysession::keepalive_count, skinnysession::keepalive_timeout_sched, skinnysession::last_keepalive, not_used, SKINNY_DEBUG, skinny_nokeepalive_cb(), and transmit_keepaliveack().
Referenced by handle_message().
|
static |
Definition at line 6220 of file chan_skinny.c.
References skinny_device::activeline, skinny_line::activesub, AST_FRAME_DTMF_BEGIN, AST_FRAME_DTMF_END, AST_LIST_NEXT, ast_log, ast_queue_frame(), AST_STATE_UP, keypad_button_message::button, skinny_subchannel::callid, keypad_button_message::callReference, d, skinny_req::data, DEBUG_SUB, skinnysession::device, skinny_subchannel::dialer_sched, digit, skinny_subchannel::exten, find_subchannel_by_instance_reference(), ast_frame::frametype, immed_dialchar, ast_frame_subclass::integer, KEYDEF_DADFD, KEYMASK_ALL, KEYMASK_FORCEDIAL, skinny_data::keypad, len(), letohl, skinny_subchannel::line, keypad_button_message::lineInstance, LOG_WARNING, NULL, skinny_subchannel::owner, SKINNY_DEBUG, skinny_dialer(), skinny_sched_del(), ast_frame::src, sub, ast_frame::subclass, transmit_selectsoftkeys(), and transmit_stop_tone().
Referenced by handle_message().
|
static |
Definition at line 7285 of file chan_skinny.c.
References skinny_data::alarm, ALARM_MESSAGE, ast_atomic_fetchadd_int(), ast_log, ast_verb, keypad_button_message::button, BUTTON_TEMPLATE_REQ_MESSAGE, enbloc_call_message::calledParty, keypad_button_message::callReference, CAPABILITIES_RES_MESSAGE, skinny_data::caps, capabilities_res_message::count, d, skinny_req::data, DEBUG_AUDIO, DEBUG_PACKET, skinnysession::device, alarm_message::displayMessage, skinny_req::e, ENBLOC_CALL_MESSAGE, skinny_data::enbloccallmessage, end_session(), find_speeddial_by_instance(), handle_button_template_req_message(), handle_capabilities_res_message(), handle_enbloc_call_message(), handle_ip_port_message(), handle_keepalive_message(), handle_keypad_button_message(), handle_offhook_message(), handle_onhook_message(), handle_open_receive_channel_ack_message(), handle_soft_key_event_message(), handle_stimulus_message(), HEADSET_STATUS_MESSAGE, offhook_message::instance, serviceurl_stat_message::instance, IP_PORT_MESSAGE, KEEP_ALIVE_MESSAGE, KEYDEF_ONHOOK, KEYMASK_ALL, skinny_data::keypad, KEYPAD_BUTTON_MESSAGE, letohl, skinny_data::line, LINE_STATE_REQ_MESSAGE, keypad_button_message::lineInstance, line_state_req_message::lineNumber, LOG_NOTICE, LOG_WARNING, register_message::name, skinny_data::offhook, OFFHOOK_MESSAGE, ONHOOK_MESSAGE, OPEN_RECEIVE_CHANNEL_ACK_MESSAGE, register_message::protocolVersion, offhook_message::reference, skinny_data::reg, REGISTER_AVAILABLE_LINES_MESSAGE, REGISTER_MESSAGE, SERVER_REQUEST_MESSAGE, SERVICEURL_STATREQ_MESSAGE, skinny_data::serviceurlmessage, SKINNY_DEBUG, skinny_register(), SOFT_KEY_EVENT_MESSAGE, SOFT_KEY_SET_REQ_MESSAGE, SOFT_KEY_TEMPLATE_REQ_MESSAGE, SPEED_DIAL_STAT_REQ_MESSAGE, speed_dial_stat_req_message::speedDialNumber, skinny_data::speeddialreq, STIMULUS_MESSAGE, TIME_DATE_REQ_MESSAGE, transmit_capabilitiesreq(), transmit_definetimedate(), transmit_linestatres(), transmit_registerack(), transmit_registerrej(), transmit_selectsoftkeys(), transmit_serverres(), transmit_serviceurlstat(), transmit_softkeysetres(), transmit_softkeytemplateres(), transmit_speeddialstatres(), transmit_versionres(), register_message::type, unauth_sessions, UNREGISTER_MESSAGE, and VERSION_REQ_MESSAGE.
Referenced by skinny_session().
|
static |
Definition at line 6546 of file chan_skinny.c.
References skinny_device::activeline, skinny_line::activesub, ast_channel_name(), ast_channel_tech_pvt(), ast_debug, AST_DEVICE_INUSE, AST_DEVSTATE_CACHABLE, ast_devstate_changed(), ast_log, AST_STATE_DOWN, ast_verb, c, skinny_subchannel::calldirection, d, skinny_req::data, skinnysession::device, find_line_by_instance(), find_subchannel_by_instance_reference(), offhook_message::instance, letohl, skinny_subchannel::line, LOG_WARNING, NULL, skinny_data::offhook, skinny_subchannel::owner, offhook_message::reference, setsubstate(), SKINNY_INCOMING, SKINNY_LAMP_ON, skinny_new(), SKINNY_OFFHOOK, SKINNY_OUTGOING, SKINNY_RING_OFF, STIMULUS_LINE, sub, skinny_subchannel::substate, SUBSTATE_CONNECTED, SUBSTATE_HOLD, SUBSTATE_OFFHOOK, transmit_definetimedate(), transmit_lamp_indication(), and transmit_ringer_mode().
Referenced by handle_message().
|
static |
Definition at line 6609 of file chan_skinny.c.
References skinny_device::activeline, skinny_line::activesub, AST_DEVICE_NOT_INUSE, AST_DEVSTATE_CACHABLE, ast_devstate_changed(), AST_STATE_RING, d, skinny_req::data, skinnysession::device, dumpsub(), find_subchannel_by_instance_reference(), handle_transfer_button(), onhook_message::instance, letohl, skinny_subchannel::line, skinny_data::onhook, skinny_subchannel::owner, onhook_message::reference, SKINNY_ONHOOK, sub, transmit_definetimedate(), and skinny_subchannel::xferor.
Referenced by handle_message().
|
static |
Definition at line 6865 of file chan_skinny.c.
References ao2_ref, ast_format_cap_get_format(), ast_format_cap_get_format_framing(), ast_format_get_name(), ast_inet_ntoa(), ast_log, ast_rtp_instance_get_local_address(), ast_rtp_instance_set_remote_address, ast_sockaddr_from_sin, ast_sockaddr_to_sin, open_receive_channel_ack_message_ip4::callReference, open_receive_channel_ack_message_ip6::callReference, skinny_line::cap, d, skinny_req::data, DEBUG_PACKET, skinnysession::device, find_subchannel_by_reference(), open_receive_channel_ack_message_ip4::ipAddr, open_receive_channel_ack_message_ip6::ipAddr, letohl, skinny_subchannel::line, LOG_ERROR, skinny_data::openreceivechannelack_ip4, skinny_data::openreceivechannelack_ip6, skinny_device::ourip, open_receive_channel_ack_message_ip4::port, open_receive_channel_ack_message_ip6::port, skinny_subchannel::rtp, SKINNY_DEBUG, status, open_receive_channel_ack_message_ip4::status, open_receive_channel_ack_message_ip6::status, sub, and transmit_startmediatransmission().
Referenced by handle_message().
|
static |
Handle clearing messages to devices.
Definition at line 4722 of file chan_skinny.c.
References _skinny_message_clear(), ast_cli_args::argc, ast_cli_args::argv, CLI_GENERATE, CLI_INIT, ast_cli_entry::command, complete_skinny_show_device(), ast_cli_args::fd, ast_cli_args::line, ast_cli_args::n, NULL, ast_cli_args::pos, ast_cli_entry::usage, and ast_cli_args::word.
|
static |
Handle sending messages to devices.
Definition at line 4686 of file chan_skinny.c.
References _skinny_message_set(), ast_cli_args::argc, ast_cli_args::argv, CLI_GENERATE, CLI_INIT, ast_cli_entry::command, complete_skinny_show_device(), ast_cli_args::fd, ast_cli_args::line, ast_cli_args::n, NULL, ast_cli_args::pos, ast_cli_entry::usage, and ast_cli_args::word.
|
static |
Definition at line 3883 of file chan_skinny.c.
References ast_cli_args::argc, ast_cli_entry::args, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, NULL, skinny_reload(), and ast_cli_entry::usage.
|
static |
Definition at line 3964 of file chan_skinny.c.
References ast_cli_args::argc, ast_cli_args::argv, AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, complete_skinny_reset(), d, ast_cli_args::line, skinny_device::list, ast_cli_args::n, NULL, ast_cli_args::pos, skinny_device::session, transmit_reset(), ast_cli_entry::usage, and ast_cli_args::word.
|
static |
Definition at line 3792 of file chan_skinny.c.
References ast_cli_args::argc, ast_cli_entry::args, ast_cli_args::argv, ast_cli(), CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, complete_skinny_debug(), DEBUG_AUDIO, DEBUG_GENERAL, DEBUG_HINT, DEBUG_KEEPALIVE, DEBUG_LOCK, DEBUG_PACKET, DEBUG_SUB, DEBUG_TEMPLATE, DEBUG_THREAD, ast_cli_args::fd, ast_cli_args::line, ast_cli_args::n, NULL, ast_cli_args::pos, result, skinny_debugs(), skinnydebug, ast_cli_entry::usage, and ast_cli_args::word.
|
static |
Show device information.
Definition at line 4308 of file chan_skinny.c.
References _skinny_show_device(), ast_cli_args::argc, ast_cli_args::argv, CLI_GENERATE, CLI_INIT, ast_cli_entry::command, complete_skinny_show_device(), ast_cli_args::fd, ast_cli_args::line, ast_cli_args::n, NULL, ast_cli_args::pos, ast_cli_entry::usage, and ast_cli_args::word.
|
static |
Definition at line 4175 of file chan_skinny.c.
References _skinny_show_devices(), ast_cli_args::argc, ast_cli_args::argv, CLI_GENERATE, CLI_INIT, ast_cli_entry::command, ast_cli_args::fd, NULL, and ast_cli_entry::usage.
|
static |
List line information.
Definition at line 4594 of file chan_skinny.c.
References _skinny_show_line(), ast_cli_args::argc, ast_cli_args::argv, CLI_GENERATE, CLI_INIT, ast_cli_entry::command, complete_skinny_show_line(), ast_cli_args::fd, ast_cli_args::line, ast_cli_args::n, NULL, ast_cli_args::pos, ast_cli_entry::usage, and ast_cli_args::word.
|
static |
Definition at line 4417 of file chan_skinny.c.
References _skinny_show_lines(), ast_cli_args::argc, ast_cli_entry::args, ast_cli_args::argv, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, ast_cli_entry::command, ast_cli_args::fd, NULL, and ast_cli_entry::usage.
|
static |
List global settings for the Skinny subsystem.
Definition at line 4611 of file chan_skinny.c.
References ast_cli_args::argc, ast_cli(), AST_CLI_YESNO, ast_inet_ntoa(), AST_JB_ENABLED, AST_JB_FORCED, AST_JB_LOG, ast_test_flag, bindaddr, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, date_format, ast_cli_args::fd, global_jbconf, immed_dialchar, ast_jb_conf::impl, keep_alive, ast_jb_conf::max_size, NULL, regcontext, ast_jb_conf::resync_threshold, S_OR, ast_jb_conf::target_extra, ast_cli_entry::usage, and vmexten.
|
static |
Definition at line 6974 of file chan_skinny.c.
References activatesub(), ao2_cleanup, ast_channel_get_bridge_channel(), ast_channel_lock, ast_channel_ref, ast_channel_tech_pvt(), ast_channel_unlock, ast_channel_unref, AST_DEVICE_INUSE, AST_DEVICE_NOT_INUSE, AST_DEVSTATE_CACHABLE, ast_devstate_changed(), ast_hangup(), ast_log, AST_MAX_EXTENSION, ast_parking_park_call(), ast_parking_provider_registered(), ast_pickup_call(), AST_STATE_DOWN, AST_STATE_UP, ast_strlen_zero, ast_verb, c, skinny_subchannel::calldirection, skinny_subchannel::callid, soft_key_event_message::callreference, d, skinny_req::data, DEBUG_PACKET, skinnysession::device, dialandactivatesub(), skinny_subchannel::dialer_sched, dumpsub(), skinny_subchannel::exten, skinny_subline::exten, find_line_by_instance(), find_subchannel_by_instance_reference(), find_subline_by_callid(), gendigittimeout, handle_callforward_button(), handle_transfer_button(), soft_key_event_message::instance, KEYDEF_OFFHOOK, KEYMASK_ALL, len(), letohl, LOG_WARNING, NULL, skinny_subchannel::owner, RAII_VAR, setsubstate(), SKINNY_CFWD_ALL, SKINNY_CFWD_BUSY, SKINNY_CFWD_NOANSWER, SKINNY_DEBUG, skinny_dialer(), skinny_dialer_cb(), SKINNY_DIALTONE, SKINNY_INCOMING, SKINNY_LAMP_OFF, SKINNY_LAMP_ON, skinny_new(), SKINNY_OFFHOOK, SKINNY_ONHOOK, SKINNY_OUTGOING, SKINNY_RING_OFF, skinny_sched_add(), skinny_sched_del(), SKINNY_SPEAKERON, SOFTKEY_ANSWER, SOFTKEY_BKSPC, SOFTKEY_CFWDALL, SOFTKEY_CFWDBUSY, SOFTKEY_CFWDNOANSWER, SOFTKEY_CONFRN, SOFTKEY_DND, SOFTKEY_ENDCALL, SOFTKEY_FORCEDIAL, SOFTKEY_GPICKUP, SOFTKEY_HOLD, SOFTKEY_INFO, SOFTKEY_JOIN, SOFTKEY_MEETME, SOFTKEY_NEWCALL, SOFTKEY_NONE, SOFTKEY_PARK, SOFTKEY_PICKUP, SOFTKEY_REDIAL, SOFTKEY_RESUME, SOFTKEY_TRNSFER, soft_key_event_message::softKeyEvent, skinny_data::softkeyeventmessage, STIMULUS_DND, STIMULUS_LINE, sub, skinny_subline::sub, SUBSTATE_CONNECTED, SUBSTATE_HOLD, SUBSTATE_OFFHOOK, transmit_backspace(), transmit_definetimedate(), transmit_displaynotify(), transmit_lamp_indication(), transmit_ringer_mode(), transmit_selectsoftkeys(), transmit_speaker_mode(), and transmit_start_tone().
Referenced by handle_message().
|
static |
Definition at line 6316 of file chan_skinny.c.
References skinny_device::activeline, skinny_line::activesub, ao2_cleanup, ast_channel_get_bridge_channel(), ast_channel_lock, ast_channel_name(), ast_channel_tech_pvt(), ast_channel_unlock, ast_debug, AST_DEVICE_UNKNOWN, AST_DEVSTATE_CACHABLE, ast_devstate_changed(), ast_log, AST_MAX_EXTENSION, ast_parking_park_call(), ast_parking_provider_registered(), AST_STATE_DOWN, AST_STATE_UP, ast_strlen_zero, ast_verb, c, skinny_subchannel::calldirection, stimulus_message::callreference, d, skinny_req::data, DEBUG_PACKET, skinnysession::device, dialandactivatesub(), skinny_speeddial::exten, find_line_by_instance(), find_speeddial_by_instance(), find_subchannel_by_instance_reference(), handle_callforward_button(), handle_hold_button(), handle_transfer_button(), letohl, skinny_subchannel::line, LOG_WARNING, NULL, skinny_subchannel::owner, RAII_VAR, setsubstate(), SKINNY_CFWD_ALL, SKINNY_CFWD_BUSY, SKINNY_CFWD_NOANSWER, SKINNY_DEBUG, SKINNY_INCOMING, SKINNY_LAMP_OFF, SKINNY_LAMP_ON, skinny_new(), SKINNY_OFFHOOK, SKINNY_OUTGOING, SKINNY_RING_OFF, SKINNY_SPEAKERON, stimulus_message::stimulus, skinny_data::stimulus, STIMULUS_CALLPARK, STIMULUS_CONFERENCE, STIMULUS_DISPLAY, STIMULUS_DND, STIMULUS_FORWARDALL, STIMULUS_FORWARDBUSY, STIMULUS_FORWARDNOANSWER, STIMULUS_HOLD, STIMULUS_LINE, STIMULUS_REDIAL, STIMULUS_SPEEDDIAL, STIMULUS_TRANSFER, STIMULUS_VOICEMAIL, stimulus_message::stimulusInstance, sub, skinny_subchannel::substate, SUBSTATE_CONNECTED, SUBSTATE_OFFHOOK, SUBSTATE_UNSET, transmit_displaynotify(), transmit_lamp_indication(), transmit_ringer_mode(), and transmit_speaker_mode().
Referenced by handle_message().
|
static |
Definition at line 6109 of file chan_skinny.c.
References ast_channel_tech_pvt(), ast_log, AST_STATE_DOWN, ast_verbose(), c, d, skinny_line::device, skinny_subchannel::dialType, DIALTYPE_NORMAL, DIALTYPE_XFER, skinny_subchannel::line, LOG_WARNING, NULL, skinny_subchannel::related, skinny_device::session, setsubstate(), skinny_new(), SKINNY_OUTGOING, skinny_transfer_attended(), sub, skinny_subchannel::substate, SUBSTATE_HOLD, SUBSTATE_OFFHOOK, and skinny_subchannel::xferor.
Referenced by handle_onhook_message(), handle_soft_key_event_message(), and handle_stimulus_message().
|
static |
Definition at line 2705 of file chan_skinny.c.
References ARRAY_LEN, soft_key_definitions::count, soft_key_definitions::defaults, soft_key_definitions::mode, and soft_key_default_definitions.
Referenced by transmit_selectsoftkeys().
|
static |
Load the module.
Module loading including tests for configuration or dependencies. This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE, or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails tests return AST_MODULE_LOAD_FAILURE. If the module can not load the configuration file or other non-critical problem return AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
Definition at line 8685 of file chan_skinny.c.
References ao2_ref, ARRAY_LEN, ast_channel_register(), ast_channel_unregister(), ast_cli_register_multiple, ast_format_alaw, ast_format_cap_alloc, ast_format_cap_append, ast_format_cap_append_by_type(), AST_FORMAT_CAP_FLAG_DEFAULT, ast_format_ulaw, ast_log, ast_manager_register_xml, AST_MEDIA_TYPE_AUDIO, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_rtp_glue_register, ast_sched_context_create(), ast_sched_context_destroy(), ast_sched_start_thread(), ast_channel_tech::capabilities, config_load(), EVENT_FLAG_REPORTING, EVENT_FLAG_SYSTEM, htolel, LOG_ERROR, LOG_WARNING, manager_skinny_show_device(), manager_skinny_show_devices(), manager_skinny_show_line(), manager_skinny_show_lines(), NULL, and soft_key_template_definition::softKeyEvent.
Referenced by reload().
|
static |
Definition at line 4287 of file chan_skinny.c.
References _skinny_show_device(), a, ast_strlen_zero, astman_append(), astman_get_header(), and astman_send_error().
Referenced by load_module().
|
static |
Show SKINNY devices in the manager API.
Definition at line 4159 of file chan_skinny.c.
References _skinny_show_devices(), a, astman_send_list_complete_end(), astman_send_list_complete_start(), astman_send_listack(), and total.
Referenced by load_module().
|
static |
Definition at line 4573 of file chan_skinny.c.
References _skinny_show_line(), a, ast_strlen_zero, astman_append(), astman_get_header(), and astman_send_error().
Referenced by load_module().
|
static |
Show Skinny lines in the manager API.
Definition at line 4401 of file chan_skinny.c.
References _skinny_show_lines(), a, astman_send_list_complete_end(), astman_send_list_complete_start(), astman_send_listack(), and total.
Referenced by load_module().
|
static |
Definition at line 3554 of file chan_skinny.c.
References AST_LIST_TRAVERSE, ast_mwi_state_type(), ast_verb, d, skinny_line::device, skinny_device::lines, ast_mwi_state::new_msgs, skinny_line::newmsgs, skinny_device::session, SKINNY_LAMP_BLINK, SKINNY_LAMP_OFF, SKINNY_LAMP_ON, stasis_message_data(), stasis_message_type(), STIMULUS_VOICEMAIL, and transmit_lamp_indication().
Referenced by config_line(), and skinny_register().
|
static |
Definition at line 2603 of file chan_skinny.c.
References ast_channel_caller(), ast_channel_connected(), ast_channel_connected_effective_id(), ast_party_id_presentation(), AST_PRES_ALLOWED, AST_PRES_RESTRICTION, ast_verb, skinny_subchannel::calldirection, skinny_subline::callid, d, skinny_line::device, skinny_subchannel::line, skinny_subline::line, name, ast_party_id::name, ast_party_id::number, skinny_subchannel::origtoname, skinny_subchannel::origtonum, skinny_subchannel::owner, S_COR, SKINNY_INCOMING, SKINNY_OUTGOING, ast_party_name::str, ast_party_number::str, transmit_callinfo(), transmit_callinfo_variable(), ast_party_name::valid, and ast_party_number::valid.
Referenced by setsubstate().
|
static |
Definition at line 2209 of file chan_skinny.c.
References ast_add_extension(), ast_context_find(), ast_copy_string(), ast_free_ptr(), ast_log, ast_strdup, ast_strlen_zero, context, ext, LOG_WARNING, NULL, regcontext, S_OR, and strsep().
Referenced by skinny_register().
|
static |
Definition at line 8820 of file chan_skinny.c.
References AST_MODFLAG_LOAD_ORDER, AST_MODPRI_CHANNEL_DRIVER, AST_MODULE_INFO(), AST_MODULE_SUPPORT_EXTENDED, ASTERISK_GPL_KEY, load_module(), skinny_reload(), and unload_module().
|
static |
Definition at line 1869 of file chan_skinny.c.
References ast_calloc, skinny_req::e, htolel, skinny_req::len, NULL, and skinny_header_size.
Referenced by _transmit_displayprinotify(), _transmit_displayprinotifyvar(), handle_button_template_req_message(), transmit_activatecallplane(), transmit_backspace(), transmit_callinfo(), transmit_callinfo_variable(), transmit_callstate(), transmit_capabilitiesreq(), transmit_cfwdstate(), transmit_clear_display_message(), transmit_clearprinotify(), transmit_clearpromptmessage(), transmit_closereceivechannel(), transmit_connect(), transmit_definetimedate(), transmit_dialednumber(), transmit_displaynotify(), transmit_displaypromptstatus(), transmit_displaypromptstatusvar(), transmit_keepaliveack(), transmit_lamp_indication(), transmit_linestatres(), transmit_microphone_mode(), transmit_registerack(), transmit_registerrej(), transmit_reset(), transmit_ringer_mode(), transmit_selectsoftkeys(), transmit_serverres(), transmit_serviceurlstat(), transmit_softkeysetres(), transmit_softkeytemplateres(), transmit_speaker_mode(), transmit_speeddialstatres(), transmit_start_tone(), transmit_startmediatransmission(), transmit_stop_tone(), transmit_stopmediatransmission(), and transmit_versionres().
|
static |
Definition at line 2556 of file chan_skinny.c.
References ast_channel_caller(), ast_channel_connected(), ast_channel_connected_effective_id(), ast_party_id_presentation(), AST_PRES_ALLOWED, AST_PRES_RESTRICTION, ast_verb, skinny_subchannel::calldirection, skinny_subchannel::callid, d, skinny_line::device, skinny_subchannel::line, name, ast_party_id::name, ast_party_id::number, skinny_subchannel::origtoname, skinny_subchannel::origtonum, skinny_subchannel::owner, S_COR, SKINNY_INCOMING, SKINNY_OUTGOING, ast_party_name::str, ast_party_number::str, transmit_callinfo(), transmit_callinfo_variable(), ast_party_name::valid, and ast_party_number::valid.
Referenced by setsubstate(), and update_connectedline().
|
static |
Definition at line 2902 of file chan_skinny.c.
References _transmit_displayprinotify(), and _transmit_displayprinotifyvar().
Referenced by _skinny_message_set(), setsubstate(), skinny_transfer_attended(), and skinny_transfer_blind().
|
static |
Definition at line 2965 of file chan_skinny.c.
References transmit_displaypromptstatus(), and transmit_displaypromptstatusvar().
Referenced by setsubstate(), and skinny_extensionstate_cb().
|
static |
Definition at line 2152 of file chan_skinny.c.
References ast_copy_string(), ast_strlen_zero, SKINNY_CFWD_ALL, SKINNY_CFWD_BUSY, and SKINNY_CFWD_NOANSWER.
Referenced by dialandactivatesub(), handle_callforward_button(), and skinny_register().
|
static |
Definition at line 5560 of file chan_skinny.c.
References skinny_subchannel::aa_beep, skinny_subchannel::aa_mute, skinny_subchannel::aa_sched, skinny_line::activesub, skinny_line::all, AST_CAUSE_ANSWERED_ELSEWHERE, ast_channel_connected_effective_id(), ast_channel_context(), ast_channel_context_set(), ast_channel_exten_set(), ast_channel_hangupcause(), AST_CONTROL_ANSWER, AST_CONTROL_RINGING, ast_copy_string(), ast_exists_extension(), ast_hangup(), AST_LIST_FIRST, AST_LIST_NEXT, AST_LIST_REMOVE, AST_LIST_TRAVERSE, ast_log, ast_party_id_presentation(), AST_PRES_ALLOWED, AST_PRES_RESTRICTION, ast_pthread_create, ast_queue_control(), ast_queue_hangup(), ast_queue_hold(), ast_queue_unhold(), ast_setstate(), AST_STATE_RINGING, AST_STATE_UP, ast_strlen_zero, ast_verb, c, skinny_subchannel::callid, skinny_subline::callid, callnums, skinny_subchannel::cfwd_sched, skinny_subline::container, skinny_subchannel::cxmode, d, DEBUG_SUB, skinny_line::device, skinny_subchannel::dialer_sched, errno, skinny_subchannel::exten, skinny_subline::exten, ast_state_cb_info::exten_state, skinny_subline::extenstate, firstdigittimeout, KEYDEF_CONNECTED, KEYDEF_OFFHOOK, KEYDEF_ONHOLD, KEYDEF_RINGIN, KEYDEF_RINGOUT, KEYDEF_RINGOUTWITHTRANS, KEYDEF_SLACONNECTEDNOTACTIVE, KEYMASK_ALL, skinny_subchannel::line, skinny_subline::line, skinny_line::list, skinny_subline::list, skinny_subline::lnname, LOG_WARNING, NULL, ast_party_id::number, OCTAL_BUSY, OCTAL_CALLWAITING, OCTAL_CONNECTED, OCTAL_ENTRNUM, OCTAL_FROM, OCTAL_RINGOUT, skinny_subchannel::owner, pbx_builtin_getvar_helper(), pbx_builtin_setvar_helper(), push_callinfo(), skinny_subchannel::related, skinny_subchannel::rtp, S_COR, send_callinfo(), send_displayprinotify(), send_displaypromptstatus(), SKINNY_ALERT, SKINNY_BUSY, SKINNY_BUSYTONE, SKINNY_CALLREMOTEMULTILINE, SKINNY_CALLWAIT, SKINNY_CALLWAITTONE, SKINNY_CONGESTION, SKINNY_CONNECTED, SKINNY_CX_RECVONLY, SKINNY_DEBUG, skinny_dialer_cb(), SKINNY_DIALTONE, skinny_extensionstate_cb(), SKINNY_HOLD, SKINNY_LAMP_BLINK, SKINNY_LAMP_OFF, SKINNY_LAMP_WINK, skinny_locksub(), SKINNY_MICOFF, skinny_newcall(), SKINNY_OFFHOOK, SKINNY_ONHOOK, SKINNY_PROGRESS, SKINNY_REORDER, SKINNY_RING_INSIDE, SKINNY_RING_OFF, SKINNY_RINGIN, SKINNY_RINGOUT, skinny_sched_add(), skinny_sched_del(), SKINNY_SPEAKERON, skinny_unlocksub(), SKINNY_ZIP, start_rtp(), state, STIMULUS_LINE, skinny_subline::stname, ast_party_number::str, sub, skinny_line::sub, skinny_subline::sub, skinny_subchannel::subline, skinny_line::sublines, skinny_subchannel::substate, substate2str(), SUBSTATE_BUSY, SUBSTATE_CALLWAIT, SUBSTATE_CONGESTION, SUBSTATE_CONNECTED, SUBSTATE_DIALING, SUBSTATE_HOLD, SUBSTATE_OFFHOOK, SUBSTATE_ONHOOK, SUBSTATE_PROGRESS, SUBSTATE_RINGIN, SUBSTATE_RINGOUT, transmit_activatecallplane(), transmit_callstate(), transmit_clear_display_message(), transmit_clearprinotify(), transmit_clearpromptmessage(), transmit_closereceivechannel(), transmit_connect(), transmit_definetimedate(), transmit_dialednumber(), transmit_lamp_indication(), transmit_microphone_mode(), transmit_ringer_mode(), transmit_selectsoftkeys(), transmit_speaker_mode(), transmit_start_tone(), transmit_stop_tone(), transmit_stopmediatransmission(), and ast_party_number::valid.
Referenced by activatesub(), dumpsub(), handle_callforward_button(), handle_hold_button(), handle_offhook_message(), handle_soft_key_event_message(), handle_stimulus_message(), handle_transfer_button(), skinny_answer(), skinny_autoanswer_cb(), skinny_call(), and skinny_indicate().
|
static |
Definition at line 5010 of file chan_skinny.c.
References ast_channel_name(), ast_channel_tech_pvt(), skinny_subchannel::callid, skinny_subchannel::cxmode, DEBUG_SUB, skinny_line::device, skinny_subchannel::line, setsubstate(), SKINNY_CX_SENDRECV, SKINNY_DEBUG, sub, and SUBSTATE_CONNECTED.
|
static |
Definition at line 4897 of file chan_skinny.c.
References skinny_subchannel::aa_sched, setsubstate(), SKINNY_CONNECTED, skinny_locksub(), skinny_unlocksub(), and sub.
Referenced by skinny_call().
|
static |
Definition at line 4918 of file chan_skinny.c.
References skinny_subchannel::aa_beep, skinny_subchannel::aa_mute, skinny_subchannel::aa_sched, ast_channel_name(), ast_channel_tech_pvt(), ast_channel_varshead(), AST_CONTROL_BUSY, ast_copy_string(), AST_LIST_NEXT, AST_LIST_TRAVERSE, ast_log, ast_queue_control(), AST_STATE_DOWN, AST_STATE_RESERVED, ast_var_name(), ast_var_value(), buf, skinny_subchannel::callid, d, DEBUG_SUB, skinny_line::device, ast_var_t::entries, skinny_subchannel::line, LOG_WARNING, skinny_device::session, setsubstate(), skinny_autoanswer_cb(), SKINNY_DEBUG, skinny_locksub(), SKINNY_ONHOOK, skinny_sched_add(), skinny_unlocksub(), strsep(), sub, SUBSTATE_CONNECTED, and SUBSTATE_RINGIN.
|
static |
Definition at line 4907 of file chan_skinny.c.
References AST_CONTROL_REDIRECTING, ast_queue_control(), skinny_subchannel::callid, skinny_subchannel::cfwd_sched, DEBUG_SUB, skinny_subchannel::line, skinny_subchannel::owner, SKINNY_DEBUG, and sub.
Referenced by skinny_new().
|
static |
Definition at line 3704 of file chan_skinny.c.
References dbgcli_buf, DEBUG_AUDIO, DEBUG_GENERAL, DEBUG_HINT, DEBUG_KEEPALIVE, DEBUG_LOCK, DEBUG_PACKET, DEBUG_SUB, DEBUG_TEMPLATE, DEBUG_THREAD, and skinnydebug.
Referenced by handle_skinny_set_debug().
|
static |
Definition at line 1701 of file chan_skinny.c.
References ao2_cleanup, ast_calloc, ast_copy_string(), ast_endpoint_create(), ast_format_cap_alloc, AST_FORMAT_CAP_FLAG_DEFAULT, ast_free, skinny_device::cap, skinny_device::confcap, d, skinny_device::endpoint, and NULL.
Referenced by config_device().
|
static |
Definition at line 1722 of file chan_skinny.c.
References ao2_ref, ast_endpoint_shutdown(), ast_free, skinny_device::cap, skinny_device::confcap, skinny_device::endpoint, and NULL.
Referenced by delete_devices(), and skinny_reload().
|
static |
Definition at line 7705 of file chan_skinny.c.
References ast_strdupa, find_line_by_name(), get_devicestate(), and tmp().
|
static |
Definition at line 4858 of file chan_skinny.c.
References ast_channel_context(), ast_exists_extension(), ast_matchmore_extension(), c, skinny_subchannel::callid, d, DEBUG_SUB, skinny_line::device, dialandactivatesub(), skinny_subchannel::dialer_sched, dumpsub(), skinny_subchannel::exten, gendigittimeout, KEYDEF_DADFD, KEYMASK_ALL, skinny_subchannel::line, matchdigittimeout, skinny_subchannel::owner, SKINNY_DEBUG, skinny_dialer_cb(), SKINNY_OFFHOOK, SKINNY_REORDER, skinny_sched_add(), skinny_subchannel::substate, SUBSTATE_OFFHOOK, transmit_selectsoftkeys(), and transmit_start_tone().
Referenced by handle_keypad_button_message(), handle_soft_key_event_message(), and skinny_dialer_cb().
|
static |
Definition at line 4888 of file chan_skinny.c.
References skinny_subchannel::callid, DEBUG_SUB, skinny_subchannel::dialer_sched, SKINNY_DEBUG, skinny_dialer(), and sub.
Referenced by handle_soft_key_event_message(), setsubstate(), and skinny_dialer().
|
static |
Definition at line 3414 of file chan_skinny.c.
References AST_DEVICE_UNAVAILABLE, AST_EXTENSION_BUSY, AST_EXTENSION_DEACTIVATED, AST_EXTENSION_INUSE, AST_EXTENSION_NOT_INUSE, AST_EXTENSION_ONHOLD, AST_EXTENSION_REMOVED, AST_EXTENSION_RINGING, ast_extension_state2str(), AST_EXTENSION_UNAVAILABLE, ast_get_hint(), AST_HINT_UPDATE_DEVICE, ast_log, AST_MAX_EXTENSION, skinny_subline::callid, container, skinny_speeddial::context, d, skinny_container::data, DEBUG_HINT, skinny_line::device, skinny_speeddial::exten, ast_state_cb_info::exten_state, skinny_subline::extenstate, skinny_speeddial::instance, KEYDEF_CONNECTED, KEYDEF_ONHOOK, KEYDEF_SLACONNECTEDNOTACTIVE, KEYDEF_SLAHOLD, KEYMASK_ALL, skinny_speeddial::label, skinny_speeddial::laststate, skinny_subline::line, LOG_WARNING, skinny_subline::name, NULL, OCTAL_CONNECTED, skinny_speeddial::parent, ast_state_cb_info::reason, send_displaypromptstatus(), SKINNY_CALLREMOTEMULTILINE, SKINNY_CONNECTED, SKINNY_DEBUG, SKINNY_HOLD, SKINNY_LAMP_BLINK, SKINNY_LAMP_FLASH, SKINNY_LAMP_OFF, SKINNY_LAMP_ON, SKINNY_LAMP_WINK, SKINNY_ONHOOK, SKINNY_RING_OFF, SKINNY_RINGIN, SKINNY_SDCONTAINER, SKINNY_SUBLINECONTAINER, state, skinny_speeddial::stateid, STIMULUS_LINE, skinny_subline::sub, skinny_subchannel::substate, transmit_activatecallplane(), transmit_callstate(), transmit_clearpromptmessage(), transmit_lamp_indication(), transmit_ringer_mode(), transmit_selectsoftkeys(), and skinny_container::type.
Referenced by setsubstate(), and skinny_register().
|
static |
Definition at line 5123 of file chan_skinny.c.
References ast_channel_name(), ast_channel_tech_pvt(), ast_log, LOG_NOTICE, LOG_WARNING, skinny_subchannel::owner, skinny_set_owner(), and sub.
|
static |
Definition at line 3607 of file chan_skinny.c.
References ao2_ref, ast_channel_name(), ast_channel_tech_pvt(), AST_RTP_GLUE_RESULT_FORBID, AST_RTP_GLUE_RESULT_LOCAL, AST_RTP_GLUE_RESULT_REMOTE, DEBUG_AUDIO, skinny_subchannel::line, NULL, skinny_subchannel::rtp, SKINNY_DEBUG, skinny_locksub(), skinny_unlocksub(), and sub.
|
static |
Definition at line 3594 of file chan_skinny.c.
References ao2_ref, ast_channel_tech_pvt(), AST_RTP_GLUE_RESULT_FORBID, AST_RTP_GLUE_RESULT_REMOTE, NULL, sub, and skinny_subchannel::vrtp.
|
static |
Definition at line 4987 of file chan_skinny.c.
References ast_channel_tech_pvt(), ast_channel_tech_pvt_set(), ast_debug, ast_free, ast_module_unref, skinny_subchannel::callid, DEBUG_SUB, destroy_rtp(), dumpsub(), NULL, skinny_subchannel::origtoname, skinny_subchannel::origtonum, ast_module_info::self, SKINNY_DEBUG, skinny_set_owner(), and sub.
|
static |
Definition at line 5297 of file chan_skinny.c.
References ast_channel_name(), ast_channel_tech_pvt(), AST_CONTROL_BUSY, AST_CONTROL_CONGESTION, AST_CONTROL_CONNECTED_LINE, AST_CONTROL_HOLD, AST_CONTROL_INCOMPLETE, AST_CONTROL_MASQUERADE_NOTIFY, AST_CONTROL_PROCEEDING, AST_CONTROL_PROGRESS, AST_CONTROL_PVT_CAUSE_CODE, AST_CONTROL_RINGING, AST_CONTROL_SRCCHANGE, AST_CONTROL_SRCUPDATE, AST_CONTROL_UNHOLD, ast_log, ast_moh_start(), ast_moh_stop(), ast_rtp_instance_change_source(), ast_rtp_instance_update_source(), skinny_subchannel::callid, control2str(), d, DEBUG_SUB, skinny_line::device, skinny_subchannel::line, LOG_NOTICE, LOG_WARNING, skinny_subchannel::rtp, skinny_device::session, setsubstate(), SKINNY_DEBUG, sub, SUBSTATE_BUSY, SUBSTATE_CONGESTION, SUBSTATE_PROGRESS, SUBSTATE_RINGOUT, transmit_stop_tone(), and update_connectedline().
|
static |
Definition at line 1674 of file chan_skinny.c.
References ao2_cleanup, ast_calloc, ast_format_cap_alloc, AST_FORMAT_CAP_FLAG_DEFAULT, ast_free, skinny_line::cap, skinny_line::confcap, and NULL.
Referenced by config_line().
|
static |
Definition at line 1691 of file chan_skinny.c.
References ao2_ref, ast_free, ast_unref_namedgroups(), skinny_line::cap, skinny_line::confcap, skinny_line::container, and NULL.
Referenced by config_line(), delete_devices(), and skinny_reload().
|
static |
Definition at line 2008 of file chan_skinny.c.
References ast_channel_lock, and skinny_subchannel::owner.
Referenced by setsubstate(), skinny_autoanswer_cb(), skinny_call(), skinny_get_rtp_peer(), skinny_read(), skinny_write(), start_rtp(), and unload_module().
|
static |
Definition at line 5371 of file chan_skinny.c.
References skinny_subchannel::aa_sched, ast_party_caller::ani, ao2_ref, AST_ADSI_UNAVAILABLE, ast_calloc, ast_channel_adsicpe_set(), ast_channel_alloc, ast_channel_amaflags_set(), ast_channel_caller(), ast_channel_callgroup_set(), ast_channel_context_set(), ast_channel_exten_set(), ast_channel_name(), ast_channel_named_callgroups_set(), ast_channel_named_pickupgroups_set(), ast_channel_nativeformats(), ast_channel_nativeformats_set(), ast_channel_pickupgroup_set(), ast_channel_priority_set(), ast_channel_rings_set(), ast_channel_set_fd(), ast_channel_set_rawreadformat(), ast_channel_set_rawwriteformat(), ast_channel_set_readformat(), ast_channel_set_writeformat(), ast_channel_stage_snapshot(), ast_channel_stage_snapshot_done(), ast_channel_tech_pvt_set(), ast_channel_tech_set(), ast_channel_unlock, ast_channel_unref, AST_DEVICE_NOT_INUSE, ast_format_cap_alloc, ast_format_cap_append_from_cap(), ast_format_cap_count(), AST_FORMAT_CAP_FLAG_DEFAULT, ast_format_cap_get_format(), ast_format_cap_get_names(), AST_FORMAT_CAP_NAMES_LEN, ast_format_get_name(), ast_hangup(), ast_jb_configure(), AST_LIST_INSERT_HEAD, ast_log, AST_MEDIA_TYPE_UNKNOWN, ast_module_ref, ast_pbx_start(), ast_rtp_instance_fd(), AST_STATE_DOWN, AST_STATE_RING, ast_str_alloca, ast_strdup, ast_strlen_zero, skinny_subchannel::blindxfer, skinny_subchannel::calldirection, skinny_subchannel::callid, callnums, skinny_line::cap, skinny_subchannel::cfwd_sched, skinny_line::chanvars, skinny_subline::context, skinny_subchannel::cxmode, d, DEBUG_SUB, skinny_line::device, skinny_subchannel::dialer_sched, skinny_subchannel::dialType, DIALTYPE_NORMAL, get_devicestate(), skinny_subchannel::getforward, global_jbconf, skinny_subchannel::line, LOG_WARNING, ast_variable::name, skinny_subchannel::nat, ast_variable::next, NULL, ast_party_id::number, pbx_builtin_setvar_helper(), skinny_subchannel::related, skinny_subchannel::rtp, ast_module_info::self, skinny_device::session, SKINNY_CFWD_ALL, SKINNY_CFWD_BUSY, skinny_cfwd_cb(), SKINNY_CFWD_NOANSWER, SKINNY_CX_INACTIVE, SKINNY_DEBUG, skinny_sched_add(), skinny_set_owner(), ast_party_number::str, sub, skinny_line::sub, skinny_subline::sub, skinny_subchannel::subline, tmp(), ast_party_number::valid, ast_variable::value, and skinny_subchannel::xferor.
Referenced by handle_callforward_button(), handle_enbloc_call_message(), handle_offhook_message(), handle_soft_key_event_message(), handle_stimulus_message(), handle_transfer_button(), and skinny_request().
|
static |
Definition at line 4823 of file chan_skinny.c.
References ast_channel_caller(), ast_channel_connected(), ast_channel_context(), ast_channel_exten(), ast_channel_lock, ast_channel_tech_pvt(), ast_channel_unlock, ast_log, ast_party_name_free(), ast_party_name_init(), ast_party_number_free(), ast_party_number_init(), ast_pbx_run(), ast_set_callerid(), ast_setstate(), AST_STATE_RING, ast_strdup, ast_verb, c, skinny_subchannel::callid, d, ast_channel::data, skinny_line::device, ast_party_connected_line::id, skinny_subchannel::line, LOG_WARNING, name, NULL, ast_party_id::number, skinny_subchannel::rtp, SKINNY_REORDER, start_rtp(), ast_party_number::str, sub, transmit_start_tone(), and ast_party_number::valid.
Referenced by setsubstate().
|
static |
Definition at line 7448 of file chan_skinny.c.
References ast_log, auth_timeout, skinnysession::auth_timeout_sched, end_session(), and LOG_WARNING.
Referenced by skinny_session().
|
static |
Definition at line 7457 of file chan_skinny.c.
References ast_log, end_session(), keep_alive, skinnysession::keepalive_timeout_sched, and LOG_WARNING.
Referenced by handle_keepalive_message(), and skinny_session().
|
static |
Definition at line 5081 of file chan_skinny.c.
References ast_channel_tech_pvt(), skinny_locksub(), skinny_rtp_read(), skinny_unlocksub(), and sub.
|
static |
Definition at line 2258 of file chan_skinny.c.
References __ourip, ast_app_has_voicemail(), ast_apply_ha(), ast_copy_string(), AST_DEVICE_NOT_INUSE, AST_DEVSTATE_CACHABLE, ast_devstate_changed(), ast_endpoint_blob_publish(), AST_ENDPOINT_ONLINE, ast_endpoint_set_state(), ast_endpoint_state_type(), ast_extension_state_add(), ast_format_cap_get_compatible(), ast_json_pack(), ast_json_unref(), AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_log, ast_sched_del(), ast_sockaddr_from_sin, ast_strlen_zero, skinnysession::auth_timeout_sched, skinny_line::cap, skinny_device::cap, skinny_line::confcap, skinny_subline::container, skinny_speeddial::container, skinny_subline::context, skinny_speeddial::context, d, skinny_req::data, skinnysession::device, skinny_device::endpoint, skinny_subline::exten, skinny_speeddial::exten, skinnysession::fd, skinny_device::ha, letohl, skinny_device::lines, LOG_WARNING, mwi_event_cb(), register_message::name, skinny_line::newmsgs, not_used, NULL, skinny_device::ourip, register_message::protocolVersion, RAII_VAR, skinny_data::reg, register_exten(), skinny_device::session, set_callforwards(), skinnysession::sin, SKINNY_CFWD_ALL, SKINNY_CFWD_BUSY, SKINNY_CFWD_NOANSWER, skinny_extensionstate_cb(), skinny_device::speeddials, skinny_speeddial::stateid, skinny_line::sublines, transmit_definetimedate(), register_message::type, and version_id.
Referenced by handle_message().
|
static |
Definition at line 8594 of file chan_skinny.c.
References a, skinny_device::addons, ast_free, AST_LIST_LOCK, AST_LIST_REMOVE_CURRENT, AST_LIST_REMOVE_HEAD, AST_LIST_TRAVERSE, AST_LIST_TRAVERSE_SAFE_BEGIN, AST_LIST_TRAVERSE_SAFE_END, AST_LIST_UNLOCK, ast_mwi_unsubscribe(), ast_verb, config_load(), d, skinny_device::lines, skinny_addon::list, skinny_line::mwi_event_sub, skinny_device::session, skinny_device_destroy(), skinny_line_destroy(), skinnyreload, skinny_device::speeddials, and transmit_reset().
Referenced by handle_skinny_reload(), and reload().
|
static |
Definition at line 7717 of file chan_skinny.c.
References ast_channel_tech_pvt(), ast_copy_string(), ast_format_cap_get_names(), ast_format_cap_has_type(), AST_FORMAT_CAP_NAMES_LEN, ast_log, AST_MEDIA_TYPE_AUDIO, AST_STATE_DOWN, ast_str_alloca, ast_strlen_zero, ast_verb, skinny_subline::calldirection, skinny_subchannel::callid, skinny_subline::callid, find_line_by_name(), find_subline_by_name(), skinny_subline::line, LOG_NOTICE, LOG_WARNING, NULL, SKINNY_INCOMING, skinny_new(), sub, skinny_subline::sub, skinny_subchannel::subline, skinny_subline::substate, SUBSTATE_UNSET, and tmp().
|
static |
Definition at line 5026 of file chan_skinny.c.
References ao2_ref, ast_channel_fdno(), ast_channel_nativeformats(), ast_channel_nativeformats_set(), ast_channel_readformat(), ast_channel_writeformat(), ast_debug, ast_format_cap_alloc, ast_format_cap_append, AST_FORMAT_CAP_FLAG_DEFAULT, ast_format_cap_iscompatible_format(), AST_FORMAT_CMP_NOT_EQUAL, ast_format_get_name(), AST_FRAME_VOICE, ast_null_frame, ast_rtp_instance_read(), ast_set_read_format(), ast_set_write_format(), ast_udptl_read(), ast_frame_subclass::format, ast_frame::frametype, skinny_subchannel::owner, skinny_subchannel::rtp, ast_frame::subclass, and skinny_subchannel::vrtp.
Referenced by skinny_read().
|
static |
Definition at line 2029 of file chan_skinny.c.
References ast_sched_add(), skinny_subchannel::callid, DEBUG_SUB, and SKINNY_DEBUG.
Referenced by handle_soft_key_event_message(), setsubstate(), skinny_call(), skinny_dialer(), and skinny_new().
|
static |
Definition at line 2022 of file chan_skinny.c.
References ast_sched_del(), skinny_subchannel::callid, DEBUG_SUB, and SKINNY_DEBUG.
Referenced by handle_keypad_button_message(), handle_soft_key_event_message(), and setsubstate().
|
static |
Definition at line 5135 of file chan_skinny.c.
|
static |
Definition at line 5140 of file chan_skinny.c.
References d, skinny_line::device, skinny_subchannel::line, sub, ast_channel::tech_pvt, and tmp().
|
static |
Definition at line 7520 of file chan_skinny.c.
References ast_calloc, ast_debug, ast_free, ast_inet_ntoa(), AST_LIST_INSERT_HEAD, AST_LIST_LOCK, AST_LIST_UNLOCK, ast_log, ast_mutex_lock, ast_mutex_unlock, ast_poll, ast_sched_add(), ast_tvnow(), ast_verb, auth_timeout, skinnysession::auth_timeout_sched, skinny_req::data, skinny_req::e, errno, skinnysession::fd, handle_message(), keep_alive, skinnysession::keepalive_count, skinnysession::keepalive_timeout_sched, skinnysession::last_keepalive, skinny_req::len, letohl, skinnysession::lock, skinnysession::lockstate, LOG_ERROR, LOG_NOTICE, LOG_WARNING, NULL, PACKET_TIMEOUT, skinnysession::sin, skinny_header_size, SKINNY_MAX_PACKET, skinny_noauth_cb(), skinny_nokeepalive_cb(), skinny_session_cleanup(), and skinnysession::start.
Referenced by accept_thread().
|
static |
Definition at line 7466 of file chan_skinny.c.
References AST_DEVICE_UNAVAILABLE, AST_DEVSTATE_CACHABLE, ast_devstate_changed(), ast_endpoint_blob_publish(), AST_ENDPOINT_OFFLINE, ast_endpoint_set_state(), ast_endpoint_state_type(), ast_extension_state_del(), ast_format_cap_remove_by_type(), ast_format_cap_update_by_allow_disallow(), ast_inet_ntoa(), ast_json_pack(), ast_json_unref(), AST_LIST_LOCK, AST_LIST_REMOVE, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_log, AST_MEDIA_TYPE_UNKNOWN, ast_mutex_unlock, ast_sched_del(), skinnysession::auth_timeout_sched, skinny_line::cap, d, destroy_session(), skinny_line::device, skinnysession::device, skinny_device::endpoint, skinnysession::keepalive_timeout_sched, skinny_device::lines, skinny_speeddial::list, skinnysession::lock, skinnysession::lockstate, LOG_NOTICE, not_used, NULL, RAII_VAR, skinny_device::session, skinnysession::sin, skinny_device::speeddials, skinny_speeddial::stateid, and unregister_exten().
Referenced by skinny_session().
|
static |
Definition at line 5360 of file chan_skinny.c.
References ast_channel_uniqueid(), ast_rtp_instance_set_channel_id(), skinny_subchannel::owner, skinny_subchannel::rtp, and skinny_subchannel::vrtp.
Referenced by skinny_fixup(), skinny_hangup(), and skinny_new().
|
static |
Definition at line 3641 of file chan_skinny.c.
References ao2_ref, ast_channel_tech_pvt(), ast_format_cap_get_format(), ast_format_cap_get_format_framing(), ast_format_get_name(), ast_inet_ntoa(), ast_rtp_instance_get_local_address(), ast_rtp_instance_get_remote_address, ast_sockaddr_to_sin, AST_STATE_UP, skinny_line::cap, d, DEBUG_AUDIO, skinny_line::device, skinny_device::ourip, SKINNY_DEBUG, sub, transmit_startmediatransmission(), and transmit_stopmediatransmission().
|
static |
Definition at line 5249 of file chan_skinny.c.
References ast_bridge_transfer_attended(), AST_BRIDGE_TRANSFER_SUCCESS, AST_CONTROL_HOLD, AST_CONTROL_RINGING, AST_CONTROL_UNHOLD, ast_queue_control(), AST_STATE_RINGING, skinny_subchannel::callid, DEBUG_SUB, skinny_line::device, skinny_subchannel::exten, skinny_subchannel::line, NULL, skinny_subchannel::owner, skinny_subchannel::related, send_displayprinotify(), SKINNY_DEBUG, sub, and skinny_subchannel::xferor.
Referenced by handle_transfer_button().
|
static |
Definition at line 5277 of file chan_skinny.c.
References ast_bridge_transfer_blind(), AST_BRIDGE_TRANSFER_SUCCESS, AST_CONTROL_HOLD, AST_CONTROL_UNHOLD, ast_queue_control(), skinny_subchannel::callid, DEBUG_SUB, skinny_line::device, dumpsub(), skinny_subchannel::exten, skinny_subchannel::line, NULL, skinny_subchannel::owner, skinny_subchannel::related, send_displayprinotify(), and SKINNY_DEBUG.
Referenced by dialandactivatesub().
|
static |
Definition at line 2015 of file chan_skinny.c.
References ast_channel_unlock, and skinny_subchannel::owner.
Referenced by setsubstate(), skinny_autoanswer_cb(), skinny_call(), skinny_get_rtp_peer(), skinny_read(), skinny_write(), start_rtp(), and unload_module().
|
static |
Definition at line 5091 of file chan_skinny.c.
References ast_channel_nativeformats(), ast_channel_readformat(), ast_channel_tech_pvt(), ast_channel_writeformat(), ast_format_cap_get_names(), ast_format_cap_iscompatible_format(), AST_FORMAT_CAP_NAMES_LEN, AST_FORMAT_CMP_NOT_EQUAL, ast_format_get_name(), AST_FRAME_IMAGE, AST_FRAME_VOICE, ast_log, ast_rtp_instance_write(), ast_str_alloca, ast_frame_subclass::format, ast_frame::frametype, LOG_WARNING, skinny_subchannel::rtp, skinny_locksub(), skinny_unlocksub(), sub, and ast_frame::subclass.
|
static |
Definition at line 4753 of file chan_skinny.c.
References ast_channel_set_fd(), ast_channel_uniqueid(), ast_format_cap_get_framing(), ast_rtp_codecs_set_framing(), ast_rtp_instance_fd(), ast_rtp_instance_get_codecs(), ast_rtp_instance_new(), ast_rtp_instance_set_channel_id(), ast_rtp_instance_set_prop(), ast_rtp_instance_set_qos(), AST_RTP_PROPERTY_NAT, AST_RTP_PROPERTY_RTCP, ast_sockaddr_from_sin, bindaddr, skinny_subchannel::callid, skinny_line::cap, d, DEBUG_AUDIO, skinny_line::device, skinny_subchannel::line, NULL, skinny_subchannel::owner, qos, skinny_subchannel::rtp, SKINNY_DEBUG, skinny_locksub(), skinny_unlocksub(), transmit_connect(), and skinny_subchannel::vrtp.
Referenced by setsubstate(), and skinny_newcall().
|
static |
Definition at line 5524 of file chan_skinny.c.
References ast_threadstorage_get(), SUBSTATE2STR_BUFSIZE, substate2str_threadbuf, SUBSTATE_BUSY, SUBSTATE_CALLWAIT, SUBSTATE_CONGESTION, SUBSTATE_CONNECTED, SUBSTATE_DIALING, SUBSTATE_HOLD, SUBSTATE_OFFHOOK, SUBSTATE_ONHOOK, SUBSTATE_PROGRESS, SUBSTATE_RINGIN, SUBSTATE_RINGOUT, SUBSTATE_UNSET, and tmp().
Referenced by setsubstate().
|
static |
Definition at line 3073 of file chan_skinny.c.
References ACTIVATE_CALL_PLANE_MESSAGE, skinny_data::activatecallplane, skinny_req::data, DEBUG_PACKET, htolel, activate_call_plane_message::lineInstance, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by setsubstate(), and skinny_extensionstate_cb().
|
static |
Definition at line 3374 of file chan_skinny.c.
References BKSP_REQ_MESSAGE, skinny_data::bkspmessage, bksp_req_message::callreference, skinny_req::data, DEBUG_PACKET, htolel, bksp_req_message::instance, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by handle_soft_key_event_message().
|
static |
Definition at line 2465 of file chan_skinny.c.
References ast_copy_string(), CALL_INFO_MESSAGE, call_info_message::calledParty, call_info_message::calledPartyName, skinny_data::callinfo, call_info_message::callingParty, call_info_message::callingPartyName, skinny_req::data, DEBUG_PACKET, htolel, call_info_message::instance, call_info_message::originalCalledParty, call_info_message::originalCalledPartyName, call_info_message::reference, req_alloc(), SKINNY_DEBUG, transmit_response(), and call_info_message::type.
Referenced by push_callinfo(), and send_callinfo().
|
static |
Definition at line 2493 of file chan_skinny.c.
References ast_copy_string(), CALL_INFO_MESSAGE_VARIABLE, call_info_message_variable::calldetails, call_info_message_variable::calldirection, skinny_data::callinfomessagevariable, call_info_message_variable::callreference, skinny_req::data, DEBUG_PACKET, htolel, call_info_message_variable::instance, skinny_req::len, MAXCALLINFOSTR, req_alloc(), SKINNY_DEBUG, SKINNY_OUTGOING, transmit_response(), call_info_message_variable::unknown1, call_info_message_variable::unknown2, call_info_message_variable::unknown3, call_info_message_variable::unknown4, and call_info_message_variable::unknown5.
Referenced by push_callinfo(), and send_callinfo().
|
static |
Definition at line 3087 of file chan_skinny.c.
References CALL_STATE_MESSAGE, call_state_message::callReference, call_state_message::callState, skinny_data::callstate, callstate2str(), skinny_req::data, DEBUG_PACKET, htolel, call_state_message::lineInstance, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by setsubstate(), and skinny_extensionstate_cb().
|
static |
Definition at line 3363 of file chan_skinny.c.
References CAPABILITIES_REQ_MESSAGE, DEBUG_PACKET, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by handle_message().
|
static |
Definition at line 3103 of file chan_skinny.c.
References forward_stat_message::activeforward, ast_copy_string(), ast_strlen_zero, skinny_req::data, DEBUG_PACKET, FORWARD_STAT_MESSAGE, skinny_data::forwardstat, forward_stat_message::fwdall, forward_stat_message::fwdallnum, forward_stat_message::fwdbusy, forward_stat_message::fwdbusynum, forward_stat_message::fwdnoanswer, forward_stat_message::fwdnoanswernum, htolel, forward_stat_message::lineNumber, req_alloc(), SKINNY_CFWD_ALL, SKINNY_CFWD_BUSY, SKINNY_CFWD_NOANSWER, SKINNY_DEBUG, and transmit_response().
Referenced by dialandactivatesub(), and handle_callforward_button().
|
static |
Definition at line 2787 of file chan_skinny.c.
References CLEAR_DISPLAY_MESSAGE, DEBUG_PACKET, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by setsubstate().
|
static |
Definition at line 2834 of file chan_skinny.c.
References CLEAR_PRINOTIFY_MESSAGE, skinny_data::clearprinotify, skinny_req::data, DEBUG_PACKET, htolel, clear_prinotify_message::priority, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by _skinny_message_clear(), and setsubstate().
|
static |
Definition at line 2974 of file chan_skinny.c.
References clear_prompt_message::callReference, CLEAR_PROMPT_MESSAGE, skinny_data::clearpromptstatus, skinny_req::data, DEBUG_PACKET, htolel, clear_prompt_message::lineInstance, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by setsubstate(), and skinny_extensionstate_cb().
|
static |
Definition at line 3005 of file chan_skinny.c.
References skinny_subchannel::callid, CLOSE_RECEIVE_CHANNEL_MESSAGE, skinny_data::closereceivechannel, close_receive_channel_message::conferenceId, skinny_req::data, DEBUG_PACKET, htolel, close_receive_channel_message::partyId, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by setsubstate().
|
static |
Definition at line 2650 of file chan_skinny.c.
References ao2_ref, ast_format_cap_get_format(), ast_format_cap_get_format_framing(), open_receive_channel_message::bitrate, skinny_subchannel::callid, skinny_line::cap, open_receive_channel_message::capability, codec_ast2skinny(), open_receive_channel_message::conferenceId, skinny_req::data, DEBUG_PACKET, open_receive_channel_message::echo, htolel, skinny_subchannel::line, OPEN_RECEIVE_CHANNEL_MESSAGE, skinny_data::openreceivechannel, open_receive_channel_message::packets, open_receive_channel_message::partyId, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by setsubstate(), and start_rtp().
|
static |
Definition at line 3190 of file chan_skinny.c.
References ast_localtime(), ast_tvnow(), skinny_req::data, definetimedate_message::day, definetimedate_message::dayofweek, DEBUG_PACKET, skinny_data::definetimedate, DEFINETIMEDATE_MESSAGE, definetimedate_message::hour, htolel, definetimedate_message::milliseconds, definetimedate_message::minute, definetimedate_message::month, NULL, req_alloc(), definetimedate_message::seconds, SKINNY_DEBUG, definetimedate_message::timestamp, ast_tm::tm_hour, ast_tm::tm_mday, ast_tm::tm_min, ast_tm::tm_mon, ast_tm::tm_sec, ast_tm::tm_usec, ast_tm::tm_wday, ast_tm::tm_year, transmit_response(), and definetimedate_message::year.
Referenced by handle_message(), handle_offhook_message(), handle_onhook_message(), handle_soft_key_event_message(), setsubstate(), and skinny_register().
|
static |
Definition at line 2989 of file chan_skinny.c.
References ast_copy_string(), dialed_number_message::callReference, skinny_req::data, DEBUG_PACKET, DIALED_NUMBER_MESSAGE, dialed_number_message::dialedNumber, skinny_data::dialednumber, htolel, dialed_number_message::lineInstance, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by setsubstate().
|
static |
Definition at line 2820 of file chan_skinny.c.
References ast_copy_string(), skinny_req::data, DEBUG_PACKET, DISPLAY_NOTIFY_MESSAGE, display_notify_message::displayMessage, skinny_data::displaynotify, display_notify_message::displayTimeout, htolel, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by dialandactivatesub(), handle_callforward_button(), handle_soft_key_event_message(), and handle_stimulus_message().
|
static |
Definition at line 2911 of file chan_skinny.c.
References ast_copy_string(), display_prompt_status_message::callReference, skinny_req::data, DEBUG_PACKET, DISPLAY_PROMPT_STATUS_MESSAGE, skinny_data::displaypromptstatus, skinny_data::displaypromptstatusvar, htolel, display_prompt_status_message::lineInstance, display_prompt_status_message::messageTimeout, display_prompt_status_message::promptMessage, display_prompt_status_message_variable::promptMessage, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by send_displaypromptstatus().
|
static |
Definition at line 2936 of file chan_skinny.c.
References ast_copy_string(), display_prompt_status_message_variable::callReference, skinny_req::data, DEBUG_PACKET, DISPLAY_PROMPT_STATUS_MESSAGE_VARIABLE, skinny_data::displaypromptstatus, skinny_data::displaypromptstatusvar, htolel, skinny_req::len, display_prompt_status_message_variable::lineInstance, MAXCALLINFOSTR, display_prompt_status_message::promptMessage, display_prompt_status_message_variable::promptMessage, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by send_displaypromptstatus().
|
static |
Definition at line 3320 of file chan_skinny.c.
References d, DEBUG_PACKET, skinnysession::device, KEEP_ALIVE_ACK_MESSAGE, req_alloc(), SKINNY_DEBUG, and transmit_response_bysession().
Referenced by handle_keepalive_message().
|
static |
Definition at line 2746 of file chan_skinny.c.
References skinny_req::data, DEBUG_PACKET, set_lamp_message::deviceStimulus, htolel, req_alloc(), SET_LAMP_MESSAGE, skinny_data::setlamp, SKINNY_DEBUG, set_lamp_message::stimulus, set_lamp_message::stimulusInstance, and transmit_response().
Referenced by handle_offhook_message(), handle_soft_key_event_message(), handle_stimulus_message(), mwi_event_cb(), setsubstate(), and skinny_extensionstate_cb().
|
static |
Definition at line 3166 of file chan_skinny.c.
References skinny_req::data, DEBUG_PACKET, find_line_by_instance(), find_speeddial_by_instance(), skinny_speeddial::instance, skinny_speeddial::label, letohl, LINE_STAT_RES_MESSAGE, line_stat_res_message::lineDirNumber, line_stat_res_message::lineDisplayName, line_stat_res_message::lineNumber, skinny_data::linestat, req_alloc(), SKINNY_DEBUG, and transmit_response().
Referenced by handle_message().
|
static |
Definition at line 2451 of file chan_skinny.c.
References skinny_req::data, DEBUG_PACKET, htolel, set_microphone_message::mode, req_alloc(), SET_MICROPHONE_MESSAGE, skinny_data::setmicrophone, SKINNY_DEBUG, and transmit_response().
Referenced by setsubstate().
|
static |
Definition at line 3336 of file chan_skinny.c.
References skinny_req::data, date_format, register_ack_message::dateTemplate, DEBUG_PACKET, htolel, keep_alive, register_ack_message::keepAlive, skinny_data::regack, REGISTER_ACK_MESSAGE, req_alloc(), register_ack_message::res, skinny_req::res, register_ack_message::res2, register_ack_message::secondaryKeepAlive, SKINNY_DEBUG, and transmit_response().
Referenced by handle_message().
|
static |
Definition at line 2423 of file chan_skinny.c.
References skinny_req::data, DEBUG_PACKET, register_rej_message::errMsg, name, register_message::name, skinny_data::reg, REGISTER_REJ_MESSAGE, skinny_data::regrej, req_alloc(), SKINNY_DEBUG, and transmit_response_bysession().
Referenced by handle_message().
|
static |
Definition at line 3303 of file chan_skinny.c.
References skinny_req::data, DEBUG_PACKET, req_alloc(), skinny_data::reset, RESET_MESSAGE, reset_message::resetType, SKINNY_DEBUG, and transmit_response().
Referenced by handle_skinny_reset(), and skinny_reload().
|
static |
Definition at line 2418 of file chan_skinny.c.
References skinny_device::session, and transmit_response_bysession().
Referenced by _transmit_displayprinotify(), _transmit_displayprinotifyvar(), handle_button_template_req_message(), transmit_activatecallplane(), transmit_backspace(), transmit_callinfo(), transmit_callinfo_variable(), transmit_callstate(), transmit_capabilitiesreq(), transmit_cfwdstate(), transmit_clear_display_message(), transmit_clearprinotify(), transmit_clearpromptmessage(), transmit_closereceivechannel(), transmit_connect(), transmit_definetimedate(), transmit_dialednumber(), transmit_displaynotify(), transmit_displaypromptstatus(), transmit_displaypromptstatusvar(), transmit_lamp_indication(), transmit_linestatres(), transmit_microphone_mode(), transmit_registerack(), transmit_reset(), transmit_ringer_mode(), transmit_selectsoftkeys(), transmit_serverres(), transmit_serviceurlstat(), transmit_softkeysetres(), transmit_softkeytemplateres(), transmit_speaker_mode(), transmit_speeddialstatres(), transmit_start_tone(), transmit_startmediatransmission(), transmit_stop_tone(), transmit_stopmediatransmission(), and transmit_versionres().
|
static |
Definition at line 2377 of file chan_skinny.c.
References ast_free, ast_log, ast_mutex_lock, ast_mutex_unlock, skinny_req::data, end_session(), errno, skinnysession::fd, skinny_req::len, len(), letohl, skinnysession::lock, LOG_WARNING, skinnysession::outbuf, skinny_header_size, and SKINNY_MAX_PACKET.
Referenced by transmit_keepaliveack(), transmit_registerrej(), and transmit_response().
|
static |
Definition at line 2762 of file chan_skinny.c.
References skinny_req::data, DEBUG_PACKET, htolel, req_alloc(), set_ringer_message::ringerMode, SET_RINGER_MESSAGE, skinny_data::setringer, SKINNY_DEBUG, transmit_response(), set_ringer_message::unknown1, and set_ringer_message::unknown2.
Referenced by handle_offhook_message(), handle_soft_key_event_message(), handle_stimulus_message(), setsubstate(), and skinny_extensionstate_cb().
|
static |
Definition at line 2727 of file chan_skinny.c.
References skinny_req::data, DEBUG_PACKET, htolel, select_soft_keys_message::instance, keyset_translatebitmask(), select_soft_keys_message::reference, req_alloc(), SELECT_SOFT_KEYS_MESSAGE, skinny_data::selectsoftkey, SKINNY_DEBUG, select_soft_keys_message::softKeySetIndex, transmit_response(), and select_soft_keys_message::validKeyMask.
Referenced by handle_keypad_button_message(), handle_message(), handle_soft_key_event_message(), setsubstate(), skinny_dialer(), and skinny_extensionstate_cb().
|
static |
Definition at line 3228 of file chan_skinny.c.
References ast_inet_ntoa(), skinny_req::data, DEBUG_PACKET, htolel, ourhost, skinny_device::ourip, ourport, req_alloc(), server_res_message::server, SERVER_RES_MESSAGE, server_res_message::serverIpAddr, server_res_message::serverListenPort, server_identifier::serverName, skinny_data::serverres, SKINNY_DEBUG, and transmit_response().
Referenced by handle_message().
|
static |
Definition at line 3389 of file chan_skinny.c.
References AST_LIST_TRAVERSE, skinny_req::data, DEBUG_PACKET, serviceurl_stat_message::displayName, skinny_serviceurl::displayName, htolel, serviceurl_stat_message::instance, skinny_serviceurl::instance, skinny_serviceurl::list, req_alloc(), SERVICEURL_STAT_MESSAGE, skinny_data::serviceurlmessage, skinny_device::serviceurls, SKINNY_DEBUG, transmit_response(), serviceurl_stat_message::url, and skinny_serviceurl::url.
Referenced by handle_message().
|
static |
Definition at line 3244 of file chan_skinny.c.
References ARRAY_LEN, soft_key_definitions::count, skinny_req::data, DEBUG_PACKET, DEBUG_TEMPLATE, soft_key_definitions::defaults, htolel, htoles, soft_key_definitions::mode, req_alloc(), SKINNY_DEBUG, soft_key_default_definitions, SOFT_KEY_SET_RES_MESSAGE, soft_key_template_default, soft_key_set_definition::softKeyInfoIndex, soft_key_set_res_message::softKeySetCount, soft_key_set_res_message::softKeySetDefinition, soft_key_set_res_message::softKeySetOffset, skinny_data::softkeysets, soft_key_set_definition::softKeyTemplateIndex, soft_key_set_res_message::totalSoftKeySetCount, and transmit_response().
Referenced by handle_message().
|
static |
Definition at line 3284 of file chan_skinny.c.
References skinny_req::data, DEBUG_PACKET, htolel, req_alloc(), SKINNY_DEBUG, SOFT_KEY_TEMPLATE_RES_MESSAGE, soft_key_template_res_message::softKeyCount, soft_key_template_res_message::softKeyOffset, skinny_data::softkeytemplate, soft_key_template_res_message::softKeyTemplateDefinition, soft_key_template_res_message::totalSoftKeyCount, and transmit_response().
Referenced by handle_message().
|
static |
Definition at line 2438 of file chan_skinny.c.
References skinny_req::data, DEBUG_PACKET, htolel, set_speaker_message::mode, req_alloc(), SET_SPEAKER_MESSAGE, skinny_data::setspeaker, SKINNY_DEBUG, and transmit_response().
Referenced by dumpsub(), handle_soft_key_event_message(), handle_stimulus_message(), and setsubstate().
|
static |
Definition at line 3149 of file chan_skinny.c.
References ast_copy_string(), skinny_req::data, DEBUG_PACKET, skinny_speeddial::exten, htolel, skinny_speeddial::instance, skinny_speeddial::label, req_alloc(), SKINNY_DEBUG, SPEED_DIAL_STAT_RES_MESSAGE, skinny_data::speeddial, speed_dial_stat_res_message::speedDialDirNumber, speed_dial_stat_res_message::speedDialDisplayName, speed_dial_stat_req_message::speedDialNumber, skinny_data::speeddialreq, and transmit_response().
Referenced by handle_message().
|
static |
Definition at line 2678 of file chan_skinny.c.
References skinny_req::data, DEBUG_PACKET, htolel, start_tone_message::instance, start_tone_message::reference, req_alloc(), SKINNY_DEBUG, START_TONE_MESSAGE, skinny_data::starttone, start_tone_message::tone, and transmit_response().
Referenced by handle_soft_key_event_message(), setsubstate(), skinny_dialer(), and skinny_newcall().
|
static |
Definition at line 3035 of file chan_skinny.c.
References ast_inet_ntoa(), media_qualifier::bitRate, skinny_subchannel::callid, codec_ast2skinny(), start_media_transmission_message_ip4::conferenceId, start_media_transmission_message_ip6::conferenceId, skinny_req::data, DEBUG_PACKET, htolel, media_qualifier::packets, start_media_transmission_message_ip4::packetSize, start_media_transmission_message_ip6::packetSize, start_media_transmission_message_ip4::passThruPartyId, start_media_transmission_message_ip6::passThruPartyId, start_media_transmission_message_ip4::payloadType, start_media_transmission_message_ip6::payloadType, media_qualifier::precedence, start_media_transmission_message_ip4::qualifier, start_media_transmission_message_ip6::qualifier, start_media_transmission_message_ip4::remoteIp, start_media_transmission_message_ip6::remoteIp, start_media_transmission_message_ip4::remotePort, start_media_transmission_message_ip6::remotePort, req_alloc(), SKINNY_DEBUG, START_MEDIA_TRANSMISSION_MESSAGE, skinny_data::startmedia_ip4, skinny_data::startmedia_ip6, transmit_response(), and media_qualifier::vad.
Referenced by handle_open_receive_channel_ack_message(), and skinny_set_rtp_peer().
|
static |
Definition at line 2692 of file chan_skinny.c.
References skinny_req::data, DEBUG_PACKET, htolel, stop_tone_message::instance, stop_tone_message::reference, req_alloc(), SKINNY_DEBUG, STOP_TONE_MESSAGE, skinny_data::stoptone, and transmit_response().
Referenced by handle_keypad_button_message(), setsubstate(), and skinny_indicate().
|
static |
Definition at line 3020 of file chan_skinny.c.
References skinny_subchannel::callid, stop_media_transmission_message::conferenceId, skinny_req::data, DEBUG_PACKET, htolel, stop_media_transmission_message::passThruPartyId, req_alloc(), SKINNY_DEBUG, STOP_MEDIA_TRANSMISSION_MESSAGE, skinny_data::stopmedia, and transmit_response().
Referenced by setsubstate(), and skinny_set_rtp_peer().
|
static |
Definition at line 3216 of file chan_skinny.c.
References ast_copy_string(), skinny_req::data, DEBUG_PACKET, req_alloc(), SKINNY_DEBUG, transmit_response(), version_res_message::version, skinny_data::version, and VERSION_RES_MESSAGE.
Referenced by handle_message().
|
static |
Definition at line 8748 of file chan_skinny.c.
References accept_t, ao2_cleanup, ao2_ref, ARRAY_LEN, ast_channel_unregister(), ast_cli_unregister_multiple(), ast_context_destroy_by_name(), ast_endpoint_blob_publish(), AST_ENDPOINT_OFFLINE, ast_endpoint_set_state(), ast_endpoint_state_type(), ast_json_pack(), ast_json_unref(), AST_LIST_LOCK, AST_LIST_REMOVE_HEAD, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_manager_unregister(), ast_mutex_lock, ast_mutex_unlock, ast_mwi_unsubscribe_and_join(), AST_PTHREADT_STOP, ast_rtp_glue_unregister(), ast_sched_context_destroy(), ast_softhangup(), AST_SOFTHANGUP_APPUNLOAD, ast_channel_tech::capabilities, d, delete_devices(), skinnysession::device, skinny_device::endpoint, skinny_device::lines, skinny_subchannel::list, skinny_line::lock, skinny_line::mwi_event_sub, netlock, NULL, skinny_subchannel::owner, RAII_VAR, skinny_locksub(), skinny_unlocksub(), skinnysock, sub, skinny_line::sub, skinnysession::t, unregister_exten(), and used_context.
Referenced by reload().
|
static |
Definition at line 2234 of file chan_skinny.c.
References ast_context_find(), ast_context_remove_extension(), ast_copy_string(), ast_log, ast_strlen_zero, context, ext, LOG_WARNING, NULL, regcontext, S_OR, and strsep().
Referenced by skinny_session_cleanup(), and unload_module().
|
static |
Definition at line 3525 of file chan_skinny.c.
References ast_channel_caller(), ast_channel_connected(), ast_strdup, ast_strlen_zero, c, skinny_subchannel::calldirection, skinny_subchannel::callid, d, DEBUG_SUB, skinny_line::device, skinny_subchannel::exten, skinny_subchannel::line, name, skinny_subchannel::origtoname, skinny_subchannel::origtonum, skinny_subchannel::owner, send_callinfo(), skinny_device::session, SKINNY_DEBUG, and SKINNY_OUTGOING.
Referenced by skinny_indicate().
|
static |
Definition at line 8832 of file chan_skinny.c.
|
static |
Definition at line 1234 of file chan_skinny.c.
Referenced by config_load(), and skinny_register().
|
static |
Definition at line 1238 of file chan_skinny.c.
Referenced by config_load(), and unload_module().
|
static |
Definition at line 1235 of file chan_skinny.c.
Referenced by ast_parse_arg(), config_load(), and config_parse_variables().
|
static |
Definition at line 8832 of file chan_skinny.c.
|
static |
Definition at line 203 of file chan_skinny.c.
Referenced by accept_thread(), and config_parse_variables().
|
static |
Definition at line 202 of file chan_skinny.c.
Referenced by config_parse_variables(), skinny_noauth_cb(), and skinny_session().
|
static |
Definition at line 1231 of file chan_skinny.c.
Referenced by config_load(), config_parse_variables(), handle_skinny_show_settings(), and start_rtp().
|
static |
Definition at line 1239 of file chan_skinny.c.
Referenced by setsubstate(), and skinny_new().
|
static |
Definition at line 278 of file chan_skinny.c.
Referenced by callstate2str().
|
static |
Definition at line 4738 of file chan_skinny.c.
|
static |
Definition at line 171 of file chan_skinny.c.
Referenced by config_load(), and config_parse_variables().
|
static |
Definition at line 272 of file chan_skinny.c.
Referenced by control2str().
unsigned int cos |
Definition at line 196 of file chan_skinny.c.
unsigned int cos_audio |
Definition at line 197 of file chan_skinny.c.
unsigned int cos_video |
Definition at line 198 of file chan_skinny.c.
|
static |
Definition at line 209 of file chan_skinny.c.
Referenced by config_parse_variables(), handle_skinny_show_settings(), load_module(), and transmit_registerack().
char dbgcli_buf[256] |
Definition at line 147 of file chan_skinny.c.
Referenced by skinny_debugs().
|
static |
Definition at line 173 of file chan_skinny.c.
|
static |
Definition at line 1609 of file chan_skinny.c.
|
static |
|
static |
Global jitterbuffer configuration - by default, jb is disabled
Definition at line 254 of file chan_skinny.c.
|
static |
Definition at line 1497 of file chan_skinny.c.
|
static |
|
static |
Definition at line 269 of file chan_skinny.c.
Referenced by device2str().
|
static |
|
static |
Definition at line 1357 of file chan_skinny.c.
Referenced by setsubstate().
|
static |
Definition at line 1360 of file chan_skinny.c.
Referenced by handle_soft_key_event_message(), and skinny_dialer().
|
static |
Definition at line 262 of file chan_skinny.c.
Referenced by config_load(), config_parse_variables(), handle_skinny_show_settings(), and skinny_new().
|
static |
Definition at line 1236 of file chan_skinny.c.
Referenced by __bt_stkacq(), ast_parse_arg(), config_load(), config_parse_variables(), connect_asterisk(), connect_sphinx(), dbm_clearerr(), dbm_error(), iax_template_parse(), main(), manager_login(), process_sdp(), and reload_config().
|
static |
Definition at line 205 of file chan_skinny.c.
Referenced by config_load(), config_parse_variables(), handle_keypad_button_message(), and handle_skinny_show_settings().
|
static |
Definition at line 201 of file chan_skinny.c.
Referenced by config_parse_variables(), handle_keepalive_message(), handle_skinny_show_settings(), skinny_nokeepalive_cb(), skinny_session(), and transmit_registerack().
|
static |
|
static |
Definition at line 1363 of file chan_skinny.c.
Referenced by skinny_dialer().
|
static |
Definition at line 265 of file chan_skinny.c.
|
static |
Definition at line 1354 of file chan_skinny.c.
Referenced by config_load(), and unload_module().
|
static |
To apease the stupid compiler option on ast_sched_del() since we don't care about the return value.
Definition at line 1369 of file chan_skinny.c.
Referenced by handle_keepalive_message(), skinny_register(), and skinny_session_cleanup().
|
static |
Definition at line 1232 of file chan_skinny.c.
Referenced by config_load(), and transmit_serverres().
|
static |
Definition at line 1233 of file chan_skinny.c.
Referenced by config_parse_variables(), and transmit_serverres().
struct { ... } qos |
Referenced by config_load(), config_parse_variables(), and start_rtp().
|
static |
Definition at line 208 of file chan_skinny.c.
Referenced by config_parse_variables(), handle_skinny_show_settings(), register_exten(), and unregister_exten().
|
static |
Definition at line 1351 of file chan_skinny.c.
|
static |
Referenced by __init_manager(), astman_verify_session_readpermissions(), astman_verify_session_writepermissions(), build_mansession(), check_manager_session_inuse(), find_session(), find_session_by_nonce(), function_amiclient(), handle_showmanconn(), manager_default_msg_cb(), manager_generic_msg_cb(), purge_sessions(), and session_destroy().
|
static |
Definition at line 1222 of file chan_skinny.c.
Referenced by req_alloc(), skinny_session(), and transmit_response_bysession().
|
static |
Definition at line 3696 of file chan_skinny.c.
|
static |
Definition at line 1655 of file chan_skinny.c.
|
static |
Definition at line 146 of file chan_skinny.c.
Referenced by handle_skinny_set_debug(), and skinny_debugs().
|
static |
Definition at line 1228 of file chan_skinny.c.
Referenced by config_device(), config_line(), and skinny_reload().
|
static |
Definition at line 1237 of file chan_skinny.c.
Referenced by accept_thread(), config_load(), and unload_module().
|
static |
Definition at line 929 of file chan_skinny.c.
|
static |
Definition at line 979 of file chan_skinny.c.
|
static |
Definition at line 962 of file chan_skinny.c.
|
static |
Definition at line 972 of file chan_skinny.c.
|
static |
Definition at line 1016 of file chan_skinny.c.
Referenced by keyset_translatebitmask(), and transmit_softkeysetres().
|
static |
Definition at line 952 of file chan_skinny.c.
|
static |
Definition at line 994 of file chan_skinny.c.
|
static |
Definition at line 939 of file chan_skinny.c.
|
static |
Definition at line 918 of file chan_skinny.c.
|
static |
Definition at line 946 of file chan_skinny.c.
|
static |
Definition at line 983 of file chan_skinny.c.
|
static |
Definition at line 988 of file chan_skinny.c.
|
static |
Definition at line 1010 of file chan_skinny.c.
|
static |
Definition at line 1004 of file chan_skinny.c.
|
static |
Definition at line 1000 of file chan_skinny.c.
|
static |
Definition at line 888 of file chan_skinny.c.
Referenced by transmit_softkeysetres().
|
static |
Definition at line 275 of file chan_skinny.c.
Referenced by substate2str().
|
static |
Definition at line 170 of file chan_skinny.c.
unsigned int tos |
Definition at line 193 of file chan_skinny.c.
unsigned int tos_audio |
Definition at line 194 of file chan_skinny.c.
unsigned int tos_video |
Definition at line 195 of file chan_skinny.c.
|
static |
Definition at line 204 of file chan_skinny.c.
Referenced by accept_thread(), destroy_session(), and handle_message().
|
static |
Definition at line 207 of file chan_skinny.c.
Referenced by config_parse_variables(), and unload_module().
|
static |
Definition at line 210 of file chan_skinny.c.
Referenced by skinny_register().
|
static |
Definition at line 206 of file chan_skinny.c.
Referenced by build_peer(), config_line(), config_load(), config_parse_variables(), handle_skinny_show_settings(), set_peer_defaults(), and sip_send_mwi_to_peer().