Hello Thelma, Friday, February 16, 2018, 2:16:02 AM, you wrote:
> Contact: "sip:pstn-4444" > And it found in sip.conf only: > Found peer 'pstn-9998' for '7804715665' from 10.10.0.8:5060 > Is perhaps the name effected by the special character "-" (dash) that is > why it only matches "pstn" and take the first one it found. Will it > make a difference if I rename the port to pstn_4444 in configuration files. If the type=friend then it matches on IP Address and Port Number, not the user name. It will then use the first entry in the sip.conf - it does not take any notice of the name. If you change the order that the two entries appear, all the calls will appear to come from [pstn-9998] even if they come from [pstn-4444]. I used to set user=peer, which solved the problem for me, but I now direct all the calls to a single context in extensions.conf and then send them to their own contexts based on the DNID. -- Best regards, Julian mailto:jb_s...@trink.co.uk -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users