Hi everyone, I’m trying to figure out why asterisk isn’t handling this redirect properly. I looked at the sip rfc, and it says that in the header that contains ‘moved temporarily’, the contact field should contain the new ip address to send the invite to(192.168.200.3 here). For some reason, asterisk sends the invite to the original invite address again(192.168.200.1). Why is this happening? Is there maybe an issue with my config?
pjsip.conf:
[7007]
type = endpoint
context = internal
allow = ulaw
aors = 7007
auth = auth7007
direct_media = no
;dtmf_mode = rfc2833
[7007]
type = aor
max_contacts = 1
[7007]
type = identify
match = 192.168.200.111
[auth7007]
type=auth
auth_type=userpass
password=7007
username=7007
[4008]
type = endpoint
context = internal
allow = ulaw
direct_media = no
aors = 4008
;dtmf_mode = rfc2833
[4008]
type = aor
contact = sip:4008@192.168.200.1:5060
[4008]
type = identify
match = 192.168.200.1
[1]
type = endpoint
context = internal
direct_media = no
allow = ulaw
aors = 1
;dtmf_mode = rfc2833
[1]
type = aor
contact = sip:1@192.168.200.1:5060
[1]
type = identify
match = 192.168.200.1
[4010]
type = endpoint
context = internal
allow = ulaw
direct_media = no
aors = 4010
;dtmf_mode = rfc2833
[4010]
type = aor
contact = sip:4010@192.168.200.1:5060
[4010]
type = identify
match = 192.168.200.1
I also enclosed a zip contain a pcapng file
redirect_problem.zip (10.7 KB)
extensions.conf:
[DCS-Incoming]
include = Main-IVR
include = DID-Extensions
include = External-Features
[internal]
exten=>_4008,1,Dial(PJSIP/${EXTEN})
exten=>_1,1,Dial(PJSIP/${EXTEN})
exten=>_4010,1,Dial(PJSIP/${EXTEN})
exten=>_7007,1,Dial(PJSIP/${EXTEN})