You *never* could get vars from channels that did not successfully originate.
 Unless originate was a success there is nothing to get variables from.

What you probably did was get the variable from the existing session when a failure occurs because pdd time from a failed
call is copied across to the A leg.

So try session.getVariable not newsession.getVariable


On Wed, Jan 28, 2009 at 5:54 AM, Brian West <brian@freeswitch.org> wrote:
You really shouldn't be using the originate method.  You're doing more
by hand then you should.  Care to post a little more detail about how
you're using this?

/b

On Jan 21, 2009, at 1:10 AM, shehzad p wrote:

> newsession.originate(session, dialstr);



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400