<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Of course it is:<br>
         
<a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/blob/master/modules/python/doc/python_admin.xml">https://github.com/OpenSIPS/opensips/blob/master/modules/python/doc/python_admin.xml</a><br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
    <div class="moz-cite-prefix">On 04/13/2017 04:43 PM, robert wrote:<br>
    </div>
    <blockquote
cite="mid:BL2PR07MB23858746FFAB6D1D91AF0813BE020@BL2PR07MB2385.namprd07.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 15 (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]--><!--[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]-->
      <div class="WordSection1">
        <p class="MsoNormal"><a moz-do-not-send="true"
            name="_MailEndCompose" target="_top" rel="nofollow"
            link="external"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Oh,
              is your documentation in Git?<o:p></o:p></span></a></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Robert
            Mundkowsky<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span
              style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
            Bogdan-Andrei Iancu-2 [via OpenSIPS (Open SIP Server)]
            [<a class="moz-txt-link-freetext" href="mailto:ml-node+">mailto:ml-node+</a><a moz-do-not-send="true"
              href="/user/SendEmail.jtp?type=node&node=7606973&i=0"
              target="_top" rel="nofollow" link="external">[hidden
              email]</a>]
            <br>
            <b>Sent:</b> Thursday, April 13, 2017 5:26 AM<br>
            <b>To:</b> Mundkowsky, Robert <<a moz-do-not-send="true"
href="/user/SendEmail.jtp?type=node&node=7606973&i=1"
              target="_top" rel="nofollow" link="external">[hidden
              email]</a>><br>
            <b>Subject:</b> Re: $du not expanded/evaluated?<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">In terms of both code and documentation,
          anyone is free and more than
          <br>
          welcome to contribute with improvements or fixes. This is one
          of the <br>
          golden rules of Open Sources Softwares ;) <br>
          <br>
          In regards to the python threads, I do not have the python
          knowledge to <br>
          formulate a comment. <br>
          <br>
          Regards, <br>
          <br>
          Bogdan-Andrei Iancu <br>
             OpenSIPS Founder and Developer <br>
             <a moz-do-not-send="true"
            href="http://www.opensips-solutions.com" target="_top"
            rel="nofollow" link="external">http://www.opensips-solutions.com</a><br>
          <br>
          OpenSIPS Summit May 2017 Amsterdam <br>
             <a moz-do-not-send="true"
            href="http://www.opensips.org/events/Summit-2017Amsterdam.html"
            target="_top" rel="nofollow" link="external">http://www.opensips.org/events/Summit-2017Amsterdam.html</a><br>
          <br>
          On 04/12/2017 05:10 PM, Mundkowsky, Robert wrote: <o:p></o:p></p>
        <div>
          <p class="MsoNormal"><br>
            > Wow, that is really bizarre. I don't think I have ever
            see any languages where variable expansion is based on which
            function they are passed to.
            <br>
            > <br>
            > Anyways, I think your documentation needs to be
            updated, I don't see anything in your document stating
            expansion does not take place for the extra_args in
            python_exec(method_name [, extra_args]).  Also would be nice
            if you noted only Python 2 is supported
            <br>
            > <br>
            > One more question, is it not possible to run threads in
            the python script called?  I am getting an odd error when I
            try to run a thread, but that script works fine when called
            for command line.
            <br>
            > <br>
            > Robert Mundkowsky <br>
            > <br>
            > <br>
            > -----Original Message----- <br>
            > From: Bogdan-Andrei Iancu [mailto:<a
              moz-do-not-send="true"
              href="/user/SendEmail.jtp?type=node&node=7606955&i=0"
              target="_top" rel="nofollow" link="external">[hidden
              email]</a>]
            <br>
            > Sent: Wednesday, April 12, 2017 9:50 AM <br>
            > To: OpenSIPS users mailling list <<a
              moz-do-not-send="true"
              href="/user/SendEmail.jtp?type=node&node=7606955&i=1"
              target="_top" rel="nofollow" link="external">[hidden
              email]</a>>; Mundkowsky, Robert <<a
              moz-do-not-send="true"
              href="/user/SendEmail.jtp?type=node&node=7606955&i=2"
              target="_top" rel="nofollow" link="external">[hidden
              email]</a>>
            <br>
            > Subject: Re: [OpenSIPS-Users] $du not
            expanded/evaluated? <br>
            > <br>
            > Hi Robert, <br>
            > <br>
            > According to the docs, the second parameter does not
            expands possible variables.
            <br>
            > <br>
            > Have you check if the dst URI is accessible via the
            SIPMsg class ? <br>
            > <a moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/2.2.x/python.html#idp54288"
              target="_top" rel="nofollow" link="external">
http://www.opensips.org/html/docs/modules/2.2.x/python.html#idp54288</a><br>
            > <br>
            > Regards, <br>
            > <br>
            > Bogdan-Andrei Iancu <br>
            >     OpenSIPS Founder and Developer <br>
            >     <a moz-do-not-send="true"
              href="http://www.opensips-solutions.com" target="_top"
              rel="nofollow" link="external">http://www.opensips-solutions.com</a><br>
            > <br>
            > OpenSIPS Summit May 2017 Amsterdam <br>
            >     <a moz-do-not-send="true"
              href="http://www.opensips.org/events/Summit-2017Amsterdam.html"
              target="_top" rel="nofollow" link="external">
              http://www.opensips.org/events/Summit-2017Amsterdam.html</a><br>
            > <br>
            > On 04/11/2017 08:04 PM, robert wrote: <br>
            >> I am using the following in the opensips.cfg file.
            <br>
            >> <br>
            >> $du correctly evaluates to a real value (e.g.
            "<a href="sip:XX.XX.XX.XX:5060">sip:XX.XX.XX.XX:5060"
            )
            <br>
            >> in the xlog, but inside the python_exec, it does
            not. <br>
            >> <br>
            >> On the python side the incrementMissedCallsCount
            function gets the <br>
            >> value "$du" rather than "<a
            href="sip:XX.XX.XX.XX:5060">sip:XX.XX.XX.XX:5060"
            <br>
            >> <br>
            >> <br>
            >> code: <br>
            >> <br>
            >> xlog("REPORT: LB destination $du failed with code
            $T_reply_code\n"); <br>
            >> python_exec('incrementMissedCallsCount',"$du"); <br>
            >> <br>
            >> <br>
            >> <br>
            >> <br>
            >> -- <br>
            >> View this message in context: <br>
            >> <a moz-do-not-send="true"
href="http://opensips-open-sip-server.1449251.n2.nabble.com/du-not-expanded-"
              target="_top" rel="nofollow" link="external">
http://opensips-open-sip-server.1449251.n2.nabble.com/du-not-expanded-</a><br>
            >> evaluated-tp7606924.html Sent from the OpenSIPS -
            Users mailing list <br>
            >> archive at Nabble.com. <br>
            >> <br>
            >> _______________________________________________ <br>
            >> Users mailing list <br>
            >> <a moz-do-not-send="true"
              href="/user/SendEmail.jtp?type=node&node=7606955&i=3"
              target="_top" rel="nofollow" link="external">[hidden
              email]</a>
            <br>
            >> <a moz-do-not-send="true"
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              target="_top" rel="nofollow" link="external">
              http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
            > <br>
            > ________________________________ <br>
            > <br>
            > This e-mail and any files transmitted with it may
            contain privileged or confidential information. It is solely
            for use by the individual for whom it is intended, even if
            addressed incorrectly. If you received this e-mail in error,
            please notify the sender; do not disclose, copy, distribute,
            or take any action in reliance on the contents of this
            information; and delete it from your system. Any other use
            of this e-mail is prohibited.
            <br>
            > <br>
            > <br>
            > Thank you for your compliance. <br>
            > <br>
            > ________________________________ <o:p></o:p></p>
        </div>
        <p class="MsoNormal" style="margin-bottom:12.0pt"><br>
          <br>
          _______________________________________________ <br>
          Users mailing list <br>
          <a moz-do-not-send="true"
            href="/user/SendEmail.jtp?type=node&node=7606955&i=4"
            target="_top" rel="nofollow" link="external">[hidden email]</a>
          <br>
          <a moz-do-not-send="true"
            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
            target="_top" rel="nofollow" link="external">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
          <br>
          <o:p></o:p></p>
        <div class="MsoNormal" style="text-align:center" align="center">
          <hr style="color:#CCCCCC" align="center" size="1" width="100%"
            noshade="noshade">
        </div>
        <div>
          <div>
            <p class="MsoNormal"><b><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#444444">If
                  you reply to this email, your message will be added to
                  the discussion below:<o:p></o:p></span></b></p>
          </div>
          <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#444444"><a
                moz-do-not-send="true"
href="http://opensips-open-sip-server.1449251.n2.nabble.com/du-not-expanded-evaluated-tp7606924p7606955.html"
                target="_top" rel="nofollow" link="external"><a class="moz-txt-link-freetext" href="http://opensips-open-sip-server.1449251.n2.nabble.com/du-not-expanded-evaluated-tp7606924p7606955.html">http://opensips-open-sip-server.1449251.n2.nabble.com/du-not-expanded-evaluated-tp7606924p7606955.html</a></a>
              <o:p></o:p></span></p>
        </div>
        <div style="margin-top:4.8pt">
          <p class="MsoNormal" style="line-height:18.0pt"><span
style="font-size:8.5pt;font-family:"Tahoma",sans-serif;color:#666666">To
              unsubscribe from $du not expanded/evaluated?,
              <a moz-do-not-send="true" href="" target="_top"
                rel="nofollow" link="external">
                click here</a>.<br>
              <a moz-do-not-send="true"
href="http://opensips-open-sip-server.1449251.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml"
                target="_top" rel="nofollow" link="external"><span
                  style="font-size:7.0pt;font-family:"Times New
                  Roman",serif">NAML</span></a>
              <o:p></o:p></span></p>
        </div>
      </div>
      <br>
      <hr>
      <p>This e-mail and any files transmitted with it may contain
        privileged or confidential information. It is solely for use by
        the individual for whom it is intended, even if addressed
        incorrectly. If you received this e-mail in error, please notify
        the sender; do not disclose, copy, distribute, or take any
        action in reliance on the contents of this information; and
        delete it from your system. Any other use of this e-mail is
        prohibited.</p>
      <br>
      <p>Thank you for your compliance.</p>
      <hr> <br>
      <hr align="left" width="300">
      View this message in context: <a moz-do-not-send="true"
href="http://opensips-open-sip-server.1449251.n2.nabble.com/du-not-expanded-evaluated-tp7606924p7606973.html">RE:
        $du not expanded/evaluated?</a><br>
      Sent from the <a moz-do-not-send="true"
href="http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html">OpenSIPS
        - Users mailing list archive</a> at Nabble.com.<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>