[Freeswitch-users] Call_group intercept

Miha miha at softnet.si
Mon May 21 10:51:46 MSD 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120521/bd69cb57/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list