[asterisk-dev] Re: [svn-commits] mattf: branch 1.4 r47462 -
/branches/1.4/channels/chan_zap.c
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Fri Jan 5 08:40:38 MST 2007
On Fri, Nov 10, 2006 at 07:47:16PM -0000, svn-commits at lists.digium.com wrote:
> Author: mattf
> Date: Fri Nov 10 13:47:16 2006
> New Revision: 47462
>
> URL: http://svn.digium.com/view/asterisk?view=rev&rev=47462
> Log:
> Fix for #7321. Be able to explicitly hide callerid name for switches that bork
> on it.
Does this actually work?
The global hidecalleridname gets set from the config file, but does not
set any spane/channel-specific variable, which is the one that gets
tested.
And while I'm at it: I'm right now updating the patch for #7877 .
>
> Modified:
> branches/1.4/channels/chan_zap.c
>
> Modified: branches/1.4/channels/chan_zap.c
> URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_zap.c?view=diff&rev=47462&r1=47461&r2=47462
> ==============================================================================
> --- branches/1.4/channels/chan_zap.c (original)
> +++ branches/1.4/channels/chan_zap.c Fri Nov 10 13:47:16 2006
> @@ -237,6 +237,8 @@
> static int callwaitingcallerid = 0;
>
> static int hidecallerid = 0;
> +
> +static int hidecalleridname = 0;
>
> static int restrictcid = 0;
>
> @@ -576,6 +578,7 @@
> unsigned int hanguponpolarityswitch:1;
> unsigned int hardwaredtmf:1;
> unsigned int hidecallerid;
> + unsigned int hidecalleridname; /*!< Hide just the name not the number for legacy PBX use */
> unsigned int ignoredtmf:1;
> unsigned int immediate:1; /*!< Answer before getting digits? */
> unsigned int inalarm:1;
> @@ -2078,6 +2081,10 @@
> c++;
> else
> c = dest;
> + if (!p->hidecalleridname)
> + n = ast->cid.cid_name;
> + else
> + n = NULL;
> if (!p->hidecallerid) {
> l = ast->cid.cid_num;
> n = ast->cid.cid_name;
> @@ -10553,6 +10560,8 @@
> echotraining = 0;
> } else if (!strcasecmp(v->name, "hidecallerid")) {
> hidecallerid = ast_true(v->value);
> + } else if (!strcasecmp(v->name, "hidecalleridname")) {
> + hidecalleridname = ast_true(v->value);
> } else if (!strcasecmp(v->name, "pulsedial")) {
> pulse = ast_true(v->value);
> } else if (!strcasecmp(v->name, "callreturn")) {
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> svn-commits mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/svn-commits
>
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir at jabber.org
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-dev
mailing list