Re: [asterisk-users] dials a trunk when off hook

2010-10-22 Thread Gordon Henderson
On Fri, 22 Oct 2010, Baha @ SH wrote:

 How can I let asterisk immediately dials a trunk when off hook?

If it's a SIP phone then read the manual for the phone. Every one is
different.

If it's an analogue phone connected to a TDM400 type card, then google for
batphone mode.

Gordon

-- 
_
-- 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] dials a trunk when off hook

2010-10-22 Thread Gopalakrishnan A.N
This can be done through some agi scripting, for example in asterisk-java
you can get the channel events if the channel event is off-hook you can
initiate the server to dial a call. With  normal asterisk dial plan I dont
think so it can be done. But through manager API or AGI it is possible:)

On Fri, Oct 22, 2010 at 1:42 PM, Gordon Henderson 
gordon+aster...@drogon.net gordon%2baster...@drogon.net wrote:

 On Fri, 22 Oct 2010, Baha @ SH wrote:

  How can I let asterisk immediately dials a trunk when off hook?

 If it's a SIP phone then read the manual for the phone. Every one is
 different.

 If it's an analogue phone connected to a TDM400 type card, then google for
 batphone mode.

 Gordon

 --
 _
 -- 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




-- 
Thank you  with regards,
Gopalakrishnan A.N,
-- 
_
-- 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] dials a trunk when off hook

2010-10-22 Thread Baha @ SH
I am using a sip softphone

But anyway, my question in specific:

If my sip phone registered as a trunk, then went off-hook, is there anything
that asterisk run or recognize that this trunk now is offhook?

I am doing this because I want it to go to a a2b right after hook-off, I
don't want to press any numbers.

 

Thanks all.

 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Gopalakrishnan
A.N
Sent: Friday, October 22, 2010 8:55 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] dials a trunk when off hook

 

This can be done through some agi scripting, for example in asterisk-java
you can get the channel events if the channel event is off-hook you can
initiate the server to dial a call. With  normal asterisk dial plan I dont
think so it can be done. But through manager API or AGI it is possible:)

On Fri, Oct 22, 2010 at 1:42 PM, Gordon Henderson
gordon+aster...@drogon.net mailto:gordon%2baster...@drogon.net  wrote:

On Fri, 22 Oct 2010, Baha @ SH wrote:

 How can I let asterisk immediately dials a trunk when off hook?

If it's a SIP phone then read the manual for the phone. Every one is
different.

If it's an analogue phone connected to a TDM400 type card, then google for
batphone mode.

Gordon


--
_
-- 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




-- 
Thank you  with regards,
Gopalakrishnan A.N,



-- 
_
-- 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] dials a trunk when off hook

2010-10-22 Thread Paul Belanger
On Fri, Oct 22, 2010 at 7:10 AM, Baha @ SH i...@saudihome.com wrote:
 How can I let asterisk immediately dials a trunk when off hook?

For DAHDI:

chan_dahdi.conf
[channels]

immediate=yes
channel = 1

-- 
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode)
blog.polybeacon.com

-- 
_
-- 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] dials a trunk when off hook

2010-10-22 Thread Baha @ SH
I mean sip trunk

thanks

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Paul Belanger
Sent: Friday, October 22, 2010 6:25 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] dials a trunk when off hook

On Fri, Oct 22, 2010 at 7:10 AM, Baha @ SH i...@saudihome.com wrote:
 How can I let asterisk immediately dials a trunk when off hook?

For DAHDI:

chan_dahdi.conf
[channels]

immediate=yes
channel = 1

--
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode)
blog.polybeacon.com

--
_
-- 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] dials a trunk when off hook

2010-10-22 Thread Paul Belanger
On Sat, Oct 23, 2010 at 2:33 AM, Baha @ SH i...@saudihome.com wrote:
 I mean sip trunk

Then this functionality is dependent on the type of SIP phone you have.

-- 
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode)
blog.polybeacon.com

-- 
_
-- 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


[asterisk-users] dials a trunk when off hook

2010-10-21 Thread Baha @ SH
How can I let asterisk immediately dials a trunk when off hook?


-- 
_
-- 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] dials a trunk when off hook

2010-10-21 Thread Cary Fitch
I am not sure that can be done literally by Asterisk because most
phones/adapters give dial tone when off hook, but Asterisk doesn't know the
phone is off hook until a send button is pushed, several seconds pass after
some keys are pressed, or the # button is pressed.

However many of the adapters can be set to autodial.  I would look for a
phone or adapter that has autodial ability.

Cary Fitch

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Baha @ SH
Sent: Friday, October 22, 2010 6:11 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: [asterisk-users] dials a trunk when off hook

How can I let asterisk immediately dials a trunk when off hook?


-- 
_
-- 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