Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Timing a second call after call_into_context
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Quinn McLaughlin  
View profile  
 More options Mar 24 2008, 3:23 pm
From: Quinn McLaughlin <qu...@coincidence.net>
Date: Mon, 24 Mar 2008 12:23:56 -0700 (PDT)
Local: Mon, Mar 24 2008 3:23 pm
Subject: Timing a second call after call_into_context
Pardon if this is sophomoric to some of you - I've been digging for a
sample of this for a couple hours and was hoping you might be able to
help me.

I'm trying to figure out how to time a second call placed within the
dialplan.  Ideally I'd like to get the uniqueid for the second call
and the bill time right from asterisk's CDR records.

I'm placing a call with a Ruby script, using

Adhearsion = DRbObject.new_with_uri 'druby://voip.tronics.com:9050'
Adhearsion.proxy.call_into_context "SIP/
#{ARGV[0]}@outgoing","quinn", :caller_id => "8005551212"

(again, thanks Philippe!)
in my dialplan.rb I have the context "quinn" referenced:

quinn {
    play %w(pbx-transfer)
    puts Time.now
    puts "test callerID #{callerid} uniqueid #{uniqueid}"
    dial "SIP/18314219344@outgoing", :for => 10.seconds
    play %w(beep)
    puts "after call "
    puts Time.now

}

So I am able to get the callerid and uniqueid for the first call - how
can I get the time of call -either using Adhearsion's time() method or
better yet, just getting to the CDR records directly for the billtime
and uniqueid?

Thanks for your help - I appreciate the assistance very much!

Quinn McLaughlin


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google