No subject


Wed Jan 27 21:05:54 CET 2016


be done in 2.1 version.
Is it possible to change in asynchronous mode in 1.11 version?
If not, is there a way to achieve asynchronous REST calls for the version o=
f opensips what we are using?

Also I see from documentation,

The following functions may also be called asynchronously:

  *   avp_db_query<http://www.opensips.org/html/docs/modules/2.1.x/avpops.h=
tml#id294986>
  *   rest_get<http://www.opensips.org/html/docs/modules/2.1.x/rest_client.=
html#id293741>
  *   rest_post<http://www.opensips.org/html/docs/modules/2.1.x/rest_client=
.html#id293886>
  *   exec<http://www.opensips.org/html/docs/modules/2.1.x/exec#id294052>
Can rest_put can also be called asynchronously if we use 2.1 version ?
Please clarify.

Regards,
Agalya



_______________________________________________

Users mailing list

Users at lists.opensips.org<mailto:Users at lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--_000_8e9bb6cd812546eaa373203c73e2bd46COPDCEX28cablecomcastco_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
	{font-family:"Times New Roman \,serif";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"Trebuchet MS \,sans-serif";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	color:black;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;
	color:black;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";
	color:black;}
tt
	{mso-style-priority:99;
	font-family:"Courier New";}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:Consolas;
	color:black;}
span.EmailStyle21
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.EmailStyle22
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
span.EmailStyle23
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
span.EmailStyle24
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
span.EmailStyle25
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
span.EmailStyle26
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:920869609;
	mso-list-template-ids:-1225891966;}
@list l0:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l0:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:"Courier New";
	mso-bidi-font-family:"Times New Roman";}
@list l0:level3
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:1.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Wingdings;}
@list l0:level4
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:2.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Wingdings;}
@list l0:level5
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:2.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Wingdings;}
@list l0:level6
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:3.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Wingdings;}
@list l0:level7
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:3.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Wingdings;}
@list l0:level8
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:4.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Wingdings;}
@list l0:level9
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:4.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Wingdings;}
@list l1
	{mso-list-id:1278369785;
	mso-list-template-ids:1405807378;}
@list l1:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l1:level2
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l1:level3
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:1.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l1:level4
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:2.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l1:level5
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:2.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l1:level6
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:3.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l1:level7
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:3.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l1:level8
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:4.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l1:level9
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:4.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=3D"white" lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"color:blue">Hi Liviu, <o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span style=3D"color:blue"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Here is the dump from the=
 time when the socket is opened and when the request sent out.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Highlighted in </span><sp=
an style=3D"color:red">RED color</span><span style=3D"color:blue">. Any clu=
e for this 10 sec delay?
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><b><span style=3D"color:red">17:29:56.430379 IP6 stu=
rn-test.novalocal.44797</span></b><span style=3D"color:red">
</span>&gt; destination.rtc.sys.comcast.net.webcache: Flags [S], seq 335629=
4440, win 28800, options [mss 1440,sackOK,TS val 3588300781 ecr 0,nop,wscal=
e 7], length 0<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0000:&n=
bsp; 6000 0000 0028 0640 2001 0558 fc0b 0100&nbsp; `....(<a href=3D"mailto:=
. at ...X">. at ...X</a>....<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0010:&n=
bsp; f816 3eff fed5 0bfe 2001 0558 fc11 0000&nbsp; ..&gt;........X....<o:p>=
</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0020:&n=
bsp; f816 3eff fe11 d5aa aefd 1f90 c80c fd28&nbsp; ..&gt;............(<o:p>=
</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0030:&n=
bsp; 0000 0000 a002 7080 90bb 0000 0204 05a0&nbsp; ......p.........<o:p></o=
:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0040:&n=
bsp; 0402 080a d5e1 1fed 0000 0000 0103 0307&nbsp; ................<o:p></o=
:p></p>
<p class=3D"MsoNormal">17:29:56.436526 IP6 destination.rtc.sys.comcast.net.=
webcache &gt; sturn-test.novalocal.44797: Flags [S.], seq 4065018495, ack 3=
356294441, win 28560, options [mss 1440,sackOK,TS val 1771678349 ecr 358830=
0781,nop,wscale 9], length 0<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0000:&n=
bsp; 6000 0000 0028 063a 2001 0558 fc11 0000&nbsp; `....(.:...X....<o:p></o=
:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0010:&n=
bsp; f816 3eff fe11 d5aa 2001 0558 fc0b 0100&nbsp; ..&gt;........X....<o:p>=
</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0020:&n=
bsp; f816 3eff fed5 0bfe 1f90 aefd f24b 427f&nbsp; ..&gt;..........KB.<o:p>=
</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0030:&n=
bsp; c80c fd29 a012 6f90 755f 0000 0204 05a0&nbsp; ...)..o.u_......<o:p></o=
:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0040:&n=
bsp; 0402 080a 6999 aa8d d5e1 1fed 0103 0309&nbsp; ....i...........<o:p></o=
:p></p>
<p class=3D"MsoNormal">17:29:56.436575 IP6 sturn-test.novalocal.44797 &gt; =
destination.rtc.sys.comcast.net.webcache: Flags [.], ack 1, win 225, option=
s [nop,nop,TS val 3588300787 ecr 1771678349], length 0<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0000:&n=
bsp; 6000 0000 0020 0640 2001 0558 fc0b 0100&nbsp; `...... at ...X....<o:p></o=
:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0010:&n=
bsp; f816 3eff fed5 0bfe 2001 0558 fc11 0000 &nbsp;..&gt;........X....<o:p>=
</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0020:&n=
bsp; f816 3eff fe11 d5aa aefd 1f90 c80c fd29&nbsp; ..&gt;............)<o:p>=
</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0030:&n=
bsp; f24b 4280 8010 00e1 90b3 0000 0101 080a&nbsp; .KB.............<o:p></o=
:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0040:&n=
bsp; d5e1 1ff3 6999 aa8d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 ....i...<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><b><span style=3D"color:red">17:30:06.667279 IP6 stu=
rn-test.novalocal.44797</span></b><span style=3D"color:red">
</span>&gt; destination.rtc.sys.comcast.net.webcache: Flags [P.], seq 1:681=
, ack 1, win 225, options [nop,nop,TS val 3588311018 ecr 1771678349], lengt=
h 680<o:p></o:p></p>
<p class=3D"MsoNormal"><a href=3D"mailto:PUT./RTCGSessionManager/rest/tel/s=
ession/createroom?uid=3Dpp&amp;custguid=3D1-32750 at XX.YYY.231.239..HTTP/1.1.=
.Host:.tr-sm-as-a-001.rtc.sys.comcast.net:8080..Accept:.*/*..Conten">PUT./R=
TCGSessionManager/rest/tel/session/createroom?uid=3Dpp&amp;custguid=3D1-327=
50 at XX.YYY.231.239..HTTP/1.1..Host:.tr-sm-as-a-001.rtc.sys.comcast.net:8080.=
.Accept:.*/*..Conten</a>
 t-Type:.application/json..Uid:.pp..serviceId:.tel..custguid:.1-32750 at 96.11=
9.231. 239...x-tracking-id:.820..X-Trace:.trace-id=3D1-32750 at 96.119.231.239=
...x-server-name:.RTCGSM..x-client-name:.IMS<o:p></o:p></p>
<p class=3D"MsoNormal">x-source-id:.OpenSIP..user-agent:.OpenSIPv1.11.3..de=
vice-id:.1-32750 at XX.YYY.231. 239...Content-Length:.211....{&quot;participan=
tsInfo&quot; :[&quot;2155551212&quot;],&quot;callType&quot;:&quot;audio&quo=
t;,&quot;instanceId&quot;: &quot;<a href=3D"mailto:1-32750 at XX.YYY.%20231.23=
9.">1-32750 at XX.YYY.
 231.239.</a>&quot;,&quot;fromUID&quot;:&quot;pp&quot;,&quot;fromTN&quot;:&=
quot;pp&quot;,&quot;isOpenSipRequest&quot;:true,&quot; displayName&quot;:&q=
uot;Call.From.IMS&quot;,&quot;deviceType&quot;:&quot;Android/iOS/STB/IMS&qu=
ot;}<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">17:30:06.672819 IP6 destination.rtc.sys.comcast.net.=
webcache &gt; sturn-test.novalocal.44797: Flags [.], ack 681, win 59, optio=
ns [nop,nop,TS val 1771688585 ecr 3588311018], length 0<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0000:&n=
bsp; 6000 0000 0020 063a 2001 0558 fc11 0000&nbsp; `......:...X....<o:p></o=
:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0010:&n=
bsp; f816 3eff fe11 d5aa 2001 0558 fc0b 0100&nbsp; ..&gt;........X....<o:p>=
</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0020:&n=
bsp; f816 3eff fed5 0bfe 1f90 aefd f24b 4280&nbsp; ..&gt;..........KB.<o:p>=
</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0030:&n=
bsp; c80c ffd1 8010 003b c0cd 0000 0101 080a&nbsp; .......;........<o:p></o=
:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0040:&n=
bsp; 6999 d289 d5e1 47ea&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 i.....G.<o:p></o:p></p>
<p class=3D"MsoNormal">17:30:06.778978 IP6 destination.rtc.sys.comcast.net.=
webcache &gt; sturn-test.novalocal.44797: Flags [P.], seq 1:358, ack 681, w=
in 59, options [nop,nop,TS val 1771688691 ecr 3588311018], length 357<o:p><=
/o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0000:&n=
bsp; 6000 0000 0185 063a 2001 0558 fc11 0000&nbsp; `......:...X....<o:p></o=
:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0010:&n=
bsp; f816 3eff fe11 d5aa 2001 0558 fc0b 0100&nbsp; ..&gt;........X....<o:p>=
</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0020:&n=
bsp; f816 3eff fed5 0bfe 1f90 aefd f24b 4280&nbsp; ..&gt;..........KB.<o:p>=
</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0030:&n=
bsp; c80c ffd1 8018 003b 8583 0000 0101 080a&nbsp; .......;........<o:p></o=
:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0040:&n=
bsp; 6999 d2f3 d5e1 47ea 4854 5450 2f31 2e31&nbsp; i.....G.HTTP/1.1<o:p></o=
:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0050:&n=
bsp; 2032 3030 204f 4b0d 0a53 6572 7665 723a&nbsp; .200.OK..Server:<o:p></o=
:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">&#8230;<o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Regards,<br>
Agalya<o:p></o:p></span></p>
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"color:windowtext">From:</span></b>=
<span style=3D"color:windowtext"> Ramachandran, Agalya (Contractor)
<br>
<b>Sent:</b> Friday, August 26, 2016 12:01 PM<br>
<b>To:</b> 'Liviu Chircu' &lt;liviu at opensips.org&gt;<br>
<b>Subject:</b> RE: FW: [OpenSIPS-Users] Asynchronous operation for REST qu=
eries<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Hi Liviu, <o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span style=3D"color:blue"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">As I already emailed you,=
 to contribute the source code there is some approval process in our organi=
zation.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">If that goes though I can=
 contribute the REST PUT code.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:blue"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">But I have a question in =
async operation in opensips.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">When a async mode REST AP=
I is called either POST/PUT, I see that opensips waits for 10 sec of time a=
nd then only it sends out the HTTP request out to the network.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Why there is a huge wait =
time of 10sec?
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:blue"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">When I tried to debug, I =
found it is looping inside the below for loop for long time in rest_methods=
.c&nbsp; file, (but all that looping are taking same seconds, later 10 sec =
am getting HTTP response)<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">for (i =3D 0; i &lt; busy=
_wait; i &#43;=3D check_time) {&#8230;..}<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:blue"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Wondering and interested =
to know about this delay time.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Please bear some of your =
time</span><span style=3D"font-family:Wingdings;color:blue">J</span><span s=
tyle=3D"color:blue">. Thanks in advance.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:blue"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Regards,<o:p></o:p></span=
></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Agalya<o:p></o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"color:windowtext">From:</span></b>=
<span style=3D"color:windowtext"> Liviu Chircu [</span><a href=3D"mailto:li=
viu at opensips.org">mailto:liviu at opensips.org</a><span style=3D"color:windowt=
ext">]
<br>
<b>Sent:</b> Thursday, August 18, 2016 10:14 AM<br>
<b>To:</b> Ramachandran, Agalya (Contractor) &lt;</span><a href=3D"mailto:A=
galya_Ramachandran at comcast.com">Agalya_Ramachandran at comcast.com</a><span st=
yle=3D"color:windowtext">&gt;<br>
<b>Subject:</b> Re: FW: [OpenSIPS-Users] Asynchronous operation for REST qu=
eries<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p><tt><span style=3D"font-size:10.0pt">Hi Agalya,</span></tt><o:p></o:p></=
p>
<p><tt><span style=3D"font-size:10.0pt">I am very busy these days and canno=
t afford to troubleshoot random problems with libcurl usage. Do you intend =
to open source the PUT function by making a Pull Request, after we fix it? =
If yes, it will definitely go up in
 my priority queue.</span></tt><o:p></o:p></p>
<pre>Liviu Chircu<o:p></o:p></pre>
<pre>OpenSIPS Developer<o:p></o:p></pre>
<pre><a href=3D"http://www.opensips-solutions.com">http://www.opensips-solu=
tions.com</a><o:p></o:p></pre>
<div>
<p class=3D"MsoNormal">On 18.08.2016 16:13, Ramachandran, Agalya (Contracto=
r) wrote:<o:p></o:p></p>
</div>
<blockquote style=3D"margin-top:5.0pt;margin-bottom:5.0pt">
<p class=3D"MsoNormal"><span style=3D"color:blue">Hi Liviu,</span><o:p></o:=
p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">&nbsp;</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Please help me by giving =
some clue that what am missing on the below topic.
</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Your guidance here would =
be much helpful for me.</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">&nbsp;</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Regards,</span><o:p></o:p=
></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Agalya</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;</span><o:p></o:=
p></p>
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"color:windowtext">From:</span></b>=
<span style=3D"color:windowtext"> Ramachandran, Agalya (Contractor)
<br>
<b>Sent:</b> Tuesday, August 16, 2016 10:54 AM<br>
<b>To:</b> </span><a href=3D"mailto:users at lists.opensips.org">users at lists.o=
pensips.org</a><span style=3D"color:windowtext"><br>
<b>Subject:</b> RE: [OpenSIPS-Users] Asynchronous operation for REST querie=
s</span><o:p></o:p></p>
</div>
</div>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Hi Bogdan/Liviu,</span><o=
:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">&nbsp;</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">I have downloaded 2.1.4 v=
ersion if opensips and trying to use rest_put call in async mode.
</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">&nbsp;</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">I have added the necessar=
y code for rest_put () similar to rest_post() in rest_methods.c, rest_metho=
ds.h and rest_client.c
</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">If I just call, rest_put =
from config file, without async it works fine. I could see rest_put() is ca=
lled and do the necessary steps.</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">&nbsp;</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">And am trying to call asy=
nc from config file as,
</span><o:p></o:p></p>
<p class=3D"MsoNormal"><b><span style=3D"color:blue">&nbsp;async(rest_put(&=
quot;</span></b><a href=3D"http://***url***%20"><b><span style=3D"color:blu=
e">http://***url***
</span></b></a><b><span style=3D"color:blue">&quot;, &quot;$fU,$tU,$ci &quo=
t;, &quot;application/json&quot;, &quot;$var(body)&quot;, &quot;$var(ct)&qu=
ot;, &quot;$var(rcode)&quot;),resume_put);</span></b><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;</span><o:p></o:=
p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Further debugging I got s=
ome info that I can share with you so that you can help me out easily.
</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Instead of calling <b>res=
t_put asynchronously</b> I have tried to call
<b>rest_post async</b> . I could able to see that HTTP request went out(fro=
m Wireshark traces) and I got 4xx response for the same.</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">&nbsp;</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">With my code changes in p=
lace and when I call rest_put, am not seeing HTTP request sent out.</span><=
o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Assuming <b>rest_put</b> =
only is not working, there should be some libcurl stuffs not handled proper=
ly in &#8216;<b>start_async_http_req</b>&#8217; for &#8216;<b>REST_CLIENT_P=
UT</b>&#8217; case.
</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">&nbsp;</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Am attaching the files th=
at &nbsp;contains code changes for rest_put only. I have removed other code=
 in order to reduce the file size. Can you please take a look guide me here=
?.</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Please let me know if you=
 need more information on this.
</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">&nbsp;</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Regards,<br>
Agalya</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;</span><o:p></o:=
p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;</span><o:p></o:=
p></p>
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"color:windowtext">From:</span></b>=
<span style=3D"color:windowtext">
</span><a href=3D"mailto:users-bounces at lists.opensips.org">users-bounces at li=
sts.opensips.org</a><span style=3D"color:windowtext"> [</span><a href=3D"ma=
ilto:users-bounces at lists.opensips.org">mailto:users-bounces at lists.opensips.=
org</a><span style=3D"color:windowtext">]
<b>On Behalf Of </b>Liviu Chircu<br>
<b>Sent:</b> Friday, August 05, 2016 4:47 AM<br>
<b>To:</b> </span><a href=3D"mailto:users at lists.opensips.org">users at lists.o=
pensips.org</a><span style=3D"color:windowtext"><br>
<b>Subject:</b> Re: [OpenSIPS-Users] Asynchronous operation for REST querie=
s</span><o:p></o:p></p>
</div>
</div>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><tt><span style=3D"fo=
nt-size:10.0pt">Hi Agalya,</span></tt><span style=3D"font-size:10.0pt;font-=
family:&quot;Courier New&quot;"><br>
<br>
<tt>1.11 has no async support at core level. If you need that, you will hav=
e to use 2.1&#43;</tt><br>
<br>
<tt>Async rest_put() is currently not implemented, but its logic would be f=
airly similar to the GET and POST counterparts.</tt></span><o:p></o:p></p>
<pre>Liviu Chircu<o:p></o:p></pre>
<pre>OpenSIPS Developer<o:p></o:p></pre>
<pre><a href=3D"http://www.opensips-solutions.com">http://www.opensips-solu=
tions.com</a><o:p></o:p></pre>
<div>
<p class=3D"MsoNormal">On 04.08.2016 23:14, Ramachandran, Agalya (Contracto=
r) wrote:<o:p></o:p></p>
</div>
<blockquote style=3D"margin-top:5.0pt;margin-bottom:5.0pt">
<p class=3D"MsoNormal"><span style=3D"color:blue">Hi team,</span><o:p></o:p=
></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">&nbsp;</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">We are using opensips1.11=
.3 version for our project.
</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">I have a question here. R=
ight now we are using a REST API call from config file for our project requ=
irement and it is in synchronous mode currently.</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">From the opensips documen=
t, I see asynchronous support at script level can be done in 2.1 version.</=
span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Is it possible to change =
in asynchronous mode in 1.11 version?</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">If not, is there a way to=
 achieve asynchronous REST calls for the version of opensips what we are us=
ing?
</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">&nbsp;</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Also I see from documenta=
tion,</span><o:p></o:p></p>
<p style=3D"margin:0in;margin-bottom:.0001pt;line-height:16.2pt;background:=
white"><span style=3D"font-size:10.0pt">The following functions may also be=
 called asynchronously:</span><o:p></o:p></p>
<ul type=3D"disc">
<li class=3D"MsoNormal" style=3D"color:#666666;mso-margin-top-alt:auto;mso-=
margin-bottom-alt:auto;line-height:16.2pt;mso-list:l0 level1 lfo3;backgroun=
d:white">
<a href=3D"http://www.opensips.org/html/docs/modules/2.1.x/avpops.html#id29=
4986"><b><span style=3D"font-size:10.0pt;font-family:&quot;Trebuchet MS ,sa=
ns-serif&quot;,serif;color:#185662;text-decoration:none">avp_db_query</span=
></b></a><o:p></o:p></li><li class=3D"MsoNormal" style=3D"color:#666666;mso=
-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:16.2pt;mso-list=
:l0 level1 lfo3;background:white">
<a href=3D"http://www.opensips.org/html/docs/modules/2.1.x/rest_client.html=
#id293741"><b><span style=3D"font-size:10.0pt;font-family:&quot;Trebuchet M=
S ,sans-serif&quot;,serif;color:#185662;text-decoration:none">rest_get</spa=
n></b></a><o:p></o:p></li><li class=3D"MsoNormal" style=3D"color:#666666;ms=
o-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:16.2pt;mso-lis=
t:l0 level1 lfo3;background:white">
<a href=3D"http://www.opensips.org/html/docs/modules/2.1.x/rest_client.html=
#id293886"><b><span style=3D"font-size:10.0pt;font-family:&quot;Trebuchet M=
S ,sans-serif&quot;,serif;color:#185662;text-decoration:none">rest_post</sp=
an></b></a><o:p></o:p></li><li class=3D"MsoNormal" style=3D"color:#666666;m=
so-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:16.2pt;mso-li=
st:l0 level1 lfo3;background:white">
<a href=3D"http://www.opensips.org/html/docs/modules/2.1.x/exec#id294052"><=
b><span style=3D"font-size:10.0pt;font-family:&quot;Trebuchet MS ,sans-seri=
f&quot;,serif;color:#185662;text-decoration:none">exec</span></b></a><o:p><=
/o:p></li></ul>
<p class=3D"MsoNormal"><span style=3D"color:blue">Can rest_put can also be =
called asynchronously if we use 2.1 version ?
</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Please clarify.</span><o:=
p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">&nbsp;</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Regards,</span><o:p></o:p=
></p>
<p class=3D"MsoNormal"><span style=3D"color:blue">Agalya</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><span style=3D"font-s=
ize:12.0pt;font-family:&quot;Times New Roman ,serif&quot;,serif"><br>
<br>
</span><o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Users mailing list<o:p></o:p></pre>
<pre><a href=3D"mailto:Users at lists.opensips.org">Users at lists.opensips.org</=
a><o:p></o:p></pre>
<pre><a href=3D"http://lists.opensips.org/cgi-bin/mailman/listinfo/users">h=
ttp://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre=
>
</blockquote>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;font-family:&quot;Ti=
mes New Roman ,serif&quot;,serif">&nbsp;</span><o:p></o:p></p>
</blockquote>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;font-family:&quot;Ti=
mes New Roman&quot;,serif"><o:p>&nbsp;</o:p></span></p>
</div>
</body>
</html>

--_000_8e9bb6cd812546eaa373203c73e2bd46COPDCEX28cablecomcastco_--



More information about the Users mailing list