-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add answer to TROPO JSON helper library with support for RPID parameters - WebAPI Csharp
- Loading branch information
1 parent
9aa27e4
commit 93b1069
Showing
5 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AnswerTest.aspx.cs" Inherits="TropoSample.AnswerTest" %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Web.UI; | ||
using TropoCSharp.Structs; | ||
using TropoCSharp.Tropo; | ||
|
||
namespace TropoSample | ||
{ | ||
/// <summary> | ||
/// A simple example demonstrating how to use the Ask method. | ||
/// </summary> | ||
public partial class AnswerTest : Page | ||
{ | ||
public void Page_Load(object sender, EventArgs args) | ||
{ | ||
// Create a new instance of the Tropo object. | ||
Tropo tropo = new Tropo(); | ||
|
||
Say say1 = new Say("Are you frank on windows. thanks to jerry"); | ||
|
||
IDictionary<string, string> headers = new Dictionary<String, String>(); | ||
headers.Add("P-Header", "value goes here"); | ||
headers.Add("Remote-Party-ID", "\"John Doe\"<sip:jdoe@foo.com>;party=calling;id-type=subscriber;privacy=full;screen=yes"); | ||
|
||
//Answer answer = new Answer(); | ||
//answer.Headers = headers; | ||
|
||
tropo.Answer(headers); | ||
tropo.Say(say1); | ||
tropo.RenderJSON(Response); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters