Hello,
how can I cut off the last character of the EXTEN-variable with
variating length ?
So I have :
112233#
123#
123456789#
I want to cut off the last character.
${EXTEN:-1} gives me #, but that is the character I want to cut off.
Kind regards,
Jonas.
--
On 20/08/13 09:29, Jonas Kellens wrote:
Hello,
how can I cut off the last character of the EXTEN-variable with
variating length ?
So I have :
112233#
123#
123456789#
I want to cut off the last character.
${EXTEN:-1} gives me #, but that is the character I want to cut off.
How about ${EXTEN:-1:1}?
The Definitive Guide has a special paragraph with the title *More Advanced Digit
Manipulation.*
jg
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us
On 19/08/2013 19:10, Eric Wieling wrote:
One of Asterisk's dirty little secrets is that it does not show the source IP
when a device or hacker tries sending a call without registering. The
rejection message in the logs do not show the IP of the attacker. Yes it
sucks, yes it has been that
On 08/20/2013 10:47 AM, jg wrote:
How about ${EXTEN:-1:1}?
The Definitive Guide has a special paragraph with the title *More
Advanced Digit Manipulation.*
jg
Same result : #
Jonas.
--
_
-- Bandwidth and Colocation
Hi,
try
[testEx]
exten = _X.,1,noop(${EXTEN})
same = n,noop(len: ${LEN(${EXTEN})})
same = n,noop(${EXTEN:0:${MATH(${LEN(${EXTEN})}-1)}})
exten = _X.,n,hangup
On 20 August 2013 12:15, Jonas Kellens jonas.kell...@telenet.be wrote:
On 08/20/2013 10:47 AM, jg wrote:
How about ${EXTEN:-1:1}?
On 08/20/2013 10:40 AM, Gareth Blades wrote:
On 20/08/13 09:29, Jonas Kellens wrote:
Hello,
how can I cut off the last character of the EXTEN-variable with
variating length ?
So I have :
112233#
123#
123456789#
I want to cut off the last character.
${EXTEN:-1} gives me #, but that is the
Damn it!
Try: ${EXTEN:0:-1}
jg
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jonas Kellens
Sent: Tuesday, August 20, 2013 4:29 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Cut off last character of EXTEN
Hello,
how can
On 20 Aug 2013, at 12:25, Pat Collins wrote:
Here ya go:
112233# use ${EXTEN:0:6})
123# use ${EXTEN:0:3})
123456789# use ${EXTEN:0:9})
I think 'variable length' implied 'unknown length'...
S--
_
-- Bandwidth and
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Steven Howes
Sent: Tuesday, August 20, 2013 7:38 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Cut off last character of EXTEN
On 20 Aug
On Tuesday 20 August 2013, Pat Collins wrote:
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jonas Kellens
Sent: Tuesday, August 20, 2013 4:29 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users]
Hello,
how can I obtain the inserted ID after having inserted a row with
MySQL in the dialplan ?
exten = s,n,MYSQL(Query resultid ${connid} INSERT INTO myTable SET
C1=${ARG1}, C2=${ARG2},
timestamp=${STRFTIME(${EPOCH},,%Y-%m-%d_%H:%M:%S)})
I need to know the ID of the newly inserted row.
On 20/08/13 14:53, Jonas Kellens wrote:
Hello,
how can I obtain the inserted ID after having inserted a row with
MySQL in the dialplan ?
exten = s,n,MYSQL(Query resultid ${connid} INSERT INTO myTable SET
C1=${ARG1}, C2=${ARG2},
timestamp=${STRFTIME(${EPOCH},,%Y-%m-%d_%H:%M:%S)})
I need
On Tuesday 20 August 2013, Jonas Kellens wrote:
Hello,
how can I obtain the inserted ID after having inserted a row with
MySQL in the dialplan ?
exten = s,n,MYSQL(Query resultid ${connid} INSERT INTO myTable SET
C1=${ARG1}, C2=${ARG2},
timestamp=${STRFTIME(${EPOCH},,%Y-%m-%d_%H:%M:%S)})
Tuesday, August 20, 2013, 5:47:24 PM, Gareth wrote:
On 20/08/13 14:53, Jonas Kellens wrote:
Hello,
how can I obtain the inserted ID after having inserted a row with
MySQL in the dialplan ?
exten = s,n,MYSQL(Query resultid ${connid} INSERT INTO myTable SET
C1=${ARG1}, C2=${ARG2},
On 08/20/2013 06:03 PM, Gergo Csibra wrote:
Tuesday, August 20, 2013, 5:47:24 PM, Gareth wrote:
On 20/08/13 14:53, Jonas Kellens wrote:
Hello,
how can I obtain the inserted ID after having inserted a row with
MySQL in the dialplan ?
exten = s,n,MYSQL(Query resultid ${connid} INSERT INTO
On 20/8/13 5:00 pm, A J Stiles wrote:
Why not write an AGI script in your favourite language (Perl, Python, PHP,
Java all have AGI and MySQL bindings) to perform the INSERT query for you?
+1. It would also give you somewhere to perform sanity checks on your
${ARGS} to avoid SQL injection
Tuesday, August 20, 2013, 6:08:19 PM, Jonas wrote:
On 08/20/2013 06:03 PM, Gergo Csibra wrote:
Tuesday, August 20, 2013, 5:47:24 PM, Gareth wrote:
On 20/08/13 14:53, Jonas Kellens wrote:
Hello,
how can I obtain the inserted ID after having inserted a row with
MySQL in the dialplan ?
Hi All,
First I've heard of this feature not working from a customer. I did some
digging and this is a common bug in several older Asterisk versions, it has
more than a few patches in the bug tracker. I've tried a few of them but
none will apply to a specific version I'm currently running for a
Shaun Ruffell sruffell at digium.com writes:
On Thu, Jul 25, 2013 at 02:51:02AM -0700, bilal ghayyad wrote:
Hello;
If our Digium Telephony Card does not support echo cancellation
like (1TDM410PLF or 1AEX410PLF), what is the best and simple way
to overcome the echo?
Regards
Hi All,
First I've heard of this feature not working from a customer. I did some
digging and this is a common bug in several older Asterisk versions, it has
more than a few patches in the bug tracker. I've tried a few of them but
none will apply to a specific version I'm currently running
On Tue, Aug 20, 2013 at 3:01 PM, Ghanshyam btcs.em...@gmail.com wrote:
Shaun Ruffell sruffell at digium.com writes:
On Thu, Jul 25, 2013 at 02:51:02AM -0700, bilal ghayyad wrote:
Hello;
If our Digium Telephony Card does not support echo cancellation
like (1TDM410PLF or
Echo must be canceled where the low latency audio (PSTN) meets high latency
audio (VoIP).You can't echo cancel VoIP.
-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Nick Khamis
Sent: Tuesday, August 20,
Thanks Eric, I breezed through the documentation and got the
impression that this was the case. Good luck on getting rid of that
echo Bilal!
N.
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to
;
DTSTAMP;VALUE=DATE-TIME:20130820T200233Z#13;
SUMMARY:SACKHUEPFEN#13;
DTSTART;VALUE=DATE:20130820#13;
DTEND;VALUE=DATE:20130826#13;
CLASS:PUBLIC#13;
END:VEVENT#13;
END:VCALENDAR#13;
/cal:calendar-data/d:propd:statusHTTP/1.1 200
OK/d:status/d:propstat/d:responsed:response
d:href/remote.php/caldav
Hi,
Can Ingress and Egress can be used in Asterisk, so that Jitter can be
calculated...!
Regards
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar
Hello!
I run asterisk 11.5.0 and I connect to some peer over ooh323.
But there is alternate path to the same peer over sip, but this not we
can usually use.
So, if peer is not available over h323 I'd like to dial over sip.
I tried to test this:
iptables -D INPUT -s 192.168.6.0/24 -j DROP
28 matches
Mail list logo