X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=message.h;h=82df9d51d146ba495428230c9207be47fd04e3c8;hp=4cfc5b19e107a4619dc48e43b1aa19a716c0bb25;hb=5e372ed3295f6a090f56ba1cd2c0efe04d42069c;hpb=877a2dfd52782f72ba2d28483212166f2326b1fa diff --git a/message.h b/message.h index 4cfc5b1..82df9d5 100644 --- a/message.h +++ b/message.h @@ -148,6 +148,24 @@ enum { B_MODE_HDLC, /* hdlc data mode */ }; +enum { + MEDIA_TYPE_ALAW = 1, + MEDIA_TYPE_ULAW, + MEDIA_TYPE_GSM, + MEDIA_TYPE_GSM_EFR, + MEDIA_TYPE_AMR, + MEDIA_TYPE_GSM_HR, +}; + +/* rtp-info structure */ +struct rtp_info { + int payloads; /* number of payloads offered */ + unsigned char payload_types[32];/* rtp payload types */ + int media_types[32]; /* media type of given payload */ + unsigned int ip; /* peer's IP */ + unsigned short port; /* peer's port */ +}; + /* call-info structure CALLER */ struct caller_info { char id[32]; /* id of caller (user number) */ @@ -191,6 +209,7 @@ struct connect_info { int screen; /* who provided the number */ char display[84]; /* display information */ char imsi[16]; /* IMSI for gsm terminated calls */ + struct rtp_info rtpinfo; /* info about RTP peer */ }; /* call-info structure DISCONNECT */ @@ -240,6 +259,7 @@ struct notify_info { struct progress_info { int progress; /* progress indicator */ int location; /* progress location */ + struct rtp_info rtpinfo; /* info about RTP peer */ }; /* call-info structure FACILITY */ @@ -266,7 +286,8 @@ struct message_setup { struct redir_info redirinfo; /* info on redirection (to the calling user) */ struct capa_info capainfo; /* info on l2,l3 capability */ struct useruser_info useruser; /* user-user */ -// struct progress_info progress; /* info on call progress */ + struct progress_info progress; /* info on call progress */ + struct rtp_info rtpinfo; /* info about RTP peer */ char context[128]; /* asterisk context */ };