Author Topic: SIP Proxy looping  (Read 527 times)

Offline cmpark

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
SIP Proxy looping
« on: August 11, 2022, 10:46:12 PM »
HI, i have a little problem.
when using sip proxy, sip message looping.

M/G -> SIP Proxy (INVITE)
SIP Proxy -> SIP Server (INVITE)
SIP Server -> SIP Proxy (INVITE destination endpoint)

but, sip proxy doesn't send to endpoint. always send sip server, then loop






Offline hsujdik

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 23
Re: SIP Proxy looping
« Reply #1 on: August 11, 2022, 10:55:55 PM »
Can you see in the logs the endpoint actually registering to the SIP Proxy?

Offline cmpark

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: SIP Proxy looping
« Reply #2 on: August 12, 2022, 09:22:49 AM »
Thanks hsujdik,

Register from endpoint message
-------------------------------------------
03:42:05.167 SIPTR: Received [0,UDP] 615 bytes from 10.25.65.80:5060 <<<<<
REGISTER sip:sip.hmc.co.kr:5060 SIP/2.0
From: <sip:3001@sip.hmc.co.kr>;tag=7ccd78-5041190a-13c4-55013-1b83-4e920c63-1b83
To: <sip:3001@sip.hmc.co.kr>
Call-ID: 7dece0-5041190a-13c4-55013-1b83-6b396c75-1b83
CSeq: 2554 REGISTER
Via: SIP/2.0/UDP 10.25.65.80:5060;rport;branch=z9hG4bK-70fc-1b959bf-4dab7adc
Max-Forwards: 70
Supported: replaces,100rel,eventlist,timer
Allow: REGISTER, INVITE, ACK, BYE, REFER, NOTIFY, CANCEL, INFO, OPTIONS, PRACK, SUBSCRIBE, PUBLISH
User-Agent: AUDC-IPPhone/2.2.16.480.1 (420HDG-Rev2-AC494; 00908F9DE032)
Expires: 10
Contact: <sip:3001@10.25.65.80:5060>
Content-Length: 0
-----------------------------------------------
Endpoint : Audiocodes HD420
Endpoint IP : 10.25.65.80
Endpoint line number : 3001
SIP Proxy : 10.10.61.54 (sip.hmc.co.kr)

It looks like the From header is wrong. Should the From header be '3001@10.25.65.80' ?
« Last Edit: August 12, 2022, 09:25:02 AM by cmpark »

Offline cmpark

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: SIP Proxy looping
« Reply #3 on: August 12, 2022, 01:57:37 PM »
I saw the tech tutorial and found out how the sip proxy determines the direction.
If the Via header matches the SIP Server, it is sent to the outside, otherwise it is sent to the SIP Server.

In my case, Via Header conatains 'sip.hmc.co.kr'
and Configuration options 'sip-address-srv=sip.hmc.co.kr'
Perhaps the SIP Proxy cannot do SRV Resolution.

Removed the option and routed normally.
« Last Edit: August 12, 2022, 02:10:44 PM by cmpark »