All pastes #124662 Raw Edit

Someone

public text v1 · immutable
·published 2006-08-10 05:12 UTC
rendered paste body
        char dialstring[2048];
        struct sla_originate_helper *slal;
        pthread_attr_t attr;
        pthread_t th;
        int reason = 0;
        struct ast_channel *chan = NULL;
        ASTOBJ_CONTAINER_TRAVERSE(&sla->stations, 1, {
                        if(dialstring[0] == '\0') {
                                snprintf(dialstring,sizeof(dialstring),"%s/%s", iterator->tech,iterator->dest);
                        }
                        else
                                snprintf(dialstring,sizeof(dialstring),"%s&%s/%s",dialstring, iterator->tech,iterator->dest);
        });
        ast_verbose("Dial String %s\n",dialstring);
        ast_pbx_outgoing_app("local", AST_FORMAT_SLINEAR, "1001", 99999, "dial", dialstring, &reason, 1,
                S_OR(orig->cid.cid_num, NULL),
                S_OR(orig->cid.cid_name, NULL),
                NULL, NULL, &chan);