sip-lab 1.12.2 → 1.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sip-lab",
3
- "version": "1.12.2",
3
+ "version": "1.12.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -14,7 +14,6 @@ PJ_DECL(pj_status_t) chainlink_fax_port_create( pj_pool_t *pool,
14
14
  void *user_data,
15
15
  int result),
16
16
  void *user_data,
17
- int is_caller,
18
17
  int is_sender,
19
18
  const char *file,
20
19
  pjmedia_port **p_port);
@@ -61,7 +61,6 @@ struct fax_device
61
61
  fax_state_t fax;
62
62
  void (*fax_cb)(pjmedia_port*, void*, int);
63
63
  void *fax_cb_user_data;
64
- int is_caller;
65
64
  int is_sender;
66
65
 
67
66
  pj_lock_t *lock;
@@ -121,7 +120,6 @@ PJ_DEF(pj_status_t) chainlink_fax_port_create( pj_pool_t *pool,
121
120
  void *user_data,
122
121
  int result),
123
122
  void *user_data,
124
- int is_caller,
125
123
  int is_sender,
126
124
  const char *file,
127
125
  pjmedia_port **p_port)
@@ -145,7 +143,7 @@ PJ_DEF(pj_status_t) chainlink_fax_port_create( pj_pool_t *pool,
145
143
  fd->link.port.put_frame = &fax_put_frame;
146
144
  fd->link.port.on_destroy = &fax_on_destroy;
147
145
 
148
- fax_init(&fd->fax, is_caller);
146
+ fax_init(&fd->fax, is_sender);
149
147
  //fax_set_transmit_on_idle(&fd->fax,1);
150
148
 
151
149
  t30_state_t *t30 = fax_get_t30_state(&fd->fax);
@@ -162,7 +160,6 @@ PJ_DEF(pj_status_t) chainlink_fax_port_create( pj_pool_t *pool,
162
160
  //printf("setting document_handler with user_data=%p\n", (void*)fd);
163
161
  t30_set_document_handler(t30, &document_handler, (void*)fd);
164
162
 
165
- fd->is_caller = is_caller;
166
163
  fd->is_sender = is_sender;
167
164
 
168
165
  pj_status_t status = pj_lock_create_simple_mutex(pool, "fax", &fd->lock);
package/src/sip.cpp CHANGED
@@ -4346,7 +4346,6 @@ bool prepare_fax(Call *c, bool is_sender, const char *file) {
4346
4346
  PJMEDIA_PIA_BITS(&stream_port->info),
4347
4347
  on_fax_result,
4348
4348
  c,
4349
- c->outgoing,
4350
4349
  is_sender,
4351
4350
  file,
4352
4351
  (pjmedia_port**)&c->fax);