<br><br><div class="gmail_quote">On Mon, Feb 1, 2010 at 5:37 AM, mailinglist <span dir="ltr"><<a href="mailto:mailinglist@fribert.dk">mailinglist@fribert.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="margin: 4px 4px 1px; font-family: Segoe UI; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<div>Hmm, I've just downloaded the default.xml under conf/dialplan from the SVN just to be on the safe side.</div>
<div>Line 758 is the last </include>, but I did find some examples on line 249-251.</div>
<div> </div>
<div>So I've changed my dialplan entry handling calls from the outside to this:</div>
<div><div class="im"><br><extension name="PrivateIn"><br> <condition field="destination_number" expression="^(8202)$"><br></div><div class="im"> <action application="bind_meta_app" data="1 b s execute_extension::att_xfer XML features"/><br>
</div> <action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/><div class="im"><br> <action application="set" data="call_timeout=45"/><br>
<action application="set" data="domain_name=10.11.12.25"/><br> <action application="set" data="continue_on_fail=true"/><br> <action application="set" data="hangup_after_bridge=true"/><br>
<action application="set" data="transfer_ringback=$${hold_music}"/><br> <action application="bridge" data="<a href="mailto:group/private@$%7Bdomain_name%7D%22/" target="_blank">group/private@${domain_name}"/</a>><br>
<action application="answer" data=""/><br> <action application="sleep" data="1000"/><br> <action application="voicemail" data="default 10.11.12.25 45"/><br>
</condition><br></extension><br></div></div>
<div>As I understand the bind_meta_app it listens for *1 and then it runs the att_xfer, *2 to record the call.</div>
<div>I've included the att_xfer in the XML features.</div>
<div> </div>
<div>Question is, will it work at all when I bridge to a group?</div>
<div> </div>
<div>Nothing happens when I press *1 and an extension.</div></div></blockquote><div><br>Fribse,<br><br>I think your confusion might be from the purpose of the bind_meta_app application. The *1 or *2, etc. must be dialed after the call has been established. In other words, bind_meta_app sits there on an existing call, listening for *1 or *2 (etc.) and if the person on the appropriate call leg dials it then the application in bind_meta_app gets executed. Example:<br>
<br><action application="bind_meta_app" data="2 b s record_session::$${recordings_<div>dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/><br><br>The "2 b s" part of that means: Listen for *2 on the b leg and execute the app on the s leg. So, the b leg could dial *2 and it would initiate call recording. <br>
<br>Let's take a step back... are you sure you need bind_meta_app? What exactly is your use case here? In general terms, what are you trying to accomplish with your dialplan extension?<br><br>-MC<br></div><br></div></div>
<br>