Search code examples
asterisknat

Audio issues with asterisk 13


I have two extensions registered to asterisk (asterisk has a real IP), both of them behind NAT, and every one of them belong to a different LAN network.

The SIP work just fine (i.e: the extensions can call each other), but there is no voice at all.

I configure natting and media in sip.conf in asterisk as follow:

nat=force_rtp,comedia
directrtpsetup=yes

Note: when i put the extensions in the same NAT, there is no problem, both SIP and RTP work just fine.

does anybody knows what is the problem or how to solve it?

thanks in advance.


Solution

  • thanks, idescovered the problem and its solution. first of all, the wright NAT options are:

    nat=force_rport,comedia
    

    second, the wright media option is:

    directmedia=no
    

    my problem was related to opened port, in rtp.conf i put:

    rtpstart=1111
    rtpend=2222
    

    but in the server the range of the opened port is {44444 --> 55555} and because of that there wasn't voice between the callee and the caller.