david55 wrote:grep the sample configuration files.
Well, I tried the directmedia option but it did not help. Still, dialing from 7649 toward 9999 gets a good call, and dialing from 9999 toward 7649 produces a call in which voice can not be heared.
I looked at the SIP messages that run between the Asterisk and the 2 SIP agents, and I see that in the good call, the 7649 sends an INVITE for 9999 (message sent to Asterisk), the Asterisk sends an INVITE to the 9999, and when done with the OK and ACK messages, it sends re-invite messages to both sides, so they send the RTP to each other.
In the bad call, the 9999 invites 7649 (message goes to Asterisk), the Asterisk sends an INVITE to the 7649 agent, and when done with the OK and ACK messages, the Asterisk doesn't send re-invite messages to the 2 parties.
When I looked at the messages, I saw that in the good call, the 9999 responds to the INVITE it got with a RINGING+Session Descrition message, while in the bad call, when the 7649 gets the INVITE, it responds with a plain RINGING message.
Could that be the origin of the failure?