Lines Matching refs:call
12 * Handle a call as a separate thread
50 void add_payload_hdr (struct tunnel *t, struct call *c, struct buffer *buf)
148 "%s: Too many errors. Declaring call dead.\n",
205 void call_close (struct call *c)
209 struct call *tmp, *tmp2;
212 log (LOG_DEBUG, "%s: called on null call or containerless call\n",
329 * Just close a call
340 log (LOG_DEBUG, "%s: Actually closing call %d\n", __FUNCTION__,
380 log (LOG_DEBUG, "%s: enqueuing close message for call %d\n",
393 void destroy_call (struct call *c)
396 * Here, we unconditionally destroy a call.
399 struct call *p;
439 * Remove us from the call list, although
482 struct call *new_call (struct tunnel *parent)
485 struct call *tmp = malloc (sizeof (struct call));
566 tmp->dial_no[0] = '\0'; /* jz: dialing number for outgoing call */
570 struct call *get_tunnel (int tunnel, unsigned int addr, int port)
587 struct call *get_call (int tunnel, int call, unsigned int addr, int port)
590 * Figure out which call struct should handle this.
591 * If we have tunnel and call ID's then they are unique.
596 struct call *sc;
604 if (call)
609 if (sc->ourcid == call)
613 log (LOG_DEBUG, "%s: can't find call %d in tunnel %d\n",
614 __FUNCTION__, call, tunnel);
632 /* You can't specify a call number if you haven't specified
635 if (call)
638 "%s: call ID specified, but no tunnel ID specified. tossing.\n",