I wasn't able to get much out of babytel, beyond the fact that I was, apparently, sending options which is why I'm not getting 200 OK. How can I, generally speaking, ping/telnet or otherwise test the connection to get more data? A connection to this peer directly from a softphone, Jitsi, works fine. linux-k7qk*CLI> linux-k7qk*CLI> sip show peer testcarrier * Name : testcarrier Secret : <Set> MD5Secret : <Not set> Remote Secret: <Not set> Context : from-trunk Subscr.Cont. : <Not set> Language : en AMA flags : Unknown Netborder CPD: No Transfer mode: open CallingPres : Presentation Allowed, Not Screened FromUser : 1234567890 FromDomain : sip.babytel.ca Port 5060 Callgroup : Pickupgroup : MOH Suggest : default Mailbox : VM Extension : asterisk LastMsgsSent : 32767/65535 Call limit : 0 Max forwards : 0 Dynamic : No Callerid : "" <> MaxCallBR : 384 kbps Expire : -1 Insecure : port,invite Force rport : Yes ACL : No DirectMedACL : No T.38 support : No T.38 EC mode : Unknown T.38 MaxDtgrm: 4294967295 DirectMedia : No PromiscRedir : No User=Phone : No Video Support: No Text Support : No Ign SDP ver : No Trust RPID : No Send RPID : Yes TrustIDOutbnd: Legacy Subscriptions: Yes Overlap dial : No Outb. proxy : nat5.babytel.ca DTMFmode : rfc2833 Timer T1 : 500 Timer B : 32000 ToHost : sip.babytel.ca Addr->IP : 198.38.7.11:5060 Defaddr->IP : (null) Prim.Transp. : UDP Allowed.Trsp : UDP Def. Username: 1234567890 SIP Options : (none) Codecs : 0x4 (ulaw) Codec Order : (ulaw:20) Auto-Framing : No Status : UNREACHABLE Useragent : Reg. Contact : Qualify Freq : 60000 ms Sess-Timers : Accept Sess-Refresh : uas Sess-Expires : 1800 secs Min-Sess : 90 secs RTP Engine : asterisk Parkinglot : Use Reason : No Encryption : No linux-k7qk*CLI> thanks, Thufir
Turn on sip debugging for this peer and watch for the options sending and response. If you are getting a response to your options asterisk shouldn't be marking the peer as unavailable. is your asterisk behind a firewall? On 20 March 2015 at 13:42, thufir <hawat.thufir at gmail.com> wrote:> I wasn't able to get much out of babytel, beyond the fact that I was, > apparently, sending options which is why I'm not getting 200 OK. > > How can I, generally speaking, ping/telnet or otherwise test the connection > to get more data? > > A connection to this peer directly from a softphone, Jitsi, works fine. > > > linux-k7qk*CLI> > linux-k7qk*CLI> sip show peer testcarrier > > > * Name : testcarrier > Secret : <Set> > MD5Secret : <Not set> > Remote Secret: <Not set> > Context : from-trunk > Subscr.Cont. : <Not set> > Language : en > AMA flags : Unknown > Netborder CPD: No > Transfer mode: open > CallingPres : Presentation Allowed, Not Screened > FromUser : 1234567890 > FromDomain : sip.babytel.ca Port 5060 > Callgroup : > Pickupgroup : > MOH Suggest : default > Mailbox : > VM Extension : asterisk > LastMsgsSent : 32767/65535 > Call limit : 0 > Max forwards : 0 > Dynamic : No > Callerid : "" <> > MaxCallBR : 384 kbps > Expire : -1 > Insecure : port,invite > Force rport : Yes > ACL : No > DirectMedACL : No > T.38 support : No > T.38 EC mode : Unknown > T.38 MaxDtgrm: 4294967295 > DirectMedia : No > PromiscRedir : No > User=Phone : No > Video Support: No > Text Support : No > Ign SDP ver : No > Trust RPID : No > Send RPID : Yes > TrustIDOutbnd: Legacy > Subscriptions: Yes > Overlap dial : No > Outb. proxy : nat5.babytel.ca > DTMFmode : rfc2833 > Timer T1 : 500 > Timer B : 32000 > ToHost : sip.babytel.ca > Addr->IP : 198.38.7.11:5060 > Defaddr->IP : (null) > Prim.Transp. : UDP > Allowed.Trsp : UDP > Def. Username: 1234567890 > SIP Options : (none) > Codecs : 0x4 (ulaw) > Codec Order : (ulaw:20) > Auto-Framing : No > Status : UNREACHABLE > Useragent : > Reg. Contact : > Qualify Freq : 60000 ms > Sess-Timers : Accept > Sess-Refresh : uas > Sess-Expires : 1800 secs > Min-Sess : 90 secs > RTP Engine : asterisk > Parkinglot : > Use Reason : No > Encryption : No > > linux-k7qk*CLI> > > > > thanks, > > Thufir > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
On 15-03-20 6:42 AM, thufir wrote:> I wasn't able to get much out of babytel, beyond the fact that I was, > apparently, sending options which is why I'm not getting 200 OK. > > How can I, generally speaking, ping/telnet or otherwise test the > connection to get more data? > > A connection to this peer directly from a softphone, Jitsi, works fine." Unreachable generally means you have qualify=yes, but the peer is ignoring OPTIONS requests." http://forums.asterisk.org/viewtopic.php?f=13&t=92485 but, how do I **know** that, or establish it as fact? thanks, Thufir -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150320/3c1b87b0/attachment.html>
On 15-03-20 6:55 AM, dotnetdub wrote:> Turn on sip debugging for this peer and watch for the options sending > and response. > > If you are getting a response to your options asterisk shouldn't be > marking the peer as unavailable. > > is your asterisk behind a firewall?I have a Cisco DPC3825 DOCSIS 3.0 Data Gateway ... with firewall at "low" for SPI. I don't recall the other setting, but I've tested it by making VoIP calls with Jitsi configured with this exact peer. Of course, the config isn't exactly the same, but it's the same account, same company, etc. turn on debug like so: https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information I'll try that, thanks :) -Thufir -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150320/20c0097c/attachment.html>
On 15-03-20 6:55 AM, dotnetdub wrote:> Turn on sip debugging for this peer and watch for the options sending > and response. > > If you are getting a response to your options asterisk shouldn't be > marking the peer as unavailable. > > is your asterisk behind a firewall?this fits with tech support saying that I was sending options, if that means INVITE et. al. as below: linux-k7qk*CLI> [Mar 20 10:31:01] Reliably Transmitting (NAT) to 198.38.7.11:5060: OPTIONS sip:sip.babytel.ca SIP/2.0 Via: SIP/2.0/UDP 96.48.217.39:5060;branch=z9hG4bK5311a3f3;rport Max-Forwards: 70 ... CSeq: 102 OPTIONS User-Agent: Asterisk PBX 1.8.29.0-vici Date: Fri, 20 Mar 2015 14:31:01 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE Supported: replaces, timer Content-Length: 0 --- [Mar 20 10:31:02] == Manager 'sendcron' logged on from 127.0.0.1 [Mar 20 10:31:02] == Manager 'sendcron' logged off from 127.0.0.1 [Mar 20 10:31:02] Retransmitting #1 (NAT) to 198.38.7.11:5060: OPTIONS sip:sip.babytel.ca SIP/2.0 Via: SIP/2.0/UDP 96.48.217.39:5060;branch=z9hG4bK5311a3f3;rport Max-Forwards: 70 ... CSeq: 102 OPTIONS User-Agent: Asterisk PBX 1.8.29.0-vici Date: Fri, 20 Mar 2015 14:31:01 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE Supported: replaces, timer Content-Length: 0 --- [Mar 20 10:31:03] Retransmitting #2 (NAT) to 198.38.7.11:5060: OPTIONS sip:sip.babytel.ca SIP/2.0 Via: SIP/2.0/UDP 96.48.217.39:5060;branch=z9hG4bK5311a3f3;rport Max-Forwards: 70 ... To: <sip:sip.babytel.ca> .. CSeq: 102 OPTIONS User-Agent: Asterisk PBX 1.8.29.0-vici Date: Fri, 20 Mar 2015 14:31:01 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE Supported: replaces, timer Content-Length: 0 --- [Mar 20 10:31:04] Retransmitting #3 (NAT) to 198.38.7.11:5060: OPTIONS sip:sip.babytel.ca SIP/2.0 Via: SIP/2.0/UDP 96.48.217.39:5060;branch=z9hG4bK5311a3f3;rport Max-Forwards: 70 ... CSeq: 102 OPTIONS User-Agent: Asterisk PBX 1.8.29.0-vici Date: Fri, 20 Mar 2015 14:31:01 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE Supported: replaces, timer Content-Length: 0 --- linux-k7qk*CLI> exit linux-k7qk:~ # linux-k7qk:~ # thanks, Thufir