Problem incoming calls

hi,
i have a problem on incoming calls , i’ll explain :
I have to configure authentication on a trunk with ip for a GNR , my Asterisk PBX is on the local network ( 10.0.70.0/24 ) upstream I have a firewall with a public IP ( 151.XXX.XXX.XXX ), configured the trunk on asterisk :


type=peer
qualify=yes
nat=yes
insecure=very
host=77.XXX.XXX.XXX
disallow=all
allow=alaw&ulaw&g729

inbound route to an extension ( 7098 )

and made ​​the rule that opens the firewall that is all pacchietti from IP ( 77.XXX.XXX.XXX ) will be accepted on my public ( 151.XXX.XXX.XXX ) with nat on IP asteroid that is local (10.0.70.234 ), obviously the PBX to any.

outgoing calls work correctly, but the problem is on incoming calls , answer the extension rings but can not hear anything , the voice is not heard it from one part of it on the other. I thought it was a problem of RTP ports but the firewall rule to accept anything from that IP and the wart on the local ip .

I have analyzed the logs of the firewall, but I do not understand anything about me an error :

– Goto (macro-dial-one,s,42)
– Executing [s@macro-dial-one:42] Dial(“SIP/gnr_in-0000008f”, “SIP/7098,Ttr”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/7098
– SIP/7098-00000090 is ringing
– SIP/7098-00000090 is ringing
– SIP/7098-00000090 answered SIP/gnr_in-0000008f
[2014-02-25 15:31:18] WARNING[31871]: chan_sip.c:3983 retrans_pkt: Retransmission timeout reached on transmission SDcl99801-40d05bb256e53f52d7a86b885e41705a-ao92gd1 for seqno 1 (Critical Response) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 6400ms with no response
[2014-02-25 15:31:18] WARNING[31871]: chan_sip.c:4012 retrans_pkt: Hanging up call SDcl99801-40d05bb256e53f52d7a86b885e41705a-ao92gd1 - no reply to our critical packet (see https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions).
– Executing [h@macro-dial-one:1] Macro(“SIP/gnr_in-0000008f”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/gnr_in-0000008f”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“SIP/gnr_in-0000008f”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“SIP/gnr_in-0000008f”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/gnr_in-0000008f’ in macro ‘hangupcall’
== Spawn extension (macro-dial-one, h, 1) exited non-zero on ‘SIP/gnr_in-0000008f’
== Spawn extension (macro-dial-one, s, 42) exited non-zero on ‘SIP/gnr_in-0000008f’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 16) exited non-zero on ‘SIP/gnr_in-0000008f’ in macro ‘exten-vm’
== Spawn extension (from-did-direct, 7098, 2) exited non-zero on ‘SIP/gnr_in-0000008f’

tell me the supplier of the lines that they get the local ip and not my public ip then the trunk , I added these two lines as a guide on the internet :

externip = 151.XXX.XXX.XXX
localnet = 10.0.70.0/255.255.255.0

but the problem still present.

if someone can help me.

thanks advance

What’s a GNR?

Also the guide on the Internet is wrong. You should follow our documentation in wiki. Those settings go in SIP settings module.

When asking for help always state version of FreePBX and Asterisk.

You also have no context on your trunk and you have enabled g.729 that requires a license.

version:
Asterisk 1.8.25.0
PBX Firmware:4.211.64-7
PBX Service Pack:1.0.0.0

when I insert the context “context = default”, the call will not receive.
the trunk is configured so:

type=peer
qualify=yes
nat=yes
insecure=very
host=77.XXX.XXX.XXX (PROVIDER VOIP)
disallow=all
allow=alaw&ulaw
externip=151.XXX.XXX.XXX (MY EXTERNAL)
localnet=10.0.70.0/255.255.255.0

------------------LOG------------------
Connected to Asterisk 1.8.25.0 currently running on localhost (pid = 31844)
Verbosity is at least 3
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [0984XXXXXX@from-trunk-sip-gnr_in:1] Set(“SIP/gnr_in-0000019f”, “GROUP()=OUT_6”) in new stack
– Executing [0984XXXXXX@from-trunk-sip-gnr_in:2] Goto(“SIP/gnr_in-0000019f”, “from-trunk,0984XXXXXX,1”) in new stack
– Goto (from-trunk,0984XXXXXX,1)
– Executing [0984XXXXXX@from-trunk:1] Set(“SIP/gnr_in-0000019f”, “__FROM_DID=0984XXXXXX”) in new stack
– Executing [0984XXXXXX@from-trunk:2] Gosub(“SIP/gnr_in-0000019f”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/gnr_in-0000019f”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/gnr_in-0000019f”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/gnr_in-0000019f”, “”) in new stack
– Executing [0984XXXXXX@from-trunk:3] Gosub(“SIP/gnr_in-0000019f”, “sub-record-cancel,s,1()”) in new stack
– Executing [s@sub-record-cancel:1] Set(“SIP/gnr_in-0000019f”, “__REC_POLICY_MODE=”) in new stack
– Executing [s@sub-record-cancel:2] ExecIf(“SIP/gnr_in-0000019f”, “1?Return()”) in new stack
– Executing [0984XXXXXX@from-trunk:4] Set(“SIP/gnr_in-0000019f”, “__REC_POLICY_MODE=never”) in new stack
– Executing [0984XXXXXX@from-trunk:5] Set(“SIP/gnr_in-0000019f”, “CDR(did)=0984XXXXXX”) in new stack
– Executing [0984XXXXXX@from-trunk:6] ExecIf(“SIP/gnr_in-0000019f”, “1 ?Set(CALLERID(name)=393XXXXXXXXX)”) in new stack
– Executing [0984XXXXXX@from-trunk:7] Set(“SIP/gnr_in-0000019f”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [0984XXXXXX@from-trunk:8] Set(“SIP/gnr_in-0000019f”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [0984XXXXXX@from-trunk:9] Goto(“SIP/gnr_in-0000019f”, “from-did-direct,7098,1”) in new stack
– Goto (from-did-direct,7098,1)
– Executing [7098@from-did-direct:1] Set(“SIP/gnr_in-0000019f”, “__RINGTIMER=15”) in new stack
– Executing [7098@from-did-direct:2] Macro(“SIP/gnr_in-0000019f”, “exten-vm,novm,7098,0,0,0”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“SIP/gnr_in-0000019f”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/gnr_in-0000019f”, “TOUCH_MONITOR=1393408316.415”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/gnr_in-0000019f”, “AMPUSER=393XXXXXXXXX”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/gnr_in-0000019f”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/gnr_in-0000019f”, “1?Set(REALCALLERIDNUM=393XXXXXXXXX)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/gnr_in-0000019f”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:6] Set(“SIP/gnr_in-0000019f”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:7] GotoIf(“SIP/gnr_in-0000019f”, “1?report”) in new stack
– Goto (macro-user-callerid,s,15)
– Executing [s@macro-user-callerid:15] GotoIf(“SIP/gnr_in-0000019f”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:16] Set(“SIP/gnr_in-0000019f”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:17] GotoIf(“SIP/gnr_in-0000019f”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,28)
– Executing [s@macro-user-callerid:28] Set(“SIP/gnr_in-0000019f”, “CALLERID(number)=393XXXXXXXXX”) in new stack
– Executing [s@macro-user-callerid:29] Set(“SIP/gnr_in-0000019f”, “CALLERID(name)=393XXXXXXXXX”) in new stack
– Executing [s@macro-user-callerid:30] Set(“SIP/gnr_in-0000019f”, “CDR(cnum)=393XXXXXXXXX”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/gnr_in-0000019f”, “CDR(cnam)=393XXXXXXXXX”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/gnr_in-0000019f”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-exten-vm:2] Set(“SIP/gnr_in-0000019f”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“SIP/gnr_in-0000019f”, “__EXTTOCALL=7098”) in new stack
– Executing [s@macro-exten-vm:4] Set(“SIP/gnr_in-0000019f”, “__PICKUPMARK=7098”) in new stack
– Executing [s@macro-exten-vm:5] Set(“SIP/gnr_in-0000019f”, “RT=”) in new stack
– Executing [s@macro-exten-vm:6] ExecIf(“SIP/gnr_in-0000019f”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:7] ExecIf(“SIP/gnr_in-0000019f”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:8] Gosub(“SIP/gnr_in-0000019f”, “sub-record-check,s,1(exten,7098,)”) in new stack
– Executing [s@sub-record-check:1] Set(“SIP/gnr_in-0000019f”, “REC_POLICY_MODE_SAVE=never”) in new stack
– Executing [s@sub-record-check:2] GotoIf(“SIP/gnr_in-0000019f”, “1?check”) in new stack
– Goto (sub-record-check,s,7)
– Executing [s@sub-record-check:7] Set(“SIP/gnr_in-0000019f”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:8] GotoIf(“SIP/gnr_in-0000019f”, “1?next”) in new stack
– Goto (sub-record-check,s,11)
– Executing [s@sub-record-check:11] ExecIf(“SIP/gnr_in-0000019f”, “0?Return()”) in new stack
– Executing [s@sub-record-check:12] ExecIf(“SIP/gnr_in-0000019f”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:13] GotoIf(“SIP/gnr_in-0000019f”, “0?exten,1”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/gnr_in-0000019f”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/gnr_in-0000019f”, “NOW=1393408316”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/gnr_in-0000019f”, “__DAY=26”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/gnr_in-0000019f”, “__MONTH=02”) in new stack
– Executing [s@sub-record-check:18] Set(“SIP/gnr_in-0000019f”, “__YEAR=2014”) in new stack
– Executing [s@sub-record-check:19] Set(“SIP/gnr_in-0000019f”, “__TIMESTR=20140226-105156”) in new stack
– Executing [s@sub-record-check:20] Set(“SIP/gnr_in-0000019f”, “__FROMEXTEN=393XXXXXXXXX”) in new stack
– Executing [s@sub-record-check:21] Set(“SIP/gnr_in-0000019f”, “__CALLFILENAME=exten-7098-393XXXXXXXXX-20140226-105156-1393408316.415”) in new stack
– Executing [s@sub-record-check:22] Goto(“SIP/gnr_in-0000019f”, “exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [exten@sub-record-check:1] GotoIf(“SIP/gnr_in-0000019f”, “1?callee”) in new stack
– Goto (sub-record-check,exten,8)
– Executing [exten@sub-record-check:8] GosubIf(“SIP/gnr_in-0000019f”, “0?record,1(exten,7098,393XXXXXXXXX)”) in new stack
– Executing [exten@sub-record-check:9] Return(“SIP/gnr_in-0000019f”, “”) in new stack
– Executing [s@macro-exten-vm:9] GotoIf(“SIP/gnr_in-0000019f”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,15)
– Executing [s@macro-exten-vm:15] GosubIf(“SIP/gnr_in-0000019f”, “0?clrheader,1()”) in new stack
– Executing [s@macro-exten-vm:16] Macro(“SIP/gnr_in-0000019f”, “dial-one,Ttr,7098”) in new stack
– Executing [s@macro-dial-one:1] Set(“SIP/gnr_in-0000019f”, “DEXTEN=7098”) in new stack
– Executing [s@macro-dial-one:2] Set(“SIP/gnr_in-0000019f”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:3] GosubIf(“SIP/gnr_in-0000019f”, “0?screen,1()”) in new stack
– Executing [s@macro-dial-one:4] GosubIf(“SIP/gnr_in-0000019f”, “0?cf,1()”) in new stack
– Executing [s@macro-dial-one:5] GotoIf(“SIP/gnr_in-0000019f”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [s@macro-dial-one:8] GotoIf(“SIP/gnr_in-0000019f”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:9] GotoIf(“SIP/gnr_in-0000019f”, “0?continue”) in new stack
– Executing [s@macro-dial-one:10] Set(“SIP/gnr_in-0000019f”, “EXTHASCW=ENABLED”) in new stack
– Executing [s@macro-dial-one:11] GotoIf(“SIP/gnr_in-0000019f”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [s@macro-dial-one:23] GotoIf(“SIP/gnr_in-0000019f”, “1?next3:continue”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [s@macro-dial-one:24] ExecIf(“SIP/gnr_in-0000019f”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
– Executing [s@macro-dial-one:25] GotoIf(“SIP/gnr_in-0000019f”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:26] GosubIf(“SIP/gnr_in-0000019f”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“SIP/gnr_in-0000019f”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“SIP/gnr_in-0000019f”, “DEVICES=7098”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“SIP/gnr_in-0000019f”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:4] ExecIf(“SIP/gnr_in-0000019f”, “0?Set(DEVICES=098)”) in new stack
– Executing [dstring@macro-dial-one:5] Set(“SIP/gnr_in-0000019f”, “LOOPCNT=1”) in new stack
– Executing [dstring@macro-dial-one:6] Set(“SIP/gnr_in-0000019f”, “ITER=1”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“SIP/gnr_in-0000019f”, “THISDIAL=SIP/7098”) in new stack
– Executing [dstring@macro-dial-one:8] GosubIf(“SIP/gnr_in-0000019f”, “1?zap2dahdi,1()”) in new stack
– Executing [zap2dahdi@macro-dial-one:1] ExecIf(“SIP/gnr_in-0000019f”, “0?Return()”) in new stack
– Executing [zap2dahdi@macro-dial-one:2] Set(“SIP/gnr_in-0000019f”, “NEWDIAL=”) in new stack
– Executing [zap2dahdi@macro-dial-one:3] Set(“SIP/gnr_in-0000019f”, “LOOPCNT2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:4] Set(“SIP/gnr_in-0000019f”, “ITER2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:5] Set(“SIP/gnr_in-0000019f”, “THISPART2=SIP/7098”) in new stack
– Executing [zap2dahdi@macro-dial-one:6] ExecIf(“SIP/gnr_in-0000019f”, “0?Set(THISPART2=DAHDI/7098)”) in new stack
– Executing [zap2dahdi@macro-dial-one:7] Set(“SIP/gnr_in-0000019f”, “NEWDIAL=SIP/7098&”) in new stack
– Executing [zap2dahdi@macro-dial-one:8] Set(“SIP/gnr_in-0000019f”, “ITER2=2”) in new stack
– Executing [zap2dahdi@macro-dial-one:9] GotoIf(“SIP/gnr_in-0000019f”, “0?begin2”) in new stack
– Executing [zap2dahdi@macro-dial-one:10] Set(“SIP/gnr_in-0000019f”, “THISDIAL=SIP/7098”) in new stack
– Executing [zap2dahdi@macro-dial-one:11] Return(“SIP/gnr_in-0000019f”, “”) in new stack
– Executing [dstring@macro-dial-one:9] Set(“SIP/gnr_in-0000019f”, “DSTRING=SIP/7098&”) in new stack
– Executing [dstring@macro-dial-one:10] Set(“SIP/gnr_in-0000019f”, “ITER=2”) in new stack
– Executing [dstring@macro-dial-one:11] GotoIf(“SIP/gnr_in-0000019f”, “0?begin”) in new stack
– Executing [dstring@macro-dial-one:12] Set(“SIP/gnr_in-0000019f”, “DSTRING=SIP/7098”) in new stack
– Executing [dstring@macro-dial-one:13] Return(“SIP/gnr_in-0000019f”, “”) in new stack
– Executing [s@macro-dial-one:27] GotoIf(“SIP/gnr_in-0000019f”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:28] GotoIf(“SIP/gnr_in-0000019f”, “0?skiptrace”) in new stack
– Executing [s@macro-dial-one:29] GosubIf(“SIP/gnr_in-0000019f”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [ctset@macro-dial-one:1] Set(“SIP/gnr_in-0000019f”, “DB(CALLTRACE/7098)=393XXXXXXXXX”) in new stack
– Executing [ctset@macro-dial-one:2] Return(“SIP/gnr_in-0000019f”, “”) in new stack
– Executing [s@macro-dial-one:30] Set(“SIP/gnr_in-0000019f”, “D_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dial-one:31] ExecIf(“SIP/gnr_in-0000019f”, “0?SIPAddHeader(Alert-Info: )”) in new stack
– Executing [s@macro-dial-one:32] ExecIf(“SIP/gnr_in-0000019f”, “0?SIPAddHeader()”) in new stack
– Executing [s@macro-dial-one:33] ExecIf(“SIP/gnr_in-0000019f”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [s@macro-dial-one:34] GosubIf(“SIP/gnr_in-0000019f”, “0?qwait,1()”) in new stack
– Executing [s@macro-dial-one:35] Set(“SIP/gnr_in-0000019f”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:36] Set(“SIP/gnr_in-0000019f”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:37] GotoIf(“SIP/gnr_in-0000019f”, “0?usegoto,1”) in new stack
– Executing [s@macro-dial-one:38] GotoIf(“SIP/gnr_in-0000019f”, “1?godial”) in new stack
– Goto (macro-dial-one,s,42)
– Executing [s@macro-dial-one:42] Dial(“SIP/gnr_in-0000019f”, “SIP/7098,Ttr”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/7098
– SIP/7098-000001a0 is ringing
– SIP/7098-000001a0 is ringing
– SIP/7098-000001a0 answered SIP/gnr_in-0000019f
[2014-02-26 10:52:04] WARNING[31871]: chan_sip.c:3983 retrans_pkt: Retransmission timeout reached on transmission SDsj5m101-fa964c5631452b55f7d194cfc8ffd0f4-ao92gd1 for seqno 1 (Critical Response) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 6401ms with no response
[2014-02-26 10:52:04] WARNING[31871]: chan_sip.c:4012 retrans_pkt: Hanging up call SDsj5m101-fa964c5631452b55f7d194cfc8ffd0f4-ao92gd1 - no reply to our critical packet (see https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions).
– Executing [h@macro-dial-one:1] Macro(“SIP/gnr_in-0000019f”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/gnr_in-0000019f”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“SIP/gnr_in-0000019f”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“SIP/gnr_in-0000019f”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/gnr_in-0000019f’ in macro ‘hangupcall’
== Spawn extension (macro-dial-one, h, 1) exited non-zero on ‘SIP/gnr_in-0000019f’
== Spawn extension (macro-dial-one, s, 42) exited non-zero on ‘SIP/gnr_in-0000019f’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 16) exited non-zero on ‘SIP/gnr_in-0000019f’ in macro ‘exten-vm’
== Spawn extension (from-did-direct, 7098, 2) exited non-zero on ‘SIP/gnr_in-0000019f’

There is not context default. Please read the documentation in the wiki.

The correct context for inbound trunks is from-trunk

made the change from-trunk. also read the configuration but I have not yet figured out the problem, but the voip provider tells me as if I entered the room and not with the public. I will send this string: sip: [email protected]: 5060
10.0.70.234 that is my Asterisk PBX, I would not send my audience 151.XXX.XXX.XXX?

how do you introduce outside with my audience?

the trunk now looks like this:
type=peer
qualify=yes
nat=yes
insecure=very
host=77.xxx.xxx.xxx
disallow=all
allow=alaw&ulaw
externip=151.xxx.xxx.xxx
localnet=10.0.70.0/255.255.255.0
context=from-trunk

down the log with the error still:
------LOG-------------------
Connected to Asterisk 1.8.25.0 currently running on localhost (pid = 26563)
Verbosity is at least 3
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [0984XXXXXX@from-trunk:1] Set(“SIP/gnr_in-00000002”, “__FROM_DID=0984XXXXXX”) in new stack
– Executing [0984XXXXXX@from-trunk:2] Gosub(“SIP/gnr_in-00000002”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/gnr_in-00000002”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/gnr_in-00000002”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/gnr_in-00000002”, “”) in new stack
– Executing [0984XXXXXX@from-trunk:3] Gosub(“SIP/gnr_in-00000002”, “sub-record-cancel,s,1()”) in new stack
– Executing [s@sub-record-cancel:1] Set(“SIP/gnr_in-00000002”, “__REC_POLICY_MODE=”) in new stack
– Executing [s@sub-record-cancel:2] ExecIf(“SIP/gnr_in-00000002”, “1?Return()”) in new stack
– Executing [0984XXXXXX@from-trunk:4] Set(“SIP/gnr_in-00000002”, “__REC_POLICY_MODE=never”) in new stack
– Executing [0984XXXXXX@from-trunk:5] Set(“SIP/gnr_in-00000002”, “CDR(did)=0984XXXXXX”) in new stack
– Executing [0984XXXXXX@from-trunk:6] ExecIf(“SIP/gnr_in-00000002”, “1 ?Set(CALLERID(name)=39349XXXXXX)”) in new stack
– Executing [0984XXXXXX@from-trunk:7] Set(“SIP/gnr_in-00000002”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [0984XXXXXX@from-trunk:8] Set(“SIP/gnr_in-00000002”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [0984XXXXXX@from-trunk:9] Goto(“SIP/gnr_in-00000002”, “from-did-direct,7098,1”) in new stack
– Goto (from-did-direct,7098,1)
– Executing [7098@from-did-direct:1] Set(“SIP/gnr_in-00000002”, “__RINGTIMER=15”) in new stack
– Executing [7098@from-did-direct:2] Macro(“SIP/gnr_in-00000002”, “exten-vm,novm,7098,0,0,0”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“SIP/gnr_in-00000002”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/gnr_in-00000002”, “TOUCH_MONITOR=1393485482.2”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/gnr_in-00000002”, “AMPUSER=39349XXXXXX”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/gnr_in-00000002”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/gnr_in-00000002”, “1?Set(REALCALLERIDNUM=39349XXXXXX)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/gnr_in-00000002”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:6] Set(“SIP/gnr_in-00000002”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:7] GotoIf(“SIP/gnr_in-00000002”, “1?report”) in new stack
– Goto (macro-user-callerid,s,15)
– Executing [s@macro-user-callerid:15] GotoIf(“SIP/gnr_in-00000002”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:16] Set(“SIP/gnr_in-00000002”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:17] GotoIf(“SIP/gnr_in-00000002”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,28)
– Executing [s@macro-user-callerid:28] Set(“SIP/gnr_in-00000002”, “CALLERID(number)=39349XXXXXX”) in new stack
– Executing [s@macro-user-callerid:29] Set(“SIP/gnr_in-00000002”, “CALLERID(name)=39349XXXXXX”) in new stack
– Executing [s@macro-user-callerid:30] Set(“SIP/gnr_in-00000002”, “CDR(cnum)=39349XXXXXX”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/gnr_in-00000002”, “CDR(cnam)=39349XXXXXX”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/gnr_in-00000002”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-exten-vm:2] Set(“SIP/gnr_in-00000002”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“SIP/gnr_in-00000002”, “__EXTTOCALL=7098”) in new stack
– Executing [s@macro-exten-vm:4] Set(“SIP/gnr_in-00000002”, “__PICKUPMARK=7098”) in new stack
– Executing [s@macro-exten-vm:5] Set(“SIP/gnr_in-00000002”, “RT=”) in new stack
– Executing [s@macro-exten-vm:6] ExecIf(“SIP/gnr_in-00000002”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:7] ExecIf(“SIP/gnr_in-00000002”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:8] Gosub(“SIP/gnr_in-00000002”, “sub-record-check,s,1(exten,7098,)”) in new stack
– Executing [s@sub-record-check:1] Set(“SIP/gnr_in-00000002”, “REC_POLICY_MODE_SAVE=never”) in new stack
– Executing [s@sub-record-check:2] GotoIf(“SIP/gnr_in-00000002”, “1?check”) in new stack
– Goto (sub-record-check,s,7)
– Executing [s@sub-record-check:7] Set(“SIP/gnr_in-00000002”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:8] GotoIf(“SIP/gnr_in-00000002”, “1?next”) in new stack
– Goto (sub-record-check,s,11)
– Executing [s@sub-record-check:11] ExecIf(“SIP/gnr_in-00000002”, “0?Return()”) in new stack
– Executing [s@sub-record-check:12] ExecIf(“SIP/gnr_in-00000002”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:13] GotoIf(“SIP/gnr_in-00000002”, “0?exten,1”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/gnr_in-00000002”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/gnr_in-00000002”, “NOW=1393485482”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/gnr_in-00000002”, “__DAY=27”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/gnr_in-00000002”, “__MONTH=02”) in new stack
– Executing [s@sub-record-check:18] Set(“SIP/gnr_in-00000002”, “__YEAR=2014”) in new stack
– Executing [s@sub-record-check:19] Set(“SIP/gnr_in-00000002”, “__TIMESTR=20140227-081802”) in new stack
– Executing [s@sub-record-check:20] Set(“SIP/gnr_in-00000002”, “__FROMEXTEN=39349XXXXXX”) in new stack
– Executing [s@sub-record-check:21] Set(“SIP/gnr_in-00000002”, “__CALLFILENAME=exten-7098-39349XXXXXX-20140227-081802-1393485482.2”) in new stack
– Executing [s@sub-record-check:22] Goto(“SIP/gnr_in-00000002”, “exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [exten@sub-record-check:1] GotoIf(“SIP/gnr_in-00000002”, “1?callee”) in new stack
– Goto (sub-record-check,exten,8)
– Executing [exten@sub-record-check:8] GosubIf(“SIP/gnr_in-00000002”, “0?record,1(exten,7098,39349XXXXXX)”) in new stack
– Executing [exten@sub-record-check:9] Return(“SIP/gnr_in-00000002”, “”) in new stack
– Executing [s@macro-exten-vm:9] GotoIf(“SIP/gnr_in-00000002”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,15)
– Executing [s@macro-exten-vm:15] GosubIf(“SIP/gnr_in-00000002”, “0?clrheader,1()”) in new stack
– Executing [s@macro-exten-vm:16] Macro(“SIP/gnr_in-00000002”, “dial-one,Ttr,7098”) in new stack
– Executing [s@macro-dial-one:1] Set(“SIP/gnr_in-00000002”, “DEXTEN=7098”) in new stack
– Executing [s@macro-dial-one:2] Set(“SIP/gnr_in-00000002”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:3] GosubIf(“SIP/gnr_in-00000002”, “0?screen,1()”) in new stack
– Executing [s@macro-dial-one:4] GosubIf(“SIP/gnr_in-00000002”, “0?cf,1()”) in new stack
– Executing [s@macro-dial-one:5] GotoIf(“SIP/gnr_in-00000002”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [s@macro-dial-one:8] GotoIf(“SIP/gnr_in-00000002”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:9] GotoIf(“SIP/gnr_in-00000002”, “0?continue”) in new stack
– Executing [s@macro-dial-one:10] Set(“SIP/gnr_in-00000002”, “EXTHASCW=ENABLED”) in new stack
– Executing [s@macro-dial-one:11] GotoIf(“SIP/gnr_in-00000002”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [s@macro-dial-one:23] GotoIf(“SIP/gnr_in-00000002”, “1?next3:continue”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [s@macro-dial-one:24] ExecIf(“SIP/gnr_in-00000002”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
– Executing [s@macro-dial-one:25] GotoIf(“SIP/gnr_in-00000002”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:26] GosubIf(“SIP/gnr_in-00000002”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“SIP/gnr_in-00000002”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“SIP/gnr_in-00000002”, “DEVICES=7098”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“SIP/gnr_in-00000002”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:4] ExecIf(“SIP/gnr_in-00000002”, “0?Set(DEVICES=098)”) in new stack
– Executing [dstring@macro-dial-one:5] Set(“SIP/gnr_in-00000002”, “LOOPCNT=1”) in new stack
– Executing [dstring@macro-dial-one:6] Set(“SIP/gnr_in-00000002”, “ITER=1”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“SIP/gnr_in-00000002”, “THISDIAL=SIP/7098”) in new stack
– Executing [dstring@macro-dial-one:8] GosubIf(“SIP/gnr_in-00000002”, “1?zap2dahdi,1()”) in new stack
– Executing [zap2dahdi@macro-dial-one:1] ExecIf(“SIP/gnr_in-00000002”, “0?Return()”) in new stack
– Executing [zap2dahdi@macro-dial-one:2] Set(“SIP/gnr_in-00000002”, “NEWDIAL=”) in new stack
– Executing [zap2dahdi@macro-dial-one:3] Set(“SIP/gnr_in-00000002”, “LOOPCNT2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:4] Set(“SIP/gnr_in-00000002”, “ITER2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:5] Set(“SIP/gnr_in-00000002”, “THISPART2=SIP/7098”) in new stack
– Executing [zap2dahdi@macro-dial-one:6] ExecIf(“SIP/gnr_in-00000002”, “0?Set(THISPART2=DAHDI/7098)”) in new stack
– Executing [zap2dahdi@macro-dial-one:7] Set(“SIP/gnr_in-00000002”, “NEWDIAL=SIP/7098&”) in new stack
– Executing [zap2dahdi@macro-dial-one:8] Set(“SIP/gnr_in-00000002”, “ITER2=2”) in new stack
– Executing [zap2dahdi@macro-dial-one:9] GotoIf(“SIP/gnr_in-00000002”, “0?begin2”) in new stack
– Executing [zap2dahdi@macro-dial-one:10] Set(“SIP/gnr_in-00000002”, “THISDIAL=SIP/7098”) in new stack
– Executing [zap2dahdi@macro-dial-one:11] Return(“SIP/gnr_in-00000002”, “”) in new stack
– Executing [dstring@macro-dial-one:9] Set(“SIP/gnr_in-00000002”, “DSTRING=SIP/7098&”) in new stack
– Executing [dstring@macro-dial-one:10] Set(“SIP/gnr_in-00000002”, “ITER=2”) in new stack
– Executing [dstring@macro-dial-one:11] GotoIf(“SIP/gnr_in-00000002”, “0?begin”) in new stack
– Executing [dstring@macro-dial-one:12] Set(“SIP/gnr_in-00000002”, “DSTRING=SIP/7098”) in new stack
– Executing [dstring@macro-dial-one:13] Return(“SIP/gnr_in-00000002”, “”) in new stack
– Executing [s@macro-dial-one:27] GotoIf(“SIP/gnr_in-00000002”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:28] GotoIf(“SIP/gnr_in-00000002”, “0?skiptrace”) in new stack
– Executing [s@macro-dial-one:29] GosubIf(“SIP/gnr_in-00000002”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [ctset@macro-dial-one:1] Set(“SIP/gnr_in-00000002”, “DB(CALLTRACE/7098)=39349XXXXXX”) in new stack
– Executing [ctset@macro-dial-one:2] Return(“SIP/gnr_in-00000002”, “”) in new stack
– Executing [s@macro-dial-one:30] Set(“SIP/gnr_in-00000002”, “D_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dial-one:31] ExecIf(“SIP/gnr_in-00000002”, “0?SIPAddHeader(Alert-Info: )”) in new stack
– Executing [s@macro-dial-one:32] ExecIf(“SIP/gnr_in-00000002”, “0?SIPAddHeader()”) in new stack
– Executing [s@macro-dial-one:33] ExecIf(“SIP/gnr_in-00000002”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [s@macro-dial-one:34] GosubIf(“SIP/gnr_in-00000002”, “0?qwait,1()”) in new stack
– Executing [s@macro-dial-one:35] Set(“SIP/gnr_in-00000002”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:36] Set(“SIP/gnr_in-00000002”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:37] GotoIf(“SIP/gnr_in-00000002”, “0?usegoto,1”) in new stack
– Executing [s@macro-dial-one:38] GotoIf(“SIP/gnr_in-00000002”, “1?godial”) in new stack
– Goto (macro-dial-one,s,42)
– Executing [s@macro-dial-one:42] Dial(“SIP/gnr_in-00000002”, “SIP/7098,Ttr”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/7098
– SIP/7098-00000003 is ringing
– SIP/7098-00000003 is ringing
– SIP/7098-00000003 answered SIP/gnr_in-00000002
[2014-02-27 08:18:10] WARNING[26590]: chan_sip.c:3983 retrans_pkt: Retransmission timeout reached on transmission SDfv7cb01-0df74c8998ced8bc52fca8687729ff86-ao92gd1 for seqno 1 (Critical Response) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 6399ms with no response
[2014-02-27 08:18:10] WARNING[26590]: chan_sip.c:4012 retrans_pkt: Hanging up call SDfv7cb01-0df74c8998ced8bc52fca8687729ff86-ao92gd1 - no reply to our critical packet (see https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions).
– Executing [h@macro-dial-one:1] Macro(“SIP/gnr_in-00000002”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/gnr_in-00000002”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“SIP/gnr_in-00000002”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“SIP/gnr_in-00000002”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/gnr_in-00000002’ in macro ‘hangupcall’
== Spawn extension (macro-dial-one, h, 1) exited non-zero on ‘SIP/gnr_in-00000002’
== Spawn extension (macro-dial-one, s, 42) exited non-zero on ‘SIP/gnr_in-00000002’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 16) exited non-zero on ‘SIP/gnr_in-00000002’ in macro ‘exten-vm’
== Spawn extension (from-did-direct, 7098, 2) exited non-zero on ‘SIP/gnr_in-00000002’

[solved]
enough to put the external ip address in the menu settings-> asterisk sip settings rather than in the trunk.
thanks
greetings