<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Well, call forwarding is always a special case because you need to get
the billing right according to how your billing app needs it. Look at
the INVITE that comes for call forwarding and test for it in your
script.<br>
g-)<br>
<br>
inge wrote:
<blockquote cite="mid:1179304106.3201.2.camel@legos01.legos.fr"
 type="cite">
  <pre wrap="">I back to this problem because I highlight a side effect.
In fact, I with this kind of condition for accounting : if
(method=="BYE" || method =="CANCEL" || ((method=="ACK" ||
method=="INVITE) &amp;&amp; !loose_route())) { setflag(1) }

I don't account the calls for call forwarding.

Any idea ?

Le lundi 14 mai 2007 à 09:35 +0200, inge a écrit :
  </pre>
  <blockquote type="cite">
    <pre wrap="">Okay, thanks for your support. I will introduce this new condition for
accounting soon.


Le samedi 12 mai 2007 à 09:52 +0200, Greger V. Teigre a écrit :
    </pre>
    <blockquote type="cite">
      <pre wrap="">No, that should do it.
Unless the in-call INVITEs don't have Route headers. Then you have a
buggy UA...
g-)

inge wrote: 
      </pre>
      <blockquote type="cite">
        <pre wrap="">Hmm, but I account before if (loose_route()). 

So I do :

if (method=="BYE || ... &amp;&amp; !loose_route())
setflag(1);
};

Can I do an other thing ?

Le vendredi 11 mai 2007 à 14:55 +0200, Greger V. Teigre a écrit :
  
        </pre>
        <blockquote type="cite">
          <pre wrap="">No, you have to make sure that INVITEs that go into your if
(loose_route()) { ... } don't get accounted.
g-)

inge wrote: 
    
          </pre>
          <blockquote type="cite">
            <pre wrap="">Thanks for your answer.
I use accounting in route{}. So I just need to add a !loose_route() in
my if block when I want to account for INVITE and ACK request ?

Le vendredi 11 mai 2007 à 12:06 +0200, Greger V. Teigre a écrit :
  
      
            </pre>
            <blockquote type="cite">
              <pre wrap="">That's because the other call is put on hold and an INVITE is sent with 
0.0.0.0 as IP address to indicate that.
Such INVITEs will be loose_route'd in your script, so don't account 
INVITEs that go through loose route logic.
g-)

inge wrote:
    
        
              </pre>
              <blockquote type="cite">
                <pre wrap="">Hi all,

I've got a problem with call waiting function. This one allow us to hang
out a call when we are already in communication.

But when I press "R" on my phone to take the second call, there is one
INVITE and one ACK generated by the proxy and being accounted in MySQL.

It's the same when I switch between both callers. So I can have for the
same callid 2 3 4...X INVITE ACK and one BYE. So in SERWeb for example,
I can see for one call 3 lines of accounting.

Thanks for you support.

Adrien .L

_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>


  
      
          
                </pre>
              </blockquote>
            </blockquote>
            <pre wrap="">  
      
            </pre>
          </blockquote>
        </blockquote>
        <pre wrap="">
  
        </pre>
      </blockquote>
    </blockquote>
    <pre wrap="">_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
</body>
</html>