[Asterisk-Users] MGCP error dialing

Steven Kalcevich stevek at eol.ca
Sat May 22 00:49:44 MST 2004


Phillip & group,
 I tried what you suggested and it did not work i included some more information
for you to take a look at...


i have got the MGCP working sort of for my asterisk server. My phone plugged
into the dlink gateway does not ring when i call it. My sip phone does ring
when i dial the extention. asterisk CLI shows its ringing correctly.  I am
using the dlink gateway whch has 2 ports in it. I have an extention for both
ports in my extentions.conf. Asterisk appears to reconize that a phone is in
there as it does not go to voice mail right away and it shows its dialing in
the command line interface. I tried calling aaln/1 when no phone was in there
and it went right to voice mail. I plug a phone in and it just says ringing.
Below is my conf that i have now.Is there anything I need to configure in the
Dlink gateway for this to work with asterisk? my gateway works fine and i use
it normally for calls. I might have missed something very simple but I never
tried this before so i am not sure...

Dlink gateway

Wan port to switch, Lan port no cable in it.
line 1, normal phone plugged in

*CLI> show version 
Asterisk 0.9.0 built by root at appsrv1.myenetwork.com on a i686 running Linux
*CLI> 

extentions.conf

[default]
exten => 2002,1,Dial(MGCP/aaln/1 at 10.0.1.150)
exten => 2002,2,Hangup


mgcp.conf

[general]
port=2427
;bindaddr=
[10.0.1.150]
host=10.0.1.150
canreinvite=no
context=default
line => aaln/1

asterisk message output when you call the phone

    -- Executing Dial("SIP/2204-ac95", "MGCP/aaln/1 at 10.0.1.150") in new stack
    -- MGCP mgcp_request(aaln/1 at 10.0.1.150)
    -- MGCP cw: 0, dnd: 0, so: 0, sno: 0
    -- MGCP mgcp_new(MGCP/aaln/1 at 10.0.1.150-1) created in state: Down
    -- Called aaln/1 at 10.0.1.150
    -- MGCP/aaln/1 at 10.0.1.150-1 is ringing

asterisk output when you run asterisk -vvvgc

chan_mgcp.so] => (Media Gateway Control Protocol (MGCP))
  == Parsing '/etc/asterisk/mgcp.conf': Found
    -- Allocating subchannel '0' on aaln/1 at 10.0.1.150
    -- Allocating subchannel '1' on aaln/1 at 10.0.1.150
    -- Added gateway '10.0.1.150'
  == MGCP Listening on 0.0.0.0:2427
  == Using TOS bits 0
  == Registered channel type 'MGCP' (Media Gateway Control Protocol (MGCP))
Warning, flexibel rate not heavily tested!
 MGCP Auditing endpoint aaln/1 at 10.0.1.150 for hookstate

when I run mgcp show endpoints

*CLI> mgcp show endpoints 
Gateway '10.0.1.150' at 10.0.1.150 (Static)
   -- 'aaln/1 at 10.0.1.150 in 'default' is idle

when I run mgcp audit endpoint aaln/1 at 10.0.1.150

CLI> mgcp audit endpoint aaln/1 at 10.0.1.150
Posting Request:
AUEP 6 aaln/1 at 10.0.1.150 MGCP 1.0
F: A,R,D,S,X,N,I,T,O,ES,VS,E,MD,M
 to 10.0.1.150:2427
May 22 03:40:13 NOTICE[1074449120]: chan_mgcp.c:417 mgcp_postrequest: Timeout
waiting for response to message:1,  lastouttime: 1085211476, now: 1085211613. 
Dumping pending queue
May 22 03:40:13 NOTICE[1074449120]: chan_mgcp.c:398 dump_queue: Removing message
from aaln/1 at 10.0.1.150-1 tansaction 1
May 22 03:40:13 NOTICE[1074449120]: chan_mgcp.c:398 dump_queue: Removing message
from aaln/1 at 10.0.1.150-1 tansaction 2
May 22 03:40:13 NOTICE[1074449120]: chan_mgcp.c:398 dump_queue: Removing message
from aaln/1 at 10.0.1.150-1 tansaction 3
May 22 03:40:13 NOTICE[1074449120]: chan_mgcp.c:398 dump_queue: Removing message
from aaln/1 at 10.0.1.150-1 tansaction 4
May 22 03:40:13 NOTICE[1074449120]: chan_mgcp.c:398 dump_queue: Removing message
from aaln/1 at 10.0.1.150-1 tansaction 5

Any ideas? I followed wiki and any docs I can find on mgcp with the
box.Everything else works...

do i need to have something in bindaddr= for mgcp.conf? I marked that out. 


steven kalcevich





Quoting Philipp von Klitzing <klitzing at pool.informatik.rwth-aachen.de>:

> Hi!
> 
> > I am trying to dial a mgcp extention from my sip phone and i am getting
> this
> > error message. anyone got any idea?
> 
> Do a "mgcp show endpoints" at the CLI and watch the output.
> 
> > May 19 22:30:01 NOTICE[1251156800]: chan_mgcp.c:1104 find_subchannel:
> Gateway
> > '10.0.1.150' (and thus its endpoint 'aaln/1') does not exist
> > May 19 22:30:01 WARNING[1251156800]: chan_mgcp.c:2608 mgcp_request: Unable
> to
> > find MGCP endpoint 'aaln/1 at 10.0.1.150'
> 
> > mgcp.conf
> > 
> > [dlinkgw]
> > host=10.0.1.150
> > canreinvite=no
> > context=default
> > line => aaln/1
> 
> Change [dlinkgw] to [10.0.1.150], and the do a "restart" - depending on 
> the Asterisk CVS version that you are using a "reload" or "mgcp reload" 
> might not be sufficent/ might not work.
> 
> See also:
> http://www.voip-info.org/wiki-Asterisk+config+mgcp.conf
> 
> Cheers, Philipp
> 
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 



Regards, 

Steve Kalcevich
Commercial Accounts

Primus Telecommunications Canada Inc. 
Direct: 416-207-4613
Toll Free: 1-888-502-8380, ext. 8313
Fax: 1-800-861-3035
E mail:skalcevich at primustel.ca
Website: www.primustel.ca 





More information about the asterisk-users mailing list