summaryrefslogtreecommitdiffstats
path: root/dss1.h
diff options
context:
space:
mode:
authorSuper User2008-03-24 11:13:44 +0100
committerSuper User2008-03-24 11:13:44 +0100
commitd9d954e58d6acf8c3de95402110e691f0bc29688 (patch)
treef17628b6953b4afd485385e38a80e77f835d4373 /dss1.h
parentfixed dialtone bug (diff)
downloadlcr-d9d954e58d6acf8c3de95402110e691f0bc29688.tar.gz
lcr-d9d954e58d6acf8c3de95402110e691f0bc29688.tar.xz
lcr-d9d954e58d6acf8c3de95402110e691f0bc29688.zip
socket api work
modified: apppbx.cpp modified: cause.c modified: dss1.cpp modified: dss1.h modified: ie.cpp modified: interface.c modified: mISDN.cpp modified: mISDN.h modified: main.c modified: main.h modified: message.c modified: options.c modified: port.cpp modified: q931.h modified: route.c modified: socket_server.c modified: tones.c
Diffstat (limited to 'dss1.h')
-rw-r--r--dss1.h41
1 files changed, 40 insertions, 1 deletions
diff --git a/dss1.h b/dss1.h
index 49121fa..7dba2d9 100644
--- a/dss1.h
+++ b/dss1.h
@@ -29,7 +29,7 @@ class Pdss1 : public PmISDN
int p_m_d_collect_location;
void new_state(int state); /* set new state */
- void isdn_show_send_message(unsigned long prim, msg_t *msg);
+// void isdn_show_send_message(unsigned long prim, msg_t *msg);
int received_first_reply_to_setup(unsigned long prim, int channel, int exclusive);
int hunt_bchannel(int exclusive, int channel);
void information_ind(unsigned long prim, unsigned long dinfo, void *data);
@@ -61,6 +61,44 @@ class Pdss1 : public PmISDN
void message_release(unsigned long epoint_id, int message_id, union parameter *param);
/* IE conversion */
+#ifdef SOCKET_MISDN
+ void enc_ie_complete(struct l3_msg *l3m, int complete);
+ void dec_ie_complete(struct l3_msg *l3m, int *complete);
+ void enc_ie_bearer(struct l3_msg *l3m, int coding, int capability, int mode, int rate, int multi, int user);
+ void dec_ie_bearer(struct l3_msg *l3m, int *coding, int *capability, int *mode, int *rate, int *multi, int *user);
+ void enc_ie_call_id(struct l3_msg *l3m, unsigned char *callid, int callid_len);
+ void dec_ie_call_id(struct l3_msg *l3m, unsigned char *callid, int *callid_len);
+ void enc_ie_called_pn(struct l3_msg *l3m, int type, int plan, unsigned char *number);
+ void dec_ie_called_pn(struct l3_msg *l3m, int *type, int *plan, unsigned char *number, int number_len);
+ void enc_ie_calling_pn(struct l3_msg *l3m, int type, int plan, int present, int screen, unsigned char *number);
+ void dec_ie_calling_pn(struct l3_msg *l3m, int *type, int *plan, int *present, int *screen, unsigned char *number, int number_len);
+ void enc_ie_connected_pn(struct l3_msg *l3m, int type, int plan, int present, int screen, unsigned char *number);
+ void dec_ie_connected_pn(struct l3_msg *l3m, int *type, int *plan, int *present, int *screen, unsigned char *number, int number_len);
+ void enc_ie_cause(struct l3_msg *l3m, int location, int cause);
+ void dec_ie_cause(struct l3_msg *l3m, int *location, int *cause);
+ void enc_ie_channel_id(struct l3_msg *l3m, int exclusive, int channel);
+ void dec_ie_channel_id(struct l3_msg *l3m, int *exclusive, int *channel);
+ void enc_ie_date(struct l3_msg *l3m, time_t ti, int seconds);
+ void enc_ie_display(struct l3_msg *l3m, unsigned char *display);
+ void dec_ie_display(struct l3_msg *l3m, unsigned char *display, int display_len);
+ void enc_ie_keypad(struct l3_msg *l3m, unsigned char *keypad);
+ void dec_ie_keypad(struct l3_msg *l3m, unsigned char *keypad, int keypad_len);
+ void enc_ie_notify(struct l3_msg *l3m, int notify);
+ void dec_ie_notify(struct l3_msg *l3m, int *notify);
+ void enc_ie_progress(struct l3_msg *l3m, int coding, int location, int progress);
+ void dec_ie_progress(struct l3_msg *l3m, int *coding, int *location, int *progress);
+ void enc_ie_hlc(struct l3_msg *l3m, int coding, int interpretation, int presentation, int hlc, int exthlc);
+ void dec_ie_hlc(struct l3_msg *l3m, int *coding, int *interpretation, int *presentation, int *hlc, int *exthlc);
+ void enc_ie_redir_nr(struct l3_msg *l3m, int type, int plan, int present, int screen, int reason, unsigned char *number);
+ void dec_ie_redir_nr(struct l3_msg *l3m, int *type, int *plan, int *present, int *screen, int *reason, unsigned char *number, int number_len);
+ void enc_ie_redir_dn(struct l3_msg *l3m, int type, int plan, int present, unsigned char *number);
+ void dec_ie_redir_dn(struct l3_msg *l3m, int *type, int *plan, int *present, unsigned char *number, int number_len);
+ void enc_ie_facility(struct l3_msg *l3m, unsigned char *facility, int facility_len);
+ void dec_ie_facility(struct l3_msg *l3m, unsigned char *facility, int *facility_len);
+ void dec_facility_centrex(struct l3_msg *l3m, unsigned char *cnip, int cnip_len);
+ void enc_ie_useruser(struct l3_msg *l3m, int protocol, unsigned char *user, int user_len);
+ void dec_ie_useruser(struct l3_msg *l3m, int *protocol, unsigned char *user, int *user_len);
+#else
void enc_ie_complete(unsigned char **ntmode, msg_t *msg, int complete);
void dec_ie_complete(unsigned char *p, Q931_info_t *qi, int *complete);
void enc_ie_bearer(unsigned char **ntmode, msg_t *msg, int coding, int capability, int mode, int rate, int multi, int user);
@@ -97,6 +135,7 @@ class Pdss1 : public PmISDN
void dec_facility_centrex(unsigned char *p, Q931_info_t *qi, unsigned char *cnip, int cnip_len);
void enc_ie_useruser(unsigned char **ntmode, msg_t *msg, int protocol, unsigned char *user, int user_len);
void dec_ie_useruser(unsigned char *p, Q931_info_t *qi, int *protocol, unsigned char *user, int *user_len);
+#endif
};