Ricardo Carvalho
2007-Mar-13 11:39 UTC
[asterisk-users] How to match wild card inside a GoToIf?
How can I match wildcards inside a GoToIf?
I have something like this, but it doesn't work:
[default]
exten => _2XXXXXXXX,1,Macro(outcall,${EXTEN})
[macro-outcall]
exten => s,1,GotoIf($["${ARG1}" = "220408XXX"]?2:3)
exten => s,2,Hangup
Any ideas?
Regards,
Ricardo.
Connolly, Tim
2007-Mar-13 11:53 UTC
[asterisk-users] How to match wild card inside a GoToIf?
Try
exten => s,1,GotoIf($["${MACRO_EXTEN}" =
"220408XXX"]?2:3)
exten => s,2,Hangup
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Ricardo
Carvalho
Sent: Tuesday, March 13, 2007 1:39 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] How to match wild card inside a GoToIf?
How can I match wildcards inside a GoToIf?
I have something like this, but it doesn't work:
[default]
exten => _2XXXXXXXX,1,Macro(outcall,${EXTEN})
[macro-outcall]
exten => s,1,GotoIf($["${ARG1}" = "220408XXX"]?2:3) exten
=> s,2,Hangup
Any ideas?
Regards,
Ricardo.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Ken Williams
2007-Mar-13 12:02 UTC
[asterisk-users] How to match wild card inside a GoToIf?
Try
exten => s,1,GotoIf($["${ARG1:0:5}"="220408"]?2:3)
This looks at the first 5 digits of ARG1.
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Ricardo
Carvalho
Sent: Tuesday, March 13, 2007 12:39 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] How to match wild card inside a GoToIf?
How can I match wildcards inside a GoToIf?
I have something like this, but it doesn't work:
[default]
exten => _2XXXXXXXX,1,Macro(outcall,${EXTEN})
[macro-outcall]
exten => s,1,GotoIf($["${ARG1}" = "220408XXX"]?2:3) exten
=> s,2,Hangup
Any ideas?
Regards,
Ricardo.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Ken Williams
2007-Mar-13 12:04 UTC
[asterisk-users] How to match wild card inside a GoToIf?
I don't believe this will work. He wants it to goto if EXTEN 220408235 or
220408743 or any other digits for the last 3 of the
extension block 220408xxx. When Asterisk processes both his and your
line it's going to look to see if the EXTEN is exactly 220408XXX, which
of course it will never be.
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Connolly,
Tim
Sent: Tuesday, March 13, 2007 12:54 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [asterisk-users] How to match wild card inside a GoToIf?
Try
exten => s,1,GotoIf($["${MACRO_EXTEN}" =
"220408XXX"]?2:3) exten =>
s,2,Hangup
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Ricardo
Carvalho
Sent: Tuesday, March 13, 2007 1:39 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] How to match wild card inside a GoToIf?
How can I match wildcards inside a GoToIf?
I have something like this, but it doesn't work:
[default]
exten => _2XXXXXXXX,1,Macro(outcall,${EXTEN})
[macro-outcall]
exten => s,1,GotoIf($["${ARG1}" = "220408XXX"]?2:3) exten
=> s,2,Hangup
Any ideas?
Regards,
Ricardo.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Possibly Parallel Threads
- Re: asterisk-users Digest, Vol 32, Issue 48
- VM Outcall: Rube Goldberg Edition
- Voicemail Out call
- outCALL- the open source Asterisk integration applicaiton for Microsoft Outlook
- OutCall for Outlook only shows Name from CLID and not Number - hence not pulling contact