Chan_sip trunk not working

running FP 12 for a few years, NEXVORTEX trunk OK with chan_sip,
building FP 14.0.16.11 and same settings on chan_sip do not work
Please make sense of the following log:
Connected to Asterisk 13.22.0 currently running on pbxtwo (pid = 14445)
== Setting global variable ‘SIPDOMAIN’ to ‘MY.OWN.EXT.IP’
– Executing [1555DID6102@from-sip-external:1] NoOp(“PJSIP/anonymous-00000002”, “Received incoming SIP connection from unknown peer to 1555DID6102”) in new stack
– Executing [1555DID6102@from-sip-external:2] Set(“PJSIP/anonymous-00000002”, “DID=1555DID6102”) in new stack
– Executing [1555DID6102@from-sip-external:3] Goto(“PJSIP/anonymous-00000002”, “s,1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [s@from-sip-external:1] GotoIf(“PJSIP/anonymous-00000002”, “1?setlanguage:checkanon”) in new stack
– Goto (from-sip-external,s,2)
– Executing [s@from-sip-external:2] Set(“PJSIP/anonymous-00000002”, “CHANNEL(language)=en”) in new stack
– Executing [s@from-sip-external:3] GotoIf(“PJSIP/anonymous-00000002”, “1?noanonymous”) in new stack
– Goto (from-sip-external,s,5)
– Executing [s@from-sip-external:5] Set(“PJSIP/anonymous-00000002”, “TIMEOUT(absolute)=15”) in new stack
– Channel will hangup at 2021-10-09 05:00:14.815 UTC.
– Executing [s@from-sip-external:6] Set(“PJSIP/anonymous-00000002”, “receveip=pjsip,remote_addr”) in new stack
– Executing [s@from-sip-external:7] Log(“PJSIP/anonymous-00000002”, "WARNING,“Rejecting unknown SIP connection from PROVIDER-IP:5060"”) in new stack
[2021-10-09 04:59:59] WARNING[20118][C-00000002]: Ext. s:7 @ from-sip-external: “Rejecting unknown SIP connection from PROVIDER-IP:5060”
– Executing [s@from-sip-external:8] Answer(“PJSIP/anonymous-00000002”, “”) in new stack
> 0x7f0484040e90 – Strict RTP learning after remote address set to: 67.231.5.79:36726
– Executing [s@from-sip-external:9] Wait(“PJSIP/anonymous-00000002”, “2”) in new stack
– Executing [s@from-sip-external:10] Playback(“PJSIP/anonymous-00000002”, “ss-noservice”) in new stack
– <PJSIP/anonymous-00000002> Playing ‘ss-noservice.ulaw’ (language ‘en’)
– Executing [s@from-sip-external:11] PlayTones(“PJSIP/anonymous-00000002”, “congestion”) in new stack
– Executing [s@from-sip-external:12] Congestion(“PJSIP/anonymous-00000002”, “5”) in new stack
== Spawn extension (from-sip-external, s, 12) exited non-zero on ‘PJSIP/anonymous-00000002’
– Executing [h@from-sip-external:1] Hangup(“PJSIP/anonymous-00000002”, “”) in new stack
== Spawn extension (from-sip-external, h, 1) exited non-zero on ‘PJSIP/anonymous-00000002’
pbxtwo*CLI>

just curious…why do you build freePBX 14 when version 15 has been around for some time now? If you dont post your trunk settings, how do you expect to get some help? What does freePBX Asterisk Info say? Offline?

Looks to me as though chan_pjsip owns 5060, but isn’t configured for the provider. That will force FreePBX to move chan_sip to a different port.

Best solution is to remove chan_sip and configure chan_ pjsip, for everything.

Even better solution is to disable PJSIP and change chan_sip to port 5060. :slight_smile:

Even better is to remove chan_sip and configures chan_pjsip properly for the system.

even better than better, don’t listen on udp/5060 at all

I do have it installed in a another test server, same problem.

I have tried,
I cant map the current chan_sip from PBX 12 to settings to chan_pjsip for PBX 14 or 15

The phone sets work on 5060 just fine…

my problem is using my provider setting with the new system,
cant seem to matp the current settings to chan_pjsip PBX 4 or 15

Yes… out of the box?

The most likely reasons for that is that their chan_sip setting don’t make sense. It is best to start from first principles, and you are likely to end up with a simpler configuration, that way.

I thought, stupidly, that I would be able to build a new system and just transfer the trunks, no luck, im using one of the provided DIDs for testing, the others are in use on a live system.The provider chan_sip works on the PBX 12, active for 6+ years…

Im testing a PBX 14 because is parallel to the PBX 12 system . the PBX 15 is at home for reference. I will, if succesful, install a PBX 15.

I dont think this is a PBX version issue, its a chan_sip vs chan_pjsip trunk configuration.
The GRANDSTREAM sets connect and work ok on chan_pjsip.
.
I am looking at Port chan_SIP trunk to chan_pjsip dated Aug 2020. at this point all i have to work with is the trunk settings from the provider.

Trunk Name:
NexVortex1
Outbound CallerID:
5555551915
CID Options:
Allow Any CID
Maximum Channels:
10
Asterisk Trunk Dial Options
Tt
Override
Continue if Busy: Check to always try next trunk
Disable Trunk: Disable
Dialed Number Manipulation Rules
(prepend) + prefix | match pattern insert remove
Dial Rules Wizards:
(pick one)
Outbound Dial Prefix:
Outgoing Settings
Trunk Name:
NexVortex1
PEER Details:
host=px1.nexvortex.com
username=username
secret=usersecret
type=peer
qualify=no
insecure=port,invite
dtmfmode=rfc2833

Incoming Settings
USER Context:
from-trunk
USER Details:
type=user
context=from-trunk
qualify=no
insecure=port,invite
host=MY.IP.PUB.LIC

Registration
Register String:

My configuration policy is to make the least amount, and necessary, changes to the installation. Unsuccessful and unnecessary will be eliminated by reinstall with a solid configuration.

This should never have worked, as it would be unusual for the ITSP to put the name of you inbound section in the user part of the From: header! If they really do that, it will break caller ID, as you have no alternative method.

As I understand it, username (which was long ago renamed to default_user), only does anything meaningful with host=dynamic! They are probably confusing it with fromuser, or authuser.

This would do nothing useful if the outbound section was really only used outbound. In most cases, it should have been only insecure=invite, when used for inbound calls. Note that the only way I can see this configuration working is if the outbound section is being used for inbound calls, although I suppose it is just possible that they are being handled as guest calls.

The first log line you shared in post 1 tells you what you need to know. The incoming INVITE is coming to the local PBX port configured for pjsip, but you have created a chan_sip trunk. They must agree.

1 Like

nexVortex has a clear and simple guide for setting up a trunk:


Setting up pjsip should be very simple and will be more robust, because it uses DNS SRV records properly.

I assume that you are not using registration (you have a static public IP and your Register String is empty). If using registration, please provide details. Otherwise, temporarily disable the chan_sip trunk and set up pjsip:

Authentication: Outbound
Registration: None
SIP Server: nexvortex.com
Username: (username supplied by nexVortex)
Secret: (password supplied by nexVortex)
Match (Permit): (fill in the 6 addresses on page 7 of their guide, separated by commas)

If you have trouble, at the Asterisk command prompt type
pjsip set logger on
make a failing call (in or out), paste the Asterisk log for the call at pastebin.freepbx.org and post the link here.

OK Reset…
Configured chan_pjsip, inbound destination Extension 200…
asterisk -rvvvvvvvvvvv
Call gets thru, rings 3 times, answers, goes to VM.
I cant hear VM silence…
I can hear the ring, but not the voice, also happens in PBX 15

chan_pjsip trunk settings: (only changes to default shown)
General

Trunk Name:TRUNK
Outbound CallerID:1555551234 (provider supplied DID)
Max Channels:10

pjsip Settings general

username:nexvortesuser (provider supplied username)
Secret:nexvortexsecret (provider supplied secret)
sip server:px1.nexvortex.com (provider supplied)
sip server port:5060 (provider supplied)

pjsip Settings advanced

From Domain:nexvortex.com (domain portion of
From user:nexvortesuser (provider supplied username)

pjsip Settings Codecs

no changes

asterisk -rvvvvvvv output

Connected to Asterisk 13.22.0 currently running on pbxtwo (pid = 14445)
– Remote UNIX connection
== Setting global variable ‘SIPDOMAIN’ to ‘MY.IP.PUB.LIC’
– Executing [1555SYSTDID@from-pstn:1] Set(“PJSIP/TRUNK-00000006”, “__DIRECTION=INBOUND”) in new stack
– Executing [1555SYSTDID@from-pstn:2] Gosub(“PJSIP/TRUNK-00000006”, “sub-record-check,s,1(in,1555SYSTDID,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“PJSIP/TRUNK-00000006”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“PJSIP/TRUNK-00000006”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“PJSIP/TRUNK-00000006”, “NOW=1633967239”) in new stack
– Executing [s@sub-record-check:4] Set(“PJSIP/TRUNK-00000006”, “__DAY=11”) in new stack
– Executing [s@sub-record-check:5] Set(“PJSIP/TRUNK-00000006”, “__MONTH=10”) in new stack
– Executing [s@sub-record-check:6] Set(“PJSIP/TRUNK-00000006”, “__YEAR=2021”) in new stack
– Executing [s@sub-record-check:7] Set(“PJSIP/TRUNK-00000006”, “__TIMESTR=20211011-154719”) in new stack
– Executing [s@sub-record-check:8] Set(“PJSIP/TRUNK-00000006”, “__FROMEXTEN=unknown”) in new stack
– Executing [s@sub-record-check:9] Set(“PJSIP/TRUNK-00000006”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“PJSIP/TRUNK-00000006”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“PJSIP/TRUNK-00000006”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“PJSIP/TRUNK-00000006”, “2?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“PJSIP/TRUNK-00000006”, “1?sub-record-check,in,1”) in new stack
– Goto (sub-record-check,in,1)
– Executing [in@sub-record-check:1] NoOp(“PJSIP/TRUNK-00000006”, “Inbound Recording Check to 1555SYSTDID”) in new stack
– Executing [in@sub-record-check:2] Set(“PJSIP/TRUNK-00000006”, “FROMEXTEN=unknown”) in new stack
– Executing [in@sub-record-check:3] ExecIf(“PJSIP/TRUNK-00000006”, “11?Set(FROMEXTEN=1555MYCELL)”) in new stack
– Executing [in@sub-record-check:4] Gosub(“PJSIP/TRUNK-00000006”, “recordcheck,1(dontcare,in,1555SYSTDID)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“PJSIP/TRUNK-00000006”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“PJSIP/TRUNK-00000006”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [in@sub-record-check:5] Return(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [1555SYSTDID@from-pstn:3] Set(“PJSIP/TRUNK-00000006”, “CHANNEL(tonezone)=us”) in new stack
– Executing [1555SYSTDID@from-pstn:4] Set(“PJSIP/TRUNK-00000006”, “__FROM_DID=1555SYSTDID”) in new stack
– Executing [1555SYSTDID@from-pstn:5] Set(“PJSIP/TRUNK-00000006”, “returnhere=1”) in new stack
– Executing [1555SYSTDID@from-pstn:6] Gosub(“PJSIP/TRUNK-00000006”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“PJSIP/TRUNK-00000006”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“PJSIP/TRUNK-00000006”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [1555SYSTDID@from-pstn:7] Set(“PJSIP/TRUNK-00000006”, “CDR(did)=1555SYSTDID”) in new stack
– Executing [1555SYSTDID@from-pstn:8] GotoIf(“PJSIP/TRUNK-00000006”, “0?”) in new stack
– Executing [1555SYSTDID@from-pstn:9] ExecIf(“PJSIP/TRUNK-00000006”, “0 ?Set(CALLERID(name)=1555MYCELL)”) in new stack
– Executing [1555SYSTDID@from-pstn:10] Set(“PJSIP/TRUNK-00000006”, “__MOHCLASS=”) in new stack
– Executing [1555SYSTDID@from-pstn:11] Set(“PJSIP/TRUNK-00000006”, “__REVERSAL_REJECT=FALSE”) in new stack
– Executing [1555SYSTDID@from-pstn:12] GotoIf(“PJSIP/TRUNK-00000006”, “1?post-reverse-charge”) in new stack
– Goto (from-pstn,1555SYSTDID,14)
– Executing [1555SYSTDID@from-pstn:14] NoOp(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [1555SYSTDID@from-pstn:15] Set(“PJSIP/TRUNK-00000006”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
– Executing [1555SYSTDID@from-pstn:16] Set(“PJSIP/TRUNK-00000006”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
– Executing [1555SYSTDID@from-pstn:17] Set(“PJSIP/TRUNK-00000006”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
– Executing [1555SYSTDID@from-pstn:18] Set(“PJSIP/TRUNK-00000006”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
– Executing [1555SYSTDID@from-pstn:19] NoOp(“PJSIP/TRUNK-00000006”, “CallerID Entry Point”) in new stack
– Executing [1555SYSTDID@from-pstn:20] Goto(“PJSIP/TRUNK-00000006”, “from-did-direct,200,1”) in new stack
– Goto (from-did-direct,200,1)
– Executing [200@from-did-direct:1] GotoIf(“PJSIP/TRUNK-00000006”, “1?ext-local,200,1:followme-check,200,1”) in new stack
– Goto (ext-local,200,1)
– Executing [200@ext-local:1] Set(“PJSIP/TRUNK-00000006”, “__RINGTIMER=15”) in new stack
– Executing [200@ext-local:2] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(__CWIGNORE=)”) in new stack
– Executing [200@ext-local:3] Macro(“PJSIP/TRUNK-00000006”, “exten-vm,200,200,0,0,0”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“PJSIP/TRUNK-00000006”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“PJSIP/TRUNK-00000006”, “TOUCH_MONITOR=1633967239.6”) in new stack
– Executing [s@macro-user-callerid:2] Set(“PJSIP/TRUNK-00000006”, “AMPUSER=1555MYCELL”) in new stack
– Executing [s@macro-user-callerid:3] Set(“PJSIP/TRUNK-00000006”, “HOTDESCKCHAN=TRUNK-00000006”) in new stack
– Executing [s@macro-user-callerid:4] Set(“PJSIP/TRUNK-00000006”, “HOTDESKEXTEN=TRUNK”) in new stack
– Executing [s@macro-user-callerid:5] Set(“PJSIP/TRUNK-00000006”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-user-callerid:6] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-user-callerid:7] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“PJSIP/TRUNK-00000006”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] ExecIf(“PJSIP/TRUNK-00000006”, “1?Set(REALCALLERIDNUM=1555MYCELL)”) in new stack
– Executing [s@macro-user-callerid:10] Set(“PJSIP/TRUNK-00000006”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:11] GotoIf(“PJSIP/TRUNK-00000006”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:12] Set(“PJSIP/TRUNK-00000006”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“PJSIP/TRUNK-00000006”, “1?report”) in new stack
– Goto (macro-user-callerid,s,29)
– Executing [s@macro-user-callerid:29] NoOp(“PJSIP/TRUNK-00000006”, “Macro Depth is 2”) in new stack
– Executing [s@macro-user-callerid:30] GotoIf(“PJSIP/TRUNK-00000006”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,31)
– Executing [s@macro-user-callerid:31] GotoIf(“PJSIP/TRUNK-00000006”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:32] ExecIf(“PJSIP/TRUNK-00000006”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [s@macro-user-callerid:33] Set(“PJSIP/TRUNK-00000006”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:34] GotoIf(“PJSIP/TRUNK-00000006”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,50)
– Executing [s@macro-user-callerid:50] Set(“PJSIP/TRUNK-00000006”, “CALLERID(number)=1555MYCELL”) in new stack
– Executing [s@macro-user-callerid:51] Set(“PJSIP/TRUNK-00000006”, “CALLERID(name)=WIRELESS CALLER”) in new stack
– Executing [s@macro-user-callerid:52] GotoIf(“PJSIP/TRUNK-00000006”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:53] Set(“PJSIP/TRUNK-00000006”, “CDR(cnam)=WIRELESS CALLER”) in new stack
– Executing [s@macro-user-callerid:54] Set(“PJSIP/TRUNK-00000006”, “CDR(cnum)=1555MYCELL”) in new stack
– Executing [s@macro-user-callerid:55] Set(“PJSIP/TRUNK-00000006”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-exten-vm:2] Set(“PJSIP/TRUNK-00000006”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“PJSIP/TRUNK-00000006”, “__EXTTOCALL=200”) in new stack
– Executing [s@macro-exten-vm:4] Set(“PJSIP/TRUNK-00000006”, “__PICKUPMARK=200”) in new stack
– Executing [s@macro-exten-vm:5] Set(“PJSIP/TRUNK-00000006”, “RT=15”) in new stack
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:6] ExecIf(“PJSIP/TRUNK-00000006”, “0?Macro(vm,200,DIRECTDIAL,)”) in new stack
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:7] ExecIf(“PJSIP/TRUNK-00000006”, “0?MacroExit()”) in new stack
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:8] ExecIf(“PJSIP/TRUNK-00000006”, “0?Gosub(ext-intercom,*80200,1())”) in new stack
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:9] ExecIf(“PJSIP/TRUNK-00000006”, “0?MacroExit()”) in new stack
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:10] ExecIf(“PJSIP/TRUNK-00000006”, “0?ChanSpy(PJSIP/200,q)”) in new stack
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:11] ExecIf(“PJSIP/TRUNK-00000006”, “0?MacroExit()”) in new stack
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:12] ExecIf(“PJSIP/TRUNK-00000006”, “0?Macro(vm,200,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:13] ExecIf(“PJSIP/TRUNK-00000006”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:14] ExecIf(“PJSIP/TRUNK-00000006”, “0?Gosub(ext-intercom,*80200,1())”) in new stack
– Executing [s@macro-exten-vm:15] ExecIf(“PJSIP/TRUNK-00000006”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:16] ExecIf(“PJSIP/TRUNK-00000006”, “0?ChanSpy(PJSIP/200,q)”) in new stack
– Executing [s@macro-exten-vm:17] ExecIf(“PJSIP/TRUNK-00000006”, “0?MacroExit()”) in new stack
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:18] ExecIf(“PJSIP/TRUNK-00000006”, “0?Macro(vm,200,DIRECTDIAL,)”) in new stack
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:19] ExecIf(“PJSIP/TRUNK-00000006”, “0?MacroExit()”) in new stack
[2021-10-11 15:47:19] WARNING[26617][C-00000006]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:20] ExecIf(“PJSIP/TRUNK-00000006”, “0?Macro(vm,200,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:21] ExecIf(“PJSIP/TRUNK-00000006”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:22] Gosub(“PJSIP/TRUNK-00000006”, “sub-record-check,s,1(exten,200,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“PJSIP/TRUNK-00000006”, “11?initialized”) in new stack
– Goto (sub-record-check,s,10)
– Executing [s@sub-record-check:10] NoOp(“PJSIP/TRUNK-00000006”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“PJSIP/TRUNK-00000006”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“PJSIP/TRUNK-00000006”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“PJSIP/TRUNK-00000006”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [exten@sub-record-check:1] NoOp(“PJSIP/TRUNK-00000006”, “Exten Recording Check between 1555MYCELL and 200”) in new stack
– Executing [exten@sub-record-check:2] Set(“PJSIP/TRUNK-00000006”, “CALLTYPE=external”) in new stack
– Executing [exten@sub-record-check:3] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(CALLTYPE=)”) in new stack
– Executing [exten@sub-record-check:4] Set(“PJSIP/TRUNK-00000006”, “CALLEE=dontcare”) in new stack
– Executing [exten@sub-record-check:5] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [exten@sub-record-check:6] GotoIf(“PJSIP/TRUNK-00000006”, “1?callee”) in new stack
– Goto (sub-record-check,exten,11)
– Executing [exten@sub-record-check:11] Gosub(“PJSIP/TRUNK-00000006”, “recordcheck,1(dontcare,external,200)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“PJSIP/TRUNK-00000006”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“PJSIP/TRUNK-00000006”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [exten@sub-record-check:12] Return(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [s@macro-exten-vm:23] GotoIf(“PJSIP/TRUNK-00000006”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,29)
– Executing [s@macro-exten-vm:29] GosubIf(“PJSIP/TRUNK-00000006”, “0?clrheader,1()”) in new stack
– Executing [s@macro-exten-vm:30] Macro(“PJSIP/TRUNK-00000006”, “dial-one,15,HhTtr,200”) in new stack
– Executing [s@macro-dial-one:1] Set(“PJSIP/TRUNK-00000006”, “DEXTEN=200”) in new stack
– Executing [s@macro-dial-one:2] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(__EXTTOCALL=200)”) in new stack
– Executing [s@macro-dial-one:3] Set(“PJSIP/TRUNK-00000006”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:4] GosubIf(“PJSIP/TRUNK-00000006”, “0?screen,1()”) in new stack
– Executing [s@macro-dial-one:5] GosubIf(“PJSIP/TRUNK-00000006”, “0?cf,1()”) in new stack
– Executing [s@macro-dial-one:6] GotoIf(“PJSIP/TRUNK-00000006”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,9)
– Executing [s@macro-dial-one:9] GotoIf(“PJSIP/TRUNK-00000006”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:10] GotoIf(“PJSIP/TRUNK-00000006”, “0?continue”) in new stack
– Executing [s@macro-dial-one:11] Set(“PJSIP/TRUNK-00000006”, “EXTHASCW=ENABLED”) in new stack
– Executing [s@macro-dial-one:12] GotoIf(“PJSIP/TRUNK-00000006”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [s@macro-dial-one:24] GotoIf(“PJSIP/TRUNK-00000006”, “0?next3:continue”) in new stack
– Goto (macro-dial-one,s,26)
– Executing [s@macro-dial-one:26] GotoIf(“PJSIP/TRUNK-00000006”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:27] GosubIf(“PJSIP/TRUNK-00000006”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“PJSIP/TRUNK-00000006”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“PJSIP/TRUNK-00000006”, “DEVICES=200”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“PJSIP/TRUNK-00000006”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:4] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(DEVICES=00)”) in new stack
– Executing [dstring@macro-dial-one:5] Set(“PJSIP/TRUNK-00000006”, “LOOPCNT=1”) in new stack
– Executing [dstring@macro-dial-one:6] Set(“PJSIP/TRUNK-00000006”, “ITER=1”) in new stack

asterisk -rvvvvvvv output (continued)

– Executing [dstring@macro-dial-one:7] Set(“PJSIP/TRUNK-00000006”, “THISDIAL=PJSIP/200”) in new stack
– Executing [dstring@macro-dial-one:8] GosubIf(“PJSIP/TRUNK-00000006”, “1?zap2dahdi,1()”) in new stack
– Executing [zap2dahdi@macro-dial-one:1] ExecIf(“PJSIP/TRUNK-00000006”, “0?Return()”) in new stack
– Executing [zap2dahdi@macro-dial-one:2] Set(“PJSIP/TRUNK-00000006”, “NEWDIAL=”) in new stack
– Executing [zap2dahdi@macro-dial-one:3] Set(“PJSIP/TRUNK-00000006”, “LOOPCNT2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:4] Set(“PJSIP/TRUNK-00000006”, “ITER2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:5] Set(“PJSIP/TRUNK-00000006”, “THISPART2=PJSIP/200”) in new stack
– Executing [zap2dahdi@macro-dial-one:6] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(THISPART2=DAHDIIP/200)”) in new stack
– Executing [zap2dahdi@macro-dial-one:7] Set(“PJSIP/TRUNK-00000006”, “NEWDIAL=PJSIP/200&”) in new stack
– Executing [zap2dahdi@macro-dial-one:8] Set(“PJSIP/TRUNK-00000006”, “ITER2=2”) in new stack
– Executing [zap2dahdi@macro-dial-one:9] GotoIf(“PJSIP/TRUNK-00000006”, “0?begin2”) in new stack
– Executing [zap2dahdi@macro-dial-one:10] Set(“PJSIP/TRUNK-00000006”, “THISDIAL=PJSIP/200”) in new stack
– Executing [zap2dahdi@macro-dial-one:11] Return(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [dstring@macro-dial-one:9] GotoIf(“PJSIP/TRUNK-00000006”, “0?docheck”) in new stack
– Executing [dstring@macro-dial-one:10] NoOp(“PJSIP/TRUNK-00000006”, “Debug: Found PJSIP Destination PJSIP/200”) in new stack
– Executing [dstring@macro-dial-one:11] GotoIf(“PJSIP/TRUNK-00000006”, “0?doset”) in new stack
– Executing [dstring@macro-dial-one:12] NoOp(“PJSIP/TRUNK-00000006”, “Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS”) in new stack
– Executing [dstring@macro-dial-one:13] Set(“PJSIP/TRUNK-00000006”, “THISDIAL=PJSIP/200/sip:[email protected]:5060”) in new stack
– Executing [dstring@macro-dial-one:14] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(DIALSTATUS=CHANUNAVAIL)”) in new stack
– Executing [dstring@macro-dial-one:15] GotoIf(“PJSIP/TRUNK-00000006”, “0?skipset”) in new stack
– Executing [dstring@macro-dial-one:16] Set(“PJSIP/TRUNK-00000006”, “DSTRING=PJSIP/200/sip:[email protected]:5060&”) in new stack
– Executing [dstring@macro-dial-one:17] Set(“PJSIP/TRUNK-00000006”, “ITER=2”) in new stack
– Executing [dstring@macro-dial-one:18] GotoIf(“PJSIP/TRUNK-00000006”, “0?begin”) in new stack
– Executing [dstring@macro-dial-one:19] ExecIf(“PJSIP/TRUNK-00000006”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:20] Set(“PJSIP/TRUNK-00000006”, “DSTRING=PJSIP/200/sip:[email protected]:5060”) in new stack
– Executing [dstring@macro-dial-one:21] Return(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [s@macro-dial-one:28] GotoIf(“PJSIP/TRUNK-00000006”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:29] GotoIf(“PJSIP/TRUNK-00000006”, “0?skiptrace”) in new stack
– Executing [s@macro-dial-one:30] GosubIf(“PJSIP/TRUNK-00000006”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [ctset@macro-dial-one:1] Set(“PJSIP/TRUNK-00000006”, “DB(CALLTRACE/200)=1555MYCELL”) in new stack
– Executing [ctset@macro-dial-one:2] Return(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [s@macro-dial-one:31] Set(“PJSIP/TRUNK-00000006”, “D_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-dial-one:32] GosubIf(“PJSIP/TRUNK-00000006”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [s@macro-dial-one:33] NoOp(“PJSIP/TRUNK-00000006”, "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
– Executing [s@macro-dial-one:34] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:35] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:36] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:37] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [s@macro-dial-one:38] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [s@macro-dial-one:39] GosubIf(“PJSIP/TRUNK-00000006”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [s@macro-dial-one:40] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [s@macro-dial-one:41] GosubIf(“PJSIP/TRUNK-00000006”, “0?qwait,1()”) in new stack
– Executing [s@macro-dial-one:42] Set(“PJSIP/TRUNK-00000006”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:43] Set(“PJSIP/TRUNK-00000006”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:44] GotoIf(“PJSIP/TRUNK-00000006”, “0?usegoto,1”) in new stack
– Executing [s@macro-dial-one:45] GotoIf(“PJSIP/TRUNK-00000006”, “1?godial”) in new stack
– Goto (macro-dial-one,s,50)
– Executing [s@macro-dial-one:50] Macro(“PJSIP/TRUNK-00000006”, “dialout-one-predial-hook,”) in new stack
– Executing [s@macro-dialout-one-predial-hook:1] MacroExit(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [s@macro-dial-one:51] ExecIf(“PJSIP/TRUNK-00000006”, “1?Set(D_OPTIONS=HhtrI)”) in new stack
– Executing [s@macro-dial-one:52] NoOp(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [s@macro-dial-one:53] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(D_OPTIONS=HhtrIg)”) in new stack
– Executing [s@macro-dial-one:54] Dial(“PJSIP/TRUNK-00000006”, “PJSIP/200/sip:[email protected]:5060,15,HhtrIb(func-apply-sipheaders^s^1)”) in new stack
– PJSIP/200-00000007 Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [s@func-apply-sipheaders:1] NoOp(“PJSIP/200-00000007”, “Applying SIP Headers to channel PJSIP/200-00000007”) in new stack
– Executing [s@func-apply-sipheaders:2] Set(“PJSIP/200-00000007”, “TECH=PJSIP”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“PJSIP/200-00000007”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:4] While(“PJSIP/200-00000007”, “0”) in new stack
– Jumping to priority 12
– Executing [s@func-apply-sipheaders:13] Return(“PJSIP/200-00000007”, “”) in new stack
== Spawn extension (from-internal, 200, 1) exited non-zero on ‘PJSIP/200-00000007’
– PJSIP/200-00000007 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called PJSIP/200/sip:[email protected]:5060
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
– Connected line update to PJSIP/TRUNK-00000006 prevented.
– PJSIP/200-00000007 is ringing
– PJSIP/200-00000007 is ringing
– Nobody picked up in 15000 ms
– Executing [s@macro-dial-one:55] ExecIf(“PJSIP/TRUNK-00000006”, “0?MacroExit()”) in new stack
– Executing [s@macro-dial-one:56] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(DIALSTATUS=)”) in new stack
– Executing [s@macro-dial-one:57] GosubIf(“PJSIP/TRUNK-00000006”, “0?s-NOANSWER,1()”) in new stack
– Executing [s@macro-dial-one:58] MacroExit(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [s@macro-exten-vm:31] Set(“PJSIP/TRUNK-00000006”, “SV_DIALSTATUS=NOANSWER”) in new stack
– Executing [s@macro-exten-vm:32] GosubIf(“PJSIP/TRUNK-00000006”, “0?docfu,1()”) in new stack
– Executing [s@macro-exten-vm:33] GosubIf(“PJSIP/TRUNK-00000006”, “0?docfb,1()”) in new stack
– Executing [s@macro-exten-vm:34] Set(“PJSIP/TRUNK-00000006”, “DIALSTATUS=NOANSWER”) in new stack
– Executing [s@macro-exten-vm:35] ExecIf(“PJSIP/TRUNK-00000006”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:36] GotoIf(“PJSIP/TRUNK-00000006”, “0?s-NOANSWER,1”) in new stack
– Executing [s@macro-exten-vm:37] Macro(“PJSIP/TRUNK-00000006”, “vm,200,NOANSWER,”) in new stack
– Executing [s@macro-vm:1] Macro(“PJSIP/TRUNK-00000006”, “user-callerid,SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:1] Set(“PJSIP/TRUNK-00000006”, “TOUCH_MONITOR=1633967239.6”) in new stack
– Executing [s@macro-user-callerid:2] Set(“PJSIP/TRUNK-00000006”, “AMPUSER=1555MYCELL”) in new stack
– Executing [s@macro-user-callerid:3] Set(“PJSIP/TRUNK-00000006”, “HOTDESCKCHAN=TRUNK-00000006”) in new stack
– Executing [s@macro-user-callerid:4] Set(“PJSIP/TRUNK-00000006”, “HOTDESKEXTEN=TRUNK”) in new stack
– Executing [s@macro-user-callerid:5] Set(“PJSIP/TRUNK-00000006”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-user-callerid:6] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-user-callerid:7] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“PJSIP/TRUNK-00000006”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(REALCALLERIDNUM=1555MYCELL)”) in new stack
– Executing [s@macro-user-callerid:10] Set(“PJSIP/TRUNK-00000006”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:11] GotoIf(“PJSIP/TRUNK-00000006”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:12] Set(“PJSIP/TRUNK-00000006”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“PJSIP/TRUNK-00000006”, “1?report”) in new stack
– Goto (macro-user-callerid,s,29)
– Executing [s@macro-user-callerid:29] NoOp(“PJSIP/TRUNK-00000006”, “Macro Depth is 3”) in new stack
– Executing [s@macro-user-callerid:30] GotoIf(“PJSIP/TRUNK-00000006”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,31)
– Executing [s@macro-user-callerid:31] GotoIf(“PJSIP/TRUNK-00000006”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,50)
– Executing [s@macro-user-callerid:50] Set(“PJSIP/TRUNK-00000006”, “CALLERID(number)=1555MYCELL”) in new stack
– Executing [s@macro-user-callerid:51] Set(“PJSIP/TRUNK-00000006”, “CALLERID(name)=WIRELESS CALLER”) in new stack
– Executing [s@macro-user-callerid:52] GotoIf(“PJSIP/TRUNK-00000006”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:53] Set(“PJSIP/TRUNK-00000006”, “CDR(cnam)=WIRELESS CALLER”) in new stack
– Executing [s@macro-user-callerid:54] Set(“PJSIP/TRUNK-00000006”, “CDR(cnum)=1555MYCELL”) in new stack
– Executing [s@macro-user-callerid:55] Set(“PJSIP/TRUNK-00000006”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-vm:2] Set(“PJSIP/TRUNK-00000006”, “VMGAIN=”) in new stack
– Executing [s@macro-vm:3] Macro(“PJSIP/TRUNK-00000006”, “blkvm-check,”) in new stack
– Executing [s@macro-blkvm-check:1] Set(“PJSIP/TRUNK-00000006”, “GOSUB_RETVAL=”) in new stack
– Executing [s@macro-blkvm-check:2] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(GOSUB_RETVAL=TRUE)”) in new stack
– Executing [s@macro-blkvm-check:3] MacroExit(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [s@macro-vm:4] GotoIf(“PJSIP/TRUNK-00000006”, “1?vmx,1”) in new stack
– Goto (macro-vm,vmx,1)
– Executing [vmx@macro-vm:1] Set(“PJSIP/TRUNK-00000006”, “MEXTEN=200”) in new stack
– Executing [vmx@macro-vm:2] Set(“PJSIP/TRUNK-00000006”, “MMODE=NOANSWER”) in new stack
– Executing [vmx@macro-vm:3] Set(“PJSIP/TRUNK-00000006”, “RETVM=”) in new stack
– Executing [vmx@macro-vm:4] Set(“PJSIP/TRUNK-00000006”, “MODE=unavail”) in new stack
– Executing [vmx@macro-vm:5] Macro(“PJSIP/TRUNK-00000006”, “get-vmcontext,200”) in new stack
– Executing [s@macro-get-vmcontext:1] Set(“PJSIP/TRUNK-00000006”, “VMCONTEXT=default”) in new stack
– Executing [s@macro-get-vmcontext:2] GotoIf(“PJSIP/TRUNK-00000006”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing [s@macro-get-vmcontext:300] NoOp(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [vmx@macro-vm:6] Set(“PJSIP/TRUNK-00000006”, “MODE=unavail”) in new stack
– Executing [vmx@macro-vm:7] NoOp(“PJSIP/TRUNK-00000006”, “MODE IS: unavail”) in new stack
– Executing [vmx@macro-vm:8] GotoIf(“PJSIP/TRUNK-00000006”, “1?chknomsg”) in new stack
– Goto (macro-vm,vmx,10)
– Executing [vmx@macro-vm:10] GotoIf(“PJSIP/TRUNK-00000006”, “0?s-NOANSWER,1”) in new stack
– Executing [vmx@macro-vm:11] GotoIf(“PJSIP/TRUNK-00000006”, “1?notdirect”) in new stack
– Goto (macro-vm,vmx,13)
– Executing [vmx@macro-vm:13] NoOp(“PJSIP/TRUNK-00000006”, "Checking if ext 200 is enabled: ") in new stack
– Executing [vmx@macro-vm:14] GotoIf(“PJSIP/TRUNK-00000006”, “1?s-NOANSWER,1”) in new stack
– Goto (macro-vm,s-NOANSWER,1)
– Executing [s-NOANSWER@macro-vm:1] Macro(“PJSIP/TRUNK-00000006”, “get-vmcontext,200”) in new stack
– Executing [s@macro-get-vmcontext:1] Set(“PJSIP/TRUNK-00000006”, “VMCONTEXT=default”) in new stack
– Executing [s@macro-get-vmcontext:2] GotoIf(“PJSIP/TRUNK-00000006”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing [s@macro-get-vmcontext:300] NoOp(“PJSIP/TRUNK-00000006”, “”) in new stack
– Executing [s-NOANSWER@macro-vm:2] VoiceMail(“PJSIP/TRUNK-00000006”, “200@default,u”) in new stack
> 0x7f049400c750 – Strict RTP learning after remote address set to: 67.231.1.79:24388 NOTE: THIS IP IS NOT IN MY WORLD ???
– <PJSIP/TRUNK-00000006> Playing ‘vm-theperson.ulaw’ (language ‘en’)
– <PJSIP/TRUNK-00000006> Playing ‘digits/2.ulaw’ (language ‘en’)
– <PJSIP/TRUNK-00000006> Playing ‘digits/0.ulaw’ (language ‘en’)
– <PJSIP/TRUNK-00000006> Playing ‘digits/0.ulaw’ (language ‘en’)
– <PJSIP/TRUNK-00000006> Playing ‘vm-isunavail.ulaw’ (language ‘en’)
– <PJSIP/TRUNK-00000006> Playing ‘vm-intro.ulaw’ (language ‘en’)
– <PJSIP/TRUNK-00000006> Playing ‘beep.ulaw’ (language ‘en’)
– Recording the message
– x=0, open writing: /var/spool/asterisk/voicemail/default/200/tmp/lfrbUF format: wav, 0x7f04b4037b80
– User hung up
– Recording was 0 seconds long but needs to be at least 1 - abandoning
== Spawn extension (macro-vm, s-NOANSWER, 2) exited non-zero on ‘PJSIP/TRUNK-00000006’ in macro ‘vm’
== Spawn extension (macro-exten-vm, s, 37) exited non-zero on ‘PJSIP/TRUNK-00000006’ in macro ‘exten-vm’
== Spawn extension (ext-local, 200, 3) exited non-zero on ‘PJSIP/TRUNK-00000006’
– Executing [h@ext-local:1] Macro(“PJSIP/TRUNK-00000006”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/TRUNK-00000006”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/TRUNK-00000006”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] NoOp(“PJSIP/TRUNK-00000006”, " montior file= ") in new stack
– Executing [s@macro-hangupcall:5] GotoIf(“PJSIP/TRUNK-00000006”, “1?skipagi”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] Hangup(“PJSIP/TRUNK-00000006”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 7) exited non-zero on ‘PJSIP/TRUNK-00000006’ in macro ‘hangupcall’
== Spawn extension (ext-local, h, 1) exited non-zero o

This IP belongs to bandwidth.com, the carrier hosting your number. Confirm that your router/firewall forwards UDP port 10000-20000 from any IP address to your PBX.

Also, confirm that in Asterisk SIP Settings, Local Networks and External Address are correctly set. If you change these, after Submit and Apply Config, you must restart Asterisk.

If you still have trouble, at the Asterisk command prompt (not a shell prompt), type
pjsip set logger on
repeat the failing call, paste the Asterisk log for the call (not the console output) at pastebin.freepbx.org and post the link here.

Thats what im using in pbx 12 chan_sip succesfully
No chan_pjsip references in the document, trying to translate/port settings to chan_pjsip.
NexVortex was a lot of help:“go to asterisk software provider”, FREEPBX not mentioned.