View previous topic :: View next topic |
Author |
Message |
sobolewski at gmail.com Guest
|
Posted: Wed Dec 03, 2008 5:35 pm Post subject: [Freeswitch-users] screen_bit is always true |
|
|
Hi
I was trying to create extension in which I would check whether
privacy=full in Remote-Party-ID header is set.
So I made this.
<condition field="${screen_bit}" expression="^true$" break="never">
<action application="set"
data="origination_caller_id_number=Anonymous"/>
</condition>
But screen_bit is always true, regardless RPID privacy value.
mod_dialplan_xml.c:117 parse_exten() Regex: [tooser]
${screen_bit}(true) =~ /^true$/
As it wasn't strange enough, in cdr_csv screen_bit take "true" or
"false" (as it should).
Is it a bug or me doing something wrong?
--
regards
Piotr Sobolewski
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
krice at suspicious.org Guest
|
Posted: Wed Dec 03, 2008 7:26 pm Post subject: [Freeswitch-users] screen_bit is always true |
|
|
The screen bit is a trust bit... ie: do we trust the RPID we got from the
upstream or not
K
Quote: | From: Piotr Sobolewski <sobolewski@gmail.com>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Wed, 3 Dec 2008 23:33:24 +0100
To: <freeswitch-users@lists.freeswitch.org>
Subject: [Freeswitch-users] screen_bit is always true
Hi
I was trying to create extension in which I would check whether
privacy=full in Remote-Party-ID header is set.
So I made this.
<condition field="${screen_bit}" expression="^true$" break="never">
<action application="set"
data="origination_caller_id_number=Anonymous"/>
</condition>
But screen_bit is always true, regardless RPID privacy value.
mod_dialplan_xml.c:117 parse_exten() Regex: [tooser]
${screen_bit}(true) =~ /^true$/
As it wasn't strange enough, in cdr_csv screen_bit take "true" or
"false" (as it should).
Is it a bug or me doing something wrong?
--
regards
Piotr Sobolewski
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
|
Back to top |
|
|
sobolewski at gmail.com Guest
|
Posted: Wed Dec 03, 2008 9:11 pm Post subject: [Freeswitch-users] screen_bit is always true |
|
|
On Thu, Dec 4, 2008 at 1:14 AM, Ken Rice <krice@suspicious.org> wrote:
Quote: | The screen bit is a trust bit... ie: do we trust the RPID we got from the
upstream or not
K
|
I had privacy_hide_number in cdr_csv and I was thinking it was
screen_bit, all that confused me.
Now I understand where I was wrong.
BTW: is there a way to remove RPID header?
--
Piotr Sobolewski
sobolewski@gmail.com
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
|
Back to top |
|
|
|