Hello,<br><br>How to use log function in lua, i am using as below.<br><br>LCause = session:hangupCause() ;<br> <br>freeswitch.consoleLog("info", "hangupcause: ".. LCause .." );<br><br>I know i am wrong somewhere .<br>
<br>Regards<br>Sam<br><br><br><br><div class="gmail_quote">On Fri, Dec 17, 2010 at 1:28 AM, samir [via freeswitch-users] <span dir="ltr"><<a href="mailto:ml-node%2B5843222-471532028-292429@n2.nabble.com">ml-node+5843222-471532028-292429@n2.nabble.com</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 class="im">
        <br>I am not able to fetch the hangup cause in the dial-plan by using log function .<br>I would like to use that hangup cause variable for further routing so that<br>the routing would be conditional to hangup cause. <br>
<br>
Regards<br>Sam<br><br></div><div class="gmail_quote"><div class="im">On Wed, Dec 15, 2010 at 9:48 AM, samir <span dir="ltr"><<a href="http://user/SendEmail.jtp?type=node&node=5843222&i=0" rel="nofollow" target="_blank">[hidden email]</a>></span> wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 2px solid rgb(204, 204, 204); padding: 0pt 1em;"><div class="im">
<br>
Hello friends,<br>
<br>
was trying to create a routing rule to to route calls by accounting to the<br>
hangup causes,<br>
<br>
I have written below syntax but it fails to give the cause code to the<br>
varriable for routing.<br>
<br>
<extension name="refer"><br>
<condition field="destination_number" expression="^1234$"><br>
<br>
<br></div>
<action application="bridge" data="<a href="http://user/SendEmail.jtp?type=node&node=5843222&i=1" rel="nofollow" target="_blank">[hidden email]</a>"/><div class="im"><br>
<action application="set" data="hangup_after_bridge=false"/><br>
<action application="set" data="continue_on_fail=true"/><br>
<action application="log" data="1 B-leg hangup cause:<br>
${bridge_hangup_cause}"/><br>
<action application="transfer" data="${bridge_hangup_cause} XML<br>
conbridge"/><br>
<br>
</condition><br>
<br>
<br>
</extension><br>
<br>
<extension name="no user"><br>
<condition field="destination_number"<br>
expression="^(NO_USER_RESPONSE)$"><br>
<action application="bridge"<br></div>
data="<a href="http://user/SendEmail.jtp?type=node&node=5843222&i=2" rel="nofollow" target="_blank">[hidden email]</a>"/><div class="im"><br>
<br>
</condition><br>
</extension><br>
<br>
<br>
here the ${bridge_hangup_cause} is not getting executed. Am I doing it right<br>
or is there any other way to do it.<br>
<br>
Regards<br>
Sam<br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/routing-via-hangup-cause-tp5837136p5837136.html?by-user=t" rel="nofollow" link="external" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/routing-via-hangup-cause-tp5837136p5837136.html</a><br>
Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
</div><a href="http://user/SendEmail.jtp?type=node&node=5843222&i=3" rel="nofollow" target="_blank">[hidden email]</a><div class="im"><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="nofollow" link="external" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="nofollow" link="external" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="nofollow" link="external" target="_blank">http://www.freeswitch.org</a><br>
</div></blockquote></div><br>
<br>_______________________________________________
<br>FreeSWITCH-users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=5843222&i=4" rel="nofollow" target="_blank">[hidden email]</a>
<br><div class="im"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="nofollow" link="external" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="nofollow" link="external" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="nofollow" link="external" target="_blank">http://www.freeswitch.org</a><br>
        <br>
        <br>
        </div><hr color="#cccccc" size="1" noshade>
        <div style="color: rgb(102, 102, 102); font-family: tahoma,geneva,helvetica,arial,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
                View message @ <a href="http://freeswitch-users.2379917.n2.nabble.com/routing-via-hangup-cause-tp5837136p5843222.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/routing-via-hangup-cause-tp5837136p5843222.html</a><br>
                
                To unsubscribe from routing via hangup_cause, <a href="http://freeswitch-users.2379917.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5837136&code=dTJuc2FtQGdtYWlsLmNvbXw1ODM3MTM2fC0xMTk1MzYwMDk5" target="_blank">click here</a>.
        </div></blockquote></div><br>