My Divert - Local Telephone Numbers with Low Cost International Call Forwarding  
Now with Free Voicemail to Email Free Voicemail to Email Service Voicemail Messages sent directly to your own Email Address!   Get a Local Skype-In Number Wholesale DID for VoIP carriers -> Get a Local Skype-In Number
Home My Divert Phone Numbers My Divert Call Rates SIP Trunking New Account Virtual Numbers Instructions Buy SIP Number SIP FAQ My Divert

VoIP-In Virtual Numbers

Unlimited Incoming Calls
Low per monthly rates

SIP DID/DDI Virtual Numbers
Over 65 Countries Available

Free Incoming SIP Calls
No Setup Fees - Cancel Anytime

Ideal for SIP & VoIP Telephones
Use with Asterisk & FreePBX

Call & Forward Calls Worldwide
Low Cost International Rates


Buy DID VoIP NumbersAccount Login

Please login to manage your account.


Email Address:

  Forgot Password? | New User  
My Divert - Cheaper than Skype
Buy DID Telephone Numbers Debugging Asterisk Tips - VoIP Virtual DID Numbers VoIP Numbers SIP

Debugging Asterisk Tips

Posted : Mon, 28 Jun 2010

It is a common problem that people starting out with Asterisk PBX find it difficult to diagnose where problems arise. Here is a quick blog that may help someone in that situation.

To debug asterisk you need to get hold of the asterisk messages and any other log info you can. This isn't always so simple if you have a busy system as so many records are created.

If you have a lot of calls its important to be very quick when you place a test call and capture output so you won't have multiple calls in the same capture.

Log into your asterisk server via ssh.

Usually I then type :

asterisk -rx "sip set debug on"
asterisk -rcvvvvvvvvvvvvvvvvvvvvv> /usr/local/admin/htdocs/debug.txt

(note 1: you can use asterisk -rx "sip set debug on IP" if you know a particular IP, or use PEER. Type help from the command line for options)

(note 2: replace /usr/local/admin/htdocs/debug.txt with some path on your server. If the path is to htdocs then you can easily download the capture using a browser)

And after that I call the number that I want to test and then I hangup when the call goes through. Then I quickly stop the asterisk capture with CTRL+C.

After that I verify the Asterisk capture. I just download it and view in a text editor.

In this situation I only verified the Asterisk log but in another situation I might have to check the SIP packets. To do that I use tcdump.

If tcpdump is not installed you can run 'yum install tcpdump' on a linux system to install.

I then run something like

'tcpdump -p udp -s 4096 -w /usr/local/admin/htdocs/capture.pcap'

to capture all traffic.

or, 'tcpdump -w /usr/local/admin/htdocs/capture.pcap -s 0 host' to get a dump for just one host.

After I place a call from an extension to an specific number I stop the capture with CTRL+C and I download the capture to my computer.

Then using a tool like Wireshark (you can find that on the internet since its a free tool) I verify the call flows and view the SIP messages.

I guess this is a basic howto on how to debug basic things. if you want to learn more check some articles regarding basic call flows and how SIP handles basic transactions.

Also check some tutorials about Wireshark (source/destination port/address, how to debug rtp, sip messages, filters, jitter...).

I hope this helps.



Get a VoIP Virtual Number now!

With MyDivert you get your own regular fixed telephone phone number - starting from only 2.95 per month. So your friends and business contacts can call you on a regular fixed telephone number and you can receive the call worlwide. No matter where you are.

Virtual Numbers for your own SIP Device or Provider
Virtual DID numbers purchased at can also be used with your own SIP provider. Simply update your phone number SIP settings from your MyDivert user account. All incoming calls will then ring to your chosen SIP without diversion.

VoIP Virtual Numbers from €2.95 per month
Telephone DID Numbers   VoIP phone numbers

SIP VoIP Telephone Services Debugging Asterisk Tips
Debugging Asterisk Tips Phone Numbers for your own SIP Device or VoIP Provider   Debugging Asterisk Tips - VoIP Virtual DID Numbers

SIP VoIP Telephone Services Debugging Asterisk Tips Blog

Latest Posts from our Blog

New cities in Japan [20th April 2014]

New coverage in Greece [1st April 2014]

Ukraine Mobile Code DID [16th August 2013]

SIP Server IP Address change 11th Aug [Tuesday, August 7, 2012]

Multi Channel Israel DID [Sat, 07 Jan 2012] super pop online [Thu, 08 Dec 2011]

New Multi Channel DID for Italy [Fri, 25 Nov 2011]

Thai National VoIP DID [Wed, 23 Nov 2011]

Wholesale DID Peering [Wed, 09 Nov 2011]

New New Zealand DID [Fri, 04 Nov 2011]

National Coverage for Romania DID [Fri, 04 Nov 2011]

Vietnam Expanded Coverage [Mon, 10 Oct 2011]

Kuala Lumpur DID back in Stock [Tue, 16 Aug 2011]

Virtual Numbers Istanbul Turkey [Tue, 19 Jul 2011]

National DID Coverage for Australia [Tue, 28 Jun 2011] customer testimonial [Fri, 10 Jun 2011]

New Call Rates - June 2011 [Sun, 05 Jun 2011]

Spanish National code 518 available [Tue, 03 May 2011]

New VoIP numbers in Finland [Tue, 03 May 2011]

Language Packs added [Mon, 11 Apr 2011]

Costa Rica DID Numbers [Mon, 11 Apr 2011]

Allowed IP Addresses for SIP Registration [Tue, 05 Apr 2011]

Expanded Coverage French VoIP DID [Thu, 03 Mar 2011]

New Call Rates - Feb. 2010 [Sun, 06 Feb 2011]

Islamabad DID withdrawn [Wed, 12 Jan 2011]

scheduled maintenance Sat 11th December [Thu, 09 Dec 2010]

Virtual Numbers Latvia - Increased Coverage [Tue, 16 Nov 2010]

Cheaper Pakistani DID [Fri, 29 Oct 2010]

New Call Rates - October 2010 [Tue, 12 Oct 2010]

Added Coverage for Puerto Rico [Thu, 23 Sep 2010]

Malta VoIP DID back in stock [Mon, 20 Sep 2010]

Turk VoIP Telefon Numaralar [Tue, 14 Sep 2010]

French Coverage Expanded [Thu, 09 Sep 2010]

New Call Rates - Sept. 2010 [Sun, 05 Sep 2010]

Turkish (Istanbul) VoIP DID back in stock [Thu, 02 Sep 2010]

New Call Rates - August 2010 [Thu, 29 Jul 2010] on NetVibes [Fri, 16 Jul 2010]

Irish Virtual Numbers [Sun, 04 Jul 2010]

Debugging Asterisk Tips [Mon, 28 Jun 2010]

Using 3CXphone [Thu, 24 Jun 2010]

SIP Trunking Service for PBX [Thu, 24 Jun 2010]

virtuellt nummer Sverige [Wed, 23 Jun 2010]

Australian Virtual Numbers [Wed, 23 Jun 2010]

Nederland Virtual Numbers [Tue, 22 Jun 2010]

Bria Softphone for Iphone [Thu, 17 Jun 2010]

Complete UK Numbering Available [Wed, 16 Jun 2010]

New Call Rates Introduced [Sat, 12 Jun 2010]

Rush on for Warsaw Virtual Numbers [Wed, 02 Jun 2010]

Tenders Invited - UK DID Numbering [Wed, 02 Jun 2010]

Polish VoIP DID Numbers [Fri, 28 May 2010]

Virtual Numbers Poland - All Area Codes [Fri, 28 May 2010]

Service Disruption Ireland (resolved) [Tue, 25 May 2010]

New coverage for Israel [Wed, 19 May 2010]

Increased Mexican DID coverage [Mon, 17 May 2010]

London 44207 & 44208 VoIP DID [Thu, 06 May 2010]

Service Disruption [Thu, 06 May 2010]

Language options added to Voicemail [Thu, 06 May 2010]

More VoIP Numbers from Ukraine [Fri, 30 Apr 2010]

API Beta Testers Required [Tue, 20 Apr 2010]

Geographical DID from Portugal [Thu, 15 Apr 2010]

Turkish Istanbul DID Numbers [Thu, 15 Apr 2010]

Sales Invoices [Wed, 14 Apr 2010]

Portuguese VoIP DID Available [Mon, 05 Apr 2010]

Caller ID settings improved [Wed, 31 Mar 2010]

New Mapping Server [Tue, 30 Mar 2010]

User Registration rules expected for Moscow DID [Mon, 29 Mar 2010]

Increased coverage for Spainish DID [Sun, 28 Feb 2010]

New Call Forwarding Features [Thu, 25 Feb 2010]

Scheduled downtime - all Russian DID [Thu, 25 Feb 2010]

New Call Rates Plan [Wed, 24 Feb 2010]

Reduced Support for 36 hours [Sun, 24 Jan 2010]

Billing issues for new Algerian National VoIP DID [Thu, 21 Jan 2010]

New Carrier to Irish Mobiles [Tue, 19 Jan 2010]

Free International Calls [Tue, 12 Jan 2010]

Thailand Vietnam and Malaysia Price cut [Thu, 07 Jan 2010]

Cheap Moscow VoIP DID numbers [Tue, 05 Jan 2010]

Wholesale call termination rates [Sun, 03 Jan 2010]

VoIP Virtual Numbers from Malta Available [Wed, 23 Dec 2009]

Cheaper Russian Moscow Numbers [Tue, 22 Dec 2009]

Connection Boost for VoIP in Asia [Tue, 15 Dec 2009]

Prices Cut for Panama DID Numbers [Tue, 15 Dec 2009]

VoIP DID for Vietnam - World First [Wed, 09 Dec 2009]

Sub Accounts Introduced [Mon, 30 Nov 2009]

Greek VoIP Numbers Available [Fri, 27 Nov 2009]

Luxembourg Virtual DID Numbers [Thu, 26 Nov 2009]

Algerian Virtual VoIP Numbers [Wed, 25 Nov 2009]

French DID service disruption [Sun, 08 Nov 2009]

SIP Trunking for PBX [Tue, 03 Nov 2009]

Notes on Voice Fraud [Wed, 28 Oct 2009]

System Update - 5 min. service outage expected [Wed, 28 Oct 2009]

System Update - 5 min. service outage expected Phone Numbers for your own SIP Device or VoIP Provider   Debugging Asterisk Tips - VoIP Virtual DID Numbers

Inward Dialing Virtual Telephone Numbers We Sell VoIP Numbers

Local Phone Numbers

Local Phone Numbers

SIP Numbers for sale Cheapest VoIP Calls

select country & area for availabilityCheap Calls

VoIP   International Call Forwarding

Debugging Asterisk Tips - VoIP Virtual DID Numbers VoIP SIP sells SIP Virtual numbers

Available Countries

VoIP DID Numbers Argentina    Argentina
VoIP DID Numbers Australia    Australia
VoIP DID Numbers Austria    Austria
VoIP DID Numbers Bahrain    Bahrain
VoIP DID Numbers Belgium    Belgium
VoIP DID Numbers Brazil    Brazil
VoIP DID Numbers Bulgaria    Bulgaria
VoIP DID Numbers Canada    Canada
VoIP DID Numbers Chile    Chile
VoIP DID Numbers Colombia    Colombia
VoIP DID Numbers Costa Rica    Costa Rica
VoIP DID Numbers Croatia    Croatia
VoIP DID Numbers Cyprus    Cyprus
VoIP DID Numbers Czech Republic    Czech Republic
VoIP DID Numbers Denmark    Denmark
VoIP DID Numbers Dominican Republic    Dominican Republic
VoIP DID Numbers El Salvador    El Salvador
VoIP DID Numbers Estonia    Estonia
VoIP DID Numbers Finland    Finland
VoIP DID Numbers France    France
VoIP DID Numbers Georgia    Georgia
VoIP DID Numbers Germany    Germany
VoIP DID Numbers Greece    Greece
VoIP DID Numbers Hong Kong    Hong Kong
VoIP DID Numbers Hungary    Hungary
VoIP DID Numbers Iceland    Iceland
VoIP DID Numbers Ireland    Ireland
VoIP DID Numbers Israel    Israel
VoIP DID Numbers Italy    Italy
VoIP DID Numbers Japan    Japan
VoIP DID Numbers Latvia    Latvia
VoIP DID Numbers Lithuania    Lithuania
VoIP DID Numbers Luxembourg    Luxembourg
VoIP DID Numbers Malaysia    Malaysia
VoIP DID Numbers Malta    Malta
VoIP DID Numbers Mexico    Mexico
VoIP DID Numbers Netherlands    Netherlands
VoIP DID Numbers New Zealand    New Zealand
VoIP DID Numbers Norway    Norway
VoIP DID Numbers Panama    Panama
VoIP DID Numbers Peru    Peru
VoIP DID Numbers Poland    Poland
VoIP DID Numbers Portugal    Portugal
VoIP DID Numbers Puerto Rico    Puerto Rico
VoIP DID Numbers Romania    Romania
VoIP DID Numbers Russia    Russia
VoIP DID Numbers Singapore    Singapore
VoIP DID Numbers Slovakia    Slovakia
VoIP DID Numbers Slovenia    Slovenia
VoIP DID Numbers South Africa    South Africa
VoIP DID Numbers Spain    Spain
VoIP DID Numbers Sweden    Sweden
VoIP DID Numbers Switzerland    Switzerland
VoIP DID Numbers Ukraine    Ukraine
VoIP DID Numbers United Kingdom    United Kingdom
VoIP DID Numbers USA    USA
VoIP DID Numbers Venezuela    Venezuela Sells VoIP DID Telephone Numbers   Get VoIP Virtual Numbers

©voipfree 2007-2014. All Rights Reserved. website operated by webdream solutions limited trading as voipfree(IRL). registered in ireland. No. 424600

Local Telephone Numbers with Low Cost International Call Forwarding. VoIP-In. DID Phone Numbers. Cheaper than skype. VoIP Communication Solution. Buy DID Numbers

Debugging Asterisk Tips - VoIP Virtual DID Numbers