One endpoint has a particular address only for outgoing, and the other endpoint has that same address, only for incoming purposes.
However, there is something missing here, as you are working around a problem that shouldn’t exist and I don’t see the detailed evidence that it is going wrong in this way. Is this by any chance really a continuation of another thread???
no… it’s not continuation of another thread… i really have this problem. maybe it’s something with my sip provider?
When i call from linphone to mobile, without alaw I got this:
[Mar 6 07:45:12] WARNING[645][C-0000003d]: channel.c:6638 ast_channel_make_compatible_helper: No path to translate from PJSIP/111111-00000099 to PJSIP/6001-00000098
[Mar 6 07:45:12] WARNING[645][C-0000003d]: app_dial.c:3273 dial_exec_full: Had to drop call because I couldn't make PJSIP/6001-00000098 compatible with PJSIP/111111-00000099
You probably need codec_ulaw.so and codec_alaw.so. However, you should verify, with “core show translation” that you have a valid translation path, after loading them.
Note that, if you only operate in one part of the world, you should probably only be enabling the one of A-law and mu-law used in your country, throughout your network, as there is a small amount of information loss in transscoding from one to the other. Mu-law is typically used in the Americas and Japan, and A-law in the rest of the world.