<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font size="-1"><font face="Arial">hi,<br>
        <br>
        i have a requirement where i need to generate a different
        ringtone if that ext is on another call and i do it using limit
        by setting a counter for the caller and callee and then checking
        the counter if it has a value of 1 which would mean that ext is
        on anohter call so generate a different ringtone and this work
        fine.<br>
        <br>
        The problem being if A calls B and B attended transfers the call
        to C then the counter for C is incremented in the features
        dialplan but it doesnt reflect in the internal dialplan and i
        read that active limits dont remain global across dialplans so
        is there anyway to keep the limit counter active. i tried
        limit_ignore_transfer but that doesnt seem to work, im on the FS
        master<br>
        <br>
        Below is my internal and features dialplan, any pointers would
        be helpful<br>
        <br>
        <br>
        INTERNAL DIALPLAN<br>
        <br>
            <extension name="general_stuff1" continue="true"><br>
              <condition><br>
                  <action application="set"
        data="rtp_negotiate_near_match=true"/><br>
                  <action application="set"
        data="inherit_codec=true"/><br>
                  <action application="set"
        data="suppress_cng=true"/><br>
                  <action application="set"
        data="limit_ignore_transfer=true" /><br>
                  <action application="limit" data="hash max_calls
        ${sip_from_user} -1" /><br>
              </condition><br>
            </extension><br>
        <br>
            <extension name="ChangeRingBack"><br>
              <condition field="destination_number"
        expression="^ChangeRingBack$"/><br>
              <condition field="rdnis" expression="^(.*$)"><br>
                  <action application="set"
        data="transfer_ringback=%(250,250,400);%(250,3500,400)"/><br>
                  <action application="set"
        data="ringback=%(250,250,400);%(250,3500,400)"/><br>
                  <action application="bridge"
        data="sofia/internal/$1%$${domain}"/><br>
              </condition><br>
            </extension><br>
        <br>
            <extension name="local_user_calling"><br>
              <condition field="destination_number"
        expression="^(.*)$"><br>
                  <action application="limit" data="hash max_calls
        ${destination_number} -1" /><br>
                  <action application="bind_meta_app" data="3 b s
        execute_extension::att_xfer XML features"/><br>
                  <action application="set"
        data="transfer_ringback=%(400,200,400,375);%(400,2000,400,375)"/><br>
                  <action application="set"
        data="hold_music=$${hold_music}" /><br>
                  <action application="set"
        data="ringback=%(400,200,400,375);%(400,2000,400,375)"/><br>
                  <action application="set"
        data="call_timeout=30"/><br>
                  <action application="set"
        data="hangup_after_bridge=true"/><br>
                  <action application="set"
        data="continue_on_fail=true"/><br>
                  <action application="limit" data="hash max_calls
        ${destination_number} 1 ChangeRingBack"/><br>
                  <action application="bridge"
        data="sofia/internal/$1%$${domain}"/><br>
              </condition><br>
            </extension><br>
        <br>
        FEATURES DIALPLAN<br>
        <br>
            <extension name="att_xfer"><br>
              <condition field="destination_number"
        expression="^att_xfer$"><br>
                  <action application="set"
        data="transfer_ringback=%(400,200,400,375);%(400,2000,400,375)"/><br>
                  <action application="set"
        data="hold_music=$${hold_music}" /><br>
                  <action application="set"
        data="ringback=%(400,200,400,375);%(400,2000,400,375)"/><br>
                  <action application="set"
        data="continue_on_fail=true"/><br>
                  <action application="read" data="2 11
        ivr/ivr-enter_ext.wav digits 30000 #"/><br>
                  <action application="set"
        data="origination_cancel_key=#"/><br>
                  <action application="limit" data="hash max_calls
        ${digits} -1" /><br>
                  <action application="att_xfer"
        data="sofia/internal/${digits}%$${domain}"/><br>
              </condition><br>
            </extension><br>
        <br>
        <br>
      </font></font>
    <div class="moz-signature">-- <br>
      <style>
body {
  font-family: Verdana, sans-serif;
  font-size: 0.8em;
  color:#484848;
}
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin:0in; margin-bottom:.0001pt; }
p.footr { font-family: "Trebuchet MS", Verdana, sans-serif; margin:0in; margin-bottom:.0001pt; }
h1 { font-size: 1.2em; }
h2, h3 { font-size: 1.1em; }
a, a:link, a:visited { color: #2A5685;}
a:hover, a:active { color: #c61a1a; }
a.wiki-anchor { display: none; }
hr {
  width: 100%;
  height: 1px;
  background: #ccc;
  border: 0;
}
</style>Regards,<br>
      Bipin<br>
      <br>
      <br>
      <hr>
    </div>
  </body>
</html>