Re: [Freeswitch-users] Caller id number in dialplan

2008-08-17 Thread Ivan C Myrvold
Now there is just 1 remaining issue I have with this, how to capture the dialed number in the first condition, as I have done with the parantheses in the destination_number expression, and use that in the bridge in the other two conditions. Is that possible? I tried with the below xml, but

Re: [Freeswitch-users] Caller id number in dialplan

2008-08-17 Thread Brian West
Your first condition you have shouldn't need a break= tag. If you look at the Local_Extension example in the default config it does exactly this. extension name=Outbound_ip24 condition field=destination_number expression=^(.+)$ action application=set data=dialed_ext=$1/ /condition

Re: [Freeswitch-users] Caller id number in dialplan

2008-08-17 Thread Ivan C Myrvold
Yes you are right. I tried without it, and the dialplan went correctly into the second condition. But I still get the wroung bridge ($1): 2008-08-17 10:52:04 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/external/$1 [43ab7180-5c72-4265-a084-c50cc69bf535] Ivan

Re: [Freeswitch-users] Caller id number in dialplan

2008-08-17 Thread Brian West
You didn't pay attention to what I did. Notice in your first condition I set dialed_ext=$1 /b On Aug 17, 2008, at 4:00 AM, Ivan C Myrvold wrote: Yes you are right. I tried without it, and the dialplan went correctly into the second condition. But I still get the wroung bridge ($1):

Re: [Freeswitch-users] Caller id number in dialplan

2008-08-17 Thread Ivan C Myrvold
Sorry about that. Yes, you are absolutely right. Now it works perfect. Thanks again! Ivan On 17. aug.. 2008, at 11:07, Brian West wrote: You didn't pay attention to what I did. Notice in your first condition I set dialed_ext=$1 /b On Aug 17, 2008, at 4:00 AM, Ivan C Myrvold wrote: Yes

Re: [Freeswitch-users] Mod_perl build error

2008-08-17 Thread Sheeju Alex
Thanks Brian, that really get me going On Fri, Aug 15, 2008 at 8:04 PM, Brian West [EMAIL PROTECTED] wrote: install gdbm-devel /b On Aug 15, 2008, at 9:24 AM, Sheeju Alex wrote: /usr/bin/ld: cannot find -lgdbm Brian West sip:[EMAIL PROTECTED]

[Freeswitch-users] set channel variable using PERL

2008-08-17 Thread Sheeju Alex
Hello All, I am trying to figure out the way to set channel variable through perl script so I could fetch the data required from database and pass accordingly to the dialplan. Here is the example I am trying but was not successfull with it, It would be great if I get some advice on this.

Re: [Freeswitch-users] set channel variable using PERL

2008-08-17 Thread Michael Jerris
When you run any of the embedded languages like this as an app we magically create an object called session for you of the session that is running the app. Do the same thing you did in your script but don't create csession just use session instead. Mike On Aug 17, 2008, at 5:34 AM, Sheeju

Re: [Freeswitch-users] set channel variable using PERL

2008-08-17 Thread Michael S Collins
In other words change $csession to $session in your script and remove the line with freeswitch::CoreSession and try again. -MC Sent from my iPhone On Aug 17, 2008, at 8:56 AM, Michael Jerris [EMAIL PROTECTED] wrote: When you run any of the embedded languages like this as an app we

[Freeswitch-users] Problem using originate

2008-08-17 Thread B Karthik
Hi, With bridge app, Freeswitch is able to place calls to multiple extensions simultaneously. But with originate, is it possible? If Yes, can anyone give me an example. The timeout option with originate also does not seem to work correctly. Timeout is not working (rings like a normal call and

[Freeswitch-users] Problem in geting call duration

2008-08-17 Thread Anand Kumar
Hi All, Please help me, I am trying to find out call answer time duration. i have tested in 2 way.. 1. Make one call using FS and call is terminate on pstn and i hangup from the softphone that time i got answer time using .. var callduration=session.getVariable(duration); console_log() Your

Re: [Freeswitch-users] Problem using originate

2008-08-17 Thread Anand Kumar
try to dial like new_session = new Session(); new_session.originate(session,sofia/internal/[EMAIL PROTECTED] ,15); Anand Dayal On Sun, Aug 17, 2008 at 11:23 PM, B Karthik [EMAIL PROTECTED] wrote: Hi, With bridge app, Freeswitch is able to place calls to multiple extensions simultaneously.

Re: [Freeswitch-users] [Freeswitch-dev] conference.freeswitch.org via ipv6 (Testing)

2008-08-17 Thread John Skopis (Lists)
Brian West wrote: http://www.tunnelbroker.net If you need/want ipv6 tunnels. sixxs also http://www.sixxs.net/pops/occaid/ ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org

Re: [Freeswitch-users] conference.freeswitch.org via ipv6 (Testing)

2008-08-17 Thread Michael S Collins
Nice work!! -MC Sent from my iPhone On Aug 17, 2008, at 4:06 PM, Brian West [EMAIL PROTECTED] wrote: If you have native ipv6 or a tunnel to ipv6 connectivity you can now call sip:[EMAIL PROTECTED]:470:7:ea::2]:5060 to join the freeswitch conference. I have also added to svn

[Freeswitch-users] Can self control switch_channel_set_name() ?

2008-08-17 Thread Lee JJ
Hello : My client is [EMAIL PROTECTED] (210.243.126.69 [EMAIL PROTECTED](210.243.126.69) call [EMAIL PROTECTED] (210.243.126.72) , but the channel name turn into calle domain ( sofia/ inter2/ ?? ) This should not be right . How to avoid it ? or Can self control switch_channel_set_name() ?

Re: [Freeswitch-users] Can self control switch_channel_set_name() ?

2008-08-17 Thread Brian West
You can however override the channel name with the set_name application. The channel name means little. It doesn't indicate anything. /b On Aug 17, 2008, at 10:58 PM, Lee JJ wrote: This should not be right . How to avoid it ? or Can self control switch_channel_set_name() ?