[Freeswitch-users] routing via hangup_cause

Sam u2nsam at gmail.com
Fri Dec 17 19:17:23 MSK 2010


Hello,

How to use log function in lua, i am using as below.

LCause = session:hangupCause() ;

freeswitch.consoleLog("info", "hangupcause: ".. LCause .." );

I know i am wrong somewhere .

Regards
Sam



On Fri, Dec 17, 2010 at 1:28 AM, samir [via freeswitch-users] <
ml-node+5843222-471532028-292429 at n2.nabble.com<ml-node%2B5843222-471532028-292429 at n2.nabble.com>
> wrote:

>
> I am not able to fetch the hangup cause in the dial-plan by using log
> function .
> I would like to use that hangup cause variable for further routing so that
> the routing would be conditional to hangup cause.
>
> Regards
> Sam
>
> On Wed, Dec 15, 2010 at 9:48 AM, samir <[hidden email]<http://user/SendEmail.jtp?type=node&node=5843222&i=0>
> > wrote:
>
>>
>> Hello friends,
>>
>> was trying to create a routing rule to to route calls by accounting to the
>> hangup causes,
>>
>> I have written below syntax but it fails to give the cause code to the
>> varriable for routing.
>>
>> <extension name="refer">
>>               <condition field="destination_number" expression="^1234$">
>>
>>
>>       <action application="bridge" data="[hidden email]<http://user/SendEmail.jtp?type=node&node=5843222&i=1>
>> "/>
>>
>>       <action application="set" data="hangup_after_bridge=false"/>
>>       <action application="set" data="continue_on_fail=true"/>
>>       <action application="log" data="1 B-leg hangup cause:
>> ${bridge_hangup_cause}"/>
>>       <action application="transfer" data="${bridge_hangup_cause} XML
>> conbridge"/>
>>
>>               </condition>
>>
>>
>>   </extension>
>>
>>       <extension name="no user">
>>               <condition field="destination_number"
>> expression="^(NO_USER_RESPONSE)$">
>>               <action application="bridge"
>> data="[hidden email]<http://user/SendEmail.jtp?type=node&node=5843222&i=2>
>> "/>
>>
>>
>>               </condition>
>>       </extension>
>>
>>
>> here the ${bridge_hangup_cause} is not getting executed. Am I doing it
>> right
>> or is there any other way to do it.
>>
>> Regards
>> Sam
>> --
>> View this message in context:
>> http://freeswitch-users.2379917.n2.nabble.com/routing-via-hangup-cause-tp5837136p5837136.html<http://freeswitch-users.2379917.n2.nabble.com/routing-via-hangup-cause-tp5837136p5837136.html?by-user=t>
>> Sent from the freeswitch-users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=5843222&i=3>
>>
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=5843222&i=4>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> ------------------------------
>  View message @
> http://freeswitch-users.2379917.n2.nabble.com/routing-via-hangup-cause-tp5837136p5843222.html
> To unsubscribe from routing via hangup_cause, click here<http://freeswitch-users.2379917.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5837136&code=dTJuc2FtQGdtYWlsLmNvbXw1ODM3MTM2fC0xMTk1MzYwMDk5>.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101217/38c49be4/attachment.html 


More information about the FreeSWITCH-users mailing list