Re[3]: [Asterisk-Users] REALTIME and VARIABLES

2005-01-19 Thread Alessio Focardi
Hello Dominique,

Tuesday, January 18, 2005, 4:28:19 PM, you wrote:

D How are you using the variables in your realtime table?

D Note that you will need to specify variables with the following syntax:
D SIP/${ARG1}|${ARG2} and not SIP/${ARG1},${ARG2} as in extensions.conf


well the problem just shows if I use a variable as an extension, like
in the example

No realtime:

[globals]

IPPHONES=_3XX

[sip]

exten=${IPPHONES},1,Answer

all ok!

With realtime:

[globals]

IPPHONES=_3XX

[sip]

switch=Realtime/sip

exten=${IPPHONES},1,Answer in the table

it does not work anymore,${IPPHONES} is not solved as _3XX.

If I change in table ${IPPHONES} with _3XX all returns normal.

So my conclusion is that variables can not be used as extensions in
realtime contexts, the actually work for all the other usual purposes
anyway.

-- 
Best regards,
 Alessiomailto:[EMAIL PROTECTED]

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


Re[2]: [Asterisk-Users] REALTIME and VARIABLES

2005-01-18 Thread Dominique
How are you using the variables in your realtime table?
Note that you will need to specify variables with the following syntax: 
SIP/${ARG1}|${ARG2} and not SIP/${ARG1},${ARG2} as in extensions.conf

cheers
Dominique
Alessio Focardi [EMAIL PROTECTED]
Hello Matthew,
Monday, January 17, 2005, 4:34:16 PM, you wrote:

So it seems me that with realtime we cant'use variables as extensions
for an easyer manteniance of the dialplan.

MB Doesn't RealTime itself make for easier maintenance of extensions since
MB its database driven?
So this is not a bug, it's a feature! :)
Seriously, anyone verified my problem and it's willing to share a
solution if there is any ?
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] REALTIME and VARIABLES

2005-01-17 Thread Alessio Focardi
Hi,

I'm having some problem with realtime:

let's say I have a dialplan like this

[globals]

IPPHONES=_3XX

[sip]

exten=${IPPHONES},1,Answer
  
A call from ip phone 300 comes in, and it's been answered.

Then I switch the sip context to realtime, putting the exten in the
db and using the variable name for this as in the file version.

[globals]

IPPHONES=_3XX

[sip]

switch=Realtime/sip

Calling does not work anymore, extension is not found.

So it seems me that with realtime we cant'use variables as extensions
for an easyer manteniance of the dialplan.

Am I getting it all wrong ?

Tnx for any suggestion!



-- 
Best regards,
 Alessio  mailto:[EMAIL PROTECTED]

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


Re: [Asterisk-Users] REALTIME and VARIABLES

2005-01-17 Thread Matthew Boehm
 So it seems me that with realtime we cant'use variables as extensions
 for an easyer manteniance of the dialplan.

Doesn't RealTime itself make for easier maintenance of extensions since
its database driven?

-Matthew

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


Re[2]: [Asterisk-Users] REALTIME and VARIABLES

2005-01-17 Thread Alessio Focardi
Hello Matthew,

Monday, January 17, 2005, 4:34:16 PM, you wrote:

 So it seems me that with realtime we cant'use variables as extensions
 for an easyer manteniance of the dialplan.

MB Doesn't RealTime itself make for easier maintenance of extensions since
MB its database driven?

So this is not a bug, it's a feature! :)

Seriously, anyone verified my problem and it's willing to share a
solution if there is any ?



-- 
Best regards,
 Alessiomailto:[EMAIL PROTECTED]

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