HI,

I read wiki tutorial about call group intercept (http://wiki.freeswitch.org/wiki/Callgroup_intercept) ans also implemented it. (If I make call intercept which is not for callgroup it works)

I put this in public dialplan, so that every call UUID will be inserted in mysql database.
 <action application="set" data="called_party_callgroup=${user_data(${dialed_ext}@${domain} var callgroup)}"/>
 <action application="db" data="insert/last_dial/${called_party_callgroup}/${uuid}"/>
 <action application="bridge" data="user/${dialed_ext}@$${domain}"/>


When call hit public dialplan I can not access variable callgroup. As callgroup variable is not set I can not make right mysql insert. What is the best way to deal with this?

THanks!

Miha