I can not place calls (Gateway GrandStream GXW410X)

I using issabel…

I can not send calls… (Receiving calls is working.)

config:
type=friend
qualify=yes
insecure=very
host=192.168.0.3
dtmfmode=rfc2833
context=from-trunk
canreinvite=no

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [10315@from-internal:1] Macro(“SIP/2001-00000039”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/2001-00000039”, “TOUCH_MONITOR=1514145999.57”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/2001-00000039”, “AMPUSER=2001”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/2001-00000039”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/2001-00000039”, “1?Set(REALCALLERIDNUM=2001)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/2001-00000039”, “AMPUSER=2001”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/2001-00000039”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/2001-00000039”, “AMPUSERCIDNAME=2001”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“SIP/2001-00000039”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/2001-00000039”, “AMPUSERCID=2001”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/2001-00000039”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/2001-00000039”, “CALLERID(all)=“2001” <2001>”) in new stack
– Executing [s@macro-user-callerid:12] GotoIf(“SIP/2001-00000039”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“SIP/2001-00000039”, “1?Set(GROUP(concurrency_limit)=2001)”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“SIP/2001-00000039”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:15] GotoIf(“SIP/2001-00000039”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,28)
– Executing [s@macro-user-callerid:28] Set(“SIP/2001-00000039”, “CALLERID(number)=2001”) in new stack
– Executing [s@macro-user-callerid:29] Set(“SIP/2001-00000039”, “CALLERID(name)=2001”) in new stack
– Executing [s@macro-user-callerid:30] Set(“SIP/2001-00000039”, “CDR(cnum)=2001”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/2001-00000039”, “CDR(cnam)=2001”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/2001-00000039”, “CHANNEL(language)=en”) in new stack
– Executing [10315@from-internal:2] Set(“SIP/2001-00000039”, “MOHCLASS=default”) in new stack
– Executing [10315@from-internal:3] Set(“SIP/2001-00000039”, “_NODEST=”) in new stack
– Executing [10315@from-internal:4] Gosub(“SIP/2001-00000039”, “sub-record-check,s,1(out,10315,)”) in new stack
– Executing [s@sub-record-check:1] Set(“SIP/2001-00000039”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:2] GotoIf(“SIP/2001-00000039”, “1?check”) in new stack
– Goto (sub-record-check,s,7)
– Executing [s@sub-record-check:7] Set(“SIP/2001-00000039”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:8] GotoIf(“SIP/2001-00000039”, “1?next”) in new stack
– Goto (sub-record-check,s,11)
– Executing [s@sub-record-check:11] ExecIf(“SIP/2001-00000039”, “0?Return()”) in new stack
– Executing [s@sub-record-check:12] ExecIf(“SIP/2001-00000039”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:13] GotoIf(“SIP/2001-00000039”, “0?out,1”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/2001-00000039”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/2001-00000039”, “NOW=1514145999”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/2001-00000039”, “__DAY=24”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/2001-00000039”, “__MONTH=12”) in new stack
– Executing [s@sub-record-check:18] Set(“SIP/2001-00000039”, “__YEAR=2017”) in new stack
– Executing [s@sub-record-check:19] Set(“SIP/2001-00000039”, “__TIMESTR=20171224-180639”) in new stack
– Executing [s@sub-record-check:20] Set(“SIP/2001-00000039”, “__FROMEXTEN=2001”) in new stack
– Executing [s@sub-record-check:21] Set(“SIP/2001-00000039”, “__CALLFILENAME=out-10315-2001-20171224-180639-1514145999.57”) in new stack
– Executing [s@sub-record-check:22] Goto(“SIP/2001-00000039”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] ExecIf(“SIP/2001-00000039”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
– Executing [out@sub-record-check:2] GosubIf(“SIP/2001-00000039”, “0?record,1(exten,10315,2001)”) in new stack
– Executing [out@sub-record-check:3] Return(“SIP/2001-00000039”, “”) in new stack
– Executing [10315@from-internal:5] Macro(“SIP/2001-00000039”, “dialout-trunk,2,10315,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/2001-00000039”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/2001-00000039”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/2001-00000039”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/2001-00000039”, “DIAL_NUMBER=10315”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/2001-00000039”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/2001-00000039”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/2001-00000039”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/2001-00000039”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/2001-00000039”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/2001-00000039”, “outbound-callerid,2”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/2001-00000039”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/2001-00000039”, “0?Set(REALCALLERIDNUM=2001)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/2001-00000039”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/2001-00000039”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/2001-00000039”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/2001-00000039”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/2001-00000039”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,14)
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/2001-00000039”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/2001-00000039”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/2001-00000039”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/2001-00000039”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:18] Set(“SIP/2001-00000039”, “CDR(outbound_cnum)=2001”) in new stack
– Executing [s@macro-outbound-callerid:19] Set(“SIP/2001-00000039”, “CDR(outbound_cnam)=2001”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/2001-00000039”, “0?sub-flp-2,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/2001-00000039”, “OUTNUM=10315”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/2001-00000039”, “custom=SIP/peer”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/2001-00000039”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/2001-00000039”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/2001-00000039”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/2001-00000039”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/2001-00000039”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/2001-00000039”, “1?Set(CONNECTEDLINE(num,i)=10315)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/2001-00000039”, “1?Set(CONNECTEDLINE(name,i)=CID:2001)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/2001-00000039”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:22] Dial(“SIP/2001-00000039”, “SIP/peer/10315,300,Tt”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/peer/10315
[2017-12-24 18:06:39] NOTICE[2264][C-00000027]: chan_sip.c:23334 handle_response_invite: Failed to authenticate on INVITE to ‘“2001” sip:2001@192.168.0.252;tag=as5695b4e1’
– SIP/peer-0000003a is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [s@macro-dialout-trunk:23] NoOp(“SIP/2001-00000039”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 21”) in new stack
– Executing [s@macro-dialout-trunk:24] GotoIf(“SIP/2001-00000039”, “0?continue,1:s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [s-CONGESTION@macro-dialout-trunk:1] Set(“SIP/2001-00000039”, “RC=21”) in new stack
– Executing [s-CONGESTION@macro-dialout-trunk:2] Goto(“SIP/2001-00000039”, “21,1”) in new stack
– Goto (macro-dialout-trunk,21,1)
– Executing [21@macro-dialout-trunk:1] Goto(“SIP/2001-00000039”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] NoOp(“SIP/2001-00000039”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 21 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:2] Set(“SIP/2001-00000039”, “CALLERID(number)=2001”) in new stack
– Executing [10315@from-internal:6] Macro(“SIP/2001-00000039”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“SIP/2001-00000039”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“SIP/2001-00000039”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“SIP/2001-00000039”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy:4] Playback(“SIP/2001-00000039”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
– <SIP/2001-00000039> Playing ‘all-circuits-busy-now.gsm’ (language ‘en’)
> 0x21296e0 – Probation passed - setting RTP source address to 192.168.0.113:42330
[2017-12-24 18:06:39] NOTICE[3984][C-00000027]: res_rtp_asterisk.c:4569 ast_rtp_read: Unknown RTP codec 95 received from ‘192.168.0.113:42330’
[2017-12-24 18:06:41] WARNING[3984][C-00000027]: file.c:701 ast_openstream_full: File pls-try-call-later does not exist in any format
[2017-12-24 18:06:41] WARNING[3984][C-00000027]: file.c:1017 ast_streamfile: Unable to open pls-try-call-later (format (alaw)): No such file or directory
[2017-12-24 18:06:41] WARNING[3984][C-00000027]: app_playback.c:484 playback_exec: ast_streamfile failed on SIP/2001-00000039 for all-circuits-busy-now&pls-try-call-later, noanswer
– Executing [s@macro-outisbusy:5] Congestion(“SIP/2001-00000039”, “20”) in new stack
[2017-12-24 18:06:41] WARNING[3984][C-00000027]: channel.c:4863 ast_prod: Prodding channel ‘SIP/2001-00000039’ failed
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘SIP/2001-00000039’ in macro ‘outisbusy’
== Spawn extension (from-internal, 10315, 6) exited non-zero on ‘SIP/2001-00000039’
– Executing [h@from-internal:1] Hangup(“SIP/2001-00000039”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/2001-00000039’

you re not authorized to dial out , Peer rejected the call

1 Like

Which parameter is missing? Is it on the VOIP gateway or my SIP server?

Which is because you have no secret.

Note type=friend is usually less secure than type=peer.

insecure=very is deprecated. The insecure=invite part of that is not meaningful without a secret and the insecure=port is probably an unnecessary insecurity.

canreinvite is deprecated in favour of directmedai.