No account yet? Create one
Forgot your Username or Password?

Welcome to the Voxilla VoIP Forum.

Voxilla has been a trusted source for accurate, up-to-date information on the IP Communications industry since 2002. A dedicated staff of reporters and engineers produce feature articles and product reviews to keep industry watchers abreast of the people, companies, and trends driving a fast moving market.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.





Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old July 2nd, 2008, 04:42 AM
Ajay1 Ajay1 is offline
Junior Member
 
Join Date: Jul 2008
Posts: 1
Ajay1 is on a distinguished road
Default SetCDRUserField does not work in screen macro.

Hi All,

My requirement is, when a call comes to my extension,
I will tranfer the control to my agent who has to accept the call.
Now I have to keep track of the time when agent has lifted the call, so
for that I am using the my cdr table userField to set that time.

but some reason it does't work, SetCDRUserField inSide the screen (i.e internalDocument macro).
where as when I keep that SetCDRUserField out side screen(ie. Document macro),
it updates my cdr table with that value.

can some one point me to right direction.

I am below this code.

[macro-Documet]
exten => s,1,Dial(SIP/123...@sip, 60, M(InternalDocumet))

[macro-InternalDocumet]
exten => s,1,Read(ACCEPT|/var/lib/asterisk/sounds/pressonetotakecall|1)
exten => s,2,GotoIf($[${ACCEPT} = 1 ]?3:6)
exten => s,3,set(CallAcceptTime=${STRFTIME(${EPOCH},GMT+8,% Y-%m-%d %H:%M:%S)})
exten => s,4,SetCDRUserField(documet-*${CallAcceptTime}*)
exten => s,5,Goto(9)
exten => s,6,SetCDRUserField(" ")
exten => s,7,Playback(/var/lib/asterisk/sounds/agent-busy)
exten => s,8,Set(MACRO_RESULT=CONTINUE)
exten => s,9,NOOP(InternalDocument compeleted)

Any help is highly appreciated.

Thanks & Regards,
Ajay.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:



Similar Threads for: SetCDRUserField does not work in screen macro.
Thread Thread Starter Forum Replies Last Post
GXP-2010 Screen utpbx Grandstream Support Forum 1 June 2nd, 2008 10:07 AM
Can't Access the login screen ben14 IPKall Support Forum 0 May 14th, 2007 08:01 PM
macro for outbound call to uk or usa sometirtha das Asterisk Support Forum 0 November 22nd, 2006 08:29 AM
Macro(superdial) Help sryan2k1 Asterisk Support Forum 0 May 11th, 2006 08:51 PM
dialplan macro -- help needed global_dev Asterisk Support Forum 0 May 7th, 2006 11:52 PM


Advertise Here

All times are GMT. The time now is 02:24 PM.


vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc. Logos and trademarks are the property of Voxilla or their respective owner. All other content © 2003-2007 by Voxilla, Inc.