<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Thanks both for the pointers,<br>
    <br>
    I've got close to 60 gateways under my internal profile, so tweaking
    the database is definitely preferable to editing xml files (for me)<br>
    <br>
    I've found some excellent documentation on lcr.conf.xml, custom SQL
    queries, and exporting extra variables.<br>
     I tested, then modified my default mod_lcr query, just to simplify
    things, extended my carrier.gateway schema, and successfully
    (according to debugs, set several dtmf related variables.<br>
    <br>
    So it looks like it might be working in the lab, on Git (about a
    week old), so I'll see what happens with more testing (which options
    work etc). I'm not clear on dtmf and dtmf_relay interaction, so
    that'll be the next thing to nail I think.<br>
    <br>
    Hopefully, once this works, I can offer all sorts of options.<br>
    <br>
    Thanks again, excellent help, your replies let me search for what I
    needed.<br>
    <br>
    Regards,<br>
    Mike<br>
    <br>
    On 8/06/2011 7:59 p.m., Steven Ayre wrote:
    <blockquote
      cite="mid:BANLkTikcWbjCHnpefni6cL7ttY5p3On_sw@mail.gmail.com"
      type="cite">The dtmf_type channel variable can be used to override
      the profile's dtmf setting. Valid settings are rf2833, info and
      none. Inband would be more complex, as you'd need to call the <span
        class="Apple-style-span" style="font-family: monospace;
        font-size: 13px; line-height: 14px; white-space: pre;">start_dtmf_generate</span> application,
      not sure how you could easily integrate that with mod_lcr.
      Possibly using the execute_on_x family of channel variables.
      mod_lcr would need to use custom sql to get the additional dtmf
      variable.
      <div>
        <br>
        <div>As David pointed out, mod_lcr already lets you set the
          codec list for a gateway. late-negotiation isn't *required*,
          but could be useful. Without it the aleg will pick a codec,
          then you'll dial out with the codec list to the gateway and
          transcode if needed. With it, the aleg doesn't pick the codec
          until the bleg has picked one - which may make transcoding
          less likely.</div>
        <div><br>
        </div>
        <div>You could also setup the gateways as sofia gateways, set
          the codec/dtmf variables on the gateway and have mod_lcr
          return the sofia/gateway/gwname/ prefix.</div>
        <div><br>
        </div>
        <div>A lot of the behaviour in terms of mod_lcr, execute_on_x
          etc has changed since 1.0.6 so you might find you have to
          upgrade to get some of the newer features.</div>
        <div><br>
        </div>
        <div>-Steve</div>
        <div><br>
          <div><br>
            <div class="gmail_quote">On 8 June 2011 02:46, Mike Taylor <span
                dir="ltr">&lt;<a moz-do-not-send="true"
                  href="mailto:mtaylor@employees.org">mtaylor@employees.org</a>&gt;</span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
                0.8ex; border-left: 1px solid rgb(204, 204, 204);
                padding-left: 1ex;">
                <div style="word-wrap: break-word; color: rgb(0, 0, 0);
                  font-size: 14px; font-family: Calibri,sans-serif;">
                  <div>Hi,</div>
                  <span>
                    <div>
                      <div style="word-wrap: break-word; color: rgb(0,
                        0, 0); font-size: 14px; font-family:
                        Calibri,sans-serif;">
                        <div><br>
                        </div>
                        <div>I hope that I've taught myself enough over
                          the last few weeks that this isn't a
                          blindingly stupid question…</div>
                        <div><br>
                        </div>
                        <div>I am providing services to multiple
                          customers on FS 1.0.6</div>
                        <div><br>
                        </div>
                        <div>I have a basic setup; (which I have
                          inherited, hence the basic questions);</div>
                        <div><br>
                        </div>
                        <div>AS5350--------&lt;external&gt;-----
                          FS-----&lt;internal&gt;------customer GW(s)  </div>
                        <div>(No Registration)<span style="white-space:
                            pre-wrap;"> </span>(No Registration)</div>
                        <div><br>
                        </div>
                        <div>All of the GW info is pulled from a PSWL
                          database. Carriers, carrier_id, lcr table etc.</div>
                        <div><br>
                        </div>
                        <div>The bit I am missing is;</div>
                        <div><br>
                        </div>
                        <div>If all of my GW config is in the PSQL
                          database, and that's all accessed by mod_lcr
                          before routing the call, how do I allow for
                          different DTMF types, codecs etc, PER CUSTOMER
                          GW ?</div>
                        <div><br>
                        </div>
                        <div>Am I stuck with actually defining the
                          gateways statically under
                          /etc/freeswitch/conf/sip_profiles/ (or I see I
                          can doit in the dialplan, but that won't
                          achieve what I need)</div>
                        <div><br>
                        </div>
                        <div>
                          I was hoping to be able to pull the DTMF (and
                          other misc info) from the database, but the
                          more I look into it,  the less likely it is
                          that this will work I think. (mod_lcr is
                          already at the routing stage, can't modify
                          DTMF at that point AFAIK)</div>
                        <div><br>
                        </div>
                        <div>Like I said, hope the question isn't so
                          obvious that it's crazy…</div>
                        <div><br>
                        </div>
                        <div>Regards,</div>
                        <div>Mike</div>
                      </div>
                    </div>
                  </span></div>
                <br>
                _______________________________________________<br>
                FreeSWITCH-users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                  target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                UNSUBSCRIBE:<a moz-do-not-send="true"
                  href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                  target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                <br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
  </body>
</html>