Re: [asterisk-users] Forking a call

2010-12-22 Thread mickael ropars
Hi Mike,

Fork will generated 2 CDRs, and will seperate CDRs

But seems that there is a trouble in 1.6 (1.4 was working fine)

For exemple : phone A (leg A) is called, I play some background sound and
before putting in relation with phone B (leg B) I do a ForkCDR()

in 1.4 billsec in the first CDRs whas the call time on leg A and in the
second CDR the time of call on leg B
in 1.6 billsec on the two CDRs is the call time on leg B

in my case it cause some trouble since I cannot not charge the introduction
message (background sound)

Is it a known Bug ? or may be it's not a bug?


regards

Mickael


2010/9/23 Mike 

>  Hi,
>
>
>
> Using 1.6.2.13.
>
>
>
> I'd like to know how I can force Asterisk to fork a call.  To simplify
> things, Let's say I have an out context (for outbound calls) and an in (for
> inbound).  If person A wants to call person B, and both are on my servers, I
> don`t want to send the call out.  I want all this to happen internally on my
> server.
>
>
>
> The problem is if I use some condition to send calls in my out context back
> to my in context, some channel variables get mixed up, and (for example)
> when the calling part puts the called party on hold, the music on hold used
> is the called party's music.  I am sure there are some less benign problems
> that could come with that.
>
>
>
> Is ForkCDR() what I am looking for? Any things I gotta watch out for when
> using it?
>
>
>
> I basically would like Asterisk to treat this call as two separate calls,
> as if one was completely outbound and the second an independant inbound
> call.
>
>
>
> Mike
>
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>   http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] IAX ans SS7

2010-01-23 Thread mickael ropars
ok thanks a lot Alex, I will check SIP-T RFCs

Mickael

2010/1/23 Alex Balashov 

> On 01/22/2010 07:12 PM, mickael ropars wrote:
> > Hi all,
> >
> > what is the signalling of IAX?
> >
> > Currently I want to connect two switch through IP using asterik
> > signaling, and I want to transfer SS7 over IP (between the 2 asterisk),
> > will IAX can transfer SS7 signalling through IP (like TDMoIP does) If no
> > which solution can I use?
> >
> > see below the architecture
> >
> > switch1-Asterisk--Asterisk
> > --Switch
> >E1  IP
> >  E1
> >
>
> To some extent, yes, but only very basically.  IAX2 doesn't have the
> ability to pass through ISUP attributes.  For that, you would need SIP-T.
>
> --
> Alex Balashov - Principal
> Evariste Systems LLC
>
> Tel: +1 678-954-0670
> Direct : +1 678-954-0671
> Web: http://www.evaristesys.com/
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] IAX ans SS7

2010-01-22 Thread mickael ropars
Hi all,

what is the signalling of IAX?

Currently I want to connect two switch through IP using asterik signaling,
and I want to transfer SS7 over IP (between the 2 asterisk), will IAX can
transfer SS7 signalling through IP (like TDMoIP does) If no which solution
can I use?

see below the architecture

switch1-Asterisk--Asterisk
--Switch
  E1  IP
  E1
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] receive text

2010-01-17 Thread mickael ropars
you can also use fix phone SMS sending and receiving if your provider allow
sending and receiving SMS over the fixed phone line (.using FXO/FXS
interface)

the other way is to use kamalio (send and receive SMS through serial
interface) this can be a good solution but I think this can not be used
production since serial interface is a synchronized interface. So if you
loose the synchronisation then you can not send and receive SMS

currently what I use a multitech SMS server, which is easy to integrate but
not free. If you want more information about this SMS server let me know.

regards

Mickael




2010/1/18 Steve Murphy 

>
>
>  On Sun, Jan 17, 2010 at 7:34 AM, Thomas Perron 
> wrote:
>
>> Is there any code that I can cut/paste that will allow me to receive
>> an SMS text on Asterisk?
>> and, where can I capture the incoming text?
>>
>>
> See chan_mobile in the asterisk-addons... For certain cell phones there is
> a facility there to pass an SMS on thru the phone to Asterisk.
>
> You do it all via dialplan apps
>
> in chan_mobile.c, you'll see apps MobileSendSMS(device,dest,message), which
> allows you to send an
> SMS message via the dialplan, thru the bluetooth attached phone.
>
> To get an SMS, you have to have a cellphone bluetooth attached, and capable
> of passing sms messages.
> When it reports to Asterisk via the bluetooth connection, that an SMS
> message was recieved, Asterisk
> will try to run the "sms" extension, with the channel variables SMSSRC and
> SMSTXT channel variables
> set to the appropriate values. In the dialplans you can turn this into an
> email, an announcement, a text-to-speech
> (via festival or Cepstral or whatever), or whatever your needs or
> imagination can supply.
>
> I've asked around a while back, and the only phone capable of such sms
> capabilities was one running the
> Symbian os, iirc, and that means Nokia, I guess, and Erickson, and a few
> others... according to the Wikipedia,
> it's a pretty popular smart phone OS. Hmmm, wonder if the google Android
> can handle this?
>
> Anyway, another non-hardware solution might be to use an internet SMS
> gateway (for 10 cents/msg in low volume),
> to send/receive SMS also...
>
> murf
>
>
>
>> --
>>
>> _
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
>
>
> --
> Steve Murphy
> ParseTree Corp
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] HOW to record saynumber output

2009-12-19 Thread mickael ropars
ok thanks a lot Danny. for your helpfull advice.

your are with Steve my technical guardian angels :)




2009/12/18 Danny Nicholas 

>  Saynumber just does an “EXECUTE BACKGROUND” on the files in
> /var/lib/asterisk/sounds/digits. So to “record” a saynumber output of 23 to
> a moh file, you would do sox /var/lib/asterisk/sounds/digits/20.gsm
> /var/lib/asterisk/sounds/digits/3.gsm /var/lib/asterisk/moh/23.wav.  If your
> moh processes randomly, the 23 would come up every x times.  If you use
> classes to control moh, you can make it come up each time.
>
>
>  --
>
> *From:* asterisk-users-boun...@lists.digium.com [mailto:
> asterisk-users-boun...@lists.digium.com] *On Behalf Of *mickael ropars
> *Sent:* Friday, December 18, 2009 11:30 AM
>
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* Re: [asterisk-users] HOW to record saynumber output
>
>
>
> Hi Danny,
>
> I've already have a look to those tools, but I cannot see how I can record
> the saynumber output audio into a file
>
> Mickael
>
> 2009/12/18 Danny Nicholas 
>
> If you have SOX, LAME and time, you can do about anything you want.   The
> default moh files are wav, but a lot of folks use mp3 with the mpg123
> player.
>
>
>  --
>
> *From:* asterisk-users-boun...@lists.digium.com [mailto:
> asterisk-users-boun...@lists.digium.com] *On Behalf Of *mickael ropars
> *Sent:* Friday, December 18, 2009 11:05 AM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* [asterisk-users] HOW to record saynumber output
>
>
>
> Hi all,
>
> the aims of this mail is to use saynumber fonctionality during Music On
> Hold while dialing.
>
> Music On Hold can only play a music file
>
> So Is there a way to pre-record the saynumber output and other .gsm file
> and then play the record file during Music On Hold ?
>
> all solutions are welcome
>
> regards
>
> Mickael
>
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] HOW to record saynumber output

2009-12-18 Thread mickael ropars
Hi Danny,

I've already have a look to those tools, but I cannot see how I can record
the saynumber output audio into a file

Mickael

2009/12/18 Danny Nicholas 

>  If you have SOX, LAME and time, you can do about anything you want.   The
> default moh files are wav, but a lot of folks use mp3 with the mpg123
> player.
>
>
>  --
>
> *From:* asterisk-users-boun...@lists.digium.com [mailto:
> asterisk-users-boun...@lists.digium.com] *On Behalf Of *mickael ropars
> *Sent:* Friday, December 18, 2009 11:05 AM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* [asterisk-users] HOW to record saynumber output
>
>
>
> Hi all,
>
> the aims of this mail is to use saynumber fonctionality during Music On
> Hold while dialing.
>
> Music On Hold can only play a music file
>
> So Is there a way to pre-record the saynumber output and other .gsm file
> and then play the record file during Music On Hold ?
>
> all solutions are welcome
>
> regards
>
> Mickael
>
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] HOW to record saynumber output

2009-12-18 Thread mickael ropars
Hi all,

the aims of this mail is to use saynumber fonctionality during Music On Hold
while dialing.

Music On Hold can only play a music file

So Is there a way to pre-record the saynumber output and other .gsm file and
then play the record file during Music On Hold ?

all solutions are welcome

regards

Mickael
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ASTERISK and SNMP

2009-11-30 Thread mickael ropars
Hi michal,

see below my ifconfig result :

eth0  Link encap:Ethernet  HWaddr 00:09:6B:A3:74:4B
  inet addr:192.168.2.13  Bcast:192.168.2.255  Mask:255.255.255.0
  inet6 addr: fe80::209:6bff:fea3:744b/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:594773 errors:0 dropped:0 overruns:0 frame:0
  TX packets:535227 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:67559645 (64.4 MiB)  TX bytes:217992551 (207.8 MiB)
  Interrupt:185

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:1187110 errors:0 dropped:0 overruns:0 frame:0
  TX packets:1187110 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:191364585 (182.4 MiB)  TX bytes:191364585 (182.4 MiB)

James,

thanks a lot for your advice, I will have a look to the net SNMP daemon wich
is map to a AMI command

regards

Mickael





2009/11/28 Mr. James W. Laferriere 

>Hello Mickael ,
>
> On Fri, 27 Nov 2009, mickael ropars wrote:
> > Michal,
> >
> > in the IF-MIB you only have 4 interfaces lo,eth0,eth1,sit0
> >
> > l0  which is the loopback interface
> > eth0, eth1 : ethernet interface
> > sit0 : use for PTP tunneling (use for IPv6)
> >
> > so no information on the digium interface.
> >
> > my IF MIB has also those interfaces
> >
> > I found one the solution to get status of the cards, and all snmp data.
> the
> > solution is argus :
> > http://argus.tcp4me.com/
> >
> > with this tools you can have a complete view of your system.
> > regards
> > Mickael
>
> While Argus is quite good at monitoring systems and is rather easy
> to
> manage .  In the case of Asterisk monitoring it uses the Asterisk
> Management
> Interface (ie: AMI)  not snmp .
>
>I was( and still am) hoping that the same information available to
> the
> administrator thru the AMI can/will be made available thru snmp polling &
> traps
> .  It should not be too difficult to make net-snmp's daemon make those
> connections to AMI locally on the asterisk server & then report that data
> back
> to the snmp client .  But everytime I've tried to expand snmpd's
> functionality
> I've hit nothing but failures .
>
>Twyl ,  JimL
>
> > 2009/11/27 michal kalinowski 
> >> Check this command "snmpwalk -c your_community -v 1 localhost
> interfaces"
> >>
> >> in my system it's looks like that:
> >>
> >> IF-MIB::ifNumber.0 = INTEGER: 4
> >> IF-MIB::ifIndex.1 = INTEGER: 1
> >> IF-MIB::ifIndex.2 = INTEGER: 2
> >> IF-MIB::ifIndex.3 = INTEGER: 3
> >> IF-MIB::ifIndex.4 = INTEGER: 4
> >> IF-MIB::ifDescr.1 = STRING: lo
> >> IF-MIB::ifDescr.2 = STRING: eth0
> >> IF-MIB::ifDescr.3 = STRING: eth1
> >> IF-MIB::ifDescr.4 = STRING: sit0
> >> IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
> >> IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
> >> IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
> >> IF-MIB::ifType.4 = INTEGER: tunnel(131)
> >> IF-MIB::ifMtu.1 = INTEGER: 16436
> >> IF-MIB::ifMtu.2 = INTEGER: 1500
> >> IF-MIB::ifMtu.3 = INTEGER: 1500
> >> IF-MIB::ifMtu.4 = INTEGER: 1480
> >> IF-MIB::ifSpeed.1 = Gauge32: 1000
> >> IF-MIB::ifSpeed.2 = Gauge32: 1000
> >> IF-MIB::ifSpeed.3 = Gauge32: 10
> >> IF-MIB::ifSpeed.4 = Gauge32: 0
> >> IF-MIB::ifPhysAddress.1 = STRING:
> >> IF-MIB::ifPhysAddress.2 = STRING: 0:14:5e:32:15:70
> >> IF-MIB::ifPhysAddress.3 = STRING: 0:14:5e:32:15:71
> >> IF-MIB::ifPhysAddress.4 = STRING:
> >> IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
> >> IF-MIB::ifAdminStatus.2 = INTEGER: down(2)
> >> IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
> >> IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
> >> IF-MIB::ifOperStatus.1 = INTEGER: up(1)
> >> IF-MIB::ifOperStatus.2 = INTEGER: down(2)
> >> IF-MIB::ifOperStatus.3 = INTEGER: up(1)
> >> IF-MIB::ifOperStatus.4 = INTEGER: down(2)
> >> IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
> >> IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
> >> IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00
> >> IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00
> >> IF-MIB::ifInOctets.1 = Counter32: 37919437
> >> IF-MIB::ifInOctets.2 = Counter32: 0
> >> IF-MIB::ifInOctets.3 = Counter32: 1

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
It will be the same, I already have 4 E1 interfaces. but no information in
the MIB

2009/11/28 michal kalinowski 

> Yes I know about that :) at this moment i have only machine with
> lo,eth0,eth1,sit0.
> On monday I will check that command on the server with e1 card.
>
> BR,
> Michał
>
> W dniu 27 listopada 2009 23:51 użytkownik mickael ropars
>  napisał:
> > Michal,
> >
> > in the IF-MIB you only have 4 interfaces lo,eth0,eth1,sit0
> >
> > l0  which is the loopback interface
> > eth0, eth1 : ethernet interface
> > sit0 : use for PTP tunneling (use for IPv6)
> >
> > so no information on the digium interface.
> >
> > my IF MIB has also those interfaces
> >
> > I found one the solution to get status of the cards, and all snmp data.
> the
> > solution is argus :
> > http://argus.tcp4me.com/
> >
> > with this tools you can have a complete view of your system.
> >
> > regards
> >
> > Mickael
> >
> > 2009/11/27 michal kalinowski 
> >>
> >> Check this command "snmpwalk -c your_community -v 1 localhost
> interfaces"
> >>
> >> in my system it's looks like that:
> >>
> >> IF-MIB::ifNumber.0 = INTEGER: 4
> >> IF-MIB::ifIndex.1 = INTEGER: 1
> >> IF-MIB::ifIndex.2 = INTEGER: 2
> >> IF-MIB::ifIndex.3 = INTEGER: 3
> >> IF-MIB::ifIndex.4 = INTEGER: 4
> >> IF-MIB::ifDescr.1 = STRING: lo
> >> IF-MIB::ifDescr.2 = STRING: eth0
> >> IF-MIB::ifDescr.3 = STRING: eth1
> >> IF-MIB::ifDescr.4 = STRING: sit0
> >> IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
> >> IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
> >> IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
> >> IF-MIB::ifType.4 = INTEGER: tunnel(131)
> >> IF-MIB::ifMtu.1 = INTEGER: 16436
> >> IF-MIB::ifMtu.2 = INTEGER: 1500
> >> IF-MIB::ifMtu.3 = INTEGER: 1500
> >> IF-MIB::ifMtu.4 = INTEGER: 1480
> >> IF-MIB::ifSpeed.1 = Gauge32: 1000
> >> IF-MIB::ifSpeed.2 = Gauge32: 1000
> >> IF-MIB::ifSpeed.3 = Gauge32: 10
> >> IF-MIB::ifSpeed.4 = Gauge32: 0
> >> IF-MIB::ifPhysAddress.1 = STRING:
> >> IF-MIB::ifPhysAddress.2 = STRING: 0:14:5e:32:15:70
> >> IF-MIB::ifPhysAddress.3 = STRING: 0:14:5e:32:15:71
> >> IF-MIB::ifPhysAddress.4 = STRING:
> >> IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
> >> IF-MIB::ifAdminStatus.2 = INTEGER: down(2)
> >> IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
> >> IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
> >> IF-MIB::ifOperStatus.1 = INTEGER: up(1)
> >> IF-MIB::ifOperStatus.2 = INTEGER: down(2)
> >> IF-MIB::ifOperStatus.3 = INTEGER: up(1)
> >> IF-MIB::ifOperStatus.4 = INTEGER: down(2)
> >> IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
> >> IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
> >> IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00
> >> IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00
> >> IF-MIB::ifInOctets.1 = Counter32: 37919437
> >> IF-MIB::ifInOctets.2 = Counter32: 0
> >> IF-MIB::ifInOctets.3 = Counter32: 1491657594
> >> IF-MIB::ifInOctets.4 = Counter32: 0
> >> IF-MIB::ifInUcastPkts.1 = Counter32: 335932
> >> IF-MIB::ifInUcastPkts.2 = Counter32: 0
> >> IF-MIB::ifInUcastPkts.3 = Counter32: 162961409
> >> IF-MIB::ifInUcastPkts.4 = Counter32: 0
> >> IF-MIB::ifInNUcastPkts.1 = Counter32: 0
> >> IF-MIB::ifInNUcastPkts.2 = Counter32: 0
> >> IF-MIB::ifInNUcastPkts.3 = Counter32: 131166
> >> IF-MIB::ifInNUcastPkts.4 = Counter32: 0
> >> IF-MIB::ifInDiscards.1 = Counter32: 0
> >> IF-MIB::ifInDiscards.2 = Counter32: 0
> >> IF-MIB::ifInDiscards.3 = Counter32: 0
> >> IF-MIB::ifInDiscards.4 = Counter32: 0
> >> IF-MIB::ifInErrors.1 = Counter32: 0
> >> IF-MIB::ifInErrors.2 = Counter32: 0
> >> IF-MIB::ifInErrors.3 = Counter32: 0
> >> IF-MIB::ifInErrors.4 = Counter32: 0
> >> IF-MIB::ifInUnknownProtos.1 = Counter32: 0
> >> IF-MIB::ifInUnknownProtos.2 = Counter32: 0
> >> IF-MIB::ifInUnknownProtos.3 = Counter32: 0
> >> IF-MIB::ifInUnknownProtos.4 = Counter32: 0
> >> IF-MIB::ifOutOctets.1 = Counter32: 37919437
> >> IF-MIB::ifOutOctets.2 = Counter32: 0
> >> IF-MIB::ifOutOctets.3 = Counter32: 3525337520
> >> IF-MIB::ifOutOctets.4 = Counter32: 0
> >> IF-MIB::ifOutUcastPkts.1 = Counter32: 335932
> >> IF-MIB::ifOutUcastPkts.2 = Counter32: 0
> >> IF-MIB::ifOutUcastPkts.3 = Counter32: 38811075
> >> IF-MIB::ifOut

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
 eth0 (ethernet),
> >> check IF-MIB.txt and OID from there.
> >> BR,
> >> Micha?
> >
> >When doing a snmpwalk of the IF-MIB & having a (*) installed there
> is
> > no mention of an interface associated with this card .  Now it is quite
> > possible that Digium in there wisdom has added the necessary components
> to
> > their drivers that inserts the necessary components into the IF tables
> thus
> > allowing snmp's IF-MIB to see a known interface .
> >
> >If this is the case where in the driver (or code base) might I
> find
> > this revelation .  I'd sure like to have statistics & traps being dumped
> for
> > this card .
> >
> > (*)
> > 01:09.0 Communication controller: Tiger Jet Network Inc. Tiger3XX
> Modem/ISDN
> > interface
> >
> >Tia ,  JimL
> >
> >> 2009/11/27 mickael ropars :
> >>>
> >>> Everuthing is working fine, but I have another question to SNMP users:
> >>>
> >>> There is no hardware info in the MIB.
> >>>
> >>> How can you do to send alarm (when one interface is down for exemple),
> is
> >>> there no way to check its status?
> >>>
> >>> NB: I am using a Digium card
> >>>
> >>> regards
> >>>
> >>> Mickael
> >>>
> >>> 2009/11/27 mickael ropars 
> >>>>
> >>>> Hi all,
> >>>>
> >>>> I am currently not able to configure SNMP for asterisk, but I am not
> >>>> able
> >>>> to acess to the asterisk MIB (the asterisk MIB is in
> >>>> /usr/share/snmp/mibs/)
> >>>>
> >>>>
> >>>> Does somebody has an example of smnpd.conf file wich is working ?
> >>>>
> >>>> regards
> >>>>
> >>>> Mickael
> >>>
> >>>
> >>> ___
> >>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >>>
> >>> asterisk-users mailing list
> >>> To UNSUBSCRIBE or update options visit:
> >>>   http://lists.digium.com/mailman/listinfo/asterisk-users
> >>>
> >>
> >> ___
> >> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >>
> >> asterisk-users mailing list
> >> To UNSUBSCRIBE or update options visit:
> >>  http://lists.digium.com/mailman/listinfo/asterisk-users
> >>
> >
> > --
> > +--+
> > | James   W.   Laferriere | SystemTechniques | Give me VMS |
> > | Network&System Engineer | 3237 Holden Road |  Give me Linux  |
> > | bab...@baby-dragons.com | Fairbanks, AK. 99709 |   only  on  AXP |
> > +--+
> > ___
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
Everuthing is working fine, but I have another question to SNMP users:

There is no hardware info in the MIB.

How can you do to send alarm (when one interface is down for exemple), is
there no way to check its status?

NB: I am using a Digium card

regards

Mickael

2009/11/27 mickael ropars 

> Hi all,
>
> I am currently not able to configure SNMP for asterisk, but I am not able
> to acess to the asterisk MIB (the asterisk MIB is in /usr/share/snmp/mibs/)
>
>
> Does somebody has an example of smnpd.conf file wich is working ?
>
> regards
>
> Mickael
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
thanks all for your help, I really appreciate.

now it's working

My problem was due to
Nov 27 12:56:28 trixbox1 snmpd[5743]: /etc/snmp/snmpd.conf: line 61: Error:
example config COMMUNITY not properly configured
Nov 27 12:56:28 trixbox1 snmpd[5743]: /etc/snmp/snmpd.conf: line 62: Error:
example config NETWORK not properly configured

with the link michal gave to me I succeed in getting asterisk working

regards

Mickael


2009/11/27 Lee Archer 

>  I use CentOS, and it works fairly well.   But I had to piece together
> info from several places.  I've tried it several different wants and this
> way worked, as long as asterisk is run as root.
>
>
>
> Copy asterisk-mib.txt and digium-mib.txt from /doc to
> /usr/share/snmp/mibs/
>
>
>
> mkdir /var/agentx
>
> touch /var/agentx/master
>
>
>
> My /etc/asterisk/res_snmp.conf
>
>
>
> ;
>
> ; Configuration file for res_snmp
>
> ;
>
>
>
> [general]
>
> ; We run as a subagent per default -- to run as a full agent
>
> ; we must run as root (to be able to bind to port 161)
>
> ;subagent = yes
>
> ; SNMP must be explicitly enabled to be active
>
> enabled = yes
>
>
>
> My snmp.conf
>
>
>
> rwcommunity private 127.0.0.1
>
> rocommunity public
>
> disk /
>
> master agentx
>
> agentXperms 0660 0550 root root
>
>
>
> restart snmp and the /var/agentx/master should look like srw-rw 1 root
> root 0 Nov 25 11:31 /var/agentx/master
>
>
>
> restart asterisk manually and you see a net-snmp connect.
>
>
>
> export MIBS=+ASTERISK-MIB
>
>
>
> You should be able to to do a snmpwalk -v 2c -c public localhost asterisk
>
>
>
> Regards
>
>
>
> Lee
>
>
>
> *From:* asterisk-users-boun...@lists.digium.com [mailto:
> asterisk-users-boun...@lists.digium.com] *On Behalf Of *mickael ropars
> *Sent:* 27 November 2009 11:58
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* Re: [asterisk-users] ASTERISK and SNMP
>
>
>
> Michal
>
> please wait I found some issues in my con file
>
> 2009/11/27 mickael ropars 
>
> I am running on Trixbox so my OS is Cent0S 5.4 and the Asterisk version is
> 1.4.22-4
>
> on asterisk side Snmp module is running:
>
> > module load res_snmp.so
>   == Parsing '/etc/asterisk/res_snmp.conf': Found
>  Loading [Sub]Agent Module
>  Loaded res_snmp.so => (SNMP [Sub]Agent for Asterisk)
>
> see below my snmpd.conf file (I remove commented line for an easy reading)
>
> regards
>
> Mickael
>
>
>
>
>
> ###
> # Access Control
>
> ###
>
> 
> # First, map the community name (COMMUNITY) into a security name
> # (local and mynetwork, depending on where the request is coming
> # from):
>
> #   sec.name  source  community
> com2sec local localhost   COMMUNITY
> com2sec mynetwork NETWORK/24  COMMUNITY
>
>
> rwcommunity local
> rocommunity local
>
> 
> # Second, map the security names into group names:
>
> #   sec.model  sec.name
> group MyRWGroup v1 local
> group MyRWGroup v2clocal
> group MyRWGroup usmlocal
> group MyROGroup v1 mynetwork
> group MyROGroup v2cmynetwork
> group MyROGroup usmmynetwork
>
> 
> # Third, create a view for us to let the groups have rights to:
>
> #   incl/excl subtree  mask
> view allincluded  .1   80
>
> 
> # Finally, grant the 2 groups access to the 1 view with different
> # write permissions:
>
> #context sec.model sec.level match  read   write  notif
> access MyROGroup ""  any   noauthexact  allnone   none
> access MyRWGroup ""  any   noauthexact  allallnone
>
>
>
> ###
> # System contact information
> #
>
> syslocation Right here, right now.
> syscontact Me 
>
>
>
>
> ###
> # Process checks.
> #
> #  Make sure mountd is running
> proc mountd
>
> #  Make sure there are no more than 4 ntalkds running, but 0 is ok too.
> proc ntalkd 4
>
> #  Make sure at least one sendmail, but less than or equal to 10 are
> running.
> proc sendmail 10 1
>
>
>
> #

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
Michal

please wait I found some issues in my con file

2009/11/27 mickael ropars 

> I am running on Trixbox so my OS is Cent0S 5.4 and the Asterisk version is
> 1.4.22-4
>
> on asterisk side Snmp module is running:
>
> > module load res_snmp.so
>   == Parsing '/etc/asterisk/res_snmp.conf': Found
>  Loading [Sub]Agent Module
>  Loaded res_snmp.so => (SNMP [Sub]Agent for Asterisk)
>
> see below my snmpd.conf file (I remove commented line for an easy reading)
>
> regards
>
> Mickael
>
>
>
>
>
> ###
> # Access Control
>
> ###
>
> 
> # First, map the community name (COMMUNITY) into a security name
> # (local and mynetwork, depending on where the request is coming
> # from):
>
> #   sec.name  source  community
> com2sec local localhost   COMMUNITY
> com2sec mynetwork NETWORK/24  COMMUNITY
>
>
> rwcommunity local
> rocommunity local
>
> 
> # Second, map the security names into group names:
>
> #   sec.model  sec.name
> group MyRWGroup v1 local
> group MyRWGroup v2clocal
> group MyRWGroup usmlocal
> group MyROGroup v1 mynetwork
> group MyROGroup v2cmynetwork
> group MyROGroup usmmynetwork
>
> 
> # Third, create a view for us to let the groups have rights to:
>
> #   incl/excl subtree  mask
> view allincluded  .1   80
>
> 
> # Finally, grant the 2 groups access to the 1 view with different
> # write permissions:
>
> #context sec.model sec.level match  read   write  notif
> access MyROGroup ""  any   noauthexact  allnone   none
> access MyRWGroup ""  any   noauthexact  allallnone
>
>
>
> ###
> # System contact information
> #
>
> syslocation Right here, right now.
> syscontact Me 
>
>
>
>
> ###
> # Process checks.
> #
> #  Make sure mountd is running
> proc mountd
>
> #  Make sure there are no more than 4 ntalkds running, but 0 is ok too.
> proc ntalkd 4
>
> #  Make sure at least one sendmail, but less than or equal to 10 are
> running.
> proc sendmail 10 1
>
>
>
> ###
> # Executables/scripts
> #
>
> # a simple hello world
> exec echotest /bin/echo hello world
>
>
> ###
> # disk checks
> #
>
> disk / 1
>
>
>
> ###
> # load average checks
> #
>
> # Check for loads:
> load 12 14 14
>
>
>
> ###
> # Extensible sections.
> #
>
>
>
>
> ###
> # Pass through control.
> #
>
>
> ###
> # Subagent control
>
> #
>
> master agentx
> agentXperms 0660 0550 nobody asterisk
> SNMPD_FLAGS="${SNMPD_FLAGS} -x /var/agentx/master"
> mibs +ASTERISK-MIB
>
>
> ###########
> # Further Information
>
>
>
>
>
> 2009/11/27 michal kalinowski 
>
>> What operating system do You have ? What asterisk version You compile ?
>> After install net-snmp do You recompile asterisk with res_snmp module ?
>>
>> I'm used instruction from here
>> http://voxilla.com/2009/02/03/configuring-asterisk-snmp-support-1131
>> and everything work correctly.
>>
>> BR,
>> Michał
>> W dniu 27 listopada 2009 11:18 użytkownik mickael ropars
>>  napisał:
>> > Hi Michal,
>> >
>> > thanks a lot for you quick answer I appreciate.
>> >
>> > I run your commands and I have the following answer
>> >
>> > [localhost snmp]# snmpwalk -c local -v 1 localhost asterisk
>> > no answer
>> >
>> > [localhost snmp]# snmpwalk -c local -v 2c localhost asterisk
>> > ASTERISK-MIB::asterisk = No Such Object available on this agent at this
>> OID
>> >
>> >
>> > since I don't know

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
I am running on Trixbox so my OS is Cent0S 5.4 and the Asterisk version is
1.4.22-4

on asterisk side Snmp module is running:

> module load res_snmp.so
  == Parsing '/etc/asterisk/res_snmp.conf': Found
 Loading [Sub]Agent Module
 Loaded res_snmp.so => (SNMP [Sub]Agent for Asterisk)

see below my snmpd.conf file (I remove commented line for an easy reading)

regards

Mickael




###
# Access Control
###


# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):

#   sec.name  source  community
com2sec local localhost   COMMUNITY
com2sec mynetwork NETWORK/24  COMMUNITY


rwcommunity local
rocommunity local


# Second, map the security names into group names:

#   sec.model  sec.name
group MyRWGroup v1 local
group MyRWGroup v2clocal
group MyRWGroup usmlocal
group MyROGroup v1 mynetwork
group MyROGroup v2cmynetwork
group MyROGroup usmmynetwork


# Third, create a view for us to let the groups have rights to:

#   incl/excl subtree  mask
view allincluded  .1   80


# Finally, grant the 2 groups access to the 1 view with different
# write permissions:

#context sec.model sec.level match  read   write  notif
access MyROGroup ""  any   noauthexact  allnone   none
access MyRWGroup ""  any   noauthexact  allallnone


###
# System contact information
#

syslocation Right here, right now.
syscontact Me 



###
# Process checks.
#
#  Make sure mountd is running
proc mountd

#  Make sure there are no more than 4 ntalkds running, but 0 is ok too.
proc ntalkd 4

#  Make sure at least one sendmail, but less than or equal to 10 are
running.
proc sendmail 10 1


###
# Executables/scripts
#

# a simple hello world
exec echotest /bin/echo hello world

###
# disk checks
#

disk / 1


###
# load average checks
#

# Check for loads:
load 12 14 14


###
# Extensible sections.
#



###
# Pass through control.
#

###
# Subagent control
#

master agentx
agentXperms 0660 0550 nobody asterisk
SNMPD_FLAGS="${SNMPD_FLAGS} -x /var/agentx/master"
mibs +ASTERISK-MIB

###
# Further Information




2009/11/27 michal kalinowski 

> What operating system do You have ? What asterisk version You compile ?
> After install net-snmp do You recompile asterisk with res_snmp module ?
>
> I'm used instruction from here
> http://voxilla.com/2009/02/03/configuring-asterisk-snmp-support-1131
> and everything work correctly.
>
> BR,
> Michał
> W dniu 27 listopada 2009 11:18 użytkownik mickael ropars
>  napisał:
> > Hi Michal,
> >
> > thanks a lot for you quick answer I appreciate.
> >
> > I run your commands and I have the following answer
> >
> > [localhost snmp]# snmpwalk -c local -v 1 localhost asterisk
> > no answer
> >
> > [localhost snmp]# snmpwalk -c local -v 2c localhost asterisk
> > ASTERISK-MIB::asterisk = No Such Object available on this agent at this
> OID
> >
> >
> > since I don't know well snmp what's going wrong ?
> >
> > regards
> >
> > Mickael
> >
> >
> >
> > 2009/11/27 michal kalinowski 
> >>
> >> Hello Mickael
> >>
> >> Here You have the snmpd.conf file
> >>
> >> cat /etc/snmp/snmpd.conf
> >> rocommunity your_community
> >> master agentx
> >> agentXperms 0660 0550 nobody asterisk
> >> SNMPD_FLAGS="${SNMPD_FLAGS} -x /var/agentx/master"
> >> mibs +ASTERISK-MIB
> >>
> >> and also you need create file /etc/snmp/snmp.conf with following entry
> >> "mibs +ASTERISK-MIB"
> >>
> >> cat /etc/snmp/snmp.conf
> >> mibs +ASTERISK-MIB
> >>
> >> Next use command "snmpwalk -c your_community -v 1 localhost asterisk&quo

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
Hi Michal,

thanks a lot for you quick answer I appreciate.

I run your commands and I have the following answer

[localhost snmp]# snmpwalk -c local -v 1 localhost asterisk
no answer

[localhost snmp]# snmpwalk -c local -v 2c localhost asterisk
ASTERISK-MIB::asterisk = No Such Object available on this agent at this OID


since I don't know well snmp what's going wrong ?

regards

Mickael



2009/11/27 michal kalinowski 

> Hello Mickael
>
> Here You have the snmpd.conf file
>
> cat /etc/snmp/snmpd.conf
> rocommunity your_community
> master agentx
> agentXperms 0660 0550 nobody asterisk
> SNMPD_FLAGS="${SNMPD_FLAGS} -x /var/agentx/master"
> mibs +ASTERISK-MIB
>
> and also you need create file /etc/snmp/snmp.conf with following entry
> "mibs +ASTERISK-MIB"
>
> cat /etc/snmp/snmp.conf
> mibs +ASTERISK-MIB
>
> Next use command "snmpwalk -c your_community -v 1 localhost asterisk"
> to check is everything correct.
>
>
>
> Michał
>
> 2009/11/27 mickael ropars :
> > Hi all,
> >
> > I am currently not able to configure SNMP for asterisk, but I am not able
> to
> > acess to the asterisk MIB (the asterisk MIB is in /usr/share/snmp/mibs/)
> >
> >
> > Does somebody has an example of smnpd.conf file wich is working ?
> >
> > regards
> >
> > Mickael
> >
> > ___
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
Hi all,

I am currently not able to configure SNMP for asterisk, but I am not able to
acess to the asterisk MIB (the asterisk MIB is in /usr/share/snmp/mibs/)


Does somebody has an example of smnpd.conf file wich is working ?

regards

Mickael
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] PHP AGI : handle Event /AGI session

2009-11-20 Thread mickael ropars
thanks a lot for your advice. In my side, I am using a PHP agi library

you seems to have a lot experience on asterisk ...

Regards

Mickael

2009/11/20 Steve Edwards 

> >> On Fri, 20 Nov 2009, mickael ropars wrote:
> >>
> >>> someone send a URL to call someone a PHP script (script 1) is launch
> >>> and in its I configure Astmanager in order to make an originating call
> >>> then my script stop running and Asterisk continue processing the call
> >>> in an extension when hangup occurs I execute another AGI script
> >>> (script 2).
>
> When you write your AGI script*, do yourself a favor and use an existing
> library -- don't try to write your own.
>
> The AGI protocol is not complex, it's just been my experience that
> everybody gets it wrong the first time around :)
>
> *) I write my AGIs in C. If you expect performance to ever be an issue,
> you can execute hundreds of AGIs written in a compiled language (like C)
> in the time it will take to load a script interpreter (like Perl or PHP)
> and parse a single script.
>
> --
> Thanks in advance,
> -
> Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
> Newline  Fax: +1-760-731-3000
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] PHP AGI : handle Event /AGI session

2009-11-20 Thread mickael ropars
oupps sorry steve.

thanks

Mickael

2009/11/20 Steve Edwards 

> Un-top-posting...
>
> >> On Fri, 20 Nov 2009, mickael ropars wrote:
> >>
> >>> someone send a URL to call someone a PHP script (script 1) is launch
> >>> and in its I configure Astmanager in order to make an originating call
> >>> then my script stop running and Asterisk continue processing the call
> >>> in an extension when hangup occurs I execute another AGI script
> >>> (script 2).
>
> > 2009/11/20 Steve Edwards 
>
> >> Is script1 executed by Asterisk or Apache? If it is Apache, it is not
> >> an Asterisk Gateway Interface (AGI) executable.
>
> On Fri, 20 Nov 2009, mickael ropars wrote:
>
> > the script is launch by a web page so it's a AGI executable
>
> No. If script1 is launched by a web page, it's a CGI (Common Gateway
> Interface). So you cannot use any AGI commands in script1. You can,
> however, use AMI.
>
> > if it was your case which implementation will you choose ?
>
> I don't have a lot of experience with AMI, and I have a very limited
> understanding of your environment, so I can't give an opinion with much
> confidence.
>
> Is AMI able and stable in setting the number of parameters you need?
> You'll have to test this yourself.
>
> I've written AGI's that set hundreds of channel variables so I know this
> will not be a limitation in Asterisk.
>
> --
> Thanks in advance,
> -
> Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
> Newline  Fax: +1-760-731-3000
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] PHP AGI : handle Event /AGI session

2009-11-20 Thread mickael ropars
thanks a lot steve for your answer

the script is launch by a web page so it's a AGI executable

if it was your case which implementation will you choose ?

regards

Mickael



2009/11/20 Steve Edwards 

> On Fri, 20 Nov 2009, mickael ropars wrote:
>
> > someone send a URL to call someone a PHP script (script 1) is launch and
> > in its I configure Astmanager in order to make an originating call then
> > my script stop running and Asterisk continue processing the call in an
> > extension when hangup occurs I execute another AGI script (script 2).
>
> Is script1 executed by Asterisk or Apache? If it is Apache, it is not an
> Asterisk Gateway Interface (AGI) executable.
>
> > my concerns is that scipt 2 need same parameters, and mySQL connexions
> > that I script 1
> >
> > so at the end of the script 1 the mySQL connection is closed and I need
> > to pass many parameters to script 2 through asterisk
>
> The 2 scripts execute as 2 separate processes. They cannot share
> connections to either MySQL or AMI. You can pass the parameters through
> the database or are you contemplating setting a bunch of channel variables
> in script1 and reading them in script2?
>
> > so my idea is to use AGI commands in script 1, and then not use the
> > extension on the asterisk server. but I have one question if the call
> > duration is hours then the connection to Astmanager will closed ? what's
> > the timeout value for Astmanager ?
>
> The connection to the Asterisk Manager Interface (AMI) is closed when you
> explicitly close it or when the script exits.
>
> --
> Thanks in advance,
> -
> Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
> Newline  Fax: +1-760-731-3000
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] PHP AGI : handle Event /AGI session

2009-11-20 Thread mickael ropars
Hi all,

I need some advice to know how to handle event in a PHP agi. do you have an
exemple of how to it ?

more over I need some advices. currently I have the following SW
architecture

someone send a URL to call someone
a PHP script (script 1) is launch and in its I configure Astmanager in order
to make an originating call
then my script stop running and Asterisk continue processing the call in an
extension
when hangup occurs I execute another AGI script (script 2).

my concerns is that scipt 2 need same parameters, and mySQL connexions that
I script 1

so at the end of the script 1 the mySQL connection is closed and I need to
pass many parameters to script 2 through asterisk

so my idea is to use AGI commands in script 1, and then not use the
extension on the asterisk server. but I have one question if the call
duration is hours then the connection to Astmanager will closed ? what's the
timeout value for Astmanager ?

the other solution is to use AGI session but I don't know how it works, and
I don't don't know if my mySQL connection will still being up

Do you have an other solution to keep mySQL connection UP and not passing
several through asterisk ?

Thanks a lot for your help

regards

Mickael
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Saving CDR on Different Databases

2009-11-18 Thread mickael ropars
Hi,

I had the same problem as yours, and I am using a deadagi which copy the
content of the table CDR is the mine.

I am using the uniqueId value in CDR to know wich row I have to copy.

regards

Mickael

2009/11/18 ABBAS SHAKEEL 

> Hello
> If we need to save CDRs on different databases for same Asterisk server ie
> suppose for context [abcd] save to local:5432:abcd
> and for context [wxyz] save to local:5432:wxyz
>
> Can we manage it ? or we need to do some thing in AGI
>
>
> --
> Kind Regards
> Shakeel Abbas
>
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Dial a external number with extension

2009-10-20 Thread mickael ropars
can you please descibe more in details the bahaviour of your application ?

regards

Mickael

2009/10/19 Anahi Ludueña 

>  Hi People,
> I need to dial an external number, when it is answered, I should digit the
> extension.
> How can I do that in the DialPlan?
> Thanks,
>
>
> *
> --
> *
>
> *Anahi Ludueña*
>
>
>
>
>
> --
> ¿Para qué descargarte juegos, si tienes los más divertidos online? Entra
> ya en Juegos y prepárate para muchas horas de 
> diversión
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] (no subject)

2009-10-20 Thread mickael ropars
All,

I want to know if it's possible to create a log file per context? and each
time a context is restarted a ne x log file is created.

regards

Mickael
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] update CDRs in mysql during a call

2009-10-19 Thread mickael ropars
Hi Scott and Danny,

thanks a lot for your quick answer.

Danny, Fork will generate too many CDRs if the call goes long. So it's not
appropriate to my billing application.

Scott, I want to write the same application and I begin to so (that's why I
wanted to know if there was the same appkication on asterisk before). my
application has the behaviour than yours exept taht the end of the call is
not set to the time crash, my application works as ticket (like prepaid
application). at the begining of the call I open a ticket (I create a CDR
with 5 second of communication for exemple). and every 5 seconds I update
the CDR for a new ticket)

then I don't need to know what time the server crash.

I hope that you understand the way I will do it. what do you think about ?

thanks

regards

Mickael


2009/10/19 Scott L. Lykens 

>  Apologies for the top post – Outlook really is braindead with HTML email.
>
>
>
> I’ve been thinking about this problem for a project I am working on and
> what I think I am going to do is create a table that I insert a record into
> just before the dial statement that includes where the call is going then
> remove that record when the call completes and the CDR posts. If asterisk
> crashes I know what time it crashed and then can rate the calls based on
> when the call started and when asterisk crashed…. And likely not charge for
> calls under a short duration (say 30-45s) assuming they either never got
> connected or were so short as to be useless.
>
>
>
> Such a method could be modified so that on restart a script is triggered
> which would automatically process the “in-progress” table into CDR so your
> standard suite of tools could use the data later on.
>
>
>
> Probably not perfect but that’s what I’ve thought of with it.
>
>
>
> sl
>
>
>
> *From:* asterisk-users-boun...@lists.digium.com [mailto:
> asterisk-users-boun...@lists.digium.com] *On Behalf Of *mickael ropars
> *Sent:* Monday, October 19, 2009 11:48 AM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* [asterisk-users] update CDRs in mysql during a call
>
>
>
> All,
>
>
> According to my readings CDRs are stored at the end of the call. My
> concerns is when asterisk goes down (I know that it's never happen but it's
> just in case) or when the is a power shutdown of the server. then CDRs are
> not stored in mysql. is there a way to store periodially CDR during a call,
> and set the periodical timer regarding the context.
>
> if no is there a way to retreive CDR, after a reboot ?
>
> Regards
>
> Mickael
>
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] update CDRs in mysql during a call

2009-10-19 Thread mickael ropars
All,

According to my readings CDRs are stored at the end of the call. My concerns
is when asterisk goes down (I know that it's never happen but it's just in
case) or when the is a power shutdown of the server. then CDRs are not
stored in mysql. is there a way to store periodially CDR during a call, and
set the periodical timer regarding the context.

if no is there a way to retreive CDR, after a reboot ?

Regards

Mickael
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] adding modules

2009-10-06 Thread mickael ropars
Hi Tzahir,

thanks a lot for your quick answer. What do you think about creating an
addon ? is it easier to integrate it on trixbox ?

regards

Mickael

2009/10/6 Tzafrir Cohen 

> On Tue, Oct 06, 2009 at 06:18:58PM +0200, mickael ropars wrote:
> > Hi,
> >
> > I am working on Trixbox. I want to create my own dial() function (named
> > specificdial()) and I want to know how I can create a module and
> integrate
> > the module in the trixbox plateform.
>
> The source for Dial() is in apps/app_dial.c .
>
> If you use a version based on Asterisk 1.6.0, see
>
> http://svn.asterisk.org/svn/asterisk/branches/1.6.0/apps/app_dial.c
>
> http://svnview.digium.com/svn/asterisk/branches/1.6.0/apps/app_dial.c?view=markup
>
> Note the line 'res = ast_register_application(app, dial_exec, synopsis,
> descrip);
> ' in load_module.
>
> app_kel.c in the same directory is a simpler example of an application.
>
> See also http://www.asterisk.org/developers/
>
> Trixbox is basically a Centos system. Many of the development tools are
> already installed. However you should start by making sure you can
> rebuild asterisk. Get the .src.rpm package of Asterisk that you want to
> modify, and make sure that a 'rpm --rebuild' of it works on your build
> system.
>
> --
>   Tzafrir Cohen
> icq#16849755  
> jabber:tzafrir.co...@xorcom.com
> +972-50-7952406   mailto:tzafrir.co...@xorcom.com
> http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] adding modules

2009-10-06 Thread mickael ropars
Hi,

I am working on Trixbox. I want to create my own dial() function (named
specificdial()) and I want to know how I can create a module and integrate
the module in the trixbox plateform.

thanks a lot

Mickael
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] simulate calls for testing sripts

2009-09-28 Thread mickael ropars
Hello,

I wrote a AGI script under Asterisk in php, and I want to stress this
scripts by simulting call, is there a tool or a way on asterisk to simulate
answers to call, and also if possible DTMF?

NB: I am not using SIP phone but only analog lines.

Regards

Mickael
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users