I am running TCL code on AS5350. I have a requirement to send a call to an IP address which is stored in a database. My TCL has extracted the IP address from the database, into a TCL variable. But how can I pass this variable IP address on to the outbound dial-peer?
The only way I know to send VoIP calls to an IP address is using the "session target" command in the dial-peer, but this only lets me send the call to a fixed IP address. It is not practical for me to have a separate dial-peer for each IP address. Can the TCL code modify the IP address of the session target?
Unfortunately, that is not possible with TCL/IVR.
The alternative would be to send the call to an ENUM, H.323 GK, or SIP server, that can resolve the number to an IP address.