[Asterisk-Users] three way calling and cisco ata 186

Pavel Zheltouhov pavlo at comlink.ru
Tue Jul 8 09:10:41 MST 2003


Thomas Dingermann wrote:
>> Ok, if this is not working with sip or h.323, maybe it does with mgcp ?
> I tried to get ATA and Asterisk working with MGCP, but nothing worked!
> Any Howtos available about MGCP/ATA186/Asterisk?

I just try two ATA with asterisk with that configuration files :

;
; MGCP Configuration for Asterisk
;
[general]
port = 2727
bindaddr = 0.0.0.0
allow=ulaw
inbanddtmf=yes
transfer = yes
threewaycalling=yes


[10.0.1.19]
transfer = yes
threewaycalling=yes
host = 10.0.1.19
context = default
line => aaln/1
transfer = 1
line => aaln/2
transfer = 1
line => *

[10.0.1.20]
transfer = yes
threewaycalling=yes
host = 10.0.1.20
context = default
line => aaln/1
transfer = 1
line => aaln/2
transfer = 1
line => *

and extensions.conf

-----------
exten => 31,1,Dial(MGCP/aaln/1 at 10.0.1.19,20,tr)
exten => 32,1,Dial(MGCP/aaln/2 at 10.0.1.19,20,tr)
exten => 33,1,Dial(MGCP/aaln/1 at 10.0.1.20,20,tr)
exten => 34,1,Dial(MGCP/aaln/2 at 10.0.1.20,20,tr)
---------

Ordinary tasks works good. Call transfer with '#' key work too.
But three way calling not work with stange error :


     -- Endpoint 'aaln/1 at 10.0.1.19-1' observed 'hd'
     -- MGCP mgcp_new(MGCP/aaln/1 at 10.0.1.19-1) created in state: Down

dial to 33
     -- Endpoint 'aaln/1 at 10.0.1.19-1' observed '3'
     -- Executing Dial("MGCP/aaln/1 at 10.0.1.19-1", 
"MGCP/aaln/1 at 10.0.1.20|20|tr") in new stack
     -- MGCP mgcp_request(aaln/1 at 10.0.1.20)
     -- MGCP cw: 0, dnd: 0, so: 0, sno: 0
     -- MGCP mgcp_new(MGCP/aaln/1 at 10.0.1.20-1) created in state: Down
     -- Called aaln/1 at 10.0.1.20
     -- MGCP/aaln/1 at 10.0.1.20-1 is ringing

answer
     -- Endpoint 'aaln/1 at 10.0.1.20-1' observed 'hd'
     -- MGCP/aaln/1 at 10.0.1.20-1 answered MGCP/aaln/1 at 10.0.1.19-1
     -- MGCP mgcp_answer(MGCP/aaln/1 at 10.0.1.19-1) on aaln/1 at 10.0.1.19-1
     -- Attempting native bridge of MGCP/aaln/1 at 10.0.1.19-1 and 
MGCP/aaln/1 at 10.0.1.20-1

Talking now
Attempt call person 3 :
  hookflash :

     -- Endpoint 'aaln/1 at 10.0.1.20-1' observed 'hf'
     -- Swapping 1 for 0 on aaln/1 at 10.0.1.20
     -- MGCP Muting 1 on aaln/1 at 10.0.1.20
     -- MGCP mgcp_new(MGCP/aaln/1 at 10.0.1.20-0) created in state: Down

now trying dial to other phone ( 600 - echo test )

     -- Endpoint 'aaln/1 at 10.0.1.20-0' observed '6'

atfter this, person1 hear 'fastbusy', short beeps !

And other output of asterisk:

     -- Attempting native bridge of MGCP/aaln/1 at 10.0.1.19-1 and 
MGCP/aaln/1 at 10.0.1.20-1
     -- Endpoint 'aaln/1 at 10.0.1.20-0' observed '0'
     -- Endpoint 'aaln/1 at 10.0.1.20-0' observed '0'
     -- Executing Playback("MGCP/aaln/1 at 10.0.1.20-0", "demo-echotest") 
in new stack
     -- MGCP mgcp_answer(MGCP/aaln/1 at 10.0.1.20-0) on aaln/1 at 10.0.1.20-0
     -- Playing 'demo-echotest'
     -- Attempting native bridge of MGCP/aaln/1 at 10.0.1.19-1 and 
MGCP/aaln/1 at 10.0.1.20-1
     -- Endpoint 'aaln/1 at 10.0.1.20-0' observed 'hf'
     -- Swapping 0 for 1 on aaln/1 at 10.0.1.20
     -- We didn't make one of the calls FLIPFLOP 0 and 1 on aaln/1 at 10.0.1.20
     -- MGCP Muting 0 on aaln/1 at 10.0.1.20
     -- Attempting native bridge of MGCP/aaln/1 at 10.0.1.19-1 and 
MGCP/aaln/1 at 10.0.1.20-1
     -- Endpoint 'aaln/1 at 10.0.1.20-1' observed 'hu'
NOTICE[20501]: File chan_mgcp.c, Line 762 (mgcp_fixup): 
mgcp_fixup(MGCP/aaln/1 at 10.0.1.19-1, MGCP/aaln/1 at 10.0.1.19-1<MASQ>)
WARNING[20501]: File chan_mgcp.c, Line 764 (mgcp_fixup): old channel 
wasn't 0x81065a8 but was (nil)
WARNING[20501]: File channel.c, Line 1847 (ast_do_masquerade): Fixup 
failed on channel MGCP/aaln/1 at 10.0.1.19-1<MASQ>, strange things may happen.
NOTICE[20501]: File chan_mgcp.c, Line 762 (mgcp_fixup): 
mgcp_fixup(MGCP/aaln/1 at 10.0.1.20-0<ZOMBIE>, MGCP/aaln/1 at 10.0.1.19-1)
     -- Endpoint 'aaln/1 at 10.0.1.19-1' observed 'hu'
   == Spawn extension (default, 600, 1) exited non-zero on 
'MGCP/aaln/1 at 10.0.1.19-1'


----------

Any ideas ?

-- 
Pavel Zheltouhov, Comlink ISP, Voronezh, Russia
phone/fax +7(0732) 727172, http://www.comlink.ru




More information about the asterisk-users mailing list