Sip unregister <peer> results in peer unknown. Not registered

I’ve tried to unregister telnyx:

mordor*CLI> 
mordor*CLI> sip show peers
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description                      
98765432GW1/98765432      63.247.69.226                               Yes        Yes            5060     OK (84 ms)                                   
98765432GW2/98765432      63.247.69.226                               Yes        Yes            5060     OK (89 ms)                                   
demo_alice                (Unspecified)                            D  Yes        Yes            0        UNKNOWN                                      
demo_bob                  (Unspecified)                            D  Yes        Yes            0        UNKNOWN                                      
hawat                     (Unspecified)                            D  Yes        Yes            0        UNKNOWN                                      
piter/piter               192.168.1.5                              D  Yes        Yes            5063     OK (10 ms)                                   
thufir/thufir             192.168.1.5                              D  Yes        Yes            5062     OK (10 ms)                                   
7 sip peers [Monitored: 4 online, 3 offline Unmonitored: 0 online, 0 offline]
mordor*CLI> 
mordor*CLI> sip show registry
Host                                    dnsmgr Username       Refresh State                Reg.Time                 
gw1.siptrunk.com:5060                   N      98765432           105 Registered           Sun, 03 Jul 2016 20:50:52
sip.telnyx.com:5060                     N      telnyx1234         105 Registered           Sun, 03 Jul 2016 20:50:52
2 SIP registrations.
mordor*CLI> 

because it doesn’t show in sip show peers however, it doesn’t have a peer name. They syntax is given by help sip unregister but…this isn’t a peer, at least not so far as sip show peers is concerned.

The unregister CLI command is only for forcing the expiration of incoming registrations, It won’t affect your outbound registrations.

I’ll just restart Asterisk, then. Thanks.

Remove the register string from your box. If you don’t it will keep up showing up.

Thanks, I was trying different register strings. In any event, got it working: