Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: sip.h
- Revision:
- 132:05cd37f7e007
- Parent:
- 121:ee02790d00b7
- Child:
- 135:2f4290590e51
--- a/sip.h Tue Jul 21 20:03:35 2015 +0000
+++ b/sip.h Tue Sep 01 17:21:11 2015 +0000
@@ -13,21 +13,22 @@
#include "mbed.h"
#include <stdint.h>
#include "call.h"
+%: include "config_manager.h"
+%: include "shared_variables.h"
const uint8_t INVITE_MAX_WAITING_TIME = 45;
///< Indica o timeout de espera de resposta de pedido de ligação para o servidor, após esse tempo responde ligação encerrado para o Call_box
+
const uint16_t SIP_MAXFIELDSIZE = 256;
///< Define o tamanho máximo de algumas mensagens usadas na negociação Sip.
+
const uint16_t SIP_MAXMSGSIZE = 1024;
-///< Define o tamanho máximo das mensagens enviadas, porém, fora de uso atualmente.
-const uint8_t SIP_REGISTER_EXPIRES = 120;
-///< Define o timeout do registro no servidor asterisk ( * ), porém, hardcoded atualmente.
-const uint32_t DRAMBASEADDR = 0xa0000000;
-///< Indica o inicio do bloco DRAM, porém, fora de uso atualmente.
+///< Define o tamanho máximo das mensagens enviadas.
+
static const char SIP_ALLOW[] = "Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER";
///< String de composição de pacotes enviados pela Header para o *
-static char fill_random_aux[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789pP";
+static const char fill_random_aux[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789pP";
const uint8_t CALLBOX_STRING_SIZE = 32;
@@ -204,7 +205,7 @@
*
* @return Um ponteiro para o inicio do pacote montado ( mesmo endereço passado como parâmetro ).
*/
- char * build_ack_package ( char * buffer, const unsigned char * orig );
+ char * build_ack_package ( void );
/**
* @Synopsis
@@ -214,7 +215,7 @@
*
* @return Um ponteiro para o inicio do pacote montado ( mesmo endereço passado como parâmetro ).
*/
- char * build_reply_package ( char * buffer, const unsigned char * orig );
+ char * build_reply_package ( void );
/**
* @Synopsis Preenche de forma aleatótia 16 posições de memória.
@@ -399,5 +400,7 @@
void sip_set_status ( const uint8_t status );
void reset_call ( void );
+
+ void update ( void );
};
#endif
\ No newline at end of file
