[asterisk-users] incoming call label

thelma at sys-concept.com thelma at sys-concept.com
Thu Feb 15 20:43:09 CST 2018




Thelma
On 02/15/2018 07:16 PM, thelma at sys-concept.com wrote:
> 
> On 02/15/2018 04:49 PM, Joshua Colp wrote:
>> On Thu, Feb 15, 2018, at 7:46 PM, thelma at sys-concept.com wrote:
>>
>> <snip>
>>
>>>
>>> Thanks again for the hint.
>>> Here is the output from asterisk.
>>>
>>> The call is coming on Audocodes gateway from: pstn-4444
>>>
>>> But asterisk display:
>>> Found peer 'pstn-9998' for '7804715665' from 10.10.0.8:5060
>>>
>>> Why not loolking up "pstn-4444" in sip.conf?
>>
>> It found pstn-4444 using 10.10.0.8:5060 - if the request always comes from the same IP address and port it has no other way built in to differentiate between the two except by matching based on username in the 'From' header.
>>
> 
> Call comes from same IP address always.
> To comes  form Audiocode:
> 
> <--- SIP read from UDP:10.10.0.8:5060 --->
> INVITE sip:4 at 10.10.0.4 SIP/2.0
> Via: SIP/2.0/UDP 10.10.0.8;branch=z9hG4bKac766808844
> Max-Forwards: 70
> From: "Z" <sip:7804715665 at 10.10.0.8>;tag=1c766802762
> To: <sip:4 at 10.10.0.4>
> Call-ID: 7668022781522018162620 at 10.10.0.8
> CSeq: 1 INVITE
> Contact: <sip:pstn-4444 at 10.10.0.8:5060>
> 
> 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.
> 
> --
> Thelma
 
sip show peers
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description                      
pstn-4444/voice-4444      10.10.0.8                                D  No         No             5060     Unmonitored                                  
pstn-9998/fax-9998        10.10.0.8                                D  No         No             5060     Unmonitored




More information about the asterisk-users mailing list