Re: [Freeswitch-users] BLF on Grandstream GXP2020

2009-12-23 Thread Yuriy Ivzhenko
Yes i'l be happy to see some working examples :)

I can't fully understand how freeswitch conceptually manage presence events.
And i not found any information about it in wiki.
With default configuration fs sends some notifications to subscribed phones 
without use any external scripts, but this works very unpredictable. (in most 
situations BLF change state only once and only for dialing side. after reboot 
phone  BLF state may be change again on some events or may not change any 
more)

if i use the following script blf state changed but only once after reboot the 
phone


#!/usr/bin/php
addHeader("proto", "sip");
$e1->addHeader("from", "$usern...@$domain");
$e1->addHeader("login", "$usern...@$domain");
$e1->addHeader("event_type", "presence");
$e1->addHeader("alt_event_type", "dialog");
$e1->addHeader("Presence-Call-Direction", "outbound");
$e1->addHeader("answer-state", $State);

$res = $esl1->sendEvent($e1);
}

SendEvent('220',"mydomain.net","confirmed");
sleep(4);
SendEvent('220',"mydomain.net","terminated");

?>



On Tuesday 22 December 2009 21:51:25 mm_202 wrote:
> Yuriy,
>
> The FS wiki has examples of how to control the BLF/MWI using events.
> I had no problem getting to work with my GXP2020.
>
> Let me know if you want some direct code examples.
>
> -- MM.
>
> On Thu, Dec 17, 2009 at 6:05 AM, Yuriy Ivzhenko  wrote:
> > Hallo All!
> > I need information about setup BLF on GXP2010/2020 phones with
> > Freeswitch. I search in Freeswitch Wiki and maillist archives but find no
> > usable information.
> >
> > ___
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users@lists.freeswitch.org
> > 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
> FreeSWITCH-users@lists.freeswitch.org
> 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
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


[Freeswitch-users] BLF on Grandstream GXP2020

2009-12-17 Thread Yuriy Ivzhenko
Hallo All!
I need information about setup BLF on GXP2010/2020 phones with Freeswitch.
I search in Freeswitch Wiki and maillist archives but find no usable 
information.

___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] Grangstream Early Dial

2009-08-13 Thread Yuriy Ivzhenko
On Thursday 13 August 2009 16:47:18 Brian West wrote:
> I don't think we ever got this working correctly.  Can you do a trace
> of it working vs not working?

I can't do working trace, only not working

http://pastebin.freeswitch.org/9980

with dialplan action
 



>
> /b
>
> On Aug 13, 2009, at 3:14 AM, Yuriy Ivzhenko wrote:
> > Hello all.
> >
> > I want to use Grandstream Early Dial future.
> > How i can enable support 484 response?
> >
> > I tried simply use
> > 
> > and
> > 
> > on uncompleted extensions,
> > but there is not work
> >
> >
> > Thanks.
> >
> > Yuriy .
>
> ___
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> 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
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


[Freeswitch-users] Grangstream Early Dial

2009-08-13 Thread Yuriy Ivzhenko
Hello all.

I want to use Grandstream Early Dial future.
How i can enable support 484 response?

I tried simply use

and

on uncompleted extensions, 
but there is not work


Thanks.

Yuriy .


___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] Freeswitch architecture

2009-07-14 Thread Yuriy Ivzhenko
On Wednesday 08 July 2009 16:29:50 Brian West wrote:
> http://wiki.freeswitch.org

i not found any essential information about architecture :-(
 may be bad looking?


>
> /b
>
> On Jul 8, 2009, at 7:42 AM, Maxim Tsvetov wrote:
> > Hi All
> >
> > Where can I get information about internal Freeswitch architecture:
> >   1) how modules interoperates with each other (maybe using corba or
> > com
> > objects or something else)
> >   2) how core interoperates with other modules
> >   3) how javascript function is translated to internal commands.
> >
> > In addition if you cand send me some schemas of Freeswitch
> > architecture
> > that will be great.
> >
> > Regards,
> > Maxim Tsvetov
> >
> > ___
> > Freeswitch-users mailing list
> > Freeswitch-users@lists.freeswitch.org
> > 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
> Freeswitch-users@lists.freeswitch.org
> 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
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] mod_nibblebill not set variablenibble_total_billed

2009-06-17 Thread Yuriy Ivzhenko
Ok, i understand!
This variable sets for event CHANNEL_HANGUP_COMPLETE, not for CHANNEL_HANGUP 
:-)
 

On Tuesday 16 June 2009 19:59:28 you wrote:
> That should not be the case - I will double check this. My apologies if I
> broke it. :-(
>
> Please file a bug on this so I don't forget.
>
>   _
>
> From: Yuriy Ivzhenko [mailto:yivzhe...@mksat.net]
> Sent: Tuesday, June 09, 2009 1:26 AM
> To: freeswitch-users@lists.freeswitch.org
> Subject: [Freeswitch-users] mod_nibblebill not set
> variablenibble_total_billed
>
>
>
> Some time ago mod_nibblebill was set variable nibble_total_billed after
> hangup.
>
> But after last few updates of module this variable is no more sets.
>
> Somebody else have this problem?

___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


[Freeswitch-users] mod_nibblebill not set variable nibble_total_billed

2009-06-09 Thread Yuriy Ivzhenko

Some time ago mod_nibblebill was set variable nibble_total_billed after 
hangup.
But after last few updates of module this variable is no more sets.

Somebody else have this problem?



___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] mod_lcr caller id

2009-06-04 Thread Yuriy Ivzhenko
Impressive!!! :)


On Thursday 04 June 2009 16:57:52 Rupa Schomaker wrote:
> Update to at least rev 13611 and mod_lcr will check
> "effective_caller_id_number" prior to the real callerid on the channel.
> This works in the same way that bridge does so no surprises.
>
> On Thu, Jun 4, 2009 at 8:15 AM, Yuriy Ivzhenko  wrote:
> >  On Thursday 04 June 2009 15:54:24 Rupa Schomaker wrote:
> > > The API mthod of setting the callerid is really for testing purposes.
> > >
> > > Since you have no callerid from the FS command line interface I added a
> > >
> > > parameter you can pass to specify the CID.
> > >
> > >
> > >
> > > When in the dialplan you actually have the CID, so none is used.
> > >
> > >
> > >
> > > mod_lcr is just grabbing the callerid on the channel. I assme this is
> > > not
> > >
> > > the base callerid you want passed to the sip provider?
> >
> > Yes, there is internal callerid on the channel. I have external (PSTN)
> > number, associated with this internal number. And i need to pass them to
> > provider.
> >
> >
> > ___
> > Freeswitch-users mailing list
> > Freeswitch-users@lists.freeswitch.org
> > 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
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] mod_lcr caller id

2009-06-04 Thread Yuriy Ivzhenko

On Thursday 04 June 2009 15:54:24 Rupa Schomaker wrote:
> The API mthod of setting the callerid is really for testing purposes. 
> Since you have no callerid from the FS command line interface I added a
> parameter you can pass to specify the CID.
>
> When in the dialplan you actually have the CID, so none is used.
>
> mod_lcr is just grabbing the callerid on the channel.  I assme this is not
> the base callerid you want passed to the sip provider?
>
Yes, there is internal callerid on the channel. I have external (PSTN) number, 
associated with this internal number. And i need to pass them to provider.






___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


[Freeswitch-users] mod_lcr caller id

2009-06-04 Thread Yuriy Ivzhenko
Hello. 
I have another problem with setting caller  id with cid field.

command lcr has parameter [caller_id].
and if i call lcr from the commandline  it works fine,
but if i call lcr from dialplan it ignores this parameter and use original 
caller id from caller.

my cid field = /^(.*)$/999$1/
If i call lcr from the commandline 
lcr 444555 default 1
lcr return origination_caller_id_number=9991

but if i call lcr from dialplan

lcr return origination_caller_id_number=9991002
1002 is a original caller id number

There is  a way to use this parameter from dialplan? 


Yuriy

___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


[Freeswitch-users] effective_caller_id_number on bridge dialstring

2009-06-02 Thread Yuriy Ivzhenko
Hello all.

I have test the lcr overriding the Caller ID functionality.
It return dialstring, that contains 'effective_caller_id_number' variable.
But that variable has no effect.

I try test configuration









There is  no result. (caller id number not changed)
But If I uncomment the set line, then the caller_id_number changes.

I found the similar  bug (http://jira.freeswitch.org/browse/MODAPP-122) and his 
status - fixed.

may be i not consider something?
I use svn trunk 13544.

Yuriy

___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] Set nibblebill variables on B-leg

2009-05-14 Thread Yuriy Ivzhenko
Thanks for answer, i try to 


 

but it not resolve my problem.
Billing still begins on A-leg before the B-leg answered. So, bill time include 
ringback time.


Here is some debug output:

EXECUTE ... info()  
   
...
Unique-ID: [9441ad16-3fce-11de-baaf-f74f6eef9491]   
...
...
 [DEBUG] switch_ivr_originate.c:1708 switch_ivr_originate() Play Ringback File 
[local_stream://rb_music1]  
 [DEBUG] mod_local_stream.c:346 local_stream_file_open() Opening Stream 
[rb_music1] 8000hz 
 [DEBUG] mod_nibblebill.c:459 event_handler() Received request via 
SESSION_HEARTBEAT!  
 [DEBUG] mod_nibblebill.c:345 do_billing() Attempting to bill at $6.0 per 
minute to account 3  
 [INFO] mod_nibblebill.c:387 do_billing() Beginning new billing on 
9441ad16-3fce-11de-baaf-f74f6eef9491
 [DEBUG] mod_nibblebill.c:395 do_billing() 0 seconds passed since last bill 
time of 2009-05-13 17:58:55
 [DEBUG] mod_nibblebill.c:402 do_billing() Billing $0.036643 to 3 (Call: 
9441ad16-3fce-11de-baaf-f74f6eef9491 / 0.00 so far) 
 



On Wednesday 13 May 2009 16:46:37 Rupa Schomaker wrote:
> Put them on the dialstring:
>
> application="bridge" data="{nibblevar1=val1,nibblevar2=val2}sofia/blah"
>
> On Wed, May 13, 2009 at 5:32 AM, Yuriy Ivzhenko  wrote:
> >  Hi All,
> >
> > I want to use mod_nibblebill for billing outgoing calls.
> >
> > My problem is billing begins before other paty answers the call.
> >
> > The WiKi tells: "You need to set the billing variables on your outbound
> > calling leg and NOT on your A-Leg."
> >
> > How i can set nibblebill variables when B-leg connects?
> >
> > ___
> > Freeswitch-users mailing list
> > Freeswitch-users@lists.freeswitch.org
> > 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
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


[Freeswitch-users] Set nibblebill variables on B-leg

2009-05-13 Thread Yuriy Ivzhenko
Hi All,

I want to use mod_nibblebill for billing outgoing calls.
My problem is billing begins before other paty answers the call.

The WiKi tells: "You need to set the billing variables on your outbound 
calling leg and NOT on your A-Leg."

How i can set nibblebill variables when B-leg connects?
___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] Use rates from lcr in nibblebill module

2009-04-03 Thread Yuriy Ivzhenko (WP)
Thanks for variables and explanation. Work fine!
Now wait for nibblebill can hangup connection when  balance hits 0.00 


On Thursday 02 April 2009 15:37:28 Rupa Schomaker wrote:
> Update the to the latest.  I've added more channel vars:
>
> eg:
>
> after doing:
>
> 
> (not a real number)
>
> I get the following:
>
> variable_lcr_query_digits: [12148267722]
> variable_lcr_query_profile: [0]
> variable_lcr_query_expanded_digits: [12148267722, 1214826772, 121482677,
> 12148267, 1214826, 121482, 12148, 1214, 121, 12, 1]
> variable_lcr_route_1:
> [[lcr_carrier=teliax,lcr_rate=0.01000,absolute_codec_string=PCMU]sofia/gate
>way/teliax/12148267722] variable_lcr_rate_1: [0.01000]
> variable_lcr_carrier_1: [teliax]
> variable_lcr_codec_1: [PCMU]
> variable_lcr_route_2:
> [[lcr_carrier=vitelity,lcr_rate=0.01440,absolute_codec_string=PCMU]sofia/ga
>teway/vitelity/12148267722] variable_lcr_rate_2: [0.01440]
> variable_lcr_carrier_2: [vitelity]
> variable_lcr_codec_2: [PCMU]
> variable_lcr_route_count: [2]
> variable_lcr_auto_route:
> [[lcr_carrier=teliax,lcr_rate=0.01000,absolute_codec_string=PCMU]sofia/gate
>way/teliax/12148267722|[lcr_carrier=vitelity,lcr_rate=0.01440,absolute_codec
>_string=PCMU]sofia/gateway/vitelity/12148267722] variable_import:
> [lcr_carrier,lcr_rate]
>
> which, I think is what you are asking for.  If you know which route you are
> going to use (eg: 1) then you can get it's rate by using lcr_rate_1.
>
> Alternatively, you can use the lcr_auto_route and then once the b-leg
> connects, query the b-leg variable for lcr_carrier and lcr_rate to see
> which one was actually used.
>
> You really can't use lcr_auto_route and set a single rate since each leg
> can be rated differently (look at example above).
>
> Normally lcr is used for your own rates between you and your carrier.  That
> is independant of the rate table used for your customers.  You can use lcr
> to query both.  First use lcr to query your own rates using a different
> profile.  This would return a *single* route if you setup your route table
> right.  Save the rate in a var to be used with nibble bill.  Then use lcr
> with your external rates so you can route according to your own cost with
> your carrier(s).
>
> On Thu, Apr 2, 2009 at 5:22 AM, Yuriy Ivzhenko (WP) 
wrote:
> > Hi,
> >
> > I want to use module lcr to find a best route and his rate , then make a
> > call
> > and bill on that rate with nibblebill module.
> >
> > lcr return variable "lcr_auto_route" that contains "[lcr_rate=xxx]"
> > variable
> > for new channel.
> > To use nibblebill i need to set "nibble_rate"  = "lcr_rate".
> >
> > What is best method to do that?
> > Is there a way to do that with standard tools, without use external
> > scripts?
> >
> >
> > Thanks,
> > Yuriy
> >
> > ___
> > Freeswitch-users mailing list
> > Freeswitch-users@lists.freeswitch.org
> > 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
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


[Freeswitch-users] Use rates from lcr in nibblebill module

2009-04-02 Thread Yuriy Ivzhenko (WP)
Hi,

I want to use module lcr to find a best route and his rate , then make a call 
and bill on that rate with nibblebill module.

lcr return variable "lcr_auto_route" that contains "[lcr_rate=xxx]" variable 
for new channel.
To use nibblebill i need to set "nibble_rate"  = "lcr_rate".

What is best method to do that?
Is there a way to do that with standard tools, without use external scripts?


Thanks,
Yuriy

___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org