Hi guys. After all the help you guys have given me, I was able to get calls to connect. However, there are some issues. If you look at the enclosed pcap, you will notice some weird behavior coming from asterisk:
‘1’ - 192.168.200.1
‘7007’ - 192.168.200.111
asterisk - 192.168.200.254
-we send an invite from ‘1’ to ‘7007’ (#5)
- asterisk sends ‘1’ an ok (#15)… from here, things get weird
- asterisk originates and sends ‘7007’ another invite… why? (#16)
- ‘1’ acks the ok from the first invite (#20)
- asterisk now originates and sends an invite to ‘1’ from ‘7007’… why? (#21)
- ‘7007’ hangs up, but asterisk does not forward the bye to ‘1’… why? (#256)
im guessing maybe the bye that was sent from ‘7007’ is referring to a different session and thats why it wasn’t forwarded?
pjsip.conf:
[7007]
type = endpoint
context = internal
allow = all
aors = 7007
auth = auth7007
;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 = all
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
allow = all
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 = all
aors = 4010
;dtmf_mode = rfc2833
[4010]
type = aor
contact = sip:4010@192.168.200.1:5060
[4010]
type = identify
match = 192.168.200.1
extensions.conf:
[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})
weird_behavior.zip (93.0 KB)