No endpoints or peers after upgrade

That is a Level 3 address, perhaps a trunk? Trunks also need to be set to use pjsip (well, they don’t, but it will be easier :wink: )

What does Reports -> Asterisk Info show?

Under Channels, do you see your extensions? Shown as pjsip? Shown as online?

What’s under Peers (PJSIP section)?

Yes, that is the service provider’s address. I believe it is L3. I created a pjsip trunk and the call goes through now, but it is not going to the right extension.

When I look at asterisk info, I see peers are there under pjsip. The ones that have joined show available.

Endpoint: 7341/7341 Not in use 0 of inf
InAuth: 7341-auth/7341
Aor: 7341 1
Contact: 7341/sip:[email protected]:5060 1a3ebb1cb8 Avail 13.374

This is what I see under channels
image

That’s ‘Inbound routes’ misconfigured

Ok, I will check those. I am also seeing this in asterisk cli
[2021-03-09 21:38:20] WARNING[3685]: res_pjsip_outbound_registration.c:1043 handle_registration_response: ‘405’ fatal response received from ‘sip:4.55.4.97:5060’ on registration attempt to ‘sip:[email protected]:5060’, retrying in ‘30’ seconds

and this under the asterisk info for registries
image

That’s a trunk configuration error, are you using IP auth or Registration? Check with your provider for the ‘howtos’

I checked the config of one of our servers that is up and running that peers with L3 as well and that trunk has registration and authentication set to none, so I did that as well and am no longer seeing the error.

IP auth doesn’t need them, but you and the carrier need to agree on your external IP and where you will send calls to (host on your end, destination on theirs ) , can you call in and out on that trunk?

I want to assume that the external ip is good because I am using the same external ip that the current production system is using (the current production system has it’s interfaces with the same addresses disabled right now) and calls were working fine before I moved services to the standby I am working on.
I just tested with a smart phone and an outbound call to my cell phone worked fine. When I call in, it is taking me to the same recording no matter what number I call, even the extension that just tested good outbound on the softphone.
So I guess I just gotta figure out the inbound routes now

Sounds like progress , keep at it !

( What recording? inbound calls might well come from other IP’s they need to all be added in pjsip (advanced->match permit) )

All inbound calls are being sent to this recording


It is a recording of directions to the center I am working on.
Where do I find the advanced > match permit?

Do you not have any inbound routes that match your DID’s with something more discriminatory?

Yes, here are all the inbound routes configured right now.

The destinations on the ones blocked out are going to conferences, or a time condition for one of them. As well as an IVR

Use sngrep to check that all incoming calls to 5134197244 carry a CID (To: ) of 5134197244 and not perhaps 15134197244 or +15134197244. the DID must exactly match what the carrier is sending as CallerID(number) (or perhaps a valid regex i.e. _5134197244 )

The incoming call did have a +1 in front of it. So do I have to add +1 to all inbound routes, or is there another way to get around this?

That would be the easiest way, rewriting the CallerID(number) on incoming calls could be fixed by using the from-pstn-e164-us context on the trunk, which which will convert them to 10 digit (kinda) NANPy NXXNXXXXXX format, if you have mandatory 11 digit dialing in your locale than your outbound routes need to add the preliminary 1 to NXXNXXXXX to facilitate callbacks (11 digits not yet mandatory in Ohio, in many places it already is, prepare for the future :slight_smile: )

I changed the context on the pjsip trunk to from-pstn-e164-us but still got the same result when making an inbound call. I will probably add the 1 to the outbound routes because I would like to be prepared for the future, thank you for this recommendation.
Also I really appreciate your help with all of this. I need to take a break from this for now though.

1 Like

logs, logs, (sngrep), no guessing allowed.

I am still having trouble with this and can not figure it out. The context is from-pstn-e164-us on both trunks, although I am pretty sure I am only using pjsip trunk. Here is the dial pattern for local routes

Here is the dial pattern for long distance routes.

I’m still not sure if I need to edit the inbound routes or outbound routes, but my problem is with inbound calls, so I assume it is inbound routes that I need to edit. There is one extension that if you call it will go to.

I created another inbound route to a direct extension but that failed. I checked the logs to see what the difference between this call and other calls were but I can not find what is causing it to get to the extension. Here are logs from calls being forwarded to the wrong extension.

    indent preformatted text by 4 spaces8477	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [+15134197203@from-pstn-e164-us:1] Set("PJSIP/L3_pjsip-00000037", "CALLERID(number)=7028858629") in new stack	
8478	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [+15134197203@from-pstn-e164-us:2] Goto("PJSIP/L3_pjsip-00000037", "from-pstn,5134197203,1") in new stack	
8479	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx_builtins.c: Goto (from-pstn,5134197203,1)	
8480	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [5134197203@from-pstn:1] NoOp("PJSIP/L3_pjsip-00000037", "Catch-All DID Match - Found 5134197203 - You probably want a DID for this.") in new stack	
8481	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [5134197203@from-pstn:2] Set("PJSIP/L3_pjsip-00000037", "__FROM_DID=5134197203") in new stack	
8482	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [5134197203@from-pstn:3] Goto("PJSIP/L3_pjsip-00000037", "ext-did,s,1") in new stack	
8483	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx_builtins.c: Goto (ext-did,s,1)	
8484	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:1] Set("PJSIP/L3_pjsip-00000037", "__DIRECTION=INBOUND") in new stack	
8485	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:2] Set("PJSIP/L3_pjsip-00000037", "CHANNEL(tonezone)=us") in new stack	
8486	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:3] ExecIf("PJSIP/L3_pjsip-00000037", "0?Set(__FROM_DID=s)") in new stack	
8487	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:4] Set("PJSIP/L3_pjsip-00000037", "returnhere=1") in new stack	
8488	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:5] Gosub("PJSIP/L3_pjsip-00000037", "app-blacklist-check,s,1()") in new stack	
8489	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@app-blacklist-check:1] GotoIf("PJSIP/L3_pjsip-00000037", "0?blacklisted") in new stack	
8490	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@app-blacklist-check:2] Set("PJSIP/L3_pjsip-00000037", "CALLED_BLACKLIST=1") in new stack	
8491	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@app-blacklist-check:3] Return("PJSIP/L3_pjsip-00000037", "") in new stack	
8492	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:6] Set("PJSIP/L3_pjsip-00000037", "CDR(did)=5134197203") in new stack	
8493	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:7] GotoIf("PJSIP/L3_pjsip-00000037", "0?") in new stack	
8494	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:8] ExecIf("PJSIP/L3_pjsip-00000037", "0 ?Set(CALLERID(name)=7028858629)") in new stack	
8495	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:9] Set("PJSIP/L3_pjsip-00000037", "__MOHCLASS=") in new stack	
8496	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:10] Set("PJSIP/L3_pjsip-00000037", "__REVERSAL_REJECT=FALSE") in new stack	
8497	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:11] GotoIf("PJSIP/L3_pjsip-00000037", "1?post-reverse-charge") in new stack	
8498	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx_builtins.c: Goto (ext-did,s,13)	
8499	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:13] NoOp("PJSIP/L3_pjsip-00000037", "") in new stack	
8500	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:14] Set("PJSIP/L3_pjsip-00000037", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack	
8501	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:15] Set("PJSIP/L3_pjsip-00000037", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack	
8502	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:16] Set("PJSIP/L3_pjsip-00000037", "CALLERID(name-pres)=allowed_not_screened") in new stack	
8503	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:17] Set("PJSIP/L3_pjsip-00000037", "CALLERID(num-pres)=allowed_not_screened") in new stack	
8504	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:18] NoOp("PJSIP/L3_pjsip-00000037", "CallerID Entry Point") in new stack	
8505	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:19] Set("PJSIP/L3_pjsip-00000037", "__CRM_DIRECTION=INBOUND") in new stack	
8506	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:20] Set("PJSIP/L3_pjsip-00000037", "__CRM_SOURCE=7028858629") in new stack	
8507	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:21] Set("PJSIP/L3_pjsip-00000037", "__CRM_LINKEDID=1615426229.59") in new stack	
8508	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:22] AGI("PJSIP/L3_pjsip-00000037", "agi://127.0.0.1/sangomacrm.agi,true") in new stack	
8509	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] res_agi.c: <PJSIP/L3_pjsip-00000037>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0	
8510	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:23] ExecIf("PJSIP/L3_pjsip-00000037", "1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack	
8511	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@ext-did:24] Goto("PJSIP/L3_pjsip-00000037", "app-announcement-2,s,1") in new stack	
8512	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx_builtins.c: Goto (app-announcement-2,s,1)	
8513	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@app-announcement-2:1] GotoIf("PJSIP/L3_pjsip-00000037", "0?begin") in new stack	
8514	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@app-announcement-2:2] Answer("PJSIP/L3_pjsip-00000037", "") in new stack	
8515	[2021-03-10 20:30:29] VERBOSE[11289][C-00000038] pbx.c: Executing [s@app-announcement-2:3] Wait("PJSIP/L3_pjsip-00000037", "1") in new stack	
8516	[2021-03-10 20:30:30] VERBOSE[11289][C-00000038] pbx.c: Executing [s@app-announcement-2:4] NoOp("PJSIP/L3_pjsip-00000037", "Playing announcement Directions") in new stack	
8517	[2021-03-10 20:30:30] VERBOSE[11289][C-00000038] pbx.c: Executing [s@app-announcement-2:5] Set("PJSIP/L3_pjsip-00000037", "TIMEOUT(response)=1") in new stack	
8518	[2021-03-10 20:30:30] VERBOSE[11289][C-00000038] func_timeout.c: Response timeout set to 1.000	
8519	[2021-03-10 20:30:30] VERBOSE[11289][C-00000038] pbx.c: Executing [s@app-announcement-2:6] BackGround("PJSIP/L3_pjsip-00000037", "custom/directions,nm") in new stack	
8520	[2021-03-10 20:30:30] VERBOSE[11289][C-00000038] file.c: <PJSIP/L3_pjsip-00000037> Playing 'custom/directions.slin' (language 'en')