[solved] SIP Trunk Between FreePBX and Planet VGW-400-FO

I need help.
How we can configure SIP Trunk between FreePBX and Planet VGW-400-FO.
Thanks.

Following the Planet SIP Trunk configuration snapshoot.

my fav way to create trunk between both is creating sip account in the sip_custom.conf that looks like:

[pstn]
username=pstn
secret=pstn
deny=0.0.0.0/0.0.0.0
context=from-internal
host=dynamic
type=friend
port=5060
qualify=yes
permit=0.0.0.0/0.0.0.0

so you can fill the Planet SIP trunk conf with
Domain = (freepbx ip addr)
Proxy Server = (freepbx ip addr)
Proxy Server port = 5060
Outbound Proxy Server = (freepbx ip addr)
Outbound Proxy Server Port = 5060
User ID = pstn
User Password = pstn
Reject Anonymous Call = yes
check 1 stage dialing

and so on…

when you check asterisk -vr with sip show peers and the vgw host comes up, you just have to setup something like tel-to-ip and ip-to-tel (may differ between VGWs brands and not sure how they look like in planet gw menu), then you should be good to go.

i will check this one
thanks for your reply

Thanks
working for me

Dear Sir,
Outgoing call is working now through Planet Gateway.
Now i want to inbound router to IVR on FreePBX .How we can create inbound route on freePBX in this situation.

Thanks in advance

Like I said before, there’s something like tel-to-ip setting in the vgw, which basically says any call from analog line ports should go to your freepbx ip address port 5060 whatsoever. And then in the freepbx, create an inbound route with empty DID and CID, and then in the bottom of the page, choose the destination where the call should go (i.e. IVR). You should then have a route called any CID/any DID automatically (assuming the IVR setup is already there too).

Thanks for your help. it really working for me.
I have still one issue . i created inbound route on FreePBX and call reaching to desire extension from PSTN through Planet VGW-400-FO, but call immediately hangs up and shown on IP Phone screen " The other party hangup "

Following are the Snapshoot for my configuration

---------------------SIP Account For Planet on FreePBX-----------------
[200]
username=200
secret=200
deny=0.0.0.0/0.0.0.0
host=dynamic
type=friend
port=5060
permit=192.168.1.91/0.0.0.0
qualify=yes
disallow=all
allow=alaw&ulaw
dtmfmode=rfc2833
context=from-trunk
nat=yes
insecure=port,invite

Sir,
If you have issue in reading of snapshot so i will forward all snapshot by email

thanks

in this case it’s gonna be helpful if you could provide us with log located at /var/log/asterisk/full (or you /var/log/asterisk/messages, depends on the distro). But before you paste the log, make sure you put this on your logger_logfiles_custom.conf file:

full => notice,warning,error,debug,verbose(3),dtmf,fax

or

messages => notice,warning,error,debug,verbose(3),dtmf,fax

(again, depends on the distro you are currently using)

spoiler alert: this is going to give you lot of outputs.

Verbos

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [111@from-trunk:1] NoOp(“SIP/planet-00000021”, “Catch-All DID Match - Found 111 - You probably want a DID for this.”) in new stack
– Executing [111@from-trunk:2] Set(“SIP/planet-00000021”, “__FROM_DID=111”) in new stack
– Executing [111@from-trunk:3] Goto(“SIP/planet-00000021”, “ext-did,s,1”) in new stack
– Goto (ext-did,s,1)
– Executing [s@ext-did:1] ExecIf(“SIP/planet-00000021”, “0?Set(__FROM_DID=s)”) in new stack
– Executing [s@ext-did:2] Gosub(“SIP/planet-00000021”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/planet-00000021”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/planet-00000021”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/planet-00000021”, “”) in new stack
– Executing [s@ext-did:3] Set(“SIP/planet-00000021”, “CDR(did)=111”) in new stack
– Executing [s@ext-did:4] ExecIf(“SIP/planet-00000021”, “0 ?Set(CALLERID(name)=599109273)”) in new stack
– Executing [s@ext-did:5] Set(“SIP/planet-00000021”, “CHANNEL(musicclass)=default”) in new stack
– Executing [s@ext-did:6] Set(“SIP/planet-00000021”, “__MOHCLASS=default”) in new stack
– Executing [s@ext-did:7] Set(“SIP/planet-00000021”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [s@ext-did:8] Set(“SIP/planet-00000021”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [s@ext-did:9] Goto(“SIP/planet-00000021”, “from-did-direct,104,1”) in new stack
– Goto (from-did-direct,104,1)
– Executing [104@from-did-direct:1] Set(“SIP/planet-00000021”, “__RINGTIMER=15”) in new stack
– Executing [104@from-did-direct:2] Macro(“SIP/planet-00000021”, “exten-vm,novm,104,0,0,0”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“SIP/planet-00000021”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/planet-00000021”, “TOUCH_MONITOR=1478583972.33”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/planet-00000021”, “AMPUSER=599109273”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/planet-00000021”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/planet-00000021”, “1?Set(REALCALLERIDNUM=599109273)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/planet-00000021”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/planet-00000021”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/planet-00000021”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“SIP/planet-00000021”, “1?report”) in new stack
– Goto (macro-user-callerid,s,16)
– Executing [s@macro-user-callerid:16] GotoIf(“SIP/planet-00000021”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:17] Set(“SIP/planet-00000021”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:18] GotoIf(“SIP/planet-00000021”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,29)
– Executing [s@macro-user-callerid:29] Set(“SIP/planet-00000021”, “CALLERID(number)=599109273”) in new stack
– Executing [s@macro-user-callerid:30] Set(“SIP/planet-00000021”, “CALLERID(name)=599109273”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/planet-00000021”, “CDR(cnum)=599109273”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/planet-00000021”, “CDR(cnam)=599109273”) in new stack
– Executing [s@macro-user-callerid:33] Set(“SIP/planet-00000021”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-exten-vm:2] Set(“SIP/planet-00000021”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“SIP/planet-00000021”, “__EXTTOCALL=104”) in new stack
– Executing [s@macro-exten-vm:4] Set(“SIP/planet-00000021”, “__PICKUPMARK=104”) in new stack
– Executing [s@macro-exten-vm:5] Set(“SIP/planet-00000021”, “RT=”) in new stack
– Executing [s@macro-exten-vm:6] Gosub(“SIP/planet-00000021”, “sub-record-check,s,1(exten,104,)”) in new stack
– Executing [s@sub-record-check:1] Set(“SIP/planet-00000021”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:2] GotoIf(“SIP/planet-00000021”, “1?check”) in new stack
– Goto (sub-record-check,s,7)
– Executing [s@sub-record-check:7] Set(“SIP/planet-00000021”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:8] GotoIf(“SIP/planet-00000021”, “1?next”) in new stack
– Goto (sub-record-check,s,11)
– Executing [s@sub-record-check:11] ExecIf(“SIP/planet-00000021”, “0?Return()”) in new stack
– Executing [s@sub-record-check:12] ExecIf(“SIP/planet-00000021”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:13] GotoIf(“SIP/planet-00000021”, “0?exten,1”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/planet-00000021”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/planet-00000021”, “NOW=1478583972”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/planet-00000021”, “__DAY=08”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/planet-00000021”, “__MONTH=11”) in new stack
– Executing [s@sub-record-check:18] Set(“SIP/planet-00000021”, “__YEAR=2016”) in new stack
– Executing [s@sub-record-check:19] Set(“SIP/planet-00000021”, “__TIMESTR=20161108-004612”) in new stack
– Executing [s@sub-record-check:20] Set(“SIP/planet-00000021”, “__FROMEXTEN=599109273”) in new stack
– Executing [s@sub-record-check:21] Set(“SIP/planet-00000021”, “__CALLFILENAME=exten-104-599109273-20161108-004612-1478583972.33”) in new stack
– Executing [s@sub-record-check:22] Goto(“SIP/planet-00000021”, “exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [exten@sub-record-check:1] GotoIf(“SIP/planet-00000021”, “0?callee”) in new stack
– Executing [exten@sub-record-check:2] Set(“SIP/planet-00000021”, “__REC_POLICY_MODE=dontcare”) in new stack
– Executing [exten@sub-record-check:3] GotoIf(“SIP/planet-00000021”, “1?caller”) in new stack
– Goto (sub-record-check,exten,10)
– Executing [exten@sub-record-check:10] Set(“SIP/planet-00000021”, “__REC_POLICY_MODE=”) in new stack
– Executing [exten@sub-record-check:11] GosubIf(“SIP/planet-00000021”, “0?record,1(exten,104,599109273)”) in new stack
– Executing [exten@sub-record-check:12] Return(“SIP/planet-00000021”, “”) in new stack
– Executing [s@macro-exten-vm:7] Macro(“SIP/planet-00000021”, “dial-one,tr,104”) in new stack
– Executing [s@macro-dial-one:1] Set(“SIP/planet-00000021”, “DEXTEN=104”) in new stack
– Executing [s@macro-dial-one:2] Set(“SIP/planet-00000021”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:3] GosubIf(“SIP/planet-00000021”, “0?screen,1()”) in new stack
– Executing [s@macro-dial-one:4] GosubIf(“SIP/planet-00000021”, “0?cf,1()”) in new stack
– Executing [s@macro-dial-one:5] GotoIf(“SIP/planet-00000021”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [s@macro-dial-one:8] GotoIf(“SIP/planet-00000021”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:9] GotoIf(“SIP/planet-00000021”, “0?continue”) in new stack
– Executing [s@macro-dial-one:10] Set(“SIP/planet-00000021”, “EXTHASCW=”) in new stack
– Executing [s@macro-dial-one:11] GotoIf(“SIP/planet-00000021”, “1?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,12)
– Executing [s@macro-dial-one:12] GotoIf(“SIP/planet-00000021”, “0?docfu:skip3”) in new stack
– Goto (macro-dial-one,s,16)
– Executing [s@macro-dial-one:16] GotoIf(“SIP/planet-00000021”, “1?next2:continue”) in new stack
– Goto (macro-dial-one,s,17)
– Executing [s@macro-dial-one:17] GotoIf(“SIP/planet-00000021”, “1?continue”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [s@macro-dial-one:25] GotoIf(“SIP/planet-00000021”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:26] GosubIf(“SIP/planet-00000021”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“SIP/planet-00000021”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“SIP/planet-00000021”, “DEVICES=104”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“SIP/planet-00000021”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:4] ExecIf(“SIP/planet-00000021”, “0?Set(DEVICES=04)”) in new stack
– Executing [dstring@macro-dial-one:5] Set(“SIP/planet-00000021”, “LOOPCNT=1”) in new stack
– Executing [dstring@macro-dial-one:6] Set(“SIP/planet-00000021”, “ITER=1”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“SIP/planet-00000021”, “THISDIAL=SIP/104”) in new stack
– Executing [dstring@macro-dial-one:8] GosubIf(“SIP/planet-00000021”, “1?zap2dahdi,1()”) in new stack
– Executing [zap2dahdi@macro-dial-one:1] ExecIf(“SIP/planet-00000021”, “0?Return()”) in new stack
– Executing [zap2dahdi@macro-dial-one:2] Set(“SIP/planet-00000021”, “NEWDIAL=”) in new stack
– Executing [zap2dahdi@macro-dial-one:3] Set(“SIP/planet-00000021”, “LOOPCNT2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:4] Set(“SIP/planet-00000021”, “ITER2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:5] Set(“SIP/planet-00000021”, “THISPART2=SIP/104”) in new stack
– Executing [zap2dahdi@macro-dial-one:6] ExecIf(“SIP/planet-00000021”, “0?Set(THISPART2=DAHDI/104)”) in new stack
– Executing [zap2dahdi@macro-dial-one:7] Set(“SIP/planet-00000021”, “NEWDIAL=SIP/104&”) in new stack
– Executing [zap2dahdi@macro-dial-one:8] Set(“SIP/planet-00000021”, “ITER2=2”) in new stack
– Executing [zap2dahdi@macro-dial-one:9] GotoIf(“SIP/planet-00000021”, “0?begin2”) in new stack
– Executing [zap2dahdi@macro-dial-one:10] Set(“SIP/planet-00000021”, “THISDIAL=SIP/104”) in new stack
– Executing [zap2dahdi@macro-dial-one:11] Return(“SIP/planet-00000021”, “”) in new stack
– Executing [dstring@macro-dial-one:9] Set(“SIP/planet-00000021”, “DSTRING=SIP/104&”) in new stack
– Executing [dstring@macro-dial-one:10] Set(“SIP/planet-00000021”, “ITER=2”) in new stack
– Executing [dstring@macro-dial-one:11] GotoIf(“SIP/planet-00000021”, “0?begin”) in new stack
– Executing [dstring@macro-dial-one:12] Set(“SIP/planet-00000021”, “DSTRING=SIP/104”) in new stack
– Executing [dstring@macro-dial-one:13] Return(“SIP/planet-00000021”, “”) in new stack
– Executing [s@macro-dial-one:27] GotoIf(“SIP/planet-00000021”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:28] GotoIf(“SIP/planet-00000021”, “0?skiptrace”) in new stack
– Executing [s@macro-dial-one:29] GosubIf(“SIP/planet-00000021”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [ctset@macro-dial-one:1] Set(“SIP/planet-00000021”, “DB(CALLTRACE/104)=599109273”) in new stack
– Executing [ctset@macro-dial-one:2] Return(“SIP/planet-00000021”, “”) in new stack
– Executing [s@macro-dial-one:30] Set(“SIP/planet-00000021”, “D_OPTIONS=tr”) in new stack
– Executing [s@macro-dial-one:31] ExecIf(“SIP/planet-00000021”, “0?SIPAddHeader(Alert-Info: )”) in new stack
– Executing [s@macro-dial-one:32] ExecIf(“SIP/planet-00000021”, “0?SIPAddHeader()”) in new stack
– Executing [s@macro-dial-one:33] ExecIf(“SIP/planet-00000021”, “1?Set(CHANNEL(musicclass)=default)”) in new stack
– Executing [s@macro-dial-one:34] GosubIf(“SIP/planet-00000021”, “0?qwait,1()”) in new stack
– Executing [s@macro-dial-one:35] Set(“SIP/planet-00000021”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:36] Set(“SIP/planet-00000021”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:37] GotoIf(“SIP/planet-00000021”, “0?usegoto,1”) in new stack
– Executing [s@macro-dial-one:38] GotoIf(“SIP/planet-00000021”, “1?godial”) in new stack
– Goto (macro-dial-one,s,43)
– Executing [s@macro-dial-one:43] Dial(“SIP/planet-00000021”, “SIP/104,tr”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/104
– SIP/104-00000022 is ringing
– SIP/104-00000022 answered SIP/planet-00000021
– Executing [h@macro-dial-one:1] Macro(“SIP/planet-00000021”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/planet-00000021”, “1?endmixmoncheck”) in new stack
– Goto (macro-hangupcall,s,20)
– Executing [s@macro-hangupcall:20] NoOp(“SIP/planet-00000021”, “End of MIXMON check”) in new stack
– Executing [s@macro-hangupcall:21] GotoIf(“SIP/planet-00000021”, “1?nomeetmemon”) in new stack
– Goto (macro-hangupcall,s,39)
– Executing [s@macro-hangupcall:39] NoOp(“SIP/planet-00000021”, “End of MEETME check”) in new stack
– Executing [s@macro-hangupcall:40] GotoIf(“SIP/planet-00000021”, “1?noautomon”) in new stack
– Goto (macro-hangupcall,s,45)
– Executing [s@macro-hangupcall:45] NoOp(“SIP/planet-00000021”, “TOUCH_MONITOR_OUTPUT=”) in new stack
– Executing [s@macro-hangupcall:46] GotoIf(“SIP/planet-00000021”, “1?noautomon2”) in new stack
– Goto (macro-hangupcall,s,52)
– Executing [s@macro-hangupcall:52] NoOp(“SIP/planet-00000021”, “MONITOR_FILENAME=”) in new stack
– Executing [s@macro-hangupcall:53] GotoIf(“SIP/planet-00000021”, “1?noautomon3”) in new stack
– Goto (macro-hangupcall,s,59)
– Executing [s@macro-hangupcall:59] NoOp(“SIP/planet-00000021”, “MIXMONITOR_FILENAME=”) in new stack
– Executing [s@macro-hangupcall:60] GotoIf(“SIP/planet-00000021”, “1?noautomon4”) in new stack
– Goto (macro-hangupcall,s,62)
– Executing [s@macro-hangupcall:62] NoOp(“SIP/planet-00000021”, “ONETOUCH_RECFILE=”) in new stack
– Executing [s@macro-hangupcall:63] NoOp(“SIP/planet-00000021”, "CDR recordingfile set to: ") in new stack
– Executing [s@macro-hangupcall:64] GotoIf(“SIP/planet-00000021”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,67)
– Executing [s@macro-hangupcall:67] GotoIf(“SIP/planet-00000021”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,70)
– Executing [s@macro-hangupcall:70] GotoIf(“SIP/planet-00000021”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,72)
– Executing [s@macro-hangupcall:72] AGI(“SIP/planet-00000021”, “hangup.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
– <SIP/planet-00000021>AGI Script hangup.agi completed, returning 0
– Executing [s@macro-hangupcall:73] Hangup(“SIP/planet-00000021”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 73) exited non-zero on ‘SIP/planet-00000021’ in macro ‘hangupcall’
== Spawn extension (macro-dial-one, h, 1) exited non-zero on ‘SIP/planet-00000021’
== Spawn extension (macro-dial-one, s, 43) exited non-zero on ‘SIP/planet-00000021’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 7) exited non-zero on ‘SIP/planet-00000021’ in macro ‘exten-vm’
== Spawn extension (from-did-direct, 104, 2) exited non-zero on ‘SIP/planet-00000021’

SIP Debugs

<— SIP read from UDP:192.168.1.12:5062 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.90:5060;branch=z9hG4bK2d422ac0;rport=5060
From: “599109273” sip:599109273@192.168.1.90;tag=as7efe867f
To: sip:104@192.168.1.12:5062;tag=1673444662
Call-ID: 379a2a7345ccb0c160e1963c618d1b5b@192.168.1.90:5060
CSeq: 102 INVITE
Contact: sip:104@192.168.1.12:5062
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
User-Agent: Akuvox VIP-1010PT 50.141.2.28
Content-Length: 231

v=0
o=104 5000 5000 IN IP4 192.168.1.12
s=Talk
c=IN IP4 192.168.1.12
t=0 0
m=audio 11826 RTP/AVP 8 0 101
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv
<------------->
— (11 headers 12 lines) —
Found RTP audio format 8
Found RTP audio format 0
Found RTP audio format 101
Found audio description format PCMA for ID 8
Found audio description format PCMU for ID 0
Found audio description format telephone-event for ID 101
Capabilities: us - (gsm|ulaw|alaw), peer - audio=(ulaw|alaw)/video=(nothing)/text=(nothing), combined - (ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 192.168.1.12:11826
list_route: hop: sip:104@192.168.1.12:5062
set_destination: Parsing sip:104@192.168.1.12:5062 for address/port to send to
set_destination: set destination to 192.168.1.12:5062
Transmitting (NAT) to 192.168.1.12:5062:
ACK sip:104@192.168.1.12:5062 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.90:5060;branch=z9hG4bK0c6ada7a;rport
Max-Forwards: 70
From: “599109273” sip:599109273@192.168.1.90;tag=as7efe867f
To: sip:104@192.168.1.12:5062;tag=1673444662
Contact: sip:599109273@192.168.1.90:5060
Call-ID: 379a2a7345ccb0c160e1963c618d1b5b@192.168.1.90:5060
CSeq: 102 ACK
User-Agent: FPBX-2.11.0(11.21.0)
Content-Length: 0


-- SIP/104-0000000b answered SIP/planet-0000000a

Audio is at 18812
Adding codec 100004 (alaw) to SDP
Adding codec 100003 (ulaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP

<— Reliably Transmitting (NAT) to 192.168.1.91:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.91:5060;branch=z9hG4bK-5085a-13a8a25f-27df2c44;received=192.168.1.91;rport=5060
From: "599109273"sip:599109273@192.168.1.91:5060;tag=78a3b8-5b01a8c0-13c4-55022-5085a-3ac8a17a-5085a
To: sip:111@192.168.1.90:5060;tag=as15bc5426
Call-ID: 79aa50-5b01a8c0-13c4-55022-5085a-1a4a0e1c-5085a
CSeq: 1 INVITE
Server: FPBX-2.11.0(11.21.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: sip:111@192.168.1.90:5060
Content-Type: application/sdp
Require: timer
Content-Length: 260

v=0
o=root 1560406195 1560406195 IN IP4 192.168.1.90
s=Asterisk PBX 11.21.0
c=IN IP4 192.168.1.90
t=0 0
m=audio 18812 RTP/AVP 8 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

<------------>

<— SIP read from UDP:192.168.1.91:5060 —>
ACK sip:111@192.168.1.90:5060 SIP/2.0
From: "599109273"sip:599109273@192.168.1.91:5060;tag=78a3b8-5b01a8c0-13c4-55022-5085a-3ac8a17a-5085a
To: sip:111@192.168.1.90:5060;tag=as15bc5426
Call-ID: 79aa50-5b01a8c0-13c4-55022-5085a-1a4a0e1c-5085a
CSeq: 1 ACK
Session-Expires: 3600;refresher=uac
User-Agent: 4PORT_GW
Max-Forwards: 70
Via: SIP/2.0/UDP 192.168.1.91:5060;rport;branch=z9hG4bK-50862-13a8c258-6800cb8
Contact: sip:200@192.168.1.91:5060
Content-Length: 0

<------------->
— (11 headers 0 lines) —

<— SIP read from UDP:192.168.1.91:5060 —>
BYE sip:111@192.168.1.90:5060 SIP/2.0
From: "599109273"sip:599109273@192.168.1.91:5060;tag=78a3b8-5b01a8c0-13c4-55022-5085a-3ac8a17a-5085a
To: sip:111@192.168.1.90:5060;tag=as15bc5426
Call-ID: 79aa50-5b01a8c0-13c4-55022-5085a-1a4a0e1c-5085a
CSeq: 2 BYE
Session-Expires: 1800;refresher=uac
User-Agent: 4PORT_GW
Max-Forwards: 70
Supported: replaces,timer
Contact: sip:200@192.168.1.91:5060
Via: SIP/2.0/UDP 192.168.1.91:5060;rport;branch=z9hG4bK-50862-13a8c26a-3355edd6
Content-Length: 0

<------------->
— (12 headers 0 lines) —
Sending to 192.168.1.91:5060 (NAT)
Scheduling destruction of SIP dialog ‘79aa50-5b01a8c0-13c4-55022-5085a-1a4a0e1c-5085a’ in 6400 ms (Method: BYE)

<— Transmitting (NAT) to 192.168.1.91:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.91:5060;branch=z9hG4bK-50862-13a8c26a-3355edd6;received=192.168.1.91;rport=5060
From: "599109273"sip:599109273@192.168.1.91:5060;tag=78a3b8-5b01a8c0-13c4-55022-5085a-3ac8a17a-5085a
To: sip:111@192.168.1.90:5060;tag=as15bc5426
Call-ID: 79aa50-5b01a8c0-13c4-55022-5085a-1a4a0e1c-5085a
CSeq: 2 BYE
Server: FPBX-2.11.0(11.21.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0

<------------>
– Executing [h@macro-dial-one:1] Macro(“SIP/planet-0000000a”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/planet-0000000a”, “1?endmixmoncheck”) in new stack
– Goto (macro-hangupcall,s,20)
– Executing [s@macro-hangupcall:20] NoOp(“SIP/planet-0000000a”, “End of MIXMON check”) in new stack
– Executing [s@macro-hangupcall:21] GotoIf(“SIP/planet-0000000a”, “1?nomeetmemon”) in new stack
– Goto (macro-hangupcall,s,39)
– Executing [s@macro-hangupcall:39] NoOp(“SIP/planet-0000000a”, “End of MEETME check”) in new stack
– Executing [s@macro-hangupcall:40] GotoIf(“SIP/planet-0000000a”, “1?noautomon”) in new stack
– Goto (macro-hangupcall,s,45)
– Executing [s@macro-hangupcall:45] NoOp(“SIP/planet-0000000a”, “TOUCH_MONITOR_OUTPUT=”) in new stack
– Executing [s@macro-hangupcall:46] GotoIf(“SIP/planet-0000000a”, “1?noautomon2”) in new stack
– Goto (macro-hangupcall,s,52)
– Executing [s@macro-hangupcall:52] NoOp(“SIP/planet-0000000a”, “MONITOR_FILENAME=”) in new stack
– Executing [s@macro-hangupcall:53] GotoIf(“SIP/planet-0000000a”, “1?noautomon3”) in new stack
– Goto (macro-hangupcall,s,59)
– Executing [s@macro-hangupcall:59] NoOp(“SIP/planet-0000000a”, “MIXMONITOR_FILENAME=”) in new stack
– Executing [s@macro-hangupcall:60] GotoIf(“SIP/planet-0000000a”, “1?noautomon4”) in new stack
– Goto (macro-hangupcall,s,62)
– Executing [s@macro-hangupcall:62] NoOp(“SIP/planet-0000000a”, “ONETOUCH_RECFILE=”) in new stack
– Executing [s@macro-hangupcall:63] NoOp(“SIP/planet-0000000a”, "CDR recordingfile set to: ") in new stack
– Executing [s@macro-hangupcall:64] GotoIf(“SIP/planet-0000000a”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,67)
– Executing [s@macro-hangupcall:67] GotoIf(“SIP/planet-0000000a”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,70)
– Executing [s@macro-hangupcall:70] GotoIf(“SIP/planet-0000000a”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,72)
– Executing [s@macro-hangupcall:72] AGI(“SIP/planet-0000000a”, “hangup.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
– <SIP/planet-0000000a>AGI Script hangup.agi completed, returning 0
– Executing [s@macro-hangupcall:73] Hangup(“SIP/planet-0000000a”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 73) exited non-zero on ‘SIP/planet-0000000a’ in macro ‘hangupcall’
== Spawn extension (macro-dial-one, h, 1) exited non-zero on 'SIP/planet-0000000a’
Scheduling destruction of SIP dialog ‘379a2a7345ccb0c160e1963c618d1b5b@192.168.1.90:5060’ in 6400 ms (Method: INVITE)
set_destination: Parsing sip:104@192.168.1.12:5062 for address/port to send to
set_destination: set destination to 192.168.1.12:5062
Reliably Transmitting (NAT) to 192.168.1.12:5062:
BYE sip:104@192.168.1.12:5062 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.90:5060;branch=z9hG4bK35802ee7;rport
Max-Forwards: 70
From: “599109273” sip:599109273@192.168.1.90;tag=as7efe867f
To: sip:104@192.168.1.12:5062;tag=1673444662
Call-ID: 379a2a7345ccb0c160e1963c618d1b5b@192.168.1.90:5060
CSeq: 103 BYE
User-Agent: FPBX-2.11.0(11.21.0)
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0


== Spawn extension (macro-dial-one, s, 43) exited non-zero on ‘SIP/planet-0000000a’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 7) exited non-zero on ‘SIP/planet-0000000a’ in macro ‘exten-vm’
== Spawn extension (from-did-direct, 104, 2) exited non-zero on ‘SIP/planet-0000000a’

<— SIP read from UDP:192.168.1.12:5062 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.90:5060;branch=z9hG4bK35802ee7;rport=5060
From: “599109273” sip:599109273@192.168.1.90;tag=as7efe867f
To: sip:104@192.168.1.12:5062;tag=1673444662
Call-ID: 379a2a7345ccb0c160e1963c618d1b5b@192.168.1.90:5060
CSeq: 103 BYE
User-Agent: Akuvox VIP-1010PT 50.141.2.28
Content-Length: 0

<------------->
— (8 headers 0 lines) —
Really destroying SIP dialog ‘379a2a7345ccb0c160e1963c618d1b5b@192.168.1.90:5060’ Method: INVITE

<— SIP read from UDP:192.168.1.104:5062 —>
jaK
<------------->

Debug

[2016-11-08 01:05:21] VERBOSE[5495][C-00000015] netsock2.c: == Using SIP RTP TOS bits 184
[2016-11-08 01:05:21] VERBOSE[5495][C-00000015] netsock2.c: == Using SIP RTP CoS mark 5
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [111@from-trunk:1] NoOp(“SIP/planet-00000023”, “Catch-All DID Match - Found 111 - You probably want a DID for this.”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [111@from-trunk:2] Set(“SIP/planet-00000023”, “__FROM_DID=111”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [111@from-trunk:3] Goto(“SIP/planet-00000023”, “ext-did,s,1”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (ext-did,s,1)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@ext-did:1] ExecIf(“SIP/planet-00000023”, “0?Set(__FROM_DID=s)”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@ext-did:2] Gosub(“SIP/planet-00000023”, “app-blacklist-check,s,1()”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@app-blacklist-check:1] GotoIf(“SIP/planet-00000023”, “0?blacklisted”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@app-blacklist-check:2] Set(“SIP/planet-00000023”, “CALLED_BLACKLIST=1”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@app-blacklist-check:3] Return(“SIP/planet-00000023”, “”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@ext-did:3] Set(“SIP/planet-00000023”, “CDR(did)=111”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@ext-did:4] ExecIf(“SIP/planet-00000023”, “0 ?Set(CALLERID(name)=599109273)”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@ext-did:5] Set(“SIP/planet-00000023”, “CHANNEL(musicclass)=default”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@ext-did:6] Set(“SIP/planet-00000023”, “__MOHCLASS=default”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@ext-did:7] Set(“SIP/planet-00000023”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@ext-did:8] Set(“SIP/planet-00000023”, “CALLERPRES()=allowed_not_screened”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@ext-did:9] Goto(“SIP/planet-00000023”, “from-did-direct,104,1”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (from-did-direct,104,1)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [104@from-did-direct:1] Set(“SIP/planet-00000023”, “__RINGTIMER=15”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [104@from-did-direct:2] Macro(“SIP/planet-00000023”, “exten-vm,novm,104,0,0,0”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-exten-vm:1] Macro(“SIP/planet-00000023”, “user-callerid,”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:1] Set(“SIP/planet-00000023”, “TOUCH_MONITOR=1478585121.35”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:2] Set(“SIP/planet-00000023”, “AMPUSER=599109273”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:3] GotoIf(“SIP/planet-00000023”, “0?report”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:4] ExecIf(“SIP/planet-00000023”, “1?Set(REALCALLERIDNUM=599109273)”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:5] Set(“SIP/planet-00000023”, “AMPUSER=”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:6] GotoIf(“SIP/planet-00000023”, “0?limit”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:7] Set(“SIP/planet-00000023”, “AMPUSERCIDNAME=”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:8] GotoIf(“SIP/planet-00000023”, “1?report”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-user-callerid,s,16)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:16] GotoIf(“SIP/planet-00000023”, “0?continue”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:17] Set(“SIP/planet-00000023”, “__TTL=64”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:18] GotoIf(“SIP/planet-00000023”, “1?continue”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-user-callerid,s,29)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:29] Set(“SIP/planet-00000023”, “CALLERID(number)=599109273”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:30] Set(“SIP/planet-00000023”, “CALLERID(name)=599109273”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:31] Set(“SIP/planet-00000023”, “CDR(cnum)=599109273”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:32] Set(“SIP/planet-00000023”, “CDR(cnam)=599109273”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-user-callerid:33] Set(“SIP/planet-00000023”, “CHANNEL(language)=en”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-exten-vm:2] Set(“SIP/planet-00000023”, “RingGroupMethod=none”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-exten-vm:3] Set(“SIP/planet-00000023”, “__EXTTOCALL=104”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-exten-vm:4] Set(“SIP/planet-00000023”, “__PICKUPMARK=104”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-exten-vm:5] Set(“SIP/planet-00000023”, “RT=”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-exten-vm:6] Gosub(“SIP/planet-00000023”, “sub-record-check,s,1(exten,104,)”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:1] Set(“SIP/planet-00000023”, “REC_POLICY_MODE_SAVE=”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:2] GotoIf(“SIP/planet-00000023”, “1?check”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (sub-record-check,s,7)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:7] Set(“SIP/planet-00000023”, “__MON_FMT=wav”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:8] GotoIf(“SIP/planet-00000023”, “1?next”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (sub-record-check,s,11)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:11] ExecIf(“SIP/planet-00000023”, “0?Return()”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:12] ExecIf(“SIP/planet-00000023”, “0?Set(__REC_POLICY_MODE=)”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:13] GotoIf(“SIP/planet-00000023”, “0?exten,1”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:14] Set(“SIP/planet-00000023”, “__REC_STATUS=INITIALIZED”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:15] Set(“SIP/planet-00000023”, “NOW=1478585121”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:16] Set(“SIP/planet-00000023”, “__DAY=08”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:17] Set(“SIP/planet-00000023”, “__MONTH=11”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:18] Set(“SIP/planet-00000023”, “__YEAR=2016”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:19] Set(“SIP/planet-00000023”, “__TIMESTR=20161108-010521”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:20] Set(“SIP/planet-00000023”, “__FROMEXTEN=599109273”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:21] Set(“SIP/planet-00000023”, “__CALLFILENAME=exten-104-599109273-20161108-010521-1478585121.35”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@sub-record-check:22] Goto(“SIP/planet-00000023”, “exten,1”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (sub-record-check,exten,1)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [exten@sub-record-check:1] GotoIf(“SIP/planet-00000023”, “0?callee”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [exten@sub-record-check:2] Set(“SIP/planet-00000023”, “__REC_POLICY_MODE=dontcare”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [exten@sub-record-check:3] GotoIf(“SIP/planet-00000023”, “1?caller”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (sub-record-check,exten,10)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [exten@sub-record-check:10] Set(“SIP/planet-00000023”, “__REC_POLICY_MODE=”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [exten@sub-record-check:11] GosubIf(“SIP/planet-00000023”, “0?record,1(exten,104,599109273)”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [exten@sub-record-check:12] Return(“SIP/planet-00000023”, “”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-exten-vm:7] Macro(“SIP/planet-00000023”, “dial-one,tr,104”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:1] Set(“SIP/planet-00000023”, “DEXTEN=104”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:2] Set(“SIP/planet-00000023”, “DIALSTATUS_CW=”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:3] GosubIf(“SIP/planet-00000023”, “0?screen,1()”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:4] GosubIf(“SIP/planet-00000023”, “0?cf,1()”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:5] GotoIf(“SIP/planet-00000023”, “1?skip1”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-dial-one,s,8)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:8] GotoIf(“SIP/planet-00000023”, “0?nodial”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:9] GotoIf(“SIP/planet-00000023”, “0?continue”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:10] Set(“SIP/planet-00000023”, “EXTHASCW=”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:11] GotoIf(“SIP/planet-00000023”, “1?next1:cwinusebusy”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-dial-one,s,12)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:12] GotoIf(“SIP/planet-00000023”, “0?docfu:skip3”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-dial-one,s,16)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:16] GotoIf(“SIP/planet-00000023”, “1?next2:continue”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-dial-one,s,17)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:17] GotoIf(“SIP/planet-00000023”, “1?continue”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-dial-one,s,25)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:25] GotoIf(“SIP/planet-00000023”, “0?nodial”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:26] GosubIf(“SIP/planet-00000023”, “1?dstring,1():dlocal,1()”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [dstring@macro-dial-one:1] Set(“SIP/planet-00000023”, “DSTRING=”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [dstring@macro-dial-one:2] Set(“SIP/planet-00000023”, “DEVICES=104”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [dstring@macro-dial-one:3] ExecIf(“SIP/planet-00000023”, “0?Return()”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [dstring@macro-dial-one:4] ExecIf(“SIP/planet-00000023”, “0?Set(DEVICES=04)”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [dstring@macro-dial-one:5] Set(“SIP/planet-00000023”, “LOOPCNT=1”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [dstring@macro-dial-one:6] Set(“SIP/planet-00000023”, “ITER=1”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [dstring@macro-dial-one:7] Set(“SIP/planet-00000023”, “THISDIAL=SIP/104”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [dstring@macro-dial-one:8] GosubIf(“SIP/planet-00000023”, “1?zap2dahdi,1()”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [zap2dahdi@macro-dial-one:1] ExecIf(“SIP/planet-00000023”, “0?Return()”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [zap2dahdi@macro-dial-one:2] Set(“SIP/planet-00000023”, “NEWDIAL=”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [zap2dahdi@macro-dial-one:3] Set(“SIP/planet-00000023”, “LOOPCNT2=1”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [zap2dahdi@macro-dial-one:4] Set(“SIP/planet-00000023”, “ITER2=1”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [zap2dahdi@macro-dial-one:5] Set(“SIP/planet-00000023”, “THISPART2=SIP/104”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [zap2dahdi@macro-dial-one:6] ExecIf(“SIP/planet-00000023”, “0?Set(THISPART2=DAHDI/104)”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [zap2dahdi@macro-dial-one:7] Set(“SIP/planet-00000023”, “NEWDIAL=SIP/104&”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [zap2dahdi@macro-dial-one:8] Set(“SIP/planet-00000023”, “ITER2=2”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [zap2dahdi@macro-dial-one:9] GotoIf(“SIP/planet-00000023”, “0?begin2”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [zap2dahdi@macro-dial-one:10] Set(“SIP/planet-00000023”, “THISDIAL=SIP/104”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [zap2dahdi@macro-dial-one:11] Return(“SIP/planet-00000023”, “”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [dstring@macro-dial-one:9] Set(“SIP/planet-00000023”, “DSTRING=SIP/104&”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [dstring@macro-dial-one:10] Set(“SIP/planet-00000023”, “ITER=2”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [dstring@macro-dial-one:11] GotoIf(“SIP/planet-00000023”, “0?begin”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [dstring@macro-dial-one:12] Set(“SIP/planet-00000023”, “DSTRING=SIP/104”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [dstring@macro-dial-one:13] Return(“SIP/planet-00000023”, “”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:27] GotoIf(“SIP/planet-00000023”, “0?nodial”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:28] GotoIf(“SIP/planet-00000023”, “0?skiptrace”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:29] GosubIf(“SIP/planet-00000023”, “1?ctset,1():ctclear,1()”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [ctset@macro-dial-one:1] Set(“SIP/planet-00000023”, “DB(CALLTRACE/104)=599109273”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [ctset@macro-dial-one:2] Return(“SIP/planet-00000023”, “”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:30] Set(“SIP/planet-00000023”, “D_OPTIONS=tr”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:31] ExecIf(“SIP/planet-00000023”, “0?SIPAddHeader(Alert-Info: )”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:32] ExecIf(“SIP/planet-00000023”, “0?SIPAddHeader()”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:33] ExecIf(“SIP/planet-00000023”, “1?Set(CHANNEL(musicclass)=default)”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:34] GosubIf(“SIP/planet-00000023”, “0?qwait,1()”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:35] Set(“SIP/planet-00000023”, “__CWIGNORE=”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:36] Set(“SIP/planet-00000023”, “__KEEPCID=TRUE”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:37] GotoIf(“SIP/planet-00000023”, “0?usegoto,1”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:38] GotoIf(“SIP/planet-00000023”, “1?godial”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-dial-one,s,43)
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-dial-one:43] Dial(“SIP/planet-00000023”, “SIP/104,tr”) in new stack
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] netsock2.c: == Using SIP RTP TOS bits 184
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] netsock2.c: == Using SIP RTP CoS mark 5
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] app_dial.c: – Called SIP/104
[2016-11-08 01:05:21] VERBOSE[8425][C-00000015] app_dial.c: – SIP/104-00000024 is ringing
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] app_dial.c: – SIP/104-00000024 answered SIP/planet-00000023
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [h@macro-dial-one:1] Macro(“SIP/planet-00000023”, “hangupcall,”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:1] GotoIf(“SIP/planet-00000023”, “1?endmixmoncheck”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-hangupcall,s,20)
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:20] NoOp(“SIP/planet-00000023”, “End of MIXMON check”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:21] GotoIf(“SIP/planet-00000023”, “1?nomeetmemon”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-hangupcall,s,39)
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:39] NoOp(“SIP/planet-00000023”, “End of MEETME check”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:40] GotoIf(“SIP/planet-00000023”, “1?noautomon”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-hangupcall,s,45)
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:45] NoOp(“SIP/planet-00000023”, “TOUCH_MONITOR_OUTPUT=”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:46] GotoIf(“SIP/planet-00000023”, “1?noautomon2”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-hangupcall,s,52)
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:52] NoOp(“SIP/planet-00000023”, “MONITOR_FILENAME=”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:53] GotoIf(“SIP/planet-00000023”, “1?noautomon3”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-hangupcall,s,59)
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:59] NoOp(“SIP/planet-00000023”, “MIXMONITOR_FILENAME=”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:60] GotoIf(“SIP/planet-00000023”, “1?noautomon4”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-hangupcall,s,62)
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:62] NoOp(“SIP/planet-00000023”, “ONETOUCH_RECFILE=”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:63] NoOp(“SIP/planet-00000023”, "CDR recordingfile set to: ") in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:64] GotoIf(“SIP/planet-00000023”, “1?skiprg”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-hangupcall,s,67)
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:67] GotoIf(“SIP/planet-00000023”, “1?skipblkvm”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-hangupcall,s,70)
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:70] GotoIf(“SIP/planet-00000023”, “1?theend”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Goto (macro-hangupcall,s,72)
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:72] AGI(“SIP/planet-00000023”, “hangup.agi”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] res_agi.c: – Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] res_agi.c: – <SIP/planet-00000023>AGI Script hangup.agi completed, returning 0
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: – Executing [s@macro-hangupcall:73] Hangup(“SIP/planet-00000023”, “”) in new stack
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] app_macro.c: == Spawn extension (macro-hangupcall, s, 73) exited non-zero on ‘SIP/planet-00000023’ in macro ‘hangupcall’
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: == Spawn extension (macro-dial-one, h, 1) exited non-zero on ‘SIP/planet-00000023’
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] app_macro.c: == Spawn extension (macro-dial-one, s, 43) exited non-zero on ‘SIP/planet-00000023’ in macro ‘dial-one’
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] app_macro.c: == Spawn extension (macro-exten-vm, s, 7) exited non-zero on ‘SIP/planet-00000023’ in macro ‘exten-vm’
[2016-11-08 01:05:23] VERBOSE[8425][C-00000015] pbx.c: == Spawn extension (from-did-direct, 104, 2) exited non-zero on ‘SIP/planet-00000023’

What happen if you change context from-trunk to from-internal ?

Dear Bro,
Thanks for your help
i changed “context=from-trunk to from-internal” at “SIP Trunk” as well on "sip_custom.conf"
and now call is not reaching to internal extension on FreePBX.
Below are the debugs

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [138941367@from-internal:1] ResetCDR(“SIP/200-00000064”, “”) in new stack
– Executing [138941367@from-internal:2] NoCDR(“SIP/200-00000064”, “”) in new stack
– Executing [138941367@from-internal:3] Progress(“SIP/200-00000064”, “”) in new stack
– Executing [138941367@from-internal:4] Wait(“SIP/200-00000064”, “1”) in new stack
– Executing [138941367@from-internal:5] Progress(“SIP/200-00000064”, “”) in new stack
– Executing [138941367@from-internal:6] Playback(“SIP/200-00000064”, “silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer”) in new stack
– <SIP/200-00000064> Playing ‘silence/1.gsm’ (language ‘en’)
– <SIP/200-00000064> Playing ‘cannot-complete-as-dialed.gsm’ (language ‘en’)
– <SIP/200-00000064> Playing ‘check-number-dial-again.gsm’ (language ‘en’)
– Executing [138941367@from-internal:7] Wait(“SIP/200-00000064”, “1”) in new stack
– Executing [138941367@from-internal:8] Congestion(“SIP/200-00000064”, “20”) in new stack
[2016-11-10 00:45:46] WARNING[15978][C-00000036]: channel.c:4863 ast_prod: Prodding channel ‘SIP/200-00000064’ failed
[2016-11-10 00:45:46] WARNING[15978][C-00000036]: channel.c:4863 ast_prod: Prodding channel ‘SIP/200-00000064’ failed
== Spawn extension (from-internal, 138941367, 8) exited non-zero on ‘SIP/200-00000064’
– Executing [h@from-internal:1] Hangup(“SIP/200-00000064”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/200-00000064’
[2016-11-10 00:45:52] WARNING[9731]: chan_sip.c:4038 retrans_pkt: Retransmission timeout reached on transmission 79ee50-5b01a8c0-13c4-55022-f2fd-792ec275-f2fd for seqno 1 (Critical Response) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 6400ms with no response
[2016-11-10 00:45:52] WARNING[9731]: chan_sip.c:4038 retrans_pkt: Retransmission timeout reached on transmission 79ee50-5b01a8c0-13c4-55022-f2fd-792ec275-f2fd for seqno 1 (Critical Response) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 6400ms with no response

just noticed you set the hotline to 111. And what might the default inbound destination ext be? 104?
In the planet gw, what options are there in Incoming Call Handling ? Is there anything called phonebook? because the Hotline TEL seems need to be translated to ip address in something like phonebook. It’s kinda mapping tho. Suppose your hot line TEL is 111, then it needs to be translated to FreePBX ip address instead aiming to specific extension. From there, you can route inbound to any extension you intend.

A lot of thanks,
Incoming call issue is solved and now incoming call is working well even with IVR.
i have another issue now, once i received call at FreePBX but is call is not disconnecting even i disconnected from my mobile.

Thanks in Advance

Let’s make it another thread, shall we? It eases the others to search on specific problem.

Okay.
A lot of thanks for your help.
May i have you email or some contact please

Dear i created another thread and its link is below and please help me