Inbound Hangs up right away

My outbound works fine always. However,90% of the time on inbound, my 1 DID for testing on my sip phone will ring once, then hangs up. Even in

that second, I am not able to answer if I do manage to get it in time. I have my registration line in my sip.conf and the rest below. Firewalls

have been turned off and I can not find a reason why it is hanging up. Internal extension functionality works fine. I setup another test

extension to listen to music on hold, and it works flawlessly. I’m fairly new, so any assistance would be appreciated.

[8000]
type=friend
host=dynamic
context=inbound

extensions.conf

exten => 18xxxxxxxxx,1,Answer()
exten => 18xxxxxxxxx,n,Wait(2)
exten => 18xxxxxxxxx,n,Dial(SIP/8000,15)
exten => 18xxxxxxxxx,n,Hangup

== Using SIP RTP CoS mark 5
– Executing [18xxxxxxxxx@inbound:1] Answer(“SIP/ITSP-00000000”, “”) in new stack
– Executing [18xxxxxxxxx@inbound:2] Wait(“SIP/ITSP-00000000”, “2”) in new stack
== Spawn extension (inbound, 18xxxxxxxxx, 2) exited non-zero on ‘SIP/ITSP-00000000’

From the sip debug, the only thing I get that looks out of the ordinary is: Call leg/transaction does not exist

I have masked out the DID & ITSP for privacy reasons. Anyone have any suggestions on what I can try or where i can go from here?

hi,

it is worthwhile to specify the codec in sip.conf. if phone rings, but voice is not putting through, it might be due to codec mismatch.

regards,

I appreciate the help because I still haven’t gotten it figured out. My sip provider had me put these two lines in my general context in sip.con since it’s what they’re passing through.

allow=ulaw
allow=g729

Any other thoughts? Since it does ring every single time. It’s just 90% of the time, it rings once, and thats it. Any help is appreciated.