hi,
i have a pronlem connecting call from pstn with the following confuguration, please advice
extensions.conf
[from-trunk]
include => from-pstn
[from-pstn]
include => from-pstn-custom
include => ext-did
include => from-pstn-timecheck
exten => fax,1,Goto(ext-fax,in_fax,1)
extensions_custom.conf
[from-pstn-custom]
exten => s,1,Answer
exten => s,2,Background(demo-echodone)
exten => s,3,WaitExten(60)
exten => 1,1,Dial(SIP/201,10) ; as soon as i key 1 or 2, call drop when i’m calling from pstn but works on lan
exten => 2,1,Dial(SIP/203,10)
logs (asterisk -r -vvvv)
(from pstn; does not work properly)
–Executing GoTo(“SIP/PSTN-6b31”, “s”) in new stack
== spawn extension (from-pstn,192.168.0.5, 1) exited non-zero on ‘SIP/PSTN-6b31’
–Executing GoTo(“SIP/PSTN-6b31”, “s|1”) in new stack
–Goto (from-pstn,s,1)
–Executing Answer(“SIP/PSTN-6b31”, “”) in new stack
–Executing BackGround(“SIP?PSTN-6b31”, “demo-echodone”) in new stack
–Playong ‘demo-echodone’ (language ‘en’)
–Executing WaitExten(“SIP/PSTN-6b31”, “15”) in new stack
==Spawn extension (from-pstn, s, 3) exited non-zero on ‘SIP/PSTN-6b31’
(from lan; work fine)
–Executing GoTo(“SIP/203-841a”, “from-pstn|s|1”) in new stack
–Goto (from-pstn,s,1)
–Executing Answer(“SIP/203-841a”, “”) in new stack
–Executing BackGround(“SIP/203-841a”, “demo-echodone”) in new stack
–Playing ‘demo-echodone’ (language ‘en’)
–Executing WaitExten(“SIP/203-841a”, “15”) in new stack
== CDR updated on SIP/203-841a
–Executing Dial(“SIP/203-841a”, “SIP/201|10”) in new stack
– Called 201
–SIP/201-030c is ringing
–SIP/201-030c answered SIP/203-841a
–Attempting native bridge of SIP/204-841a and SIP/201-030c
==Spawn extension (from-pstn, 1, 1) exited non-zero on ‘SIP/203-841a’
–Executing GoTo(“SIP/203-841a”, “S|1”) in new stack
–Goto (from-pstn,s,1)
–Executing Answer(“SIP/203-841a”, “”) in new stack
==Spawn extension (from-pstn, s, 1) exited non-zero on ‘SIP/203-841a’