I have copied the config in the url below.
I changed my nat settings to nat=yes and it gave me the error message below
[2014-03-09 13:53:05] WARNING[3010]: sip/config_parser.c:812 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
So i changed it to nat=force_rport,comedia
I am currently using nat=no although i am behind a nat router.
It does not matter what config i seem to use, the incoming calls always disconnect on the 4th ring.
Has anyone come across this before ? Is it a common fault ? Is anyone able to point me in the right direction please.
Below is the code that i receive when the call disconnects.
– Goto (macro-dial-one,s,43)
– Executing [s@macro-dial-one:43] Dial(“SIP/localphone-inbound-00000026”, “SIP/401,tr”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/401
– SIP/401-00000027 is ringing
– SIP/401-00000027 is ringing
== Spawn extension (macro-dial-one, s, 43) exited non-zero on ‘SIP/localphone-inbound-00000026’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 7) exited non-zero on ‘SIP/localphone-inbound-00000026’ in macro ‘exten-vm’
== Spawn extension (from-did-direct, 401, 2) exited non-zero on ‘SIP/localphone-inbound-00000026’
– Executing [h@from-did-direct:1] Macro(“SIP/localphone-inbound-00000026”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/localphone-inbound-00000026”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“SIP/localphone-inbound-00000026”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“SIP/localphone-inbound-00000026”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/localphone-inbound-00000026’ in macro ‘hangupcall’
== Spawn extension (from-did-direct, h, 1) exited non-zero on ‘SIP/localphone-inbound-00000026’
[2014-03-09 14:32:05] NOTICE[3010]: chan_sip.c:29376 sip_poke_noanswer: Peer ‘401’ is now UNREACHABLE! Last qualify: 123
raspbx*CLI>