Asterix problem with extenions

hi i have asterix running on debian 9 vps
and i connected 2 extensions on my local computers with zoiper
i can make calls to mobiles and everything fine
but when i call from ext 7001 to ext 7002 … it rings and i can answer but their is no voice
but when i change my ip with vpn from one computer with extenion 7002 and call 7001
everything ok i can talk and hear fine …
sip.conf file :
[7001]
type=friend
host=dynamic
secret=*****
context=internal

[7002]
type=friend
host=dynamic
secret=****
context=internal

[7003]
type=friend
host=dynamic
secret=******
context=internal

extenions.conf file :
[internal]
exten => 7001,1,Answer()
exten => 7001,2,Dial(SIP/7001,60)
exten => 7001,3,Playback(vm-nobodyavail)
exten => 7001,4,VoiceMail(7001@main)
exten => 7001,5,Hangup()

exten => 7002,1,Answer()
exten => 7002,2,Dial(SIP/7002,60)
exten => 7002,3,Playback(vm-nobodyavail)
exten => 7002,4,VoiceMail(7002@main)
exten => 7002,5,Hangup()

exten => 7003,1,Answer()
exten => 7003,2,Dial(SIP/7003,60)
exten => 7003,3,Playback(vm-nobodyavail)
exten => 7003,4,VoiceMail(7003@main)
exten => 7003,5,Hangup()

when i do the “sip show peers” command i can see the 7001 and 7002 extenions are on the same ip (my wan ip )
Name/username Host
7001/7001 myipadd
7002/7002 myipadd.

NOTE : the asterisk is hosted on vps with different wan ip

what can i do to make extenions that are connected from the same network talk to each others?

Try turning off directmedia:

BTW, this is a FreePBX forum and most members, including myself, are not experts on manual configuration of Asterisk. Try posting on an Asterisk-specific forum or mailing list.

1 Like

Thank you it worked !

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.