Ok, thanks!
2
From: [email protected]
[mailto:[email protected]] On Behalf Of mayamatakeshi
Sent: Tuesday, November 30, 2010 5:29 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] BYE processing and AVP
On Tue, Nov 30, 2010 at 11:19 PM, mayamatakeshi <[email protected]>
wrote:
2010/11/30 Anton Zagorskiy <[email protected]>
Why BYE isn't a part of the transaction?
>From RFC3261:
Specifically, a SIP transaction consists of a single request and any
responses to
that request, which include zero or more provisional responses and
one or more final responses.
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).
For completeness,
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.
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.
WBR, Anton Zagorskiy
VoIP Developer, Oyster Telecom
Phone.: +7 812 601-0666
Fax: +7 812 601-0593
[email protected]
www.oyster-telecom.ru
From: [email protected]
[mailto:[email protected]] On Behalf Of mayamatakeshi
Sent: Tuesday, November 30, 2010 4:13 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] BYE processing and AVP
On Tue, Nov 30, 2010 at 10:07 PM, Anton Zagorskiy
<[email protected]> wrote:
Hello.
During INVITE processing I'm setting up some avp variables. When I'm
receiving a BYE request all avps are null. Why does this happen?
A part of the script:
if (has_totag())
{
if (loose_route())
{
if (is_method("BYE"))
{
xlog("*** BYE $avp(i:2)");
>From the docs (http://www.opensips.org/Resources/DocsCoreVar#toc2):
"AVPs are part of the transaction context, so they will be visible
everywhere where the transaction is present. "
br,
takeshi
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
<<image001.gif>>
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
