avaya + asterisk + click-to-call

cm2k
Joined: Mon 23 of Aug, 2010

avaya + asterisk + click-to-call

Posted:Mon 23 of Aug, 2010 (08:53 UTC)
Hello,

I am trying to create a web-based click-to-call functionality for Avaya, using Asterisk Management Interface (AMI). Basically, I am able to initiate a call from TEL1 to TEL2 through AMI (see 1 how I do it). After TEL1 and TEL2 connection is established, all voice is relayed over AVAYA Gatekeeper. This is not allowed by our company policy (“Direct IP-IP audio connection” is enabled), we disabled “Direct IP-IP” for test and it works (see 2 for session log). We need to figure out a way to carry voice direct between TEL1 and TEL2 after connection is established.

Any help would be much appreciated.
I am attaching my configuration for reference (see 3).

Thanks!

TEL1(0059),TEL2(1265) <-> avaya GK <---> asterisk + AMI

1) How I initiate the call
from=0059
to=1265
curl -c cook "http://test:8088/asterisk/rawman?action=Login&Username=click&Secret=123456&Events=call"
curl -b cook "http://test:8088/asterisk/rawman?action=Originate&Channel=h323/$to@avaya&Exten=$from&Context=default&CallerId=$to&Priority=1&Async=1&Variable=CALLERID(Name)=Ignatov_Sergey"

2) Connectivity from AMI with “Direct IP-IP” enabled

== HTTP Manager 'click' logged on from 127.0.1.1
    -- Requested transfer capability: 0x00 - SPEECH
    -- Executing [0059@default:1] Dial("H323/avaya-18", "H323/0059@avaya,20,rtT") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called 0059@avaya
    -- H323/avaya-19 is making progress passing it to H323/avaya-18
    -- H323/avaya-19 is ringing
    -- H323/avaya-19 answered H323/avaya-18
  == Spawn extension (default, 0059, 1) exited non-zero on 'H323/avaya-18'

3) My configuration

[general]
port = 1720
bindaddr = 10.20.3.100 
disallow=all 
allow=ulaw 
dtmfmode=inband
gatekeeper =  DISABLE
context=default
progress_setup = 8
progress_alert = 8
h245tunneling=yes
AcceptAnonymous = yes
AllowGKRouted =yes
mediawaitforconnect=yes


[avaya]
type=friend
context=default
host=192.168.9.211
port=1720
disallow=all 
canreinvite=yes
allow=ulaw,g729,gsm,slinear

exten => _XXXX,1,Dial(H323/${EXTEN}@avaya,20,rtT)