-
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.
deal with the backslash in header's value
- Loading branch information
1 parent
93b1069
commit 1745973
Showing
4 changed files
with
40 additions
and
2 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="TROPO12171.aspx.cs" Inherits="TropoSample.TROPO12171" %> | ||
|
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,34 @@ | ||
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 TROPO12171 : 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("test remote party id 3"); | ||
|
||
IDictionary<string, string> headers = new Dictionary<String, String>(); | ||
//headers.Add("P-Header", "TROPO12171value goes here"); | ||
headers.Add("Remote-Party-ID", "\"John Doe\"<sip:jdoe@foo.com>TROPO12171ab;party=calling;id-type=subscriber;privacy=full;screen=yes"); | ||
//headers.Add("Remote-Party-ID", "\\yigegang3"); | ||
|
||
//Answer answer = new Answer(); | ||
//answer.Headers = headers; | ||
|
||
tropo.Answer(headers); | ||
tropo.Say(say1); | ||
tropo.RenderJSON(Response); | ||
} | ||
} | ||
} |