Re: [asterisk-users] Strip prefix

2008-10-17 Thread Tilghman Lesher
On Friday 17 October 2008 10:32:30 michel freiha wrote:
> I tried to put + before the x like _+X but when making a call i got the
> following error:
>
> <>
> [Oct 17 15:08:58] WARNING[17532]: ast_expr2.fl:407 ast_yyerror:
> ast_yyerror():  syntax error: syntax error, unexpected '+', expecting $end;
> Input:
> +9613089187 = 111
>
> > michel freiha wrote:
> > > Dear All,
> > >
> > > i have the following context defines in etensions.conf:
> > >
> > >
> > > [a2billing]
> > > exten => _X.,1,Gotoif($[${EXTEN} = 111] ? 21)

Change this to:
exten => _X.,1,Gotoif($["${EXTEN}" = "111"] ? 21)

-- 
Tilghman

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Strip prefix

2008-10-17 Thread michel freiha
Dear All,

I tried to put + before the x like _+X but when making a call i got the
following error:

<>
[Oct 17 15:08:58] WARNING[17532]: ast_expr2.fl:407 ast_yyerror:
ast_yyerror():  syntax error: syntax error, unexpected '+', expecting $end;
Input:
+9613089187 = 111

Regards

On Fri, Oct 17, 2008 at 6:15 PM, Eric ManxPower Wieling <[EMAIL 
PROTECTED]>wrote:

> exten => _+X.,1,Goto(${EXTEN:1},1)
>
>
> michel freiha wrote:
> > Dear All,
> >
> > i have the following context defines in etensions.conf:
> >
> >
> > [a2billing]
> > exten => _X.,1,Gotoif($[${EXTEN} = 111] ? 21)
> > exten => _X.,2,DeadAGI,a2billing.php
> > exten => _X.,3,Wait,2
> > exten => _X.,4,Hangup
> > exten => _X.,21,Playback(AR_GetGiveToID)
> > exten => _X.,22,Wait(2)
> > exten => _X.,23,Record(/tmp/asterisk-recording:ulaw,,5)
> > exten => _X.,24,Wait(2)
> > exten => _X.,25,Playback(/tmp/asterisk-recording)
> > exten => _X.,26,Wait(2)
> > exten => _X.,27,Hangup
> >
> > I just need to remove the '+' sign from the dialed number just in case
> any
> > user put the '+' as Internationa prefix...Is that possible?How to do
> that?
>
> --
> Consulting and design services for LAN, WAN, voice and data.  Based near
> Birmingham, AL.  Now accepting clients worldwide. Contact me for Tellabs
> echo canceling systems.  Also see http://www.fnords.org/skillslist.html
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Strip prefix

2008-10-17 Thread Eric "ManxPower" Wieling
exten => _+X.,1,Goto(${EXTEN:1},1)


michel freiha wrote:
> Dear All,
> 
> i have the following context defines in etensions.conf:
> 
> 
> [a2billing]
> exten => _X.,1,Gotoif($[${EXTEN} = 111] ? 21)
> exten => _X.,2,DeadAGI,a2billing.php
> exten => _X.,3,Wait,2
> exten => _X.,4,Hangup
> exten => _X.,21,Playback(AR_GetGiveToID)
> exten => _X.,22,Wait(2)
> exten => _X.,23,Record(/tmp/asterisk-recording:ulaw,,5)
> exten => _X.,24,Wait(2)
> exten => _X.,25,Playback(/tmp/asterisk-recording)
> exten => _X.,26,Wait(2)
> exten => _X.,27,Hangup
> 
> I just need to remove the '+' sign from the dialed number just in case any
> user put the '+' as Internationa prefix...Is that possible?How to do that?

-- 
Consulting and design services for LAN, WAN, voice and data.  Based near 
Birmingham, AL.  Now accepting clients worldwide. Contact me for Tellabs 
echo canceling systems.  Also see http://www.fnords.org/skillslist.html

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Strip prefix

2008-10-17 Thread michel freiha
Dear All,

i have the following context defines in etensions.conf:


[a2billing]
exten => _X.,1,Gotoif($[${EXTEN} = 111] ? 21)
exten => _X.,2,DeadAGI,a2billing.php
exten => _X.,3,Wait,2
exten => _X.,4,Hangup
exten => _X.,21,Playback(AR_GetGiveToID)
exten => _X.,22,Wait(2)
exten => _X.,23,Record(/tmp/asterisk-recording:ulaw,,5)
exten => _X.,24,Wait(2)
exten => _X.,25,Playback(/tmp/asterisk-recording)
exten => _X.,26,Wait(2)
exten => _X.,27,Hangup

I just need to remove the '+' sign from the dialed number just in case any
user put the '+' as Internationa prefix...Is that possible?How to do that?

Regards
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users