<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial>Hi guys, I'm trying to set a channel variable
effective_caller_id_number in gateway's <variables> section and it seems
not working. However, if I set it up with application set command in dialplan it
works fine. What is the difference between these two ways? </FONT></DIV>
<DIV><FONT size=2 face=Arial><BR>My gateway section looks like this:
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial><include><BR>
<gateway name="CanUS"><BR> <param
name="username" value="64721"/><BR>
<param name="password"
value="supersecretpasword"/><BR>
<param name="from-user"
value="64721"/><BR> <param
name="from-domain"
value="11.22.33.44"/><BR> <param
name="proxy" value="11.22.33.44"/><BR>
<param name="expire-seconds"
value="800"/><BR> <param
name="register" value="true"/><BR>
<param name="retry-seconds"
value="60"/><BR> <param name="context"
value="public"/><BR> <param
name="caller-id-in-from" value="true"/> <!--Most gateways seem to want
this--><BR> <variables><BR><SPAN
class=830362321-10072012> </SPAN>
<variable name="effective_caller_id_name"
value="Gateway"/><BR> <SPAN
class=830362321-10072012> </SPAN>
<variable name="effective_caller_id_number"
value="64721"/><BR>
</variables><BR>
</gateway><BR></include></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>and <SPAN class=830362321-10072012>working
</SPAN>dialplan string<SPAN class=830362321-10072012>s</SPAN> look like
this:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial><action application="set"
data="effective_caller_id_number=64721" /></FONT></DIV>
<DIV><FONT size=2 face=Arial><action application="bridge"
data="sofia/gateway/CanUS/$1"
/>
<BR></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=830362321-10072012><FONT size=2 face=Arial>Thank you,
Dmitry</FONT></SPAN></DIV></BODY></HTML>