pjsip show registrations - yes I see my two ISP trunks registered.
Is this registrations for outbound, inbound, or both ?
The later which prompts the next question, why do I see my two trunks in pjsip show endpoints ? is that for inbound or outbound as sometimes I see one of the trunks registered but go UnAvail is show endpoints.
Show registrations is for outbound registrations (which SIP uses only for inbound calls, although some providers use them to validate outbound calls). It doesn’t normally make sense to have registrations in both directions, as registrations are to tell the other side your contact address, but you need theirs to do that (when, as is normally the case, the registrar address is the same as the UAS address).
I think you need to provide the actual output, for the second question. Asterisk has no concept of trunks, and two endpoints would need to have different names.
@david55
Thank you, so if I understand correctly, the registration is saying " hi this is us, send our calls to this address "
The trunks being also in Endpoints, I guess then related to us sending outbound calls.
By what I meant is
**pjsip show registrations**
ISP1/sip:isp1.net:5060 ISP1 Registered
ISP2/sip:isp2.net:5060 ISP2 Registered
**pjsip show endpoints**
(((extensions-ommited)))
Endpoint: ISP1 Not in use 0 of inf
OutAuth: ISP1/loginname
Aor: ISP1 0
Contact: ISP1/sip:[email protected] 71ad0b94ce Avail 101.282
Transport: 0.0.0.0-tcp tcp 3 96 0.0.0.0:5060
Identify: ISP1/ISP1
Match: 180.xx.xx.xx/32
Endpoint: ISP2 Not in use 0 of inf
OutAuth: ISP2/loginname
Aor: ISP2 0
Contact: ISP2/sip:[email protected]:5060 433b07f061 Avail 50.402
Transport: 0.0.0.0-tcp tcp 3 96 0.0.0.0:5060
Identify: ISP2/ISP2
Match: 101.x.x.xxx/32
Hope my question is now clearer, because sometimes I see in Endpoints on Contact line (isp2) saying UnAvail, if I set logger on, it has said error 408 on OPTIONS, but then less than minute later its back, So I guess that registrations are saying I’m OK I can send you calls, but Endpoints is saying thatas fine but I cant at the moment send outbound calls, isp2 does have very strange setup, and we never have this problem with isp1, even with qualify set to 30, its a learning curve and more I learn about registrations and endpoints will help me work on this problem and maybe any issues furthern down the road.
Thank you.
Asterisk tests connectivity by sending OPTIONS to each AOR contact, and making sure that it gets a reply with an acceptable round trip time. It should try several times.
Although 408 can be a real response, it is also faked when the complete retransmission sequence, for a request, fails to produce a response. The trunk is being marked unavailable because it is not responding at all. If that recovers quickly, it is likely to be a network problem.
arg, I never got this forum understood, he asked me to paste something but I messed it and pasted the wrong thing LOL, he’s on IRC and got it sorted out he will thank you when he gets back to his work