[Asterisk-Users] MGCP Problem.

Ricardo Martinez rmartinez at redvoiss.net
Thu Jan 22 15:35:16 MST 2004


Hi. 
I'm new in Asterisk with MGCP. I set up a MGCP user agent and start asterisk
with the next configuration files.

'--------------- extensions.conf
----------------------------------------------------

[general]
static=yes
writeprotect=yes

[globals]
ap1 => mgcp/aaln/ap200 at 64.76.148.186

[macro-apl1]
exten => s,1,Dial(${ARG1},30,Ttmr)
;exten => s,2,Voicemail(u${MACRO_EXTEN})
;exten => s,3,Hangup
;exten => s,102,Voicemail(b${MACRO_EXTEN})
;exten => s,103,Hangup

[SIP]
include => ent

[ent]
exten => 112,1,VoiceMail(b112)
exten => 111,1,Macro(apl1,${ap1})

----------------------------------------------------------------------------
-----------------------------

--------------- mgcp.conf
----------------------------------------------------


;
; MGCP Configuration for Asterisk
;
[general]
port = 2427
bindaddr = 64.76.148.185

;[dlinkgw]
;host = 192.168.0.64
;context = default
;line => aaln/2
;line => aaln/1

;; The MGCP channel supports the following service codes:
;; # - Transfer
;; *67 - Calling Number Delivery Blocking
;; *70 - Cancel Call Waiting
;; *72 - Call Forwarding Activation
;; *73 - Call Forwarding Deactivation
;; *78 - Do Not Disturb Activation
;; *79 - Do Not Disturb Deactivation
;; *8 - Call pick-up
;
; known to work with Swissvoice IP10s

[64.76.148.186]
host = 64.76.148.186
context = default
line => aaln/1
----------------------------------------------------------------------------
-----------------------------


When i hook off the endpoint i obtain the next debug in the asterisk CLI.

from 64.76.148.186:2427Verb: 'ntfy', Identifier: '6001', Endpoint:
'aaln/0/0 at ap1', Version: 'MGCP 1.0'
3 headers, 0 lines
Jan 22 18:05:11 NOTICE[49159]: chan_mgcp.c:1102 find_subchannel: Gateway
'ap1' (and thus its endpoint 'aaln/0/0') does not exist
MGCP read: 
ntfy 6001 aaln/0/0 at ap1 MGCP 1.0
X: 0
O: l/hd

from 64.76.148.186:2427Verb: 'ntfy', Identifier: '6001', Endpoint:
'aaln/0/0 at ap1', Version: 'MGCP 1.0'
3 headers, 0 lines
Jan 22 18:05:15 NOTICE[49159]: chan_mgcp.c:1102 find_subchannel: Gateway
'ap1' (and thus its endpoint 'aaln/0/0') does not exist
MGCP read: 
ntfy 6001 aaln/0/0 at ap1 MGCP 1.0
X: 0
O: l/hd


Any ideas!????  What i'm doing wrong?

Thanks in advance


Ricardo



More information about the asterisk-users mailing list