{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/9151f6168991a132fa75a9c7562a3f80?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9151f6168991a132fa75a9c7562a3f80","url":"https://api.github.com/users/lgaetz","login":"lgaetz","id":868756},"milestone":{"state":"open","open_issues":12,"url":"https://api.github.com/repos/tm1000/Caller-ID-Superfecta/milestones/1","due_on":null,"number":1,"creator":{"avatar_url":"https://secure.gravatar.com/avatar/c06e407e46758cc2c5a1f064f2d05817?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c06e407e46758cc2c5a1f064f2d05817","url":"https://api.github.com/users/tm1000","login":"tm1000","id":564256},"description":"Tentative date for a beta version of 3.x with most sources ported and working","title":"Version 3.0","closed_issues":10,"created_at":"2011-06-29T10:30:14Z"},"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/9151f6168991a132fa75a9c7562a3f80?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9151f6168991a132fa75a9c7562a3f80","url":"https://api.github.com/users/lgaetz","login":"lgaetz","id":868756},"labels":[{"name":"feature","color":"0b02e1","url":"https://api.github.com/repos/tm1000/Caller-ID-Superfecta/labels/feature"}],"updated_at":"2011-10-28T16:41:03Z","closed_at":null,"comments":4,"url":"https://api.github.com/repos/tm1000/Caller-ID-Superfecta/issues/46","body":"On occasion you see posts from people who want to display the DID for an incoming call.  It occurs to me that it might be useful if Superfecta could do this.  It would be useful for testing too.","html_url":"https://github.com/tm1000/Caller-ID-Superfecta/issues/46","number":46,"title":"Use DID as Caller Name","id":1812750,"created_at":"2011-10-04T11:49:08Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/9151f6168991a132fa75a9c7562a3f80?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9151f6168991a132fa75a9c7562a3f80","url":"https://api.github.com/users/lgaetz","login":"lgaetz","id":868756},"updated_at":"2011-10-28T16:41:03Z","url":"https://api.github.com/repos/tm1000/Caller-ID-Superfecta/issues/comments/2558302","body":"I think I have figured out how to do this.  Starting with the \"trunk provided\" lookup source, get the contents of\r\ncore show channels concise\r\nand look for the CID of the incoming call, and parse out the corresponding channel name, then \r\ncore show channel <name>\r\nand look thru the results for a line:\r\nDNID Digits: xxxxxxxxxx\r\nthis is the DID for the call.   I am thinking it would be good to give the user the ability to control how many rightmost digits are returned, and allow the returned digits to be used as a prefix for the CNAM to be determined in a later lookup.","id":2558302,"created_at":"2011-10-28T16:41:03Z"}}