No subject
Tue Nov 9 16:23:08 CET 2010
"AVPs are part of the transaction context, so they will be visible
everywhere where the transaction is present. "
br,
takeshi
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
------=_NextPart_001_0039_01CB90B6.DD261820
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-microsoft-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=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 12 =
(filtered medium)"><!--[if !mso]><style>v\:* =
{behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"\0421\0442\0430\043D\0434\0430\0440\0442\043D\044B\0439 =
HTML \0417\043D\0430\043A";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"\0422\0435\043A\0441\0442 =
\0432\044B\043D\043E\0441\043A\0438 \0417\043D\0430\043A";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.HTML
=
{mso-style-name:"\0421\0442\0430\043D\0434\0430\0440\0442\043D\044B\0439 =
HTML \0417\043D\0430\043A";
mso-style-priority:99;
mso-style-link:"\0421\0442\0430\043D\0434\0430\0440\0442\043D\044B\0439 =
HTML";
font-family:Consolas;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.a
{mso-style-name:"\0422\0435\043A\0441\0442 =
\0432\044B\043D\043E\0441\043A\0438 \0417\043D\0430\043A";
mso-style-priority:99;
mso-style-link:"\0422\0435\043A\0441\0442 =
\0432\044B\043D\043E\0441\043A\0438";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"2050" />
</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 lang=3DRU link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Ok, thanks!<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p> </o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'=
><o:p> </o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'=
><o:p> </o:p></span></p><div><p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p> </o:p></span></p><table =
class=3DMsoNormalTable border=3D0 cellspacing=3D0 cellpadding=3D0 =
style=3D'border-collapse:collapse'><tr><td width=3D431 colspan=3D2 =
valign=3Dtop style=3D'width:323.3pt;padding:0cm 5.4pt 0cm 5.4pt'><p =
class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'=
><img width=3D377 height=3D3 =
id=3D"_x0420__x0438__x0441__x0443__x043d__x043e__x043a__x0020_1" =
src=3D"cid:image001.gif at 01CB90B6.DA2FE290" =
alt=3D2><o:p></o:p></span></p></td></tr><tr><td width=3D143 valign=3Dtop =
style=3D'width:107.55pt;padding:0cm 5.4pt 0cm 5.4pt'></td><td =
width=3D288 valign=3Dtop style=3D'width:215.75pt;padding:0cm 5.4pt 0cm =
5.4pt'></td></tr></table><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'=
><o:p> </o:p></span></p></div><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p> </o:p></span></p><div =
style=3D'border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm =
4.0pt'><div><div style=3D'border:none;border-top:solid #B5C4DF =
1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
users-bounces at lists.opensips.org =
[mailto:users-bounces at lists.opensips.org] <b>On Behalf Of =
</b>mayamatakeshi<br><b>Sent:</b> Tuesday, November 30, 2010 5:29 =
PM<br><b>To:</b> OpenSIPS users mailling list<br><b>Subject:</b> Re: =
[OpenSIPS-Users] BYE processing and =
AVP<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'><o:p> </o:p></p><div><p =
class=3DMsoNormal>On Tue, Nov 30, 2010 at 11:19 PM, mayamatakeshi <<a =
href=3D"mailto:mayamatakeshi at gmail.com">mayamatakeshi at gmail.com</a>> =
wrote:<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><div><p =
class=3DMsoNormal>2010/11/30 Anton Zagorskiy <<a =
href=3D"mailto:a.zagorskiy at oyster-telecom.ru" =
target=3D"_blank">a.zagorskiy at oyster-telecom.ru</a>><o:p></o:p></p><di=
v><blockquote style=3D'border:none;border-left:solid #CCCCCC =
1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>Why BYE =
isn't a part of the =
transaction?<o:p></o:p></p></blockquote></div><div><p =
class=3DMsoNormal><br>From RFC3261:<o:p></o:p></p><pre>Specifically, a =
SIP transaction consists of a single request and any responses =
to<br> that request, which include zero or more provisional =
responses and<br> one or more final =
responses.<o:p></o:p></pre><p class=3DMsoNormal>But when opensips docs =
say transaction, it is also implying that you are using module tm (if =
you don't use tm functions, then you are doing stateless processing and =
no AVP will be saved). <o:p></o:p></p></div></div><div><p =
class=3DMsoNormal><br>For completeness,<br>the BYE is part of the dialog =
established by the INVITE transaction that ended when "200 OK" =
was received. But the BYE itself starts another transaction.<br>So, the =
AVPs you set in the processing of the INVITE will be available (as long =
as you use module tm) when your process responses for that INVITE (180, =
183, 200 etc), but not when you are handling other requests in the =
dialog.<br> <o:p></o:p></p></div><blockquote =
style=3D'border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm =
6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p =
class=3DMsoNormal><o:p> </o:p></p></div><div><div><blockquote =
style=3D'border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm =
6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=3DMsoNormal><br>WBR, =
Anton Zagorskiy<br>VoIP Developer, Oyster Telecom<br>Phone.: +7 812 =
601-0666<br>Fax: +7 812 601-0593<o:p></o:p></p><div><p =
class=3DMsoNormal><a href=3D"mailto:a.zagorskiy at oyster-telecom.ru" =
target=3D"_blank">a.zagorskiy at oyster-telecom.ru</a><o:p></o:p></p></div><=
p class=3DMsoNormal><a href=3D"http://www.oyster-telecom.ru" =
target=3D"_blank">www.oyster-telecom.ru</a><br><br><br>From: <a =
href=3D"mailto:users-bounces at lists.opensips.org" =
target=3D"_blank">users-bounces at lists.opensips.org</a><br>[mailto:<a =
href=3D"mailto:users-bounces at lists.opensips.org" =
target=3D"_blank">users-bounces at lists.opensips.org</a>] On Behalf Of =
mayamatakeshi<br>Sent: Tuesday, November 30, 2010 4:13 PM<br>To: =
OpenSIPS users mailling list<br>Subject: Re: [OpenSIPS-Users] BYE =
processing and AVP<o:p></o:p></p><div><div><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'><br><br>On Tue, Nov 30, 2010 at 10:07 PM, =
Anton Zagorskiy<br><<a href=3D"mailto:a.zagorskiy at oyster-telecom.ru" =
target=3D"_blank">a.zagorskiy at oyster-telecom.ru</a>> =
wrote:<br>Hello.<br><br>During INVITE processing I'm setting up some avp =
variables. When I'm<br>receiving a BYE request all avps are null. Why =
does this happen?<br>A part of the script:<br><br>if =
(has_totag())<br>{<br> if =
(loose_route())<br> {<br> =
if =
(is_method("BYE"))<br> =
{<br> =
xlog("*** BYE =
$avp(i:2)");<br><br>From the docs (<a =
href=3D"http://www.opensips.org/Resources/DocsCoreVar#toc2" =
target=3D"_blank">http://www.opensips.org/Resources/DocsCoreVar#toc2</a>)=
:<br><br>"AVPs are part of the transaction context, so they will be =
visible<br>everywhere where the transaction is present. =
"<br><br>br,<br>takeshi<br><br><br><o:p></o:p></p></div></div><p =
class=3DMsoNormal>_______________________________________________<br>User=
s mailing list<br><a href=3D"mailto:Users at lists.opensips.org" =
target=3D"_blank">Users at lists.opensips.org</a><br><a =
href=3D"http://lists.opensips.org/cgi-bin/mailman/listinfo/users" =
target=3D"_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/user=
s</a><o:p></o:p></p></blockquote></div></div></div><p =
class=3DMsoNormal><o:p> </o:p></p></blockquote></div><p =
class=3DMsoNormal><o:p> </o:p></p></div></div></body></html>
------=_NextPart_001_0039_01CB90B6.DD261820--
------=_NextPart_000_0038_01CB90B6.DD261820
Content-Type: image/gif;
name="image001.gif"
Content-Transfer-Encoding: base64
Content-ID: <image001.gif at 01CB90B6.DA2FE290>
R0lGODdheQEDAHcBACH+GlNvZnR3YXJlOiBNaWNyb3NvZnQgT2ZmaWNlACwAAAAAeQEDAIecSUq1
PEK1PEqlRUqtRUq1SUq9UVKtSUq1RUq1QUq1RUKtQUqtRUKtQUK1SVK9UVq1TVK1TVqtUVqlXWO1
ZWvGiozOiozvmpz3lpz3kpT3ioz3hoz/jpT/ipT/kpT/jpz3jpT/joz/kpz3ipT3jpzvjpTnlpz/
lpz/mpz/mpT/lpT/npz3kpznnqX/nqX/mqX/lqX3trX3oq3vsrXnoqX3pq3/19b/x87/197/x8b/
297/5+cBAgMBAgMBAgMBAgMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAA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