[Pkg-voip-commits] r5011 - in /asterisk/trunk/debian/patches: ./ bristuff/
paravoid at alioth.debian.org
paravoid at alioth.debian.org
Mon Dec 3 19:08:48 UTC 2007
Author: paravoid
Date: Mon Dec 3 19:08:48 2007
New Revision: 5011
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5011
Log:
Do a much needed quilt refresh on all patches, part 1 (ugly!)
Modified:
asterisk/trunk/debian/patches/astvarrundir
asterisk/trunk/debian/patches/bristuff/answer-before-say
asterisk/trunk/debian/patches/bristuff/app-dial-R-noinband
asterisk/trunk/debian/patches/bristuff/app-dial-c-callback
asterisk/trunk/debian/patches/bristuff/app-dial-etc
asterisk/trunk/debian/patches/bristuff/app-dial-priority-202
asterisk/trunk/debian/patches/bristuff/app-meetme-avoid-overflows
asterisk/trunk/debian/patches/bristuff/ast-device-state-CID
asterisk/trunk/debian/patches/bristuff/ast-send-message
asterisk/trunk/debian/patches/bristuff/ast-send-message-users
asterisk/trunk/debian/patches/bristuff/ast_monitor_start-targetscript
asterisk/trunk/debian/patches/bristuff/chan-iax2-hangup-cause
asterisk/trunk/debian/patches/bristuff/configurable-AST_SYSTEM_NAME
asterisk/trunk/debian/patches/bristuff/feature-autoanswer
asterisk/trunk/debian/patches/bristuff/feature-holdedcalls
asterisk/trunk/debian/patches/bristuff/misc-manager-dbdel
asterisk/trunk/debian/patches/bristuff/uniqueid-01-use-pid-on-uniqueid-generation
asterisk/trunk/debian/patches/bristuff/uniqueid-10-channel-ops-uniqueid
asterisk/trunk/debian/patches/bristuff/uniqueid-40-manager
asterisk/trunk/debian/patches/bristuff/zapata-bri+euroisdn
asterisk/trunk/debian/patches/bristuff/zapata-device-state
asterisk/trunk/debian/patches/bristuff/zapata-gsm
asterisk/trunk/debian/patches/configure-libc-client
asterisk/trunk/debian/patches/h323-no-deps-on-asterisk
asterisk/trunk/debian/patches/make-clean-fixes
asterisk/trunk/debian/patches/pubkey_jnctn
asterisk/trunk/debian/patches/tos-libcap
asterisk/trunk/debian/patches/use-libpri-bristuffed
Modified: asterisk/trunk/debian/patches/astvarrundir
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/astvarrundir?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/astvarrundir (original)
+++ asterisk/trunk/debian/patches/astvarrundir Mon Dec 3 19:08:48 2007
@@ -7,7 +7,7 @@
--- a/Makefile
+++ b/Makefile
-@@ -115,7 +115,7 @@ else
+@@ -122,7 +122,7 @@ else
ASTSBINDIR=$(sbindir)
ASTSPOOLDIR=$(localstatedir)/spool/asterisk
ASTLOGDIR=$(localstatedir)/log/asterisk
Modified: asterisk/trunk/debian/patches/bristuff/answer-before-say
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/answer-before-say?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/answer-before-say (original)
+++ asterisk/trunk/debian/patches/bristuff/answer-before-say Mon Dec 3 19:08:48 2007
@@ -3,7 +3,7 @@
--- a/main/pbx.c
+++ b/main/pbx.c
-@@ -6002,6 +6002,9 @@ static int pbx_builtin_saynumber(struct
+@@ -6064,6 +6064,9 @@ static int pbx_builtin_saynumber(struct
return -1;
}
}
@@ -13,7 +13,7 @@
return ast_say_number(chan, atoi(tmp), "", chan->language, options);
}
-@@ -6009,8 +6012,12 @@ static int pbx_builtin_saydigits(struct
+@@ -6071,8 +6074,12 @@ static int pbx_builtin_saydigits(struct
{
int res = 0;
@@ -27,7 +27,7 @@
return res;
}
-@@ -6018,8 +6025,12 @@ static int pbx_builtin_saycharacters(str
+@@ -6080,8 +6087,12 @@ static int pbx_builtin_saycharacters(str
{
int res = 0;
@@ -41,7 +41,7 @@
return res;
}
-@@ -6027,8 +6038,12 @@ static int pbx_builtin_sayphonetic(struc
+@@ -6089,8 +6100,12 @@ static int pbx_builtin_sayphonetic(struc
{
int res = 0;
Modified: asterisk/trunk/debian/patches/bristuff/app-dial-R-noinband
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/app-dial-R-noinband?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/app-dial-R-noinband (original)
+++ asterisk/trunk/debian/patches/bristuff/app-dial-R-noinband Mon Dec 3 19:08:48 2007
@@ -1,6 +1,6 @@
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
-@@ -187,6 +187,8 @@ static char *descrip =
+@@ -192,6 +192,8 @@ static char *descrip =
" family/key is not specified.\n"
" r - Indicate ringing to the calling party. Pass no audio to the calling\n"
" party until the called channel has answered.\n"
@@ -9,7 +9,7 @@
" S(x) - Hang up the call after 'x' seconds *after* the called party has\n"
" answered the call.\n"
" t - Allow the called party to transfer the calling party by sending the\n"
-@@ -247,6 +249,7 @@ enum {
+@@ -248,6 +250,7 @@ enum {
OPT_CALLEE_PARK = (1 << 25),
OPT_CALLER_PARK = (1 << 26),
OPT_IGNORE_FORWARDING = (1 << 27),
@@ -17,7 +17,7 @@
} dial_exec_option_flags;
#define DIAL_STILLGOING (1 << 30)
-@@ -288,6 +291,7 @@ AST_APP_OPTIONS(dial_exec_options, {
+@@ -291,6 +294,7 @@ AST_APP_OPTIONS(dial_exec_options, {
AST_APP_OPTION('p', OPT_SCREENING),
AST_APP_OPTION_ARG('P', OPT_PRIVACY, OPT_ARG_PRIVACY),
AST_APP_OPTION('r', OPT_RINGBACK),
@@ -25,7 +25,7 @@
AST_APP_OPTION_ARG('S', OPT_DURATION_STOP, OPT_ARG_DURATION_STOP),
AST_APP_OPTION('t', OPT_CALLEE_TRANSFER),
AST_APP_OPTION('T', OPT_CALLER_TRANSFER),
-@@ -404,7 +408,7 @@ static struct ast_channel *wait_for_answ
+@@ -409,7 +413,7 @@ static struct ast_channel *wait_for_answ
int orig = *to;
struct ast_channel *peer = NULL;
/* single is set if only one destination is enabled */
@@ -34,7 +34,7 @@
if (single) {
/* Turn off hold music, etc */
-@@ -631,7 +635,7 @@ static struct ast_channel *wait_for_answ
+@@ -637,7 +641,7 @@ static struct ast_channel *wait_for_answ
/* Setup early media if appropriate */
if (single)
ast_rtp_early_bridge(in, c);
@@ -43,7 +43,7 @@
ast_indicate(in, AST_CONTROL_PROGRESS);
break;
case AST_CONTROL_VIDUPDATE:
-@@ -644,7 +648,7 @@ static struct ast_channel *wait_for_answ
+@@ -650,7 +654,7 @@ static struct ast_channel *wait_for_answ
ast_verbose (VERBOSE_PREFIX_3 "%s is proceeding passing it to %s\n", c->name, in->name);
if (single)
ast_rtp_early_bridge(in, c);
@@ -52,7 +52,7 @@
ast_indicate(in, AST_CONTROL_PROCEEDING);
break;
case AST_CONTROL_HOLD:
-@@ -662,7 +666,7 @@ static struct ast_channel *wait_for_answ
+@@ -668,7 +672,7 @@ static struct ast_channel *wait_for_answ
/* Ignore going off hook and flash */
break;
case -1:
@@ -61,7 +61,7 @@
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "%s stopped sounds\n", c->name);
ast_indicate(in, -1);
-@@ -1081,7 +1085,7 @@ static int dial_exec_full(struct ast_cha
+@@ -1106,7 +1110,7 @@ static int dial_exec_full(struct ast_cha
outbound_group = pbx_builtin_getvar_helper(chan, "OUTBOUND_GROUP");
}
@@ -70,7 +70,7 @@
/* loop through the list of dial destinations */
rest = args.peers;
while ((cur = strsep(&rest, "&")) ) {
-@@ -1101,7 +1105,7 @@ static int dial_exec_full(struct ast_cha
+@@ -1126,7 +1130,7 @@ static int dial_exec_full(struct ast_cha
OPT_CALLEE_HANGUP | OPT_CALLER_HANGUP |
OPT_CALLEE_MONITOR | OPT_CALLER_MONITOR |
OPT_CALLEE_PARK | OPT_CALLER_PARK |
@@ -79,7 +79,7 @@
ast_set2_flag(tmp, args.url, DIAL_NOFORWARDHTML);
}
ast_copy_string(numsubst, number, sizeof(numsubst));
-@@ -1281,7 +1285,7 @@ static int dial_exec_full(struct ast_cha
+@@ -1306,7 +1310,7 @@ static int dial_exec_full(struct ast_cha
ast_moh_start(chan, NULL, NULL);
}
ast_indicate(chan, AST_CONTROL_PROGRESS);
@@ -88,7 +88,7 @@
ast_indicate(chan, AST_CONTROL_RINGING);
sentringing++;
}
-@@ -1396,7 +1400,7 @@ static int dial_exec_full(struct ast_cha
+@@ -1421,7 +1425,7 @@ static int dial_exec_full(struct ast_cha
if (ast_test_flag(&opts, OPT_MUSICBACK)) {
ast_moh_stop(chan);
Modified: asterisk/trunk/debian/patches/bristuff/app-dial-c-callback
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/app-dial-c-callback?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/app-dial-c-callback (original)
+++ asterisk/trunk/debian/patches/bristuff/app-dial-c-callback Mon Dec 3 19:08:48 2007
@@ -1,6 +1,6 @@
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
-@@ -190,7 +190,8 @@ static char *descrip =
+@@ -195,7 +195,8 @@ static char *descrip =
" R - indicate ringing to the calling party when the called party indicates\n"
" ringing, pass no audio until answered.\n"
" S(x) - Hang up the call after 'x' seconds *after* the called party has\n"
@@ -10,7 +10,7 @@
" t - Allow the called party to transfer the calling party by sending the\n"
" DTMF sequence defined in features.conf.\n"
" T - Allow the calling party to transfer the called party by sending the\n"
-@@ -250,6 +251,7 @@ enum {
+@@ -251,6 +252,7 @@ enum {
OPT_CALLER_PARK = (1 << 26),
OPT_IGNORE_FORWARDING = (1 << 27),
OPT_NOINBAND = (1 << 28),
@@ -18,7 +18,7 @@
} dial_exec_option_flags;
#define DIAL_STILLGOING (1 << 30)
-@@ -292,6 +294,7 @@ AST_APP_OPTIONS(dial_exec_options, {
+@@ -295,6 +297,7 @@ AST_APP_OPTIONS(dial_exec_options, {
AST_APP_OPTION_ARG('P', OPT_PRIVACY, OPT_ARG_PRIVACY),
AST_APP_OPTION('r', OPT_RINGBACK),
AST_APP_OPTION('R', OPT_NOINBAND),
@@ -26,7 +26,7 @@
AST_APP_OPTION_ARG('S', OPT_DURATION_STOP, OPT_ARG_DURATION_STOP),
AST_APP_OPTION('t', OPT_CALLEE_TRANSFER),
AST_APP_OPTION('T', OPT_CALLER_TRANSFER),
-@@ -619,14 +622,20 @@ static struct ast_channel *wait_for_answ
+@@ -625,14 +628,20 @@ static struct ast_channel *wait_for_answ
HANDLE_CAUSE(AST_CAUSE_CONGESTION, in);
break;
case AST_CONTROL_RINGING:
@@ -51,7 +51,7 @@
}
break;
case AST_CONTROL_PROGRESS:
-@@ -1085,7 +1094,7 @@ static int dial_exec_full(struct ast_cha
+@@ -1110,7 +1119,7 @@ static int dial_exec_full(struct ast_cha
outbound_group = pbx_builtin_getvar_helper(chan, "OUTBOUND_GROUP");
}
Modified: asterisk/trunk/debian/patches/bristuff/app-dial-etc
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/app-dial-etc?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/app-dial-etc (original)
+++ asterisk/trunk/debian/patches/bristuff/app-dial-etc Mon Dec 3 19:08:48 2007
@@ -1,6 +1,6 @@
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
-@@ -64,6 +64,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revisi
+@@ -65,6 +65,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revisi
#include "asterisk/manager.h"
#include "asterisk/privacy.h"
#include "asterisk/stringfields.h"
@@ -8,7 +8,7 @@
static char *app = "Dial";
-@@ -1604,23 +1605,25 @@ static int dial_exec_full(struct ast_cha
+@@ -1629,23 +1630,25 @@ static int dial_exec_full(struct ast_cha
ast_set_flag(&(config.features_caller), AST_FEATURE_PLAY_WARNING);
if (play_to_callee)
ast_set_flag(&(config.features_callee), AST_FEATURE_PLAY_WARNING);
Modified: asterisk/trunk/debian/patches/bristuff/app-dial-priority-202
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/app-dial-priority-202?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/app-dial-priority-202 (original)
+++ asterisk/trunk/debian/patches/bristuff/app-dial-priority-202 Mon Dec 3 19:08:48 2007
@@ -11,7 +11,7 @@
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
-@@ -123,7 +127,8 @@ static char *descrip =
+@@ -124,7 +128,8 @@ static char *descrip =
" H - Allow the calling party to hang up by hitting the '*' DTMF digit.\n"
" i - Asterisk will ignore any forwarding requests it may receive on this\n"
" dial attempt.\n"
@@ -21,7 +21,7 @@
" k - Allow the called party to enable parking of the call by sending\n"
" the DTMF sequence defined for call parking in features.conf.\n"
" K - Allow the calling party to enable parking of the call by sending\n"
-@@ -1263,10 +1268,12 @@ static int dial_exec_full(struct ast_cha
+@@ -1283,10 +1288,12 @@ static int dial_exec_full(struct ast_cha
}
if (!outgoing) {
Modified: asterisk/trunk/debian/patches/bristuff/app-meetme-avoid-overflows
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/app-meetme-avoid-overflows?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/app-meetme-avoid-overflows (original)
+++ asterisk/trunk/debian/patches/bristuff/app-meetme-avoid-overflows Mon Dec 3 19:08:48 2007
@@ -1,6 +1,6 @@
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
-@@ -1397,8 +1397,9 @@ static int conf_run(struct ast_channel *
+@@ -1403,8 +1403,9 @@ static int conf_run(struct ast_channel *
char members[10] = "";
int dtmf, opt_waitmarked_timeout = 0;
time_t timeout = 0;
@@ -11,7 +11,7 @@
char *buf = __buf + AST_FRIENDLY_OFFSET;
if (!(user = ast_calloc(1, sizeof(*user))))
-@@ -1590,7 +1591,7 @@ static int conf_run(struct ast_channel *
+@@ -1598,7 +1599,7 @@ static int conf_run(struct ast_channel *
}
/* Setup buffering information */
memset(&bi, 0, sizeof(bi));
@@ -20,7 +20,7 @@
bi.txbufpolicy = ZT_POLICY_IMMEDIATE;
bi.rxbufpolicy = ZT_POLICY_IMMEDIATE;
bi.numbufs = audio_buffers;
-@@ -1906,6 +1907,14 @@ static int conf_run(struct ast_channel *
+@@ -1907,6 +1908,14 @@ static int conf_run(struct ast_channel *
f = ast_read(c);
if (!f)
break;
Modified: asterisk/trunk/debian/patches/bristuff/ast-device-state-CID
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/ast-device-state-CID?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/ast-device-state-CID (original)
+++ asterisk/trunk/debian/patches/bristuff/ast-device-state-CID Mon Dec 3 19:08:48 2007
@@ -113,7 +113,7 @@
} else {
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
-@@ -572,8 +572,13 @@ int ast_channel_datastore_remove(struct
+@@ -582,8 +582,13 @@ int ast_channel_datastore_remove(struct
/*! \brief Find a datastore on a channel */
struct ast_datastore *ast_channel_datastore_find(struct ast_channel *chan, const struct ast_datastore_info *info, char *uid);
@@ -130,7 +130,7 @@
\return Returns NULL on failure to allocate.
--- a/main/channel.c
+++ b/main/channel.c
-@@ -1269,7 +1269,7 @@ void ast_channel_free(struct ast_channel
+@@ -1270,7 +1270,7 @@ void ast_channel_free(struct ast_channel
free(chan);
AST_LIST_UNLOCK(&channels);
@@ -139,7 +139,7 @@
}
struct ast_datastore *ast_channel_datastore_alloc(const struct ast_datastore_info *info, char *uid)
-@@ -3844,7 +3844,7 @@ void ast_set_callerid(struct ast_channel
+@@ -3910,7 +3910,7 @@ void ast_set_callerid(struct ast_channel
);
}
@@ -148,7 +148,7 @@
{
int oldstate = chan->_state;
-@@ -3852,7 +3852,7 @@ int ast_setstate(struct ast_channel *cha
+@@ -3918,7 +3918,7 @@ int ast_setstate(struct ast_channel *cha
return 0;
chan->_state = state;
@@ -157,7 +157,7 @@
/* setstate used to conditionally report Newchannel; this is no more */
manager_event(EVENT_FLAG_CALL,
"Newstate",
-@@ -3869,6 +3869,11 @@ int ast_setstate(struct ast_channel *cha
+@@ -3935,6 +3935,11 @@ int ast_setstate(struct ast_channel *cha
return 0;
}
@@ -180,7 +180,7 @@
/*! \brief Data structure associated with a custom dialplan function */
struct ast_custom_function {
-@@ -830,7 +830,7 @@ int ast_func_read(struct ast_channel *ch
+@@ -873,7 +873,7 @@ int ast_func_read(struct ast_channel *ch
*/
int ast_func_write(struct ast_channel *chan, char *function, const char *value);
@@ -191,7 +191,7 @@
}
--- a/main/pbx.c
+++ b/main/pbx.c
-@@ -1993,7 +1993,7 @@ int ast_extension_state(struct ast_chann
+@@ -2017,7 +2017,7 @@ int ast_extension_state(struct ast_chann
return ast_extension_state2(e); /* Check all devices in the hint */
}
@@ -200,7 +200,7 @@
{
struct ast_hint *hint;
-@@ -2024,11 +2024,11 @@ void ast_hint_state_changed(const char *
+@@ -2049,11 +2049,11 @@ void ast_hint_state_changed(const char *
/* For general callbacks */
for (cblist = statecbs; cblist; cblist = cblist->next)
@@ -214,7 +214,7 @@
hint->laststate = state; /* record we saw the change */
}
-@@ -2223,7 +2223,7 @@ static int ast_remove_hint(struct ast_ex
+@@ -2249,7 +2249,7 @@ static int ast_remove_hint(struct ast_ex
/* Notify with -1 and remove all callbacks */
cbprev = cblist;
cblist = cblist->next;
@@ -223,7 +223,7 @@
free(cbprev);
}
hint->callbacks = NULL;
-@@ -3984,7 +3984,7 @@ void ast_merge_contexts_and_delete(struc
+@@ -4012,7 +4012,7 @@ void ast_merge_contexts_and_delete(struc
while (thiscb) {
prevcb = thiscb;
thiscb = thiscb->next;
@@ -234,7 +234,7 @@
} else {
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
-@@ -1328,7 +1328,7 @@ static void ast_quiet_chan(struct ast_ch
+@@ -1333,7 +1333,7 @@ static void ast_quiet_chan(struct ast_ch
static int attempt_transfer(struct sip_dual *transferer, struct sip_dual *target);
/*--- Device monitoring and Device/extension state handling */
@@ -243,7 +243,7 @@
static int sip_devicestate(void *data);
static int sip_poke_noanswer(void *data);
static int sip_poke_peer(struct sip_peer *peer);
-@@ -8337,7 +8337,7 @@ static void sip_peer_hold(struct sip_pvt
+@@ -8422,7 +8422,7 @@ static void sip_peer_hold(struct sip_pvt
/*! \brief Callback for the devicestate notification (SUBSCRIBE) support subsystem
\note If you add an "hint" priority to the extension in the dial plan,
you will get notifications on device state changes */
@@ -254,7 +254,7 @@
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
-@@ -594,7 +594,7 @@ static void *changethread(void *data)
+@@ -676,7 +676,7 @@ static void *device_state_thread(void *d
return NULL;
}
@@ -275,7 +275,7 @@
#define AST_MAX_MANHEADERS 128
--- a/main/manager.c
+++ b/main/manager.c
-@@ -128,6 +128,7 @@ static struct permalias {
+@@ -129,6 +129,7 @@ static struct permalias {
{ EVENT_FLAG_AGENT, "agent" },
{ EVENT_FLAG_USER, "user" },
{ EVENT_FLAG_CONFIG, "config" },
@@ -283,7 +283,7 @@
{ -1, "all" },
{ 0, "none" },
};
-@@ -2451,10 +2452,12 @@ int ast_manager_unregister(char *action)
+@@ -2526,10 +2527,12 @@ int ast_manager_unregister(char *action)
return 0;
}
Modified: asterisk/trunk/debian/patches/bristuff/ast-send-message
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/ast-send-message?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/ast-send-message (original)
+++ asterisk/trunk/debian/patches/bristuff/ast-send-message Mon Dec 3 19:08:48 2007
@@ -3,7 +3,7 @@
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
-@@ -223,7 +223,7 @@ struct ast_channel_tech {
+@@ -224,7 +224,7 @@ struct ast_channel_tech {
int (* const write)(struct ast_channel *chan, struct ast_frame *frame);
/*! \brief Display or transmit text */
@@ -12,7 +12,7 @@
/*! \brief Display or send an image */
int (* const send_image)(struct ast_channel *chan, struct ast_frame *frame);
-@@ -653,6 +653,16 @@ struct ast_channel *ast_request_and_dial
+@@ -663,6 +663,16 @@ struct ast_channel *ast_request_and_dial
struct ast_channel *__ast_request_and_dial(const char *type, int format, void *data, int timeout, int *reason, const char *cidnum, const char *cidname, struct outgoing_helper *oh);
@@ -29,7 +29,7 @@
/*!\brief Register a channel technology (a new channel driver)
* Called by a channel module to register the kind of channels it supports.
* \param tech Structure defining channel technology or "type"
-@@ -869,10 +879,12 @@ int ast_set_write_format(struct ast_chan
+@@ -879,10 +889,12 @@ int ast_set_write_format(struct ast_chan
/*! \brief Sends text to a channel
* Write text to a display on a channel
* \param chan channel to act upon
@@ -45,7 +45,7 @@
* \param chan channel to act upon
--- a/main/channel.c
+++ b/main/channel.c
-@@ -2655,7 +2655,7 @@ char *ast_recvtext(struct ast_channel *c
+@@ -2666,7 +2666,7 @@ char *ast_recvtext(struct ast_channel *c
return buf;
}
@@ -54,7 +54,7 @@
{
int res = 0;
/* Stop if we're a zombie or need a soft hangup */
-@@ -2663,7 +2663,7 @@ int ast_sendtext(struct ast_channel *cha
+@@ -2674,7 +2674,7 @@ int ast_sendtext(struct ast_channel *cha
return -1;
CHECK_BLOCKING(chan);
if (chan->tech->send_text)
@@ -63,7 +63,7 @@
ast_clear_flag(chan, AST_FLAG_BLOCKING);
return res;
}
-@@ -2832,7 +2832,7 @@ int ast_write(struct ast_channel *chan,
+@@ -2843,7 +2843,7 @@ int ast_write(struct ast_channel *chan,
break;
case AST_FRAME_TEXT:
res = (chan->tech->send_text == NULL) ? 0 :
@@ -72,7 +72,7 @@
break;
case AST_FRAME_HTML:
res = (chan->tech->send_html == NULL) ? 0 :
-@@ -4807,6 +4807,25 @@ void ast_channel_stop_silence_generator(
+@@ -4874,6 +4874,25 @@ void ast_channel_stop_silence_generator(
}
@@ -111,7 +111,7 @@
pbx_builtin_setvar_helper(chan, "SENDTEXTSTATUS", status);
--- a/res/res_agi.c
+++ b/res/res_agi.c
-@@ -483,7 +483,7 @@ static int handle_sendtext(struct ast_ch
+@@ -486,7 +486,7 @@ static int handle_sendtext(struct ast_ch
would probably be to strip off the trailing newline before
parsing, then here, add a newline at the end of the string
before sending it to ast_sendtext --DUDE */
@@ -131,7 +131,7 @@
static int agent_indicate(struct ast_channel *ast, int condition, const void *data, size_t datalen);
static int agent_fixup(struct ast_channel *oldchan, struct ast_channel *newchan);
static struct ast_channel *agent_bridgedchannel(struct ast_channel *chan, struct ast_channel *bridge);
-@@ -545,13 +545,13 @@ static int agent_sendhtml(struct ast_cha
+@@ -555,13 +555,13 @@ static int agent_sendhtml(struct ast_cha
return res;
}
@@ -158,7 +158,7 @@
static int alsa_hangup(struct ast_channel *c);
static int alsa_answer(struct ast_channel *c);
static struct ast_frame *alsa_read(struct ast_channel *chan);
-@@ -494,7 +494,7 @@ static int alsa_digit(struct ast_channel
+@@ -496,7 +496,7 @@ static int alsa_digit(struct ast_channel
return 0;
}
@@ -229,7 +229,7 @@
return phone_write_buf(ast->tech_pvt, text, length, length, 0) ==
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
-@@ -1204,7 +1204,7 @@ static struct ast_config *notify_types;
+@@ -1209,7 +1209,7 @@ static struct ast_config *notify_types;
/*--- PBX interface functions */
static struct ast_channel *sip_request_call(const char *type, int format, void *data, int *cause);
static int sip_devicestate(void *data);
@@ -238,7 +238,7 @@
static int sip_call(struct ast_channel *ast, char *dest, int timeout);
static int sip_hangup(struct ast_channel *ast);
static int sip_answer(struct ast_channel *ast);
-@@ -2316,7 +2316,7 @@ static char *get_in_brackets(char *tmp)
+@@ -2342,7 +2342,7 @@ static char *get_in_brackets(char *tmp)
/*! \brief Send SIP MESSAGE text within a call
Called from PBX core sendtext() application */
@@ -249,7 +249,7 @@
int debug = sip_debug_test_pvt(p);
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
-@@ -817,7 +817,7 @@ static int iax2_provision(struct sockadd
+@@ -830,7 +830,7 @@ static int iax2_provision(struct sockadd
static int iax2_send(struct chan_iax2_pvt *pvt, struct ast_frame *f, unsigned int ts, int seqno, int now, int transfer, int final);
static int iax2_sendhtml(struct ast_channel *c, int subclass, const char *data, int datalen);
static int iax2_sendimage(struct ast_channel *c, struct ast_frame *img);
@@ -258,7 +258,7 @@
static int iax2_setoption(struct ast_channel *c, int option, void *data, int datalen);
static int iax2_transfer(struct ast_channel *c, const char *dest);
static int iax2_write(struct ast_channel *c, struct ast_frame *f);
-@@ -2476,7 +2476,7 @@ static int iax2_digit_end(struct ast_cha
+@@ -2639,7 +2639,7 @@ static int iax2_digit_end(struct ast_cha
return send_command_locked(PTR_TO_CALLNO(c->tech_pvt), AST_FRAME_DTMF_END, digit, 0, NULL, 0, -1);
}
Modified: asterisk/trunk/debian/patches/bristuff/ast-send-message-users
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/ast-send-message-users?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/ast-send-message-users (original)
+++ asterisk/trunk/debian/patches/bristuff/ast-send-message-users Mon Dec 3 19:08:48 2007
@@ -10,7 +10,7 @@
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
-@@ -1354,6 +1357,49 @@ static int action_hangup(struct mansessi
+@@ -1428,6 +1431,49 @@ static int action_hangup(struct mansessi
return 0;
}
@@ -60,7 +60,7 @@
static char mandescr_setvar[] =
"Description: Set a global or local channel variable.\n"
"Variables: (Names marked with * are required)\n"
-@@ -2748,6 +2794,7 @@ int init_manager(void)
+@@ -2823,6 +2869,7 @@ int init_manager(void)
ast_manager_register2("Events", 0, action_events, "Control Event Flow", mandescr_events);
ast_manager_register2("Logoff", 0, action_logoff, "Logoff Manager", mandescr_logoff);
ast_manager_register2("Hangup", EVENT_FLAG_CALL, action_hangup, "Hangup Channel", mandescr_hangup);
Modified: asterisk/trunk/debian/patches/bristuff/ast_monitor_start-targetscript
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/ast_monitor_start-targetscript?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/ast_monitor_start-targetscript (original)
+++ asterisk/trunk/debian/patches/bristuff/ast_monitor_start-targetscript Mon Dec 3 19:08:48 2007
@@ -95,7 +95,7 @@
ast_channel_unlock(c);
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
-@@ -2583,13 +2583,13 @@ static int try_calling(struct queue_ent
+@@ -2713,13 +2713,13 @@ static int try_calling(struct queue_ent
else
which = peer;
if (monitorfilename)
@@ -114,7 +114,7 @@
ast_monitor_setjoinfiles(which, 1);
--- a/channels/chan_agent.c
+++ b/channels/chan_agent.c
-@@ -412,7 +412,7 @@ static int __agent_start_monitoring(stru
+@@ -416,7 +416,7 @@ static int __agent_start_monitoring(stru
if ((pointer = strchr(filename, '.')))
*pointer = '-';
snprintf(tmp, sizeof(tmp), "%s%s", savecallsin, filename);
Modified: asterisk/trunk/debian/patches/bristuff/chan-iax2-hangup-cause
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/chan-iax2-hangup-cause?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/chan-iax2-hangup-cause (original)
+++ asterisk/trunk/debian/patches/bristuff/chan-iax2-hangup-cause Mon Dec 3 19:08:48 2007
@@ -10,7 +10,7 @@
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
-@@ -3016,7 +3019,7 @@ static int iax2_hangup(struct ast_channe
+@@ -3179,7 +3182,7 @@ static int iax2_hangup(struct ast_channe
memset(&ied, 0, sizeof(ied));
ast_mutex_lock(&iaxsl[callno]);
if (callno && iaxs[callno]) {
@@ -19,7 +19,7 @@
alreadygone = ast_test_flag(iaxs[callno], IAX_ALREADYGONE);
/* Send the hangup unless we have had a transmission error or are already gone */
iax_ie_append_byte(&ied, IAX_IE_CAUSECODE, (unsigned char)c->hangupcause);
-@@ -3064,7 +3067,8 @@ static int iax2_setoption(struct ast_cha
+@@ -3232,7 +3235,8 @@ static int iax2_setoption(struct ast_cha
static struct ast_frame *iax2_read(struct ast_channel *c)
{
Modified: asterisk/trunk/debian/patches/bristuff/configurable-AST_SYSTEM_NAME
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/configurable-AST_SYSTEM_NAME?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/configurable-AST_SYSTEM_NAME (original)
+++ asterisk/trunk/debian/patches/bristuff/configurable-AST_SYSTEM_NAME Mon Dec 3 19:08:48 2007
@@ -10,7 +10,7 @@
--- a/main/asterisk.c
+++ b/main/asterisk.c
-@@ -2368,6 +2368,7 @@ static void ast_readconfig(void)
+@@ -2387,6 +2387,7 @@ static void ast_readconfig(void)
ast_copy_string(ast_config_AST_PID, AST_PID, sizeof(ast_config_AST_PID));
ast_copy_string(ast_config_AST_SOCKET, AST_SOCKET, sizeof(ast_config_AST_SOCKET));
ast_copy_string(ast_config_AST_RUN_DIR, AST_RUN_DIR, sizeof(ast_config_AST_RUN_DIR));
@@ -18,7 +18,7 @@
/* no asterisk.conf? no problem, use buildtime config! */
if (!cfg) {
-@@ -2492,6 +2493,8 @@ static void ast_readconfig(void)
+@@ -2511,6 +2512,8 @@ static void ast_readconfig(void)
ast_copy_string(ast_config_AST_RUN_GROUP, v->value, sizeof(ast_config_AST_RUN_GROUP));
} else if (!strcasecmp(v->name, "systemname")) {
ast_copy_string(ast_config_AST_SYSTEM_NAME, v->value, sizeof(ast_config_AST_SYSTEM_NAME));
Modified: asterisk/trunk/debian/patches/bristuff/feature-autoanswer
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/feature-autoanswer?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/feature-autoanswer (original)
+++ asterisk/trunk/debian/patches/bristuff/feature-autoanswer Mon Dec 3 19:08:48 2007
@@ -67,7 +67,7 @@
static struct parkeduser *parkinglot;
AST_MUTEX_DEFINE_STATIC(parking_lock); /*!< protects all static variables above */
-@@ -404,11 +439,13 @@ int ast_park_call(struct ast_channel *ch
+@@ -402,11 +437,13 @@ static int park_call_full(struct ast_cha
"From: %s\r\n"
"Timeout: %ld\r\n"
"CallerID: %s\r\n"
@@ -83,7 +83,7 @@
);
if (peer && adsipark && ast_adsi_available(peer)) {
-@@ -1609,11 +1646,13 @@ static void post_manager_event(const cha
+@@ -1626,11 +1663,13 @@ static void post_manager_event(const cha
"Exten: %s\r\n"
"Channel: %s\r\n"
"CallerID: %s\r\n"
@@ -99,7 +99,7 @@
);
}
-@@ -1864,10 +1903,12 @@ static int park_exec(struct ast_channel
+@@ -1885,10 +1924,12 @@ static int park_exec(struct ast_channel
"Channel: %s\r\n"
"From: %s\r\n"
"CallerID: %s\r\n"
@@ -114,7 +114,7 @@
);
free(pu);
-@@ -2018,15 +2059,10 @@ static struct ast_cli_entry cli_show_fea
+@@ -2042,15 +2083,10 @@ static struct ast_cli_entry cli_show_fea
handle_showfeatures, NULL,
NULL };
@@ -133,7 +133,7 @@
/*! \brief Dump lot status */
static int manager_parking_status( struct mansession *s, const struct message *m)
-@@ -2050,12 +2086,13 @@ static int manager_parking_status( struc
+@@ -2074,12 +2110,13 @@ static int manager_parking_status( struc
"Timeout: %ld\r\n"
"CallerID: %s\r\n"
"CallerIDName: %s\r\n"
@@ -148,7 +148,7 @@
idText);
}
-@@ -2130,6 +2167,427 @@ static int manager_park(struct mansessio
+@@ -2154,6 +2191,427 @@ static int manager_park(struct mansessio
return 0;
}
@@ -576,7 +576,7 @@
int ast_pickup_call(struct ast_channel *chan)
{
-@@ -2393,6 +2851,7 @@ static int load_config(void)
+@@ -2417,6 +2875,7 @@ static int load_config(void)
static int reload(void)
{
@@ -584,7 +584,7 @@
return load_config();
}
-@@ -2416,6 +2875,12 @@ static int load_module(void)
+@@ -2440,6 +2899,12 @@ static int load_module(void)
"Park a channel", mandescr_park);
}
@@ -597,7 +597,7 @@
res |= ast_devstate_prov_add("Park", metermaidstate);
return res;
-@@ -2430,6 +2895,8 @@ static int unload_module(void)
+@@ -2454,6 +2919,8 @@ static int unload_module(void)
ast_manager_unregister("Park");
ast_cli_unregister_multiple(cli_features, sizeof(cli_features) / sizeof(struct ast_cli_entry));
ast_unregister_application(parkcall);
Modified: asterisk/trunk/debian/patches/bristuff/feature-holdedcalls
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/feature-holdedcalls?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/feature-holdedcalls (original)
+++ asterisk/trunk/debian/patches/bristuff/feature-holdedcalls Mon Dec 3 19:08:48 2007
@@ -71,7 +71,7 @@
char *ast_parking_ext(void)
{
return parking_ext;
-@@ -1985,6 +2009,282 @@ static int park_exec(struct ast_channel
+@@ -2009,6 +2033,282 @@ static int park_exec(struct ast_channel
return res;
}
@@ -354,7 +354,7 @@
static int handle_showfeatures(int fd, int argc, char *argv[])
{
int i;
-@@ -2866,6 +3166,7 @@ static int load_module(void)
+@@ -2890,6 +3190,7 @@ static int load_module(void)
return res;
ast_cli_register_multiple(cli_features, sizeof(cli_features) / sizeof(struct ast_cli_entry));
ast_pthread_create(&parking_thread, NULL, do_parking_thread, NULL);
@@ -362,7 +362,7 @@
res = ast_register_application(parkedcall, park_exec, synopsis, descrip);
if (!res)
res = ast_register_application(parkcall, park_call_exec, synopsis2, descrip2);
-@@ -2875,6 +3176,7 @@ static int load_module(void)
+@@ -2899,6 +3200,7 @@ static int load_module(void)
"Park a channel", mandescr_park);
}
@@ -370,7 +370,7 @@
ast_pthread_create(&autoanswer_thread, NULL, do_autoanswer_thread, NULL);
if (!res)
res |= ast_register_application(autoanswerlogin, autoanswer_login_exec, synopsis3, descrip3);
-@@ -2897,6 +3199,7 @@ static int unload_module(void)
+@@ -2921,6 +3223,7 @@ static int unload_module(void)
ast_unregister_application(parkcall);
ast_unregister_application(autoanswer);
ast_unregister_application(autoanswerlogin);
Modified: asterisk/trunk/debian/patches/bristuff/misc-manager-dbdel
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/misc-manager-dbdel?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/misc-manager-dbdel (original)
+++ asterisk/trunk/debian/patches/bristuff/misc-manager-dbdel Mon Dec 3 19:08:48 2007
@@ -1,6 +1,6 @@
--- a/main/db.c
+++ b/main/db.c
-@@ -573,7 +573,7 @@ static int manager_dbget(struct mansessi
+@@ -574,7 +574,7 @@ static int manager_dbget(struct mansessi
astman_append(s, "Event: DBGetResponse\r\n"
"Family: %s\r\n"
"Key: %s\r\n"
@@ -9,7 +9,7 @@
"%s"
"\r\n",
family, key, tmp, idText);
-@@ -581,11 +581,35 @@ static int manager_dbget(struct mansessi
+@@ -582,11 +582,35 @@ static int manager_dbget(struct mansessi
return 0;
}
Modified: asterisk/trunk/debian/patches/bristuff/uniqueid-01-use-pid-on-uniqueid-generation
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/uniqueid-01-use-pid-on-uniqueid-generation?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/uniqueid-01-use-pid-on-uniqueid-generation (original)
+++ asterisk/trunk/debian/patches/bristuff/uniqueid-01-use-pid-on-uniqueid-generation Mon Dec 3 19:08:48 2007
@@ -2,7 +2,7 @@
--- a/main/channel.c
+++ b/main/channel.c
-@@ -803,10 +803,10 @@ struct ast_channel *ast_channel_alloc(in
+@@ -804,10 +804,10 @@ struct ast_channel *ast_channel_alloc(in
tmp->fout = global_fout;
if (ast_strlen_zero(ast_config_AST_SYSTEM_NAME)) {
Modified: asterisk/trunk/debian/patches/bristuff/uniqueid-10-channel-ops-uniqueid
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/uniqueid-10-channel-ops-uniqueid?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/uniqueid-10-channel-ops-uniqueid (original)
+++ asterisk/trunk/debian/patches/bristuff/uniqueid-10-channel-ops-uniqueid Mon Dec 3 19:08:48 2007
@@ -2,7 +2,7 @@
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
-@@ -641,6 +641,18 @@ void ast_channel_free(struct ast_channe
+@@ -651,6 +651,18 @@ void ast_channel_free(struct ast_channe
*/
struct ast_channel *ast_request(const char *type, int format, void *data, int *status);
@@ -21,7 +21,7 @@
/*!
* \brief Request a channel of a given type, with data as optional information used
* by the low level module and attempt to place a call on it
-@@ -654,9 +666,9 @@ struct ast_channel *ast_request(const ch
+@@ -664,9 +676,9 @@ struct ast_channel *ast_request(const ch
* \return Returns an ast_channel on success or no answer, NULL on failure. Check the value of chan->_state
* to know if the call was answered or not.
*/
@@ -33,7 +33,7 @@
/*! \brief "Requests" a channel for sending a message
* \param type type of channel to request
-@@ -941,6 +953,8 @@ struct ast_channel *ast_get_channel_by_e
+@@ -951,6 +963,8 @@ struct ast_channel *ast_get_channel_by_e
/*! \brief Get next channel by exten (and optionally context) and lock it */
struct ast_channel *ast_walk_channel_by_exten_locked(const struct ast_channel *chan, const char *exten,
const char *context);
@@ -44,7 +44,7 @@
* \param c channel to wait for a digit on
--- a/main/channel.c
+++ b/main/channel.c
-@@ -1027,7 +1027,7 @@ void ast_channel_undefer_dtmf(struct ast
+@@ -1028,7 +1028,7 @@ void ast_channel_undefer_dtmf(struct ast
*/
static struct ast_channel *channel_find_locked(const struct ast_channel *prev,
const char *name, const int namelen,
@@ -53,7 +53,7 @@
{
const char *msg = prev ? "deadlock" : "initial deadlock";
int retries;
-@@ -1055,7 +1055,10 @@ static struct ast_channel *channel_find_
+@@ -1056,7 +1056,10 @@ static struct ast_channel *channel_find_
* XXX Need a better explanation for this ...
*/
}
@@ -65,7 +65,7 @@
if ((!namelen && strcasecmp(c->name, name)) ||
(namelen && strncasecmp(c->name, name, namelen)))
continue; /* name match failed */
-@@ -1110,39 +1113,44 @@ static struct ast_channel *channel_find_
+@@ -1111,39 +1114,44 @@ static struct ast_channel *channel_find_
/*! \brief Browse channels in use */
struct ast_channel *ast_channel_walk_locked(const struct ast_channel *prev)
{
@@ -116,7 +116,7 @@
}
/*! \brief Wait, look for hangups and condition arg */
-@@ -1212,8 +1220,10 @@ void ast_channel_free(struct ast_channel
+@@ -1213,8 +1221,10 @@ void ast_channel_free(struct ast_channel
free(chan->tech_pvt);
}
@@ -138,7 +138,7 @@
{
int dummy_outstate;
int cause = 0;
-@@ -3046,7 +3056,7 @@ struct ast_channel *__ast_request_and_di
+@@ -3091,7 +3101,7 @@ struct ast_channel *__ast_request_and_di
else
outstate = &dummy_outstate; /* make outstate always a valid pointer */
@@ -147,7 +147,7 @@
if (!chan) {
ast_log(LOG_NOTICE, "Unable to request channel %s/%s\n", type, (char *)data);
/* compute error and return */
-@@ -3069,7 +3079,7 @@ struct ast_channel *__ast_request_and_di
+@@ -3114,7 +3124,7 @@ struct ast_channel *__ast_request_and_di
ast_cdr_setaccount(chan, oh->account);
}
ast_set_callerid(chan, cid_num, cid_name, cid_num);
@@ -156,7 +156,7 @@
if (!chan->cdr) { /* up till now, this insertion hasn't been done. Therefore,
-@@ -3158,12 +3168,12 @@ struct ast_channel *__ast_request_and_di
+@@ -3203,12 +3213,12 @@ struct ast_channel *__ast_request_and_di
return chan;
}
@@ -172,7 +172,7 @@
{
struct chanlist *chan;
struct ast_channel *c;
-@@ -3213,6 +3223,11 @@ struct ast_channel *ast_request(const ch
+@@ -3258,6 +3268,11 @@ struct ast_channel *ast_request(const ch
return NULL;
}
@@ -184,7 +184,7 @@
int ast_call(struct ast_channel *chan, char *addr, int timeout)
{
/* Place an outgoing call, but don't wait any longer than timeout ms before returning.
-@@ -3585,7 +3600,7 @@ int ast_do_masquerade(struct ast_channel
+@@ -3645,7 +3660,7 @@ int ast_do_masquerade(struct ast_channel
ast_string_field_set(clone, name, masqn);
/* Notify any managers of the change, first the masq then the other */
@@ -226,7 +226,7 @@
*
--- a/main/pbx.c
+++ b/main/pbx.c
-@@ -4957,7 +4957,7 @@ static int ast_pbx_outgoing_cdr_failed(v
+@@ -4989,7 +4989,7 @@ static int ast_pbx_outgoing_cdr_failed(v
return 0; /* success */
}
@@ -235,7 +235,7 @@
{
struct ast_channel *chan;
struct async_stat *as;
-@@ -4967,7 +4967,7 @@ int ast_pbx_outgoing_exten(const char *t
+@@ -4999,7 +4999,7 @@ int ast_pbx_outgoing_exten(const char *t
if (sync) {
LOAD_OH(oh);
@@ -244,7 +244,7 @@
if (channel) {
*channel = chan;
if (chan)
-@@ -5049,7 +5049,7 @@ int ast_pbx_outgoing_exten(const char *t
+@@ -5084,7 +5084,7 @@ int ast_pbx_outgoing_exten(const char *t
res = -1;
goto outgoing_exten_cleanup;
}
@@ -253,7 +253,7 @@
if (channel) {
*channel = chan;
if (chan)
-@@ -5089,6 +5089,10 @@ outgoing_exten_cleanup:
+@@ -5124,6 +5124,10 @@ outgoing_exten_cleanup:
return res;
}
@@ -264,7 +264,7 @@
struct app_tmp {
char app[256];
char data[256];
-@@ -5113,7 +5117,7 @@ static void *ast_pbx_run_app(void *data)
+@@ -5148,7 +5152,7 @@ static void *ast_pbx_run_app(void *data)
return NULL;
}
@@ -273,7 +273,7 @@
{
struct ast_channel *chan;
struct app_tmp *tmp;
-@@ -5132,10 +5136,10 @@ int ast_pbx_outgoing_app(const char *typ
+@@ -5167,10 +5171,10 @@ int ast_pbx_outgoing_app(const char *typ
goto outgoing_app_cleanup;
}
if (sync) {
@@ -286,7 +286,7 @@
} else {
chan->cdr = ast_cdr_alloc(); /* allocate a cdr for the channel */
if(!chan->cdr) {
-@@ -5216,7 +5220,7 @@ int ast_pbx_outgoing_app(const char *typ
+@@ -5251,7 +5255,7 @@ int ast_pbx_outgoing_app(const char *typ
res = -1;
goto outgoing_app_cleanup;
}
@@ -295,7 +295,7 @@
if (!chan) {
free(as);
res = -1;
-@@ -5256,6 +5260,10 @@ outgoing_app_cleanup:
+@@ -5291,6 +5295,10 @@ outgoing_app_cleanup:
return res;
}
Modified: asterisk/trunk/debian/patches/bristuff/uniqueid-40-manager
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/uniqueid-40-manager?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/uniqueid-40-manager (original)
+++ asterisk/trunk/debian/patches/bristuff/uniqueid-40-manager Mon Dec 3 19:08:48 2007
@@ -1,6 +1,6 @@
--- a/main/manager.c
+++ b/main/manager.c
-@@ -86,6 +86,8 @@ struct fast_originate_helper {
+@@ -87,6 +87,8 @@ struct fast_originate_helper {
char idtext[AST_MAX_EXTENSION];
char account[AST_MAX_ACCOUNT_CODE];
int priority;
@@ -9,7 +9,7 @@
struct ast_variable *vars;
};
-@@ -1343,11 +1345,20 @@ static int action_hangup(struct mansessi
+@@ -1417,11 +1419,20 @@ static int action_hangup(struct mansessi
{
struct ast_channel *c = NULL;
const char *name = astman_get_header(m, "Channel");
@@ -33,7 +33,7 @@
if (!c) {
astman_send_error(s, m, "No such channel");
return 0;
-@@ -1598,12 +1609,18 @@ static int action_redirect(struct manses
+@@ -1672,12 +1683,18 @@ static int action_redirect(struct manses
const char *exten = astman_get_header(m, "Exten");
const char *context = astman_get_header(m, "Context");
const char *priority = astman_get_header(m, "Priority");
@@ -54,7 +54,7 @@
return 0;
}
if (!ast_strlen_zero(priority) && (sscanf(priority, "%d", &pi) != 1)) {
-@@ -1613,7 +1630,11 @@ static int action_redirect(struct manses
+@@ -1687,7 +1704,11 @@ static int action_redirect(struct manses
}
}
/* XXX watch out, possible deadlock!!! */
@@ -67,7 +67,7 @@
if (!chan) {
char buf[BUFSIZ];
snprintf(buf, sizeof(buf), "Channel does not exist: %s", name);
-@@ -1635,9 +1656,9 @@ static int action_redirect(struct manses
+@@ -1709,9 +1730,9 @@ static int action_redirect(struct manses
}
res = ast_async_goto(chan, context, exten, pi);
if (!res) {
@@ -79,7 +79,7 @@
else
res = -1;
if (!res)
-@@ -1716,15 +1737,15 @@ static void *fast_originate(void *data)
+@@ -1790,15 +1811,15 @@ static void *fast_originate(void *data)
char requested_channel[AST_CHANNEL_NAME];
if (!ast_strlen_zero(in->app)) {
@@ -99,7 +99,7 @@
}
if (!chan)
-@@ -1784,6 +1805,7 @@ static int action_originate(struct manse
+@@ -1858,6 +1879,7 @@ static int action_originate(struct manse
const char *appdata = astman_get_header(m, "Data");
const char *async = astman_get_header(m, "Async");
const char *id = astman_get_header(m, "ActionID");
@@ -107,7 +107,7 @@
struct ast_variable *vars = astman_get_variables(m);
char *tech, *data;
char *l = NULL, *n = NULL;
-@@ -1793,6 +1815,9 @@ static int action_originate(struct manse
+@@ -1867,6 +1889,9 @@ static int action_originate(struct manse
int reason = 0;
char tmp[256];
char tmp2[256];
@@ -117,7 +117,7 @@
pthread_t th;
pthread_attr_t attr;
-@@ -1810,6 +1835,10 @@ static int action_originate(struct manse
+@@ -1884,6 +1909,10 @@ static int action_originate(struct manse
astman_send_error(s, m, "Invalid timeout\n");
return 0;
}
@@ -128,7 +128,7 @@
ast_copy_string(tmp, name, sizeof(tmp));
tech = tmp;
data = strchr(tmp, '/');
-@@ -1829,6 +1858,7 @@ static int action_originate(struct manse
+@@ -1903,6 +1932,7 @@ static int action_originate(struct manse
if (ast_strlen_zero(l))
l = NULL;
}
@@ -136,7 +136,7 @@
if (ast_true(async)) {
struct fast_originate_helper *fast = ast_calloc(1, sizeof(*fast));
if (!fast) {
-@@ -1848,8 +1878,10 @@ static int action_originate(struct manse
+@@ -1922,8 +1952,10 @@ static int action_originate(struct manse
ast_copy_string(fast->context, context, sizeof(fast->context));
ast_copy_string(fast->exten, exten, sizeof(fast->exten));
ast_copy_string(fast->account, account, sizeof(fast->account));
@@ -147,7 +147,7 @@
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
if (ast_pthread_create(&th, &attr, fast_originate, fast)) {
-@@ -1860,19 +1892,28 @@ static int action_originate(struct manse
+@@ -1934,19 +1966,28 @@ static int action_originate(struct manse
pthread_attr_destroy(&attr);
}
} else if (!ast_strlen_zero(app)) {
@@ -193,7 +193,7 @@
#include <unistd.h>
#ifdef POLLCOMPAT
#include "asterisk/poll-compat.h"
-@@ -986,6 +989,8 @@ int ast_waitfordigit_full(struct ast_cha
+@@ -996,6 +999,8 @@ int ast_waitfordigit_full(struct ast_cha
int ast_readstring(struct ast_channel *c, char *s, int len, int timeout, int rtimeout, char *enders);
int ast_readstring_full(struct ast_channel *c, char *s, int len, int timeout, int rtimeout, char *enders, int audiofd, int ctrlfd);
Modified: asterisk/trunk/debian/patches/bristuff/zapata-bri+euroisdn
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/zapata-bri%2Beuroisdn?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/zapata-bri+euroisdn (original)
+++ asterisk/trunk/debian/patches/bristuff/zapata-bri+euroisdn Mon Dec 3 19:08:48 2007
@@ -1,8 +1,6 @@
-Index: asterisk-1.4.14~dfsg/include/asterisk/channel.h
-===================================================================
---- a/include/asterisk/channel.h 2007-11-19 12:33:35.000000000 +0200
-+++ b/include/asterisk/channel.h 2007-11-19 12:33:35.000000000 +0200
-@@ -420,6 +420,7 @@
+--- a/include/asterisk/channel.h
++++ b/include/asterisk/channel.h
+@@ -420,6 +420,7 @@ struct ast_channel {
unsigned int flags; /*!< channel flags of AST_FLAG_ type */
unsigned short transfercapability; /*!< ISDN Transfer Capbility - AST_FLAG_DIGITAL is not enough */
AST_LIST_HEAD_NOLOCK(, ast_frame) readq;
@@ -10,11 +8,9 @@
int alertpipe[2];
int nativeformats; /*!< Kinds of data this channel can natively handle */
-Index: asterisk-1.4.14~dfsg/main/pbx.c
-===================================================================
---- a/main/pbx.c 2007-11-19 12:33:34.000000000 +0200
-+++ b/main/pbx.c 2007-11-19 12:33:35.000000000 +0200
-@@ -5109,7 +5109,7 @@
+--- a/main/pbx.c
++++ b/main/pbx.c
+@@ -5136,7 +5136,7 @@ struct app_tmp {
};
/*! \brief run the application and free the descriptor once done */
@@ -23,11 +19,9 @@
{
struct app_tmp *tmp = data;
struct ast_app *app;
-Index: asterisk-1.4.14~dfsg/include/asterisk/pbx.h
-===================================================================
---- a/include/asterisk/pbx.h 2007-11-19 12:33:34.000000000 +0200
-+++ b/include/asterisk/pbx.h 2007-11-19 12:33:35.000000000 +0200
-@@ -145,6 +145,8 @@
+--- a/include/asterisk/pbx.h
++++ b/include/asterisk/pbx.h
+@@ -145,6 +145,8 @@ void ast_unregister_switch(struct ast_sw
*/
struct ast_app *pbx_findapp(const char *app);
@@ -36,10 +30,8 @@
/*!
* \brief Execute an application
*
-Index: asterisk-1.4.14~dfsg/channels/chan_zap.c
-===================================================================
---- a/channels/chan_zap.c 2007-11-19 12:31:59.000000000 +0200
-+++ b/channels/chan_zap.c 2007-11-19 12:48:21.000000000 +0200
+--- a/channels/chan_zap.c
++++ b/channels/chan_zap.c
@@ -11,6 +11,10 @@
* the project provides a web site, mailing lists and IRC
* channels for your use.
@@ -51,7 +43,7 @@
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
-@@ -189,7 +195,7 @@
+@@ -191,7 +195,7 @@ static const char config[] = "zapata.con
#define SIG_GR303FXOKS (0x0100000 | ZT_SIG_FXOKS)
#define SIG_GR303FXSKS (0x0100000 | ZT_SIG_FXSKS)
@@ -60,7 +52,7 @@
#define NUM_DCHANS 4 /*!< No more than 4 d-channels */
#define MAX_CHANNELS 672 /*!< No more than a DS3 per trunk group */
-@@ -215,8 +221,6 @@
+@@ -217,8 +221,6 @@ static struct ast_channel inuse;
#ifdef PRI_GETSET_TIMERS
static int pritimers[PRI_MAX_TIMERS];
#endif
@@ -69,7 +61,7 @@
#endif
/*! \brief Wait up to 16 seconds for first digit (FXO logic) */
-@@ -234,10 +238,6 @@
+@@ -236,10 +238,6 @@ AST_MUTEX_DEFINE_STATIC(iflock);
static int ifcount = 0;
@@ -80,7 +72,7 @@
/*! \brief Protect the monitoring thread, so only one process can kill or start it, and not
when it's doing something critical. */
AST_MUTEX_DEFINE_STATIC(monlock);
-@@ -252,6 +252,7 @@
+@@ -254,6 +252,7 @@ static enum ast_bridge_result zt_bridge(
static int zt_sendtext(struct ast_channel *c, const char *text);
@@ -88,7 +80,7 @@
/*! \brief Avoid the silly zt_getevent which ignores a bunch of events */
static inline int zt_get_event(int fd)
{
-@@ -296,6 +297,27 @@
+@@ -298,6 +297,27 @@ static int ringt_base = DEFAULT_RINGT;
#define PRI_SPAN(p) (((p) >> 8) & 0xff)
#define PRI_EXPLICIT(p) (((p) >> 16) & 0x01)
@@ -116,7 +108,7 @@
struct zt_pri {
pthread_t master; /*!< Thread of master */
ast_mutex_t lock; /*!< Mutex */
-@@ -309,6 +331,8 @@
+@@ -311,6 +331,8 @@ struct zt_pri {
int nsf; /*!< Network-Specific Facilities */
int dialplan; /*!< Dialing plan */
int localdialplan; /*!< Local dialing plan */
@@ -125,7 +117,7 @@
char internationalprefix[10]; /*!< country access code ('00' for european dialplans) */
char nationalprefix[10]; /*!< area access code ('0' for european dialplans) */
char localprefix[20]; /*!< area access code + area code ('0'+area code for european dialplans) */
-@@ -320,6 +344,7 @@
+@@ -322,6 +344,7 @@ struct zt_pri {
int prilogicalspan; /*!< Logical span number within trunk group */
int numchans; /*!< Num of channels we represent */
int overlapdial; /*!< In overlap dialing mode */
@@ -133,7 +125,7 @@
int facilityenable; /*!< Enable facility IEs */
struct pri *dchans[NUM_DCHANS]; /*!< Actual d-channels */
int dchanavail[NUM_DCHANS]; /*!< Whether each channel is available */
-@@ -335,6 +360,9 @@
+@@ -337,6 +360,9 @@ struct zt_pri {
struct zt_pvt *pvts[MAX_CHANNELS]; /*!< Member channel pvt structs */
struct zt_pvt *crvs; /*!< Member CRV structs */
struct zt_pvt *crvend; /*!< Pointer to end of CRV structs */
@@ -143,7 +135,7 @@
};
-@@ -452,6 +480,8 @@
+@@ -454,6 +480,8 @@ static struct zt_pvt {
unsigned int echocanbridged:1;
unsigned int echocanon:1;
unsigned int faxhandled:1; /*!< Has a fax tone already been handled? */
@@ -152,7 +144,7 @@
unsigned int firstradio:1;
unsigned int hanguponpolarityswitch:1;
unsigned int hardwaredtmf:1;
-@@ -465,7 +495,8 @@
+@@ -467,7 +495,8 @@ static struct zt_pvt {
unsigned int overlapdial:1;
unsigned int permcallwaiting:1;
unsigned int permhidecallerid:1; /*!< Whether to hide our outgoing caller ID or not */
@@ -162,7 +154,7 @@
unsigned int priexclusive:1;
unsigned int pulse:1;
unsigned int pulsedial:1; /*!< whether a pulse dial phone is detected */
-@@ -502,6 +533,7 @@
+@@ -504,6 +533,7 @@ static struct zt_pvt {
#endif
char cid_num[AST_MAX_EXTENSION];
int cid_ton; /*!< Type Of Number (TON) */
@@ -170,7 +162,7 @@
char cid_name[AST_MAX_EXTENSION];
char lastcid_num[AST_MAX_EXTENSION];
char lastcid_name[AST_MAX_EXTENSION];
-@@ -567,6 +599,8 @@
+@@ -569,6 +599,8 @@ static struct zt_pvt {
struct zt_pvt *bearer;
struct zt_pvt *realcall;
q931_call *call;
@@ -179,7 +171,7 @@
int prioffset;
int logicalspan;
#endif
-@@ -612,11 +646,14 @@
+@@ -614,11 +646,14 @@ static struct zt_chan_conf zt_chan_conf_
.minunused = 2,
.idleext = "",
.idledial = "",
@@ -194,7 +186,7 @@
.resetinterval = 3600
},
-@@ -628,6 +665,8 @@
+@@ -630,6 +665,8 @@ static struct zt_chan_conf zt_chan_conf_
.mohinterpret = "default",
.mohsuggest = "",
.transfertobusy = 1,
@@ -203,7 +195,7 @@
.cid_signalling = CID_SIG_BELL,
.cid_start = CID_START_RING,
-@@ -682,6 +721,8 @@
+@@ -684,6 +721,8 @@ static int zt_indicate(struct ast_channe
static int zt_fixup(struct ast_channel *oldchan, struct ast_channel *newchan);
static int zt_setoption(struct ast_channel *chan, int option, void *data, int datalen);
static int zt_func_read(struct ast_channel *chan, char *function, char *data, char *buf, size_t len);
@@ -212,7 +204,7 @@
static const struct ast_channel_tech zap_tech = {
.type = "Zap",
-@@ -713,6 +755,13 @@
+@@ -716,6 +755,13 @@ static const struct ast_channel_tech zap
struct zt_pvt *round_robin[32];
#ifdef HAVE_PRI
@@ -226,7 +218,7 @@
static inline int pri_grab(struct zt_pvt *pvt, struct zt_pri *pri)
{
int res;
-@@ -1415,12 +1570,16 @@
+@@ -1524,12 +1570,16 @@ static void zt_enable_ec(struct zt_pvt *
int res;
if (!p)
return;
@@ -244,7 +236,7 @@
return;
}
if (p->echocancel) {
-@@ -1447,7 +1606,7 @@
+@@ -1556,7 +1606,7 @@ static void zt_train_ec(struct zt_pvt *p
{
int x;
int res;
@@ -253,7 +245,7 @@
x = p->echotraining;
res = ioctl(p->subs[SUB_REAL].zfd, ZT_ECHOTRAIN, &x);
if (res)
-@@ -1808,7 +1967,12 @@
+@@ -1917,7 +1967,12 @@ static int zt_call(struct ast_channel *a
ast_log(LOG_WARNING, "Unable to flush input on channel %d\n", p->channel);
p->outgoing = 1;
@@ -267,7 +259,7 @@
mysig = p->sig;
if (p->outsigmod > -1)
-@@ -2039,6 +2203,7 @@
+@@ -2148,6 +2203,7 @@ static int zt_call(struct ast_channel *a
case SIG_PRI:
/* We'll get it in a moment -- but use dialdest to store pre-setup_ack digits */
p->dialdest[0] = '\0';
@@ -275,7 +267,7 @@
break;
default:
ast_log(LOG_DEBUG, "not yet implemented\n");
-@@ -2059,6 +2224,12 @@
+@@ -2168,6 +2224,12 @@ static int zt_call(struct ast_channel *a
const char *rr_str;
int redirect_reason;
@@ -288,7 +280,7 @@
c = strchr(dest, '/');
if (c)
c++;
-@@ -2081,6 +2252,7 @@
+@@ -2190,6 +2252,7 @@ static int zt_call(struct ast_channel *a
ast_mutex_unlock(&p->lock);
return -1;
}
@@ -296,7 +288,7 @@
if (mysig != SIG_FXSKS) {
p->dop.op = ZT_DIAL_OP_REPLACE;
s = strchr(c + p->stripmsd, 'w');
-@@ -2104,6 +2276,8 @@
+@@ -2213,6 +2276,8 @@ static int zt_call(struct ast_channel *a
pri_rel(p->pri);
ast_mutex_unlock(&p->lock);
return -1;
@@ -305,7 +297,7 @@
}
if (!(sr = pri_sr_new())) {
ast_log(LOG_WARNING, "Failed to allocate setup request channel %d\n", p->channel);
-@@ -2133,7 +2307,7 @@
+@@ -2242,7 +2307,7 @@ static int zt_call(struct ast_channel *a
pri_sr_set_channel(sr, p->bearer ? PVT_TO_CHANNEL(p->bearer) : PVT_TO_CHANNEL(p), exclusive, 1);
pri_sr_set_bearer(sr, p->digital ? PRI_TRANS_CAP_DIGITAL : ast->transfercapability,
(p->digital ? -1 :
@@ -314,7 +306,7 @@
if (p->pri->facilityenable)
pri_facility_enable(p->pri->pri);
-@@ -2397,8 +2571,10 @@
+@@ -2506,8 +2571,10 @@ static int pri_find_dchan(struct zt_pri
}
if (newslot < 0) {
newslot = 0;
@@ -326,7 +318,7 @@
}
if (old && (oldslot != newslot))
ast_log(LOG_NOTICE, "Switching from from d-channel %d to channel %d!\n",
-@@ -2408,6 +2584,16 @@
+@@ -2517,6 +2584,16 @@ static int pri_find_dchan(struct zt_pri
}
#endif
@@ -343,7 +335,7 @@
static int zt_hangup(struct ast_channel *ast)
{
int res;
-@@ -2455,8 +2641,7 @@
+@@ -2564,8 +2641,7 @@ static int zt_hangup(struct ast_channel
if (option_debug)
ast_log(LOG_DEBUG, "Hangup: channel: %d index = %d, normal = %d, callwait = %d, thirdcall = %d\n",
p->channel, index, p->subs[SUB_REAL].zfd, p->subs[SUB_CALLWAIT].zfd, p->subs[SUB_THREEWAY].zfd);
@@ -353,7 +345,7 @@
if (index > -1) {
/* Real channel, do some fixup */
p->subs[index].owner = NULL;
-@@ -2558,6 +2743,7 @@
+@@ -2667,6 +2743,7 @@ static int zt_hangup(struct ast_channel
}
if (!p->subs[SUB_REAL].owner && !p->subs[SUB_CALLWAIT].owner && !p->subs[SUB_THREEWAY].owner) {
@@ -361,7 +353,7 @@
p->owner = NULL;
p->ringt = 0;
p->distinctivering = 0;
-@@ -2600,7 +2786,7 @@
+@@ -2709,7 +2786,7 @@ static int zt_hangup(struct ast_channel
pri_call_set_useruser(p->call, useruser);
#endif
@@ -370,7 +362,7 @@
p->call = NULL;
if (p->bearer)
p->bearer->call = NULL;
-@@ -2620,7 +2806,28 @@
+@@ -2729,7 +2806,28 @@ static int zt_hangup(struct ast_channel
if (atoi(cause))
icause = atoi(cause);
}
@@ -400,7 +392,7 @@
}
if (res < 0)
ast_log(LOG_WARNING, "pri_disconnect failed\n");
-@@ -2804,10 +3011,14 @@
+@@ -2913,10 +3011,14 @@ static int zt_answer(struct ast_channel
p->proceeding = 1;
res = pri_answer(p->pri->pri, p->call, 0, !p->digital);
pri_rel(p->pri);
@@ -415,7 +407,7 @@
break;
#endif
case 0:
-@@ -3444,6 +3655,15 @@
+@@ -3553,6 +3655,15 @@ static int zt_fixup(struct ast_channel *
{
struct zt_pvt *p = newchan->tech_pvt;
int x;
@@ -431,7 +423,7 @@
ast_mutex_lock(&p->lock);
ast_log(LOG_DEBUG, "New owner for channel %d is %s\n", p->channel, newchan->name);
if (p->owner == oldchan) {
-@@ -3653,8 +3873,10 @@
+@@ -3762,8 +3873,10 @@ static void zt_handle_dtmfup(struct ast_
pbx_builtin_setvar_helper(ast, "FAXEXTEN", ast->exten);
if (ast_async_goto(ast, target_context, "fax", 1))
ast_log(LOG_WARNING, "Failed to async goto '%s' into fax of '%s'\n", ast->name, target_context);
@@ -443,7 +435,7 @@
} else if (option_debug)
ast_log(LOG_DEBUG, "Already in a fax extension, not redirecting\n");
} else if (option_debug)
-@@ -3808,7 +4030,7 @@
+@@ -3917,7 +4030,7 @@ static struct ast_frame *zt_handle_event
if (p->call) {
if (p->pri && p->pri->pri) {
if (!pri_grab(p, p->pri)) {
@@ -452,7 +444,7 @@
pri_destroycall(p->pri->pri, p->call);
p->call = NULL;
pri_rel(p->pri);
-@@ -4867,7 +5089,7 @@
+@@ -4976,7 +5089,7 @@ static struct ast_frame *zt_read(struct
p->subs[index].f.data = NULL;
p->subs[index].f.datalen= 0;
}
@@ -461,7 +453,7 @@
/* Perform busy detection. etc on the zap line */
f = ast_dsp_process(ast, p->dsp, &p->subs[index].f);
if (f) {
-@@ -4879,8 +5101,9 @@
+@@ -4988,8 +5101,9 @@ static struct ast_frame *zt_read(struct
}
} else if (f->frametype == AST_FRAME_DTMF) {
#ifdef HAVE_PRI
@@ -473,7 +465,7 @@
f->frametype = AST_FRAME_NULL;
f->subclass = 0;
}
-@@ -4955,7 +5178,9 @@
+@@ -5064,7 +5178,9 @@ static int zt_write(struct ast_channel *
#endif
/* Write a frame of (presumably voice) data */
if (frame->frametype != AST_FRAME_VOICE) {
@@ -484,7 +476,7 @@
ast_log(LOG_WARNING, "Don't know what to do with frame type '%d'\n", frame->frametype);
return 0;
}
-@@ -5023,7 +5248,7 @@
+@@ -5132,7 +5248,7 @@ static int zt_indicate(struct ast_channe
switch (condition) {
case AST_CONTROL_BUSY:
#ifdef HAVE_PRI
@@ -493,7 +485,7 @@
chan->hangupcause = AST_CAUSE_USER_BUSY;
chan->_softhangup |= AST_SOFTHANGUP_DEV;
res = 0;
-@@ -5105,7 +5330,7 @@
+@@ -5214,7 +5330,7 @@ static int zt_indicate(struct ast_channe
case AST_CONTROL_CONGESTION:
chan->hangupcause = AST_CAUSE_CONGESTION;
#ifdef HAVE_PRI
@@ -502,7 +494,7 @@
chan->hangupcause = AST_CAUSE_SWITCH_CONGESTION;
chan->_softhangup |= AST_SOFTHANGUP_DEV;
res = 0;
-@@ -5299,8 +5524,12 @@
+@@ -5408,8 +5524,12 @@ static struct ast_channel *zt_new(struct
if (state == AST_STATE_RING)
tmp->rings = 1;
tmp->tech_pvt = i;
@@ -516,7 +508,7 @@
tmp->callgroup = i->callgroup;
tmp->pickupgroup = i->pickupgroup;
}
-@@ -5430,6 +5659,7 @@
+@@ -5539,6 +5659,7 @@ static void *ss_thread(void *data)
int len = 0;
int res;
int index;
@@ -524,7 +516,7 @@
/* in the bizarre case where the channel has become a zombie before we
even get started here, abort safely
-@@ -5458,10 +5688,17 @@
+@@ -5567,10 +5688,17 @@ static void *ss_thread(void *data)
len = strlen(exten);
res = 0;
while ((len < AST_MAX_EXTENSION-1) && ast_matchmore_extension(chan, chan->context, exten, 1, p->cid_num)) {
@@ -545,7 +537,7 @@
if (ast_exists_extension(chan, chan->context, exten, 1, p->cid_num))
timeout = matchdigittimeout;
else
-@@ -6669,18 +6906,44 @@
+@@ -6778,18 +6906,44 @@ static int handle_init_event(struct zt_p
break;
case ZT_EVENT_NOALARM:
i->inalarm = 0;
@@ -590,7 +582,7 @@
/* fall thru intentionally */
case ZT_EVENT_ONHOOK:
if (i->radio)
-@@ -6724,8 +6987,10 @@
+@@ -6833,8 +6987,10 @@ static int handle_init_event(struct zt_p
zt_set_hook(i->subs[SUB_REAL].zfd, ZT_ONHOOK);
break;
case SIG_PRI:
@@ -603,7 +595,7 @@
break;
default:
ast_log(LOG_WARNING, "Don't know how to handle on hook with signalling %s on channel %d\n", sig2str(i->sig), i->channel);
-@@ -7017,6 +7282,8 @@
+@@ -7126,6 +7282,8 @@ static int pri_resolve_span(int *span, i
} else {
if (si->totalchans == 31) { /* if it's an E1 */
pris[*span].dchannels[0] = 16 + offset;
@@ -612,7 +604,7 @@
} else {
pris[*span].dchannels[0] = 24 + offset;
}
-@@ -7269,6 +7536,11 @@
+@@ -7378,6 +7536,11 @@ static struct zt_pvt *mkintf(int channel
destroy_zt_pvt(&tmp);
return NULL;
}
@@ -624,7 +616,7 @@
if (pris[span].minunused && (pris[span].minunused != conf.pri.minunused)) {
ast_log(LOG_ERROR, "Span %d already has minunused of %d.\n", span + 1, conf.pri.minunused);
destroy_zt_pvt(&tmp);
-@@ -7286,6 +7558,11 @@
+@@ -7395,6 +7558,11 @@ static struct zt_pvt *mkintf(int channel
return NULL;
}
pris[span].nodetype = conf.pri.nodetype;
@@ -636,7 +628,7 @@
pris[span].switchtype = myswitchtype;
pris[span].nsf = conf.pri.nsf;
pris[span].dialplan = conf.pri.dialplan;
-@@ -7294,9 +7571,14 @@
+@@ -7403,9 +7571,14 @@ static struct zt_pvt *mkintf(int channel
pris[span].minunused = conf.pri.minunused;
pris[span].minidle = conf.pri.minidle;
pris[span].overlapdial = conf.pri.overlapdial;
@@ -651,7 +643,7 @@
ast_copy_string(pris[span].internationalprefix, conf.pri.internationalprefix, sizeof(pris[span].internationalprefix));
ast_copy_string(pris[span].nationalprefix, conf.pri.nationalprefix, sizeof(pris[span].nationalprefix));
ast_copy_string(pris[span].localprefix, conf.pri.localprefix, sizeof(pris[span].localprefix));
-@@ -7432,6 +7714,7 @@
+@@ -7541,6 +7714,7 @@ static struct zt_pvt *mkintf(int channel
tmp->restrictcid = conf.chan.restrictcid;
tmp->use_callingpres = conf.chan.use_callingpres;
tmp->priindication_oob = conf.chan.priindication_oob;
@@ -659,7 +651,7 @@
tmp->priexclusive = conf.chan.priexclusive;
if (tmp->usedistinctiveringdetection) {
if (!tmp->use_callerid) {
-@@ -7711,7 +7994,7 @@
+@@ -7820,7 +7994,7 @@ static int pri_find_empty_chan(struct zt
break;
if (!backwards && (x >= pri->numchans))
break;
@@ -668,7 +660,7 @@
ast_log(LOG_DEBUG, "Found empty available channel %d/%d\n",
pri->pvts[x]->logicalspan, pri->pvts[x]->prioffset);
return x;
-@@ -7907,6 +8190,11 @@
+@@ -8016,6 +8190,11 @@ static struct ast_channel *zt_request(co
p->digital = 1;
if (tmp)
tmp->transfercapability = AST_TRANS_CAP_DIGITAL;
@@ -680,7 +672,7 @@
} else {
ast_log(LOG_WARNING, "Unknown option '%c' in '%s'\n", opt, (char *)data);
}
-@@ -7940,13 +8228,14 @@
+@@ -8049,13 +8228,14 @@ next:
*cause = AST_CAUSE_BUSY;
} else if (groupmatched) {
*cause = AST_CAUSE_CONGESTION;
@@ -696,7 +688,7 @@
#ifdef HAVE_PRI
static struct zt_pvt *pri_find_crv(struct zt_pri *pri, int crv)
{
-@@ -7960,6 +8249,58 @@
+@@ -8069,6 +8249,58 @@ static struct zt_pvt *pri_find_crv(struc
return NULL;
}
@@ -755,7 +747,7 @@
static int pri_find_principle(struct zt_pri *pri, int channel)
{
-@@ -7991,7 +8332,9 @@
+@@ -8100,7 +8332,9 @@ static int pri_find_principle(struct zt_
static int pri_fixup_principle(struct zt_pri *pri, int principle, q931_call *c)
{
int x;
@@ -765,7 +757,7 @@
if (!c) {
if (principle < 0)
return -1;
-@@ -8019,6 +8362,7 @@
+@@ -8128,6 +8362,7 @@ static int pri_fixup_principle(struct zt
}
/* Fix it all up now */
pri->pvts[principle]->owner = pri->pvts[x]->owner;
@@ -773,7 +765,7 @@
if (pri->pvts[principle]->owner) {
ast_string_field_build(pri->pvts[principle]->owner, name,
"Zap/%d:%d-%d", pri->trunkgroup,
-@@ -8026,13 +8370,48 @@
+@@ -8135,13 +8370,48 @@ static int pri_fixup_principle(struct zt
pri->pvts[principle]->owner->tech_pvt = pri->pvts[principle];
pri->pvts[principle]->owner->fds[0] = pri->pvts[principle]->subs[SUB_REAL].zfd;
pri->pvts[principle]->subs[SUB_REAL].owner = pri->pvts[x]->subs[SUB_REAL].owner;
@@ -823,7 +815,7 @@
}
return principle;
}
-@@ -8061,7 +8440,9 @@
+@@ -8170,7 +8440,9 @@ static int pri_fixup_principle(struct zt
}
crv = crv->next;
}
@@ -834,7 +826,7 @@
return -1;
}
-@@ -8120,86 +8501,21 @@
+@@ -8229,86 +8501,21 @@ static void *do_idle_thread(void *vchan)
#ifndef PRI_RESTART
#error "Upgrade your libpri"
#endif
@@ -928,7 +920,7 @@
do {
pri->resetpos++;
} while ((pri->resetpos < pri->numchans) &&
-@@ -8283,13 +8599,30 @@
+@@ -8392,13 +8599,30 @@ static void apply_plan_to_number(char *b
}
}
@@ -966,7 +958,7 @@
}
static void *pri_dchannel(void *vpri)
-@@ -8469,15 +8802,44 @@
+@@ -8578,15 +8802,44 @@ static void *pri_dchannel(void *vpri)
/* Check for an event */
x = 0;
res = ioctl(pri->fds[which], ZT_GETEVENT, &x);
@@ -1014,7 +1006,7 @@
}
if (option_debug)
-@@ -8489,8 +8851,7 @@
+@@ -8598,8 +8851,7 @@ static void *pri_dchannel(void *vpri)
break;
}
} else if (errno != EINTR)
@@ -1024,7 +1016,7 @@
if (e) {
if (pri->debug)
pri_dump_event(pri->dchans[which], e);
-@@ -8503,32 +8864,86 @@
+@@ -8612,32 +8864,86 @@ static void *pri_dchannel(void *vpri)
switch (e->e) {
case PRI_EVENT_DCHAN_UP:
@@ -1128,7 +1120,7 @@
pri->resetting = 0;
/* Hangup active channels and put them in alarm mode */
for (i = 0; i < pri->numchans; i++) {
-@@ -8538,12 +8953,13 @@
+@@ -8647,12 +8953,13 @@ static void *pri_dchannel(void *vpri)
/* T309 is not enabled : hangup calls when alarm occurs */
if (p->call) {
if (p->pri && p->pri->pri) {
@@ -1143,7 +1135,7 @@
if (p->realcall) {
pri_hangup_all(p->realcall, pri);
} else if (p->owner)
-@@ -8552,6 +8968,7 @@
+@@ -8661,6 +8968,7 @@ static void *pri_dchannel(void *vpri)
p->inalarm = 1;
}
}
@@ -1151,7 +1143,7 @@
}
break;
case PRI_EVENT_RESTART:
-@@ -8586,8 +9003,8 @@
+@@ -8695,8 +9003,8 @@ static void *pri_dchannel(void *vpri)
pri_destroycall(pri->pri, pri->pvts[x]->call);
pri->pvts[x]->call = NULL;
}
@@ -1162,7 +1154,7 @@
else if (pri->pvts[x]->owner)
pri->pvts[x]->owner->_softhangup |= AST_SOFTHANGUP_DEV;
ast_mutex_unlock(&pri->pvts[x]->lock);
-@@ -8621,7 +9038,6 @@
+@@ -8730,7 +9038,6 @@ static void *pri_dchannel(void *vpri)
}
}
break;
@@ -1170,7 +1162,7 @@
case PRI_EVENT_INFO_RECEIVED:
chanpos = pri_find_principle(pri, e->ring.channel);
if (chanpos < 0) {
-@@ -8630,9 +9046,11 @@
+@@ -8739,9 +9046,11 @@ static void *pri_dchannel(void *vpri)
} else {
chanpos = pri_fixup_principle(pri, chanpos, e->ring.call);
if (chanpos > -1) {
@@ -1183,7 +1175,7 @@
/* how to do that */
int digitlen = strlen(e->ring.callednum);
char digit;
-@@ -8644,6 +9062,14 @@
+@@ -8753,6 +9062,14 @@ static void *pri_dchannel(void *vpri)
zap_queue_frame(pri->pvts[chanpos], &f, pri);
}
}
@@ -1198,7 +1190,7 @@
}
ast_mutex_unlock(&pri->pvts[chanpos]->lock);
}
-@@ -8651,36 +9077,59 @@
+@@ -8760,36 +9077,59 @@ static void *pri_dchannel(void *vpri)
break;
case PRI_EVENT_RING:
crv = NULL;
@@ -1274,7 +1266,7 @@
if (pri->switchtype == PRI_SWITCH_GR303_TMC) {
/* Should be safe to lock CRV AFAIK while bearer is still locked */
crv = pri_find_crv(pri, pri_get_crv(pri->pri, e->ring.call, NULL));
-@@ -8694,13 +9143,14 @@
+@@ -8803,13 +9143,14 @@ static void *pri_dchannel(void *vpri)
ast_log(LOG_WARNING, "Call received for busy CRV %d on span %d\n", pri_get_crv(pri->pri, e->ring.call, NULL), pri->span);
} else
ast_log(LOG_NOTICE, "Call received for unconfigured CRV %d on span %d\n", pri_get_crv(pri->pri, e->ring.call, NULL), pri->span);
@@ -1290,7 +1282,7 @@
pri->pvts[chanpos]->call = e->ring.call;
apply_plan_to_number(plancallingnum, sizeof(plancallingnum), pri, e->ring.callingnum, e->ring.callingplan);
if (pri->pvts[chanpos]->use_callerid) {
-@@ -8725,29 +9175,78 @@
+@@ -8834,29 +9175,78 @@ static void *pri_dchannel(void *vpri)
}
apply_plan_to_number(pri->pvts[chanpos]->rdnis, sizeof(pri->pvts[chanpos]->rdnis), pri,
e->ring.redirectingnum, e->ring.callingplanrdnis);
@@ -1382,7 +1374,7 @@
/* Make sure extension exists (or in overlap dial mode, can exist) */
if ((pri->overlapdial && ast_canmatch_extension(NULL, pri->pvts[chanpos]->context, pri->pvts[chanpos]->exten, 1, pri->pvts[chanpos]->cid_num)) ||
ast_exists_extension(NULL, pri->pvts[chanpos]->context, pri->pvts[chanpos]->exten, 1, pri->pvts[chanpos]->cid_num)) {
-@@ -8766,19 +9265,36 @@
+@@ -8875,19 +9265,36 @@ static void *pri_dchannel(void *vpri)
res = zt_setlaw(pri->pvts[chanpos]->subs[SUB_REAL].zfd, law);
if (res < 0)
ast_log(LOG_WARNING, "Unable to set law on channel %d\n", pri->pvts[chanpos]->channel);
@@ -1422,7 +1414,7 @@
/* Get the use_callingpres state */
pri->pvts[chanpos]->callingpres = e->ring.callingpres;
-@@ -8790,14 +9306,31 @@
+@@ -8899,14 +9306,31 @@ static void *pri_dchannel(void *vpri)
/* Set bearer and such */
pri_assign_bearer(crv, pri, pri->pvts[chanpos]);
c = zt_new(crv, AST_STATE_RESERVED, 0, SUB_REAL, law, e->ring.ctype);
@@ -1454,7 +1446,7 @@
if (e->ring.ani2 >= 0) {
snprintf(ani2str, 5, "%.2d", e->ring.ani2);
pbx_builtin_setvar_helper(c, "ANI2", ani2str);
-@@ -8819,8 +9352,8 @@
+@@ -8928,8 +9352,8 @@ static void *pri_dchannel(void *vpri)
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
if (c && !ast_pthread_create(&threadid, &attr, ss_thread, c)) {
if (option_verbose > 2)
@@ -1465,7 +1457,7 @@
pri->pvts[chanpos]->logicalspan, pri->pvts[chanpos]->prioffset, pri->span);
} else {
ast_log(LOG_WARNING, "Unable to start PBX on channel %d/%d, span %d\n",
-@@ -8828,15 +9361,19 @@
+@@ -8937,15 +9361,19 @@ static void *pri_dchannel(void *vpri)
if (c)
ast_hangup(c);
else {
@@ -1486,7 +1478,7 @@
ast_mutex_lock(&pri->lock);
if (c) {
char calledtonstr[10];
-@@ -8857,23 +9394,40 @@
+@@ -8966,23 +9394,40 @@ static void *pri_dchannel(void *vpri)
snprintf(calledtonstr, sizeof(calledtonstr)-1, "%d", e->ring.calledplan);
pbx_builtin_setvar_helper(c, "CALLEDTON", calledtonstr);
if (option_verbose > 2)
@@ -1531,7 +1523,7 @@
pri->pvts[chanpos]->call = NULL;
pri->pvts[chanpos]->exten[0] = '\0';
}
-@@ -8882,9 +9436,9 @@
+@@ -8991,9 +9436,9 @@ static void *pri_dchannel(void *vpri)
ast_mutex_unlock(&pri->pvts[chanpos]->lock);
} else {
if (e->ring.flexible)
@@ -1543,7 +1535,7 @@
}
break;
case PRI_EVENT_RINGING:
-@@ -8900,7 +9454,7 @@
+@@ -9009,7 +9454,7 @@ static void *pri_dchannel(void *vpri)
} else {
ast_mutex_lock(&pri->pvts[chanpos]->lock);
if (ast_strlen_zero(pri->pvts[chanpos]->dop.dialstr)) {
@@ -1552,7 +1544,7 @@
pri->pvts[chanpos]->subs[SUB_REAL].needringing = 1;
pri->pvts[chanpos]->alerting = 1;
} else
-@@ -8929,9 +9483,16 @@
+@@ -9038,9 +9483,16 @@ static void *pri_dchannel(void *vpri)
}
break;
case PRI_EVENT_PROGRESS:
@@ -1570,7 +1562,7 @@
#ifdef PRI_PROGRESS_MASK
if ((!pri->pvts[chanpos]->progress) || (e->proceeding.progressmask & PRI_PROG_INBAND_AVAILABLE)) {
#else
-@@ -8978,6 +9539,12 @@
+@@ -9087,6 +9539,12 @@ static void *pri_dchannel(void *vpri)
case PRI_EVENT_PROCEEDING:
chanpos = pri_find_principle(pri, e->proceeding.channel);
if (chanpos > -1) {
@@ -1583,7 +1575,7 @@
if (!pri->pvts[chanpos]->proceeding) {
struct ast_frame f = { AST_FRAME_CONTROL, AST_CONTROL_PROCEEDING, };
-@@ -9025,6 +9592,295 @@
+@@ -9134,6 +9592,295 @@ static void *pri_dchannel(void *vpri)
}
}
break;
@@ -1879,7 +1871,7 @@
case PRI_EVENT_ANSWER:
chanpos = pri_find_principle(pri, e->answer.channel);
if (chanpos < 0) {
-@@ -9037,6 +9893,7 @@
+@@ -9146,6 +9893,7 @@ static void *pri_dchannel(void *vpri)
PRI_SPAN(e->answer.channel), PRI_CHANNEL(e->answer.channel), pri->span);
} else {
ast_mutex_lock(&pri->pvts[chanpos]->lock);
@@ -1887,7 +1879,7 @@
/* Now we can do call progress detection */
/* We changed this so it turns on the DSP no matter what... progress or no progress.
-@@ -9066,11 +9923,16 @@
+@@ -9175,11 +9923,16 @@ static void *pri_dchannel(void *vpri)
ast_log(LOG_DEBUG, "Sent deferred digit string: %s\n", pri->pvts[chanpos]->dop.dialstr);
pri->pvts[chanpos]->dop.dialstr[0] = '\0';
} else if (pri->pvts[chanpos]->confirmanswer) {
@@ -1905,7 +1897,7 @@
}
#ifdef SUPPORT_USERUSER
-@@ -9124,20 +9986,29 @@
+@@ -9233,20 +9986,29 @@ static void *pri_dchannel(void *vpri)
ast_verbose(VERBOSE_PREFIX_3 "Channel %d/%d, span %d got hangup, cause %d\n",
pri->pvts[chanpos]->logicalspan, pri->pvts[chanpos]->prioffset, pri->span, e->hangup.cause);
} else {
@@ -1942,7 +1934,7 @@
#ifdef SUPPORT_USERUSER
if (pri->pvts[chanpos]->owner && !ast_strlen_zero(e->hangup.useruserinfo)) {
-@@ -9147,8 +10018,20 @@
+@@ -9256,8 +10018,20 @@ static void *pri_dchannel(void *vpri)
ast_mutex_unlock(&pri->pvts[chanpos]->lock);
} else {
@@ -1965,7 +1957,7 @@
}
}
break;
-@@ -9158,15 +10041,23 @@
+@@ -9267,15 +10041,23 @@ static void *pri_dchannel(void *vpri)
case PRI_EVENT_HANGUP_REQ:
chanpos = pri_find_principle(pri, e->hangup.channel);
if (chanpos < 0) {
@@ -1992,7 +1984,7 @@
pri->pvts[chanpos]->owner->hangupcause = e->hangup.cause;
if (pri->pvts[chanpos]->owner->_state == AST_STATE_UP)
pri->pvts[chanpos]->owner->_softhangup |= AST_SOFTHANGUP_DEV;
-@@ -9193,16 +10084,86 @@
+@@ -9302,16 +10084,86 @@ static void *pri_dchannel(void *vpri)
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Channel %d/%d, span %d received AOC-E charging %d unit%s\n",
pri->pvts[chanpos]->logicalspan, pri->pvts[chanpos]->prioffset, pri->span, (int)e->hangup.aoc_units, (e->hangup.aoc_units == 1) ? "" : "s");
@@ -2083,7 +2075,7 @@
}
#ifdef SUPPORT_USERUSER
-@@ -9213,9 +10174,39 @@
+@@ -9322,9 +10174,39 @@ static void *pri_dchannel(void *vpri)
ast_mutex_unlock(&pri->pvts[chanpos]->lock);
} else {
@@ -2124,7 +2116,7 @@
break;
case PRI_EVENT_HANGUP_ACK:
chanpos = pri_find_principle(pri, e->hangup.channel);
-@@ -9227,6 +10218,7 @@
+@@ -9336,6 +10218,7 @@ static void *pri_dchannel(void *vpri)
if (chanpos > -1) {
ast_mutex_lock(&pri->pvts[chanpos]->lock);
pri->pvts[chanpos]->call = NULL;
@@ -2132,7 +2124,7 @@
pri->pvts[chanpos]->resetting = 0;
if (pri->pvts[chanpos]->owner) {
if (option_verbose > 2)
-@@ -9240,7 +10232,9 @@
+@@ -9349,7 +10232,9 @@ static void *pri_dchannel(void *vpri)
#endif
ast_mutex_unlock(&pri->pvts[chanpos]->lock);
@@ -2142,7 +2134,7 @@
}
break;
case PRI_EVENT_CONFIG_ERR:
-@@ -9330,10 +10324,22 @@
+@@ -9439,10 +10324,22 @@ static void *pri_dchannel(void *vpri)
ast_mutex_lock(&pri->pvts[chanpos]->lock);
switch (e->notify.info) {
case PRI_NOTIFY_REMOTE_HOLD:
@@ -2165,7 +2157,7 @@
f.subclass = AST_CONTROL_UNHOLD;
zap_queue_frame(pri->pvts[chanpos], &f, pri);
break;
-@@ -9341,6 +10347,77 @@
+@@ -9450,6 +10347,77 @@ static void *pri_dchannel(void *vpri)
ast_mutex_unlock(&pri->pvts[chanpos]->lock);
}
break;
@@ -2243,7 +2235,7 @@
default:
ast_log(LOG_DEBUG, "Event: %d\n", e->e);
}
-@@ -9402,7 +10479,7 @@
+@@ -9511,7 +10479,7 @@ static int start_pri(struct zt_pri *pri)
pri->fds[i] = -1;
return -1;
}
@@ -2252,7 +2244,7 @@
/* Force overlap dial if we're doing GR-303! */
if (pri->switchtype == PRI_SWITCH_GR303_TMC)
pri->overlapdial = 1;
-@@ -9470,39 +10547,77 @@
+@@ -9579,39 +10547,77 @@ static char *complete_span_5(const char
static int handle_pri_set_debug_file(int fd, int argc, char **argv)
{
@@ -2350,7 +2342,7 @@
}
return RESULT_SUCCESS;
-@@ -9536,6 +10651,7 @@
+@@ -9645,6 +10651,7 @@ static int handle_pri_debug(int fd, int
@@ -2358,7 +2350,7 @@
static int handle_pri_no_debug(int fd, int argc, char *argv[])
{
int span;
-@@ -9685,10 +10801,6 @@
+@@ -9794,10 +10801,6 @@ static int handle_pri_show_debug(int fd,
}
}
@@ -2369,7 +2361,7 @@
if (!count)
ast_cli(fd, "No debug set or no PRI running\n");
-@@ -9715,6 +10827,18 @@
+@@ -9824,6 +10827,18 @@ static const char pri_show_spans_help[]
"Usage: pri show spans\n"
" Displays PRI Information\n";
@@ -2388,7 +2380,7 @@
static struct ast_cli_entry zap_pri_cli[] = {
{ { "pri", "debug", "span", NULL },
handle_pri_debug, "Enables PRI debugging on a span",
-@@ -9739,6 +10863,15 @@
+@@ -9848,6 +10863,15 @@ static struct ast_cli_entry zap_pri_cli[
{ { "pri", "show", "debug", NULL },
handle_pri_show_debug, "Displays current PRI debug settings" },
@@ -2404,7 +2396,7 @@
{ { "pri", "set", "debug", "file", NULL },
handle_pri_set_debug_file, "Sends PRI debug output to the specified file" },
-@@ -9746,8 +10879,76 @@
+@@ -9855,8 +10879,76 @@ static struct ast_cli_entry zap_pri_cli[
handle_pri_set_debug_file, "Ends PRI debug output to file" },
};
@@ -2481,7 +2473,7 @@
static int zap_destroy_channel(int fd, int argc, char **argv)
{
int channel;
-@@ -10328,8 +11529,11 @@
+@@ -10437,8 +11529,11 @@ static int __unload_module(void)
}
ast_cli_unregister_multiple(zap_pri_cli, sizeof(zap_pri_cli) / sizeof(struct ast_cli_entry));
ast_unregister_application(zap_send_keypad_facility_app);
@@ -2493,7 +2485,7 @@
ast_manager_unregister( "ZapDialOffhook" );
ast_manager_unregister( "ZapHangup" );
ast_manager_unregister( "ZapTransfer" );
-@@ -10831,6 +12035,22 @@
+@@ -10940,6 +12035,22 @@ static int process_zap(struct zt_chan_co
confp->chan.sig = SIG_GR303FXSKS;
confp->chan.radio = 0;
confp->pri.nodetype = PRI_CPE;
@@ -2516,7 +2508,7 @@
#endif
} else {
ast_log(LOG_ERROR, "Unknown signalling method '%s'\n", v->value);
-@@ -10943,9 +12163,21 @@
+@@ -11052,9 +12163,21 @@ static int process_zap(struct zt_chan_co
confp->chan.priindication_oob = 1;
else if (!strcasecmp(v->value, "inband"))
confp->chan.priindication_oob = 0;
@@ -2539,7 +2531,7 @@
} else if (!strcasecmp(v->name, "priexclusive")) {
confp->chan.priexclusive = ast_true(v->value);
} else if (!strcasecmp(v->name, "internationalprefix")) {
-@@ -10958,6 +12190,10 @@
+@@ -11067,6 +12190,10 @@ static int process_zap(struct zt_chan_co
ast_copy_string(confp->pri.privateprefix, v->value, sizeof(confp->pri.privateprefix));
} else if (!strcasecmp(v->name, "unknownprefix")) {
ast_copy_string(confp->pri.unknownprefix, v->value, sizeof(confp->pri.unknownprefix));
@@ -2550,7 +2542,7 @@
} else if (!strcasecmp(v->name, "resetinterval")) {
if (!strcasecmp(v->value, "never"))
confp->pri.resetinterval = -1;
-@@ -10974,6 +12210,8 @@
+@@ -11083,6 +12210,8 @@ static int process_zap(struct zt_chan_co
ast_copy_string(confp->pri.idleext, v->value, sizeof(confp->pri.idleext));
} else if (!strcasecmp(v->name, "idledial")) {
ast_copy_string(confp->pri.idledial, v->value, sizeof(confp->pri.idledial));
@@ -2559,7 +2551,7 @@
} else if (!strcasecmp(v->name, "overlapdial")) {
confp->pri.overlapdial = ast_true(v->value);
} else if (!strcasecmp(v->name, "pritimer")) {
-@@ -11275,6 +12513,7 @@
+@@ -11384,6 +12513,7 @@ static int setup_zap(int reload)
#ifdef HAVE_PRI
if (!reload) {
for (x = 0; x < NUM_SPANS; x++) {
@@ -2567,7 +2559,7 @@
if (pris[x].pvts[0]) {
if (start_pri(pris + x)) {
ast_log(LOG_ERROR, "Unable to start D-channel on span %d\n", x + 1);
-@@ -11322,7 +12561,10 @@
+@@ -11431,7 +12561,10 @@ static int load_module(void)
ast_string_field_init(&inuse, 16);
ast_string_field_set(&inuse, name, "GR-303InUse");
ast_cli_register_multiple(zap_pri_cli, sizeof(zap_pri_cli) / sizeof(struct ast_cli_entry));
@@ -2578,7 +2570,7 @@
ast_cli_register_multiple(zap_cli, sizeof(zap_cli) / sizeof(struct ast_cli_entry));
memset(round_robin, 0, sizeof(round_robin));
-@@ -11356,6 +12598,7 @@
+@@ -11465,6 +12598,7 @@ static int zt_sendtext(struct ast_channe
float scont = 0.0;
int index;
@@ -2586,11 +2578,9 @@
index = zt_get_index(c, p, 0);
if (index < 0) {
ast_log(LOG_WARNING, "Huh? I don't exist?\n");
-Index: asterisk-1.4.14~dfsg/configs/zapata.conf.sample
-===================================================================
---- a/configs/zapata.conf.sample 2007-11-19 12:31:59.000000000 +0200
-+++ b/configs/zapata.conf.sample 2007-11-19 12:33:36.000000000 +0200
-@@ -123,9 +123,20 @@
+--- a/configs/zapata.conf.sample
++++ b/configs/zapata.conf.sample
+@@ -123,9 +123,20 @@ switchtype=national
;
; outofband: Signal Busy/Congestion out of band with RELEASE/DISCONNECT
; inband: Signal Busy/Congestion using in-band tones
@@ -2611,11 +2601,9 @@
; If you need to override the existing channels selection routine and force all
; PRI channels to be marked as exclusively selected, set this to yes.
; priexclusive = yes
-Index: asterisk-1.4.14~dfsg/main/channel.c
-===================================================================
---- a/main/channel.c 2007-11-19 12:33:35.000000000 +0200
-+++ b/main/channel.c 2007-11-19 12:33:36.000000000 +0200
-@@ -4173,6 +4173,10 @@
+--- a/main/channel.c
++++ b/main/channel.c
+@@ -4178,6 +4178,10 @@ enum ast_bridge_result ast_channel_bridg
c1->name, c1->_bridge->name);
return -1;
}
Modified: asterisk/trunk/debian/patches/bristuff/zapata-device-state
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/zapata-device-state?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/zapata-device-state (original)
+++ asterisk/trunk/debian/patches/bristuff/zapata-device-state Mon Dec 3 19:08:48 2007
@@ -1,8 +1,6 @@
-Index: asterisk-1.4.14~dfsg/channels/chan_zap.c
-===================================================================
---- a/channels/chan_zap.c 2007-11-19 12:31:59.000000000 +0200
-+++ b/channels/chan_zap.c 2007-11-19 12:48:21.000000000 +0200
-@@ -103,6 +107,8 @@
+--- a/channels/chan_zap.c
++++ b/channels/chan_zap.c
+@@ -103,6 +103,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revisi
#include "asterisk/abstract_jb.h"
#include "asterisk/smdi.h"
#include "asterisk/astobj.h"
@@ -11,7 +9,7 @@
#define SMDI_MD_WAIT_TIMEOUT 1500 /* 1.5 seconds */
/*! Global jitterbuffer configuration - by default, jb is disabled */
-@@ -702,6 +743,7 @@
+@@ -702,6 +704,7 @@ static const struct ast_channel_tech zap
.fixup = zt_fixup,
.setoption = zt_setoption,
.func_channel_read = zt_func_read,
@@ -19,7 +17,7 @@
};
#ifdef HAVE_PRI
-@@ -760,6 +809,112 @@
+@@ -760,6 +763,112 @@ static int cidrings[NUM_CADENCE_MAX] = {
#define CANBUSYDETECT(p) (ISTRUNK(p) || (p->sig & (SIG_EM | SIG_EM_E1 | SIG_SF)) /* || (p->sig & __ZT_SIG_FXO) */)
#define CANPROGRESSDETECT(p) (ISTRUNK(p) || (p->sig & (SIG_EM | SIG_EM_E1 | SIG_SF)) /* || (p->sig & __ZT_SIG_FXO) */)
Modified: asterisk/trunk/debian/patches/bristuff/zapata-gsm
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff/zapata-gsm?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/bristuff/zapata-gsm (original)
+++ asterisk/trunk/debian/patches/bristuff/zapata-gsm Mon Dec 3 19:08:48 2007
@@ -18,7 +18,7 @@
#define SIG_SF ZT_SIG_SF
#define SIG_SFWINK (0x0100000 | ZT_SIG_SF)
#define SIG_SF_FEATD (0x0200000 | ZT_SIG_SF)
-@@ -212,6 +216,8 @@ static char defaultozz[64] = "";
+@@ -235,6 +239,8 @@ static int matchdigittimeout = 3000;
static char defaultcic[64] = "";
static char defaultozz[64] = "";
@@ -27,7 +27,7 @@
static char progzone[10] = "";
-@@ -253,7 +259,7 @@ static int restart_monitor(void);
+@@ -250,7 +256,7 @@ static int restart_monitor(void);
static enum ast_bridge_result zt_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags, struct ast_frame **fo, struct ast_channel **rc, int timeoutms);
@@ -36,7 +36,7 @@
/*! \brief Avoid the silly zt_getevent which ignores a bunch of events */
-@@ -368,6 +374,19 @@ struct zt_pri {
+@@ -365,6 +371,19 @@ struct zt_pri {
int debugfd;
};
@@ -56,7 +56,7 @@
static struct zt_pri pris[NUM_SPANS];
-@@ -396,6 +415,7 @@ struct zt_pri;
+@@ -393,6 +412,7 @@ struct zt_pri;
#define POLARITY_REV 1
@@ -64,7 +64,7 @@
static struct zt_distRings drings;
struct distRingData {
-@@ -607,6 +627,9 @@ static struct zt_pvt {
+@@ -604,6 +624,9 @@ static struct zt_pvt {
int prioffset;
int logicalspan;
#endif
@@ -74,7 +74,7 @@
int polarity;
int dsp_features;
char begindigit;
-@@ -711,7 +734,7 @@ static struct zt_chan_conf zt_chan_conf_
+@@ -710,7 +733,7 @@ static struct zt_chan_conf zt_chan_conf_
static struct ast_channel *zt_request(const char *type, int format, void *data, int *cause);
static int zt_digit_begin(struct ast_channel *ast, char digit);
static int zt_digit_end(struct ast_channel *ast, char digit, unsigned int duration);
@@ -83,7 +83,7 @@
static int zt_call(struct ast_channel *ast, char *rdest, int timeout);
static int zt_hangup(struct ast_channel *ast);
static int zt_answer(struct ast_channel *ast);
-@@ -1364,6 +1387,8 @@ static char *zap_sig2str(int sig)
+@@ -1369,6 +1392,8 @@ static char *zap_sig2str(int sig)
return "GR-303 with FXOKS";
case SIG_GR303FXSKS:
return "GR-303 with FXSKS";
@@ -92,7 +92,7 @@
case 0:
return "Pseudo";
default:
-@@ -1785,7 +1810,7 @@ static inline int zt_confmute(struct zt_
+@@ -1790,7 +1815,7 @@ static inline int zt_confmute(struct zt_
{
int x, y, res;
x = muted;
@@ -101,7 +101,7 @@
y = 1;
res = ioctl(p->subs[SUB_REAL].zfd, ZT_AUDIOMODE, &y);
if (res)
-@@ -2200,6 +2225,25 @@ static int zt_call(struct ast_channel *a
+@@ -2205,6 +2230,25 @@ static int zt_call(struct ast_channel *a
p->dialdest[0] = '\0';
disable_dtmf_detect(p);
break;
@@ -127,7 +127,7 @@
default:
ast_log(LOG_DEBUG, "not yet implemented\n");
ast_mutex_unlock(&p->lock);
-@@ -2838,7 +2882,13 @@ static int zt_hangup(struct ast_channel
+@@ -2844,7 +2888,13 @@ static int zt_hangup(struct ast_channel
}
}
#endif
@@ -142,7 +142,7 @@
res = zt_set_hook(p->subs[SUB_REAL].zfd, ZT_ONHOOK);
if (res < 0) {
ast_log(LOG_WARNING, "Unable to hangup line %s\n", ast->name);
-@@ -3015,6 +3065,13 @@ static int zt_answer(struct ast_channel
+@@ -3021,6 +3071,13 @@ static int zt_answer(struct ast_channel
zt_train_ec(p);
break;
#endif
@@ -156,7 +156,7 @@
case 0:
ast_mutex_unlock(&p->lock);
return 0;
-@@ -7361,6 +7418,10 @@ static int pri_create_spanmap(int span,
+@@ -7371,6 +7428,10 @@ static int pri_create_spanmap(int span,
#endif
@@ -167,7 +167,7 @@
static struct zt_pvt *mkintf(int channel, struct zt_chan_conf conf, struct zt_pri *pri, int reloading)
{
/* Make a zt_pvt structure for this interface (or CRV if "pri" is specified) */
-@@ -7589,6 +7650,37 @@ static struct zt_pvt *mkintf(int channel
+@@ -7599,6 +7660,37 @@ static struct zt_pvt *mkintf(int channel
tmp->prioffset = 0;
}
#endif
@@ -205,7 +205,7 @@
} else {
conf.chan.sig = tmp->sig;
conf.chan.radio = tmp->radio;
-@@ -7872,6 +7964,12 @@ static inline int available(struct zt_pv
+@@ -7882,6 +7974,12 @@ static inline int available(struct zt_pv
return 1;
}
#endif
@@ -218,7 +218,7 @@
if (!(p->radio || (p->oprmode < 0)))
{
if (!p->sig || (p->sig == SIG_FXSLS))
-@@ -8226,6 +8324,235 @@ next:
+@@ -8236,6 +8334,235 @@ next:
return tmp;
}
@@ -454,7 +454,7 @@
#ifdef HAVE_PRI
static struct zt_pvt *pri_find_crv(struct zt_pri *pri, int crv)
{
-@@ -8501,6 +8828,18 @@ static void zt_pri_error(char *s, int sp
+@@ -8511,6 +8838,18 @@ static void zt_pri_error(char *s, int sp
ast_log(LOG_WARNING, "%d %s", span, s);
}
@@ -473,7 +473,7 @@
static int pri_check_restart(struct zt_pri *pri)
{
if ((pri->nodetype != PRI_NETWORK) && (pri->nodetype != PRI_CPE)) {
-@@ -10901,6 +11240,243 @@ static int app_zapInband(struct ast_chan
+@@ -10911,6 +11250,243 @@ static int app_zapInband(struct ast_chan
#endif /* HAVE_PRI */
@@ -717,7 +717,7 @@
static int app_zapEC(struct ast_channel *chan, void *data)
{
int res=-1;
-@@ -11521,6 +12097,12 @@ static int __unload_module(void)
+@@ -11532,6 +12108,12 @@ static int __unload_module(void)
ast_unregister_application(zapCD_app);
ast_unregister_application(zapInband_app);
#endif
@@ -730,7 +730,7 @@
ast_cli_unregister_multiple(zap_cli, sizeof(zap_cli) / sizeof(struct ast_cli_entry));
ast_unregister_application(zapEC_app);
ast_manager_unregister( "ZapDialOffhook" );
-@@ -12041,6 +12623,11 @@ static int process_zap(struct zt_chan_co
+@@ -12052,6 +12634,11 @@ static int process_zap(struct zt_chan_co
confp->chan.radio = 0;
confp->pri.nodetype = BRI_CPE;
#endif
@@ -742,7 +742,7 @@
} else {
ast_log(LOG_ERROR, "Unknown signalling method '%s'\n", v->value);
}
-@@ -12183,6 +12770,10 @@ static int process_zap(struct zt_chan_co
+@@ -12194,6 +12781,10 @@ static int process_zap(struct zt_chan_co
ast_copy_string(confp->pri.nocid, v->value, sizeof(confp->pri.nocid));
} else if (!strcasecmp(v->name, "withheldcid")) {
ast_copy_string(confp->pri.withheldcid, v->value, sizeof(confp->pri.withheldcid));
@@ -753,7 +753,7 @@
} else if (!strcasecmp(v->name, "resetinterval")) {
if (!strcasecmp(v->value, "never"))
confp->pri.resetinterval = -1;
-@@ -12537,6 +13128,10 @@ static int load_module(void)
+@@ -12548,6 +13139,10 @@ static int load_module(void)
ast_register_application(zap_send_keypad_facility_app, zap_send_keypad_facility_exec,
zap_send_keypad_facility_synopsis, zap_send_keypad_facility_descrip);
#endif
@@ -764,7 +764,7 @@
res = setup_zap(0);
/* Make sure we can register our Zap channel type */
if (res)
-@@ -12555,6 +13150,12 @@ static int load_module(void)
+@@ -12566,6 +13161,12 @@ static int load_module(void)
#endif
ast_register_application(zapEC_app, app_zapEC, zapEC_synopsis, zapEC_tdesc);
ast_cli_register_multiple(zap_cli, sizeof(zap_cli) / sizeof(struct ast_cli_entry));
@@ -777,7 +777,7 @@
memset(round_robin, 0, sizeof(round_robin));
ast_manager_register( "ZapTransfer", 0, action_transfer, "Transfer Zap Channel" );
-@@ -12568,7 +13169,48 @@ static int load_module(void)
+@@ -12579,7 +13180,48 @@ static int load_module(void)
return res;
}
@@ -829,7 +829,7 @@
#define HEADER_MS 50
--- a/configure.ac
+++ b/configure.ac
-@@ -175,6 +175,7 @@ AST_EXT_LIB_SETUP([CURL], [cURL], [curl]
+@@ -176,6 +176,7 @@ AST_EXT_LIB_SETUP([CAP], [POSIX 1.e capa
AST_EXT_LIB_SETUP([CURSES], [curses], [curses])
AST_EXT_LIB_SETUP([GNUTLS], [GNU TLS support (used for iksemel only)], [gnutls])
AST_EXT_LIB_SETUP([GSM], [GSM], [gsm], [, or 'internal'])
@@ -839,7 +839,7 @@
AST_EXT_LIB_SETUP([ISDNNET], [ISDN4Linux Library], [isdnnet])
--- a/configure
+++ b/configure
-@@ -24745,6 +24745,188 @@ echo "$as_me: *** without explicitly spe
+@@ -25222,6 +25222,188 @@ echo "$as_me: *** without explicitly spe
fi
fi
Modified: asterisk/trunk/debian/patches/configure-libc-client
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/configure-libc-client?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/configure-libc-client (original)
+++ asterisk/trunk/debian/patches/configure-libc-client Mon Dec 3 19:08:48 2007
@@ -6,7 +6,7 @@
--- a/configure
+++ b/configure
-@@ -18435,7 +18435,7 @@ echo $ECHO_N "checking for UW IMAP Toolk
+@@ -18468,7 +18468,7 @@ echo $ECHO_N "checking for UW IMAP Toolk
imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
fi
CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
@@ -15,7 +15,7 @@
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
-@@ -18627,7 +18627,7 @@ rm -f core conftest.err conftest.$ac_obj
+@@ -18660,7 +18660,7 @@ rm -f core conftest.err conftest.$ac_obj
if test "${ac_cv_imap_tk}" = "yes"; then
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
@@ -26,7 +26,7 @@
--- a/configure.ac
+++ b/configure.ac
-@@ -484,7 +484,7 @@ if test "${USE_IMAP_TK}" != "no"; then
+@@ -485,7 +485,7 @@ if test "${USE_IMAP_TK}" != "no"; then
imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
fi
CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
@@ -35,7 +35,7 @@
AC_LINK_IFELSE(
AC_LANG_PROGRAM(
[#include "c-client.h"
-@@ -601,7 +601,7 @@ if test "${USE_IMAP_TK}" != "no"; then
+@@ -602,7 +602,7 @@ if test "${USE_IMAP_TK}" != "no"; then
LIBS="${saved_libs}"
if test "${ac_cv_imap_tk}" = "yes"; then
AC_MSG_RESULT(yes)
Modified: asterisk/trunk/debian/patches/h323-no-deps-on-asterisk
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/h323-no-deps-on-asterisk?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/h323-no-deps-on-asterisk (original)
+++ asterisk/trunk/debian/patches/h323-no-deps-on-asterisk Mon Dec 3 19:08:48 2007
@@ -9,7 +9,7 @@
--- a/main/Makefile
+++ b/main/Makefile
-@@ -120,13 +120,6 @@ AST_EMBED_LDFLAGS:=$(foreach dep,$(EMBED
+@@ -122,13 +122,6 @@ AST_EMBED_LDFLAGS:=$(foreach dep,$(EMBED
AST_EMBED_LIBS:=$(foreach dep,$(EMBED_LIBS),$(value $(dep)))
OBJS:=$(sort $(OBJS))
@@ -23,7 +23,7 @@
asterisk: $(OBJS) editline/libedit.a db1-ast/libdb1.a $(AST_EMBED_LDSCRIPTS)
@$(ASTTOPDIR)/build_tools/make_build_h > $(ASTTOPDIR)/include/asterisk/build.h.tmp
@if cmp -s $(ASTTOPDIR)/include/asterisk/build.h.tmp $(ASTTOPDIR)/include/asterisk/build.h ; then echo ; else \
-@@ -135,11 +128,7 @@ asterisk: $(OBJS) editline/libedit.a db1
+@@ -137,11 +130,7 @@ asterisk: $(OBJS) editline/libedit.a db1
@rm -f $(ASTTOPDIR)/include/asterisk/build.h.tmp
@$(CC) -c -o buildinfo.o $(ASTCFLAGS) buildinfo.c
$(ECHO_PREFIX) echo " [LD] $^ -> $@"
Modified: asterisk/trunk/debian/patches/make-clean-fixes
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/make-clean-fixes?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/make-clean-fixes (original)
+++ asterisk/trunk/debian/patches/make-clean-fixes Mon Dec 3 19:08:48 2007
@@ -5,7 +5,7 @@
--- a/Makefile
+++ b/Makefile
-@@ -364,7 +364,6 @@ dist-clean: distclean
+@@ -379,7 +379,6 @@ dist-clean: distclean
distclean: clean
@$(MAKE) -C menuselect dist-clean
@@ -13,7 +13,7 @@
rm -f menuselect.makeopts makeopts menuselect-tree menuselect.makedeps
rm -f makeopts.embed_rules
rm -f config.log config.status
-@@ -374,6 +373,10 @@ distclean: clean
+@@ -389,6 +388,10 @@ distclean: clean
rm -rf doc/api
rm -f build_tools/menuselect-deps
Modified: asterisk/trunk/debian/patches/pubkey_jnctn
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/pubkey_jnctn?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/pubkey_jnctn (original)
+++ asterisk/trunk/debian/patches/pubkey_jnctn Mon Dec 3 19:08:48 2007
@@ -23,7 +23,7 @@
+-----END PUBLIC KEY-----
--- a/Makefile
+++ b/Makefile
-@@ -435,8 +435,7 @@ bininstall: _all
+@@ -457,8 +457,7 @@ bininstall: _all
mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware
mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware/iax
mkdir -p $(DESTDIR)$(ASTMANDIR)/man8
Modified: asterisk/trunk/debian/patches/tos-libcap
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/tos-libcap?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/tos-libcap (original)
+++ asterisk/trunk/debian/patches/tos-libcap Mon Dec 3 19:08:48 2007
@@ -655,7 +655,7 @@
#if defined(__FreeBSD__) || defined( __NetBSD__ ) || defined(SOLARIS)
#include <netdb.h>
#if defined(SOLARIS)
-@@ -2734,12 +2806,21 @@ int main(int argc, char *argv[])
+@@ -2737,12 +2736,21 @@ int main(int argc, char *argv[])
}
if (runuser && !ast_test_flag(&ast_options, AST_OPT_FLAG_REMOTE)) {
@@ -677,7 +677,7 @@
if (!isroot && pw->pw_uid != geteuid()) {
ast_log(LOG_ERROR, "Asterisk started as nonroot, but runuser '%s' requested.\n", runuser);
exit(1);
-@@ -2760,6 +2841,19 @@ int main(int argc, char *argv[])
+@@ -2763,6 +2771,19 @@ int main(int argc, char *argv[])
}
if (option_verbose)
ast_verbose("Running as user '%s'\n", runuser);
Modified: asterisk/trunk/debian/patches/use-libpri-bristuffed
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/use-libpri-bristuffed?rev=5011&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/use-libpri-bristuffed (original)
+++ asterisk/trunk/debian/patches/use-libpri-bristuffed Mon Dec 3 19:08:48 2007
@@ -1,6 +1,6 @@
--- a/configure
+++ b/configure
-@@ -24426,18 +24426,18 @@ fi
+@@ -24903,18 +24903,18 @@ fi
if test "${AST_PRI_FOUND}" = "yes"; then
@@ -25,7 +25,7 @@
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
-@@ -24446,8 +24446,8 @@ ac_res=`eval echo '${'$as_ac_Header'}'`
+@@ -24923,8 +24923,8 @@ ac_res=`eval echo '${'$as_ac_Header'}'`
echo "${ECHO_T}$ac_res" >&6; }
else
# Is the header compilable?
@@ -36,7 +36,7 @@
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
-@@ -24455,7 +24455,7 @@ cat confdefs.h >>conftest.$ac_ext
+@@ -24932,7 +24932,7 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
@@ -45,7 +45,7 @@
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
-@@ -24487,15 +24487,15 @@ rm -f core conftest.err conftest.$ac_obj
+@@ -24964,15 +24964,15 @@ rm -f core conftest.err conftest.$ac_obj
echo "${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present?
@@ -64,7 +64,7 @@
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
-@@ -24528,30 +24528,30 @@ echo "${ECHO_T}$ac_header_preproc" >&6;
+@@ -25005,30 +25005,30 @@ echo "${ECHO_T}$ac_header_preproc" >&6;
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
@@ -115,7 +115,7 @@
else
--- a/configure.ac
+++ b/configure.ac
-@@ -815,7 +815,7 @@ fi
+@@ -821,7 +821,7 @@ fi
AST_EXT_LIB_CHECK([POPT], [popt], [poptStrerror], [popt.h])
More information about the Pkg-voip-commits
mailing list