I got it.
I just change host to dynamic and it works fine.

Thank you!


On Thu, Jun 7, 2012 at 6:47 PM, Nguyen Tran Nhan <pocolo...@gmail.com>wrote:

> Hi there,
>
> I try to config asterisk to work with MGCP protocol (for SIP it works
> fine!), but I got error with retransmittion.
>
> I capture MGCP package and I saw that, gateway is SUCCESS sent RSIP
> message to asterisk and Asterisk must be reply 200 OK for RSIP. But there
> are some problem and asterisk can NOT send 200 OK to gateway.
>
> In mgcp.conf, I configured like that:
>
> ;
> ; MGCP Configuration for Asterisk
> ;
> [general]
> port = 2727
> bindaddr = 172.17.107.68
>
> [172.17.107.68]
> host = 172.17.107.68
> ;callgroup = 1
> context = local
> ;canreinvite = no
> ;nat=no
> line => aaln/1
> line => aaln/2
> line => aaln/3
>
>
>
> Here is log console:
>
>
> *CLI> MGCP read:
> RSIP 96 aaln/1@[172.17.107.68] MGCP 1.0
> RM:restart
>
> from 172.17.112.66:2427
> Verb: 'RSIP', Identifier: '96', Endpoint: 'aaln/1@[172.17.107.68]',
> Version: 'MGCP 1.0'
> 2 headers, 0 lines
> Retransmitting:
> 200 96 OK
>
>  to 172.17.107.68:2427
>
> *CLI>
> *CLI> mgcp show MGCP read:
> RSIP 96 aaln/1@[172.17.107.68] MGCP 1.0
> RM:restart
>
> from 172.17.112.66:2427
> Verb: 'RSIP', Identifier: '96', Endpoint: 'aaln/1@[172.17.107.68]',
> Version: 'MGCP 1.0'
> 2 headers, 0 lines
> Retransmitting:
> 200 96 OK
>
>  to 172.17.107.68:2427
> endpoints
> Gateway '172.17.107.68' at 172.17.107.68 (Static)
>    -- 'aaln/3@172.17.107.68 in 'local' is idle
>    -- 'aaln/2@172.17.107.68 in 'local' is idle
>    -- 'aaln/1@172.17.107.68 in 'local' is idle
>
>
>
> I don't understand why does this happen?  Maybe some error with
> configuration?
_______________________________________________
POST RULES : http://wiki.hanoilug.org/hanoilug:mailing_list_guidelines
_______________________________________________
HanoiLUG mailing lists: http://lists.hanoilug.org/
HanoiLUG wiki: http://wiki.hanoilug.org/
HanoiLUG blog: http://blog.hanoilug.org/

Trả lời cho