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:afoc@interconnessioni.it
> 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
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 <afoc@interconnessioni.it>
>
> 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 ?
>
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,
Alessio mailto:afoc@interconnessioni.it
Race Vanderdecken
2005-Jan-25 09:31 UTC
[Asterisk-Users] Your Acerbic Tyrant will be off line for about 10 days
Greetings List, I know many of you are looking for advice from me but I am moving from the 28th until about the 4th of February. As moving does not always go as planned so I am letting you know that I may be out of internet touch for 10 days during the move depending on the closing and the Cable Modem guy. In case any cares to know, I am moving from South Florida to Asheville. I will try to check mail often but please do not think I am being rude if I do not answer for a while. Race Vanderdecken