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
|
@@ -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,
|
|
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);
|