<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><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:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
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";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
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;
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=RU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thanks for answer. Could you explain how to backport the patch to my local copy? I want to try.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:RU'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:RU'> sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] <b>On Behalf Of </b>Daniel-Constantin Mierl</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:RU'>a<br><b>Sent:</b> Tuesday, August 27, 2013 11:38 AM<br><b>To:</b> Kamailio (SER) - Users Mailing List<br><b>Subject:</b> Re: [SR-Users] dispatcher, get attrs on incoming request from nodes<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hello,<br><br>the feature was implemented in the development version:<br>- <a href="http://kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.p.attrs_pvname">http://kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.p.attrs_pvname</a><br><br>You will have to backport the patch to your local copy or find another solution (e.g., store ip/port/attrs in address table and use permissions) until the next major release.<br><br>Cheers,<br>Daniel<o:p></o:p></p><div><p class=MsoNormal>On 8/27/13 9:23 AM, I.Pavlov wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US>Hi all. We use kamailio v.3.3.3 with dispatcher and some nodes:</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>#pstn gw group</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'>1 <a href="sip:10.189.19.1:5060">sip:10.189.19.1:5060</a> 0 2 weight=80;limit=120,node=sv6     # SV6</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'>1 <a href="sip:10.189.19.29:5060">sip:10.189.19.29:5060</a> 0 1 weight=20;limit=120;node=mr64 # MR64</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'>I use <b>ds_is_from_list</b>:</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'>if (ds_is_from_list("1")) {</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'>                route(FROM_PSTN);</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'>};</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'>route[FROM_PSTN] {</span><o:p></o:p></p><p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US style='mso-fareast-language:RU'>xlog("L_INFO","dsattrs: $avp(dsattrs) $avp(i:271) $avp(i:272) $avp(i:273)");</span><o:p></o:p></p><p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US style='mso-fareast-language:RU'>…..</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'>};</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'>Result: <b>INFO: <script>: dsattrs: <null> <null> <null> <null></b></span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'>My question - Is it possible to get attrs on incoming request from GW ?</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:RU'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre><pre><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></pre><pre><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:RU'><br><br><o:p></o:p></span></p><pre>-- <o:p></o:p></pre><pre>Daniel-Constantin Mierla - <a href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre><pre><a href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></pre><pre>Kamailio Advanced Trainings - Berlin, Oct 21-24; Miami, Nov 11-13, 2013<o:p></o:p></pre><pre>  - more details about Kamailio trainings at <a href="http://www.asipto.com">http://www.asipto.com</a> -<o:p></o:p></pre></div></body></html>