[asterisk-users] incoming call label

Julian Beach jb_soft at trink.co.uk
Fri Feb 16 05:21:43 CST 2018


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_soft at trink.co.uk




More information about the asterisk-users mailing list