Koozali.org: home of the SME Server

Something weird happening with my trunks!

Offline del

  • *
  • 765
  • +0/-0
Something weird happening with my trunks!
« on: July 23, 2012, 09:28:47 PM »
Hi All,

I am running SAIL 3.1.1-9 on SME 8.0 with 9 SIP trunks and for as long as I can remember everything has worked great until this afternoon  :-? I tried to call out and the number I called went straight to a busy tone, so I tried again and again, still the same  :-o So I then tried a different number and got the same result  :-( So I tried to call in on my mobile and it worked OK. Went into SAIL admin panel and all my trunks are showing as not connected (big red X) but showing the IP address as if they are connected  :-? So I then used X-Lite to connect one of my SIP trunks and it dialed out OK :cool: I deleted it from X-Lite and still not working with SAIL. So now I am beat, bottom line is I can receive calls but not make them, my routes haven't changed and my external IP address is still correct. Can anyone please shed some light on it for me and point me in the right direction. Thanks for looking.

Kind regards,
Del

Asterisk console output when I dial out:

[root@sark-pbx ~]# asterisk -rvvvvv
Asterisk 1.8.5.0, Copyright (C) 1999 - 2011 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for detail                                                                                                                                                             s.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.5.0 currently running on sark-pbx (pid = 2781)
Verbosity is at least 5
       > doing dnsmgr_lookup for 'sipgate.co.uk'
       > ast_get_srv: SRV lookup for '_sip._udp.sipgate.co.uk' mapped to host sipgate.co.uk, port 5060
       > doing dnsmgr_lookup for 'sipgate.co.uk'
       > ast_get_srv: SRV lookup for '_sip._udp.sipgate.co.uk' mapped to host sipgate.co.uk, port 5060
       > doing dnsmgr_lookup for 'sipgate.co.uk'
       > ast_get_srv: SRV lookup for '_sip._udp.sipgate.co.uk' mapped to host sipgate.co.uk, port 5060
       > doing dnsmgr_lookup for 'sipgate.co.uk'
       > ast_get_srv: SRV lookup for '_sip._udp.sipgate.co.uk' mapped to host sipgate.co.uk, port 5060
       > doing dnsmgr_lookup for 'sipgate.co.uk'
       > ast_get_srv: SRV lookup for '_sip._udp.sipgate.co.uk' mapped to host sipgate.co.uk, port 5060
       > doing dnsmgr_lookup for 'sipgate.co.uk'
       > ast_get_srv: SRV lookup for '_sip._udp.sipgate.co.uk' mapped to host sipgate.co.uk, port 5060
       > doing dnsmgr_lookup for 'sipgate.co.uk'
       > ast_get_srv: SRV lookup for '_sip._udp.sipgate.co.uk' mapped to host sipgate.co.uk, port 5060
       > doing dnsmgr_lookup for 'sipgate.co.uk'
       > ast_get_srv: SRV lookup for '_sip._udp.sipgate.co.uk' mapped to host sipgate.co.uk, port 5060
       > doing dnsmgr_lookup for 'sipgate.co.uk'
       > ast_get_srv: SRV lookup for '_sip._udp.sipgate.co.uk' mapped to host sipgate.co.uk, port 5060
       > doing dnsmgr_lookup for 'sipgate.co.uk'
       > ast_get_srv: SRV lookup for '_sip._udp.sipgate.co.uk' mapped to host sipgate.co.uk, port 5060
       > doing dnsmgr_lookup for 'sip.voipcheap.co.uk'
       > doing dnsmgr_lookup for 'sip.voipcheap.co.uk'
       > doing dnsmgr_lookup for 'sipgw.voicenetwork.ca'
       > ast_get_srv: SRV lookup for '_sip._udp.sipgw.voicenetwork.ca' mapped to host sipgw.voicenetwork.ca, port 5060
       > doing dnsmgr_lookup for 'sipgw.voicenetwork.ca'
       > ast_get_srv: SRV lookup for '_sip._udp.sipgw.voicenetwork.ca' mapped to host sipgw.voicenetwork.ca, port 5060
       > doing dnsmgr_lookup for 'did.voicenetwork.ca'
       > doing dnsmgr_lookup for 'did.voicenetwork.ca'
  == Using SIP RTP CoS mark 5
    -- Executing [07907339916@internal:1] AGI("SIP/402-00000036", "sarkhpe,OutCos,07907339916") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sarkhpe
    -- <SIP/402-00000036>AGI Script sarkhpe completed, returning 0
    -- Executing [07907339916@402closedcos:1] AGI("SIP/402-00000036", "sarkhpe,OutCluster,07907339916") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sarkhpe
    -- AGI Script Executing Application: (Set) Options: (CDR(accountcode)=default)
    -- <SIP/402-00000036>AGI Script sarkhpe completed, returning 0
    -- Executing [07907339916@qrxvtmny:1] AGI("SIP/402-00000036", "sarkhpe,OutRoute,outbound") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sarkhpe
    -- AGI Script Executing Application: (Set) Options: (__filename=1343077839-07907339916-402.wav)
    -- AGI Script Executing Application: (MixMonitor) Options: (/var/spool/asterisk/monitor/1343077839-07907339916-402.wav,,/bin/sh /opt/sark/scripts/selmix mixmon /var/spool/asterisk/monitor/1343077839-07907339916-402.wav)
  == Begin MixMonitor Recording SIP/402-00000036
    -- AGI Script Executing Application: (Set) Options: (TIMEOUT(absolute)=14400)
Channel will hangup at 2012-07-24 02:10:39.937 BST.
    -- AGI Script Executing Application: (Dial) Options: (SIP/07907339916@peer8022,,T)
[Jul 23 22:10:39] WARNING[8738]: app_dial.c:2196 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- AGI Script Executing Application: (Playback) Options: (beep)
    -- <SIP/402-00000036> Playing 'beep.gsm' (language 'en-gb')
[Jul 23 22:10:39] NOTICE[8738]: channel.c:4128 __ast_read: Dropping incompatible voice frame on SIP/402-00000036 of format alaw since our native format has changed to 0x4 (ulaw)
    -- AGI Script Executing Application: (Playtones) Options: (congestion)
    -- AGI Script Executing Application: (Congestion) Options: ()
    -- <SIP/402-00000036>AGI Script sarkhpe completed, returning 4
  == Spawn extension (qrxvtmny, 07907339916, 1) exited non-zero on 'SIP/402-00000036'
    -- Executing [h@qrxvtmny:1] Hangup("SIP/402-00000036", "") in new stack
  == Spawn extension (qrxvtmny, h, 1) exited non-zero on 'SIP/402-00000036'
  == MixMonitor close filestream
  == Executing [/bin/sh /opt/sark/scripts/selmix mixmon /var/spool/asterisk/monitor/1343077839-07907339916-402.wav]
  == End MixMonitor Recording SIP/402-00000036
sark-pbx*CLI>
« Last Edit: July 23, 2012, 11:18:40 PM by del »
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline del

  • *
  • 765
  • +0/-0
Re: Something weird happening with my trunks!
« Reply #1 on: July 26, 2012, 08:18:45 AM »
OK, I can't make or receive calls now. It seems to be a registration failure on all my SIP trunks but I can't see why it would suddenly go wrong. If I set up  any of the trunks in either X-Lite or a PAP2 they register and work fine  :-? Any one got any ideas?

Kind regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Something weird happening with my trunks!
« Reply #2 on: July 29, 2012, 12:00:38 PM »
asterisk says it can't make the call.  the dial is syntactically correct so I would suspect something has gone awry on the asterisk box.  If you've tried an asterisk stop/start and that didn't clear it then try a reboot.  if that doesn't work then you need to look at what has changed in your environment. 

Kind Regards


Offline del

  • *
  • 765
  • +0/-0
Re: Something weird happening with my trunks!
« Reply #3 on: August 06, 2012, 07:44:53 PM »
Hi Jeff,

Finally got chance to take a look at this and follow your suggestions.
1. asterisk stop/start - no good
2. try a reboot - no good
3. what has changed in your environment - only thing I can see is that Virgin have upgraded the firmware on the superhub, so I reset it to factory settings and did all the port forwarding etc. - no good, even tried putting my server in the DMZ.
4. Fresh install of SAIL 3.1 from your ISO - still no good (only have 2 trunks setup for testing)
Weird thing is I have a PBX in a Flash box setup with all the same trunks etc. and that works fine :? I can also setup either of the trunks on a PAP2 or on X-lite and they work as expected :? :?

When I run asterisk -rvvvvv, followed by sip show registry  get this:
sark-pbx*CLI> sip show registry
Host                                    dnsmgr Username       Refresh State                Reg.Time
sipgate.co.uk:5060                      N      2XXXXXX1            145 Registered           Mon, 06 Aug 2012 18:04:49
voipdiscount.com:5060                 N      hxxxxxxe              145 Registered           Mon, 06 Aug 2012 18:05:17
2 SIP registrations.
       > doing dnsmgr_lookup for 'sipgate.co.uk'
       > ast_get_srv: SRV lookup for '_sip._udp.sipgate.co.uk' mapped to host sipgate.co.uk, port 5060
       > doing dnsmgr_lookup for 'voipdiscount.com'
       > ast_get_srv: SRV lookup for '_sip._udp.voipdiscount.com' mapped to host sip1server1.voipdiscount.com, port 5060
       > doing dnsmgr_lookup for 'voipdiscount.com'
       > ast_get_srv: SRV lookup for '_sip._udp.voipdiscount.com' mapped to host sip1server1.voipdiscount.com, port 5060

Ports 5060 UDP and 10000-200000 UTP are forwarded to the server.

Same commands from PBX in a Flash server gives this:
pbxinaflash*CLI> sip show registry
Host                                       dnsmgr Username       Refresh State                Reg.Time
sipgate.co.uk:5060                         N      2XXXXXX1            105 Registered           Mon, 06 Aug 2012 18:24:39
sip.voipdiscount.com:5060               N      hxxxxxxe               105 Registered           Mon, 06 Aug 2012 18:24:40
2 SIP registrations.

So basically I am a loss at what to do next :( I don't understand why it would suddenly do this as it's been running for over 18 months without any problems :shock:
Any help is greatly appreciated.

Regards,
Del
« Last Edit: August 07, 2012, 08:16:56 AM by del »
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Something weird happening with my trunks!
« Reply #4 on: August 07, 2012, 08:26:52 AM »
the output shows that both systems have registered correctly with the two carriers.   I can't tell what's amiss from the information you've sent.  However, if your system was working and it stopped, without you changing anything on the system itself then the answer must lie outside.  To debug further you will need to run tshark or tcpdump to see what packets are arriving and departing.

Kind Regards

S   

Offline del

  • *
  • 765
  • +0/-0
Re: Something weird happening with my trunks!
« Reply #5 on: August 07, 2012, 10:24:02 AM »
Hi Jeff,

I'll run those commands when I get home, what I find weird is that I can make and receive calls on the PBX in a Flash box but not on the SARK box  :( I'll post the results later.

Kind regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline del

  • *
  • 765
  • +0/-0
Re: Something weird happening with my trunks!
« Reply #6 on: August 07, 2012, 07:41:31 PM »
Hi Jeff,

I've tried those commands and it says tshark is not a command, on the tcpdump one I got this output:
Quote
18:19:18.927391 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 509532 win 171
18:19:18.927718 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 509844 win 169
18:19:18.927979 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 510172 win 168
18:19:18.928191 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 510500 win 167
18:19:18.928441 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 510828 win 166
18:19:18.928691 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 511748 win 171
18:19:18.928952 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 512076 win 169
18:19:18.929175 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 512404 win 168
18:19:18.929436 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 513288 win 171
18:19:18.929622 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 513728 win 169
18:19:18.929821 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 514056 win 168
18:19:18.930389 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 514660 win 165
18:19:18.930713 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 514972 win 171
18:19:18.930898 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 515412 win 169
18:19:18.931040 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 515740 win 168
18:19:18.931202 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 516180 win 166
18:19:18.931352 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 517080 win 171
18:19:18.931644 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 517392 win 169
18:19:18.931854 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 517720 win 168
18:19:18.932174 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 518048 win 167
18:19:18.932336 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 518932 win 163
18:19:18.932605 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 519260 win 162
18:19:18.932748 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 519700 win 160
18:19:18.933069 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 520488 win 157
18:19:18.933285 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 520800 win 156
18:19:18.933555 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 521128 win 155
18:19:18.935771 IP pc-00001.ddj.homelinux.com.1901 > 239.255.255.250.1900: UDP,                                                                              length 320
18:19:18.936044 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 521568 win 153
18:19:18.936150 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 522192 win 151
18:19:18.936354 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 522632 win 149
18:19:18.936542 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 523072 win 147
18:19:18.936856 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 523072 win 165
18:19:18.937048 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 523696 win 171
18:19:18.937286 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 524024 win 169
18:19:18.937461 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 524352 win 168
18:19:18.937604 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 524792 win 166
18:19:18.937852 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 525120 win 165
18:19:18.938172 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 525448 win 171
18:19:18.938310 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 525776 win 169
18:19:18.938547 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 526104 win 168
18:19:18.938787 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 526432 win 167
18:19:18.939106 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 526760 win 165
18:19:18.939244 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 527088 win 171
18:19:18.939501 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 527416 win 169
18:19:18.939704 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 527744 win 168
18:19:18.940030 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 528072 win 167
18:19:18.940220 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 528400 win 165
18:19:18.940467 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 528728 win 171
18:19:18.940689 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com                                                                             .ssh: . ack 529056 win 169
18:19:18.942740 IP f.root-servers.net.domain > sark-pbx.ddj.homelinux.com.29345:                                                                               36291- 0/6/12 (422)
18:19:18.943418 IP sark-pbx.ddj.homelinux.com.37722 > d.in-addr-servers.arpa.domain:  38177 PTR? 250.255.255.239.in-addr.arpa. (46)
18:19:18.945807 IP pc-00001.ddj.homelinux.com.1901 > 239.255.255.250.1900: UDP, length 296
18:19:18.955759 IP pc-00001.ddj.homelinux.com.1901 > 239.255.255.250.1900: UDP, length 350
18:19:18.965753 IP pc-00001.ddj.homelinux.com.1901 > 239.255.255.250.1900: UDP, length 348
18:19:18.975747 IP pc-00001.ddj.homelinux.com.1901 > 239.255.255.250.1900: UDP, length 352
18:19:18.985784 IP pc-00001.ddj.homelinux.com.1901 > 239.255.255.250.1900: UDP, length 344
18:19:19.110898 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com.ssh: . ack 529092 win 211
18:19:19.153353 IP d.in-addr-servers.arpa.domain > sark-pbx.ddj.homelinux.com.37722:  38177- 0/5/0 (152)
18:19:19.153742 IP sark-pbx.ddj.homelinux.com.14257 > b0.org.afilias-nst.org.domain:  39242 A? ns.icann.org. (30)
18:19:19.183904 IP b0.org.afilias-nst.org.domain > sark-pbx.ddj.homelinux.com.14257:  39242- 0/5/2 (168)
18:19:19.184159 IP sark-pbx.ddj.homelinux.com.52551 > f.root-servers.net.domain:  33312 A? d.iana-servers.net. (36)
18:19:19.228756 IP f.root-servers.net.domain > sark-pbx.ddj.homelinux.com.52551:  33312- 0/13/14 (493)
18:19:19.229663 IP sark-pbx.ddj.homelinux.com.31658 > h.gtld-servers.net.domain:  47518 A? d.iana-servers.net. (36)
18:19:19.257019 IP h.gtld-servers.net.domain > sark-pbx.ddj.homelinux.com.31658:  47518- 0/5/8 (300)
18:19:19.257474 IP sark-pbx.ddj.homelinux.com.63456 > c.iana-servers.net.domain:  17362 A? d.iana-servers.net. (36)
18:19:19.349672 IP c.iana-servers.net.domain > sark-pbx.ddj.homelinux.com.63456:  17362*- 1/5/9 A d.iana-servers.net (344)
18:19:19.350200 IP sark-pbx.ddj.homelinux.com.57103 > c.iana-servers.net.domain:  56800 A? ns.icann.org. (30)
18:19:19.449445 IP c.iana-servers.net.domain > sark-pbx.ddj.homelinux.com.57103:  56800*- 1/5/9 A ns.icann.org (344)
18:19:19.449833 IP sark-pbx.ddj.homelinux.com.23597 > d.iana-servers.net.domain:  36556 PTR? 250.255.255.239.in-addr.arpa. (46)
18:19:19.557540 IP d.iana-servers.net.domain > sark-pbx.ddj.homelinux.com.23597:  36556 NXDomain*- 0/1/0 (103)
18:19:19.558774 IP sark-pbx.ddj.homelinux.com.ssh > pc-00004.ddj.homelinux.com.49418: P 529092:529480(388) ack 2313 win 80
18:19:19.559114 IP sark-pbx.ddj.homelinux.com.21758 > b.in-addr-servers.arpa.domain:  63455 PTR? 241.5.5.192.in-addr.arpa. (42)
18:19:19.600627 IP b.in-addr-servers.arpa.domain > sark-pbx.ddj.homelinux.com.21758:  63455- 0/8/0 (178)
18:19:19.601206 IP sark-pbx.ddj.homelinux.com.32026 > k.gtld-servers.net.domain:  63089 A? r.arin.net. (28)
18:19:19.636753 IP k.gtld-servers.net.domain > sark-pbx.ddj.homelinux.com.32026:  63089- 0/4/8 (272)
18:19:19.637178 IP sark-pbx.ddj.homelinux.com.10194 > v.arin.net.domain:  51514 A? r.arin.net. (28)
18:19:19.666407 IP v.arin.net.domain > sark-pbx.ddj.homelinux.com.10194:  51514*- 1/4/8 A r.arin.net (288)
18:19:19.666890 IP sark-pbx.ddj.homelinux.com.64386 > ns1.arin.net.domain:  56449 A? t.arin.net. (28)
18:19:19.766140 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com.ssh: . ack 529480 win 209
18:19:19.823942 IP ns1.arin.net.domain > sark-pbx.ddj.homelinux.com.64386:  56449*- 1/4/8 A t.arin.net (288)
18:19:19.824454 IP sark-pbx.ddj.homelinux.com.25297 > ns1.arin.net.domain:  27442 A? w.arin.net. (28)
18:19:19.875833 IP6 fe80::c588:d54b:aadd:8e59.63853 > ff02::c.1900: UDP, length 146
18:19:19.979091 IP ns1.arin.net.domain > sark-pbx.ddj.homelinux.com.25297:  27442*- 1/4/8 A w.arin.net (288)
18:19:19.979601 IP sark-pbx.ddj.homelinux.com.54873 > u.arin.net.domain:  24799 A? x.arin.net. (28)
18:19:19.998916 IP u.arin.net.domain > sark-pbx.ddj.homelinux.com.54873:  24799*- 1/4/8 A x.arin.net (288)
18:19:19.999369 IP sark-pbx.ddj.homelinux.com.21477 > ns1.arin.net.domain:  25700 A? y.arin.net. (28)
18:19:20.150837 IP ns1.arin.net.domain > sark-pbx.ddj.homelinux.com.21477:  25700*- 1/4/8 A figwort.arin.net (288)
18:19:20.151297 IP sark-pbx.ddj.homelinux.com.49469 > u.arin.net.domain:  52367 A? z.arin.net. (28)
18:19:20.167100 IP u.arin.net.domain > sark-pbx.ddj.homelinux.com.49469:  52367*- 1/4/8 A z.arin.net (288)
18:19:20.167498 IP sark-pbx.ddj.homelinux.com.42113 > t.arin.net.domain:  46953 PTR? 241.5.5.192.in-addr.arpa. (42)
18:19:20.301525 IP t.arin.net.domain > sark-pbx.ddj.homelinux.com.42113:  46953- 0/3/0 (111)
18:19:20.301860 IP sark-pbx.ddj.homelinux.com.9731 > a0.org.afilias-nst.info.domain:  23932 A? sfba.sns-pb.isc.org. (37)
18:19:20.593363 IP a0.org.afilias-nst.info.domain > sark-pbx.ddj.homelinux.com.9731:  23932- 0/4/6 (256)
18:19:20.593748 IP sark-pbx.ddj.homelinux.com.21651 > k.root-servers.net.domain:  6804 A? ns.isc.afilias-nst.info. (41)
18:19:20.613492 IP sipgate.co.uk.5060 > sark-pbx.ddj.homelinux.com.5060: SIP, length: 4
18:19:20.617405 IP k.root-servers.net.domain > sark-pbx.ddj.homelinux.com.21651:  6804- 0/6/12 (432)
18:19:20.618051 IP sark-pbx.ddj.homelinux.com.54225 > C0.INFO.AFILIAS-NST.INFO.domain:  1157 A? ns.isc.afilias-nst.info. (41)
18:19:20.661519 IP C0.INFO.AFILIAS-NST.INFO.domain > sark-pbx.ddj.homelinux.com.54225:  1157- 0/4/8 (325)
18:19:20.662012 IP sark-pbx.ddj.homelinux.com.35783 > ns1.mia1.afilias-nst.info.domain:  17972 A? ns.isc.afilias-nst.info. (41)
18:19:20.797631 IP ns1.mia1.afilias-nst.info.domain > sark-pbx.ddj.homelinux.com.35783:  17972*- 1/5/10 A[|domain]
18:19:20.798186 IP sark-pbx.ddj.homelinux.com.63913 > ams.sns-pb.isc.org.domain:  33615 A? sfba.sns-pb.isc.org. (37)
18:19:20.843993 IP ams.sns-pb.isc.org.domain > sark-pbx.ddj.homelinux.com.63913:  33615*- 1/4/5 A sfba.sns-pb.isc.org (256)
18:19:20.844361 IP sark-pbx.ddj.homelinux.com.24218 > ord.sns-pb.isc.org.domain:  41033 PTR? 241.5.5.192.in-addr.arpa. (42)
18:19:21.084099 IP ord.sns-pb.isc.org.domain > sark-pbx.ddj.homelinux.com.24218:  41033*- 1/3/6 PTR[|domain]
18:19:21.086351 IP sark-pbx.ddj.homelinux.com.ssh > pc-00004.ddj.homelinux.com.49418: . 529480:530940(1460) ack 2313 win 80
18:19:21.086368 IP sark-pbx.ddj.homelinux.com.ssh > pc-00004.ddj.homelinux.com.49418: . 530940:532400(1460) ack 2313 win 80
18:19:21.086402 IP sark-pbx.ddj.homelinux.com.ssh > pc-00004.ddj.homelinux.com.49418: P 532400:533628(1228) ack 2313 win 80
18:19:21.087994 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com.ssh: . ack 532400 win 211
18:19:21.088036 IP sark-pbx.ddj.homelinux.com.ssh > pc-00004.ddj.homelinux.com.49418: . 533628:535088(1460) ack 2313 win 80
18:19:21.088046 IP sark-pbx.ddj.homelinux.com.ssh > pc-00004.ddj.homelinux.com.49418: . 535088:536548(1460) ack 2313 win 80
18:19:21.088055 IP sark-pbx.ddj.homelinux.com.ssh > pc-00004.ddj.homelinux.com.49418: P 536548:537776(1228) ack 2313 win 80
18:19:21.089425 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com.ssh: . ack 535088 win 211
18:19:21.089705 IP sark-pbx.ddj.homelinux.com.28280 > f.in-addr-servers.arpa.domain:  5257 PTR? 53.60.10.200.in-addr.arpa. (43)
18:19:21.089713 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com.ssh: . ack 537776 win 211
18:19:21.089846 IP sark-pbx.ddj.homelinux.com.ssh > pc-00004.ddj.homelinux.com.49418: . 537776:539236(1460) ack 2313 win 80
18:19:21.089859 IP sark-pbx.ddj.homelinux.com.ssh > pc-00004.ddj.homelinux.com.49418: . 539236:540696(1460) ack 2313 win 80
18:19:21.089885 IP sark-pbx.ddj.homelinux.com.ssh > pc-00004.ddj.homelinux.com.49418: P 540696:541604(908) ack 2313 win 80
18:19:21.093404 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com.ssh: . ack 540696 win 211
18:19:21.096098 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com.ssh: P 2313:2397(84) ack 541604 win 207
18:19:21.096166 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com.ssh: P 2397:2449(52) ack 541604 win 207
18:19:21.096264 IP sark-pbx.ddj.homelinux.com.ssh > pc-00004.ddj.homelinux.com.49418: . ack 2449 win 80
18:19:21.096291 IP sark-pbx.ddj.homelinux.com.ssh > pc-00004.ddj.homelinux.com.49418: P 541604:541640(36) ack 2449 win 80
18:19:21.124811 IP f.in-addr-servers.arpa.domain > sark-pbx.ddj.homelinux.com.28280:  5257- 0/8/0 (251)
18:19:21.125246 IP sark-pbx.ddj.homelinux.com.5541 > v.arin.net.domain:  17711 A? tinnie.arin.net. (33)
18:19:21.153565 IP v.arin.net.domain > sark-pbx.ddj.homelinux.com.5541:  17711*- 1/4/8 A tinnie.arin.net (293)
18:19:21.154226 IP sark-pbx.ddj.homelinux.com.56734 > i.gtld-servers.net.domain:  51108 A? sec3.apnic.net. (32)
18:19:21.181008 IP i.gtld-servers.net.domain > sark-pbx.ddj.homelinux.com.56734:  51108- 0/8/13 (479)
18:19:21.181684 IP sark-pbx.ddj.homelinux.com.16997 > 192.203.230.10.domain:  56920 A? ns4.apnic.com. (31)
18:19:21.279393 IP 192.203.230.10.domain > sark-pbx.ddj.homelinux.com.16997:  56920- 0/13/14 (494)
18:19:21.280278 IP sark-pbx.ddj.homelinux.com.44967 > f.gtld-servers.net.domain:  11404 A? ns4.apnic.com. (31)
18:19:21.317086 IP pc-00004.ddj.homelinux.com.49418 > sark-pbx.ddj.homelinux.com.ssh: . ack 541640 win 207
18:19:21.476163 IP f.gtld-servers.net.domain > sark-pbx.ddj.homelinux.com.44967:  11404- 0/7/12 (435)
18:19:21.476764 IP sark-pbx.ddj.homelinux.com.21501 > ns3.apnic.net.domain:  5621 A? ns4.apnic.com. (31)
18:19:21.746489 IP ns3.apnic.net.domain > sark-pbx.ddj.homelinux.com.21501:  5621*- 1/0/0 A hk-ns4.apnic.net (47)
18:19:21.746731 IP sark-pbx.ddj.homelinux.com.27150 > hk-ns4.apnic.net.domain:  36378 A? sec3.apnic.net. (32)
18:19:22.037247 IP hk-ns4.apnic.net.domain > sark-pbx.ddj.homelinux.com.27150:  36378*- 1/0/0 A sec3.apnic.net (48)
18:19:22.037691 IP sark-pbx.ddj.homelinux.com.14316 > g.gtld-servers.net.domain:  54906 A? ns.lacnic.net. (31)
18:19:22.216055 IP g.gtld-servers.net.domain > sark-pbx.ddj.homelinux.com.14316:  54906- 0/5/8 (314)
18:19:22.216478 IP sark-pbx.ddj.homelinux.com.51140 > f.root-servers.net.domain:  4638 A? ns2.dns.br. (28)
18:19:22.269880 IP f.root-servers.net.domain > sark-pbx.ddj.homelinux.com.51140:  4638- 0/6/8 (276)
18:19:22.270340 IP sark-pbx.ddj.homelinux.com.5271 > e.dns.br.domain:  39742 A? ns2.dns.br. (28)
18:19:22.303585 IP e.dns.br.domain > sark-pbx.ddj.homelinux.com.5271:  39742*- 1/6/8 A ns2.dns.br (292)

3589 packets captured
4036 packets received by filter
255 packets dropped by kernel
I pressed Ctrl + C to stop it, I hope that was right. I've also had to delete the first few lines as I reached the maximum allowed on the forum, I can put them in a second post if required but they look like the ones I've left in. I used putty to connect.  Thanks again for all your help.
Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Something weird happening with my trunks!
« Reply #7 on: August 11, 2012, 03:14:33 PM »
you need to read up on tcpdump.   You need give it parameters to tell it what you want to see, otherwise it just dumps everything running through the box, which is not very helpful.

In order to run tshark you need to install it.  yum install wireshark will do it for you.  You will also need to read up on that program to understand what parameters to pass to it. 

SARK and other asterisk front-ends, for example freepbx, which is what PIAF uses, simply set the config files for asterisk to follow.  None of these tools change asterisk itself.  If PIAF is doing something and SARK isn't then you need to compare the asterisk definitions in sip.conf (or its included files) in order to see what the difference is.  If there is no difference then the problem lies somewhere else, probably in your firewall. 

If as you describe, your system was working correctly and it stopped doing so then you need to analyse what changed  because something must have.

Kind Regards

S

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Something weird happening with my trunks!
« Reply #8 on: August 12, 2012, 06:19:03 PM »
In order to run tshark you need to install it.  yum install wireshark will do it for you.  You will also need to read up on that program to understand what parameters to pass to it.

But you don't need to install tshark or wireshark on SME server. You can use tcpdump to create a pakcet capture file,  and you can examine the capture data on another system - your workstation, for instance.

Offline del

  • *
  • 765
  • +0/-0
Re: Something weird happening with my trunks!
« Reply #9 on: August 22, 2012, 06:20:46 PM »
OK, I've finally got to the bottom of this, it appears that the firmware update that Virgin recently did broke SIP registration for some people :-x On the Virgin forum it seems that it is mostly effecting BT VoIP users but not everyone. I still can't see why they would register with PBX in a Flash and Elastix but not SARK :-? To prove the problem I took my server to a mates house with TalkTalk broadband and they all registered and worked as expected, so have now put the Virgin Superhub (super doesn't really mean super in this case) into modem only mode, bought a Linksys router and everything is working OK  :) I should have done this a long time ago as the superhub doesn't do anything particularly well and is missing some key features like DDNS. So now I'm back up and I've learnt an awful lot about Asterisk through PBXIAF and will be all the better for it  :-D

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown