Advertisement
oquidave

sip trunk config and sip debug output

May 5th, 2011
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. trunk config in the sip.conf file
  2.  
  3. [trunk-smsmedia-warid]
  4. type=friend
  5. host=10.1.16.72
  6. context=to-warid
  7. disallow=all
  8. allow=gsm ; GSM consumes far less bandwidth than ulaw
  9. allow=ulaw
  10. allow=alaw
  11. nat = no
  12. canreinvite=no
  13. port=5060
  14.  
  15. outbound calls context in the extension.conf file
  16.  
  17. [to-warid]
  18. exten => 0800707020,1,Dial(SIP/trunk-smsmedia-warid/${EXTEN}, 60)
  19. exten => 0800707020,n,Hangup()
  20.  
  21. sip debug output
  22.  
  23. baraza*CLI> console dial 0800707020@to-warid
  24. Audio is at 172.18.0.34 port 13374
  25. Adding codec 0x2 (gsm) to SDP
  26. Adding codec 0x4 (ulaw) to SDP
  27. Adding codec 0x8 (alaw) to SDP
  28. Adding non-codec 0x1 (telephone-event) to SDP
  29. Reliably Transmitting (no NAT) to 10.1.16.72:5060:
  30. INVITE sip:0800707020@10.1.16.72:5060 SIP/2.0
  31. Via: SIP/2.0/UDP 172.18.0.34:5060;branch=z9hG4bK4e2a9fb2;rport
  32. Max-Forwards: 70
  33. From: "asterisk" <sip:asterisk@172.18.0.34>;tag=as31a21a46
  34. To: <sip:0800707020@10.1.16.72:5060>
  35. Contact: <sip:asterisk@172.18.0.34>
  36. Call-ID: 00cb370752ba9dad0505c4042e682889@172.18.0.34
  37. CSeq: 102 INVITE
  38. User-Agent: Asterisk PBX 1.6.2.18
  39. Date: Thu, 05 May 2011 16:08:14 GMT
  40. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
  41. Supported: replaces, timer
  42. Content-Type: application/sdp
  43. Content-Length: 280
  44.  
  45. v=0
  46. o=root 471337243 471337243 IN IP4 172.18.0.34
  47. s=Asterisk PBX 1.6.2.18
  48. c=IN IP4 172.18.0.34
  49. t=0 0
  50. m=audio 13374 RTP/AVP 3 0 8 101
  51. a=rtpmap:3 GSM/8000
  52. a=rtpmap:0 PCMU/8000
  53. a=rtpmap:8 PCMA/8000
  54. a=rtpmap:101 telephone-event/8000
  55. a=fmtp:101 0-16
  56. a=ptime:20
  57. a=sendrecv
  58.  
  59. ---
  60. [May 5 19:08:14] NOTICE[2986]: console_video.c:133 console_video_start: voice only, console video support not present
  61.  
  62. <--- SIP read from UDP:10.1.16.72:5060 --->
  63. SIP/2.0 100 Trying
  64. Via: SIP/2.0/UDP 172.18.0.34:5060;branch=z9hG4bK4e2a9fb2;rport=5060
  65. Call-ID: 00cb370752ba9dad0505c4042e682889@172.18.0.34
  66. From: "asterisk"<sip:asterisk@172.18.0.34>;tag=as31a21a46
  67. To: <sip:0800707020@10.1.16.72:5060>
  68. CSeq: 102 INVITE
  69. Content-Length: 0
  70.  
  71.  
  72. <------------->
  73. --- (7 headers 0 lines) ---
  74.  
  75. <--- SIP read from UDP:10.1.16.72:5060 --->
  76. SIP/2.0 500 Server Internal Error
  77. Via: SIP/2.0/UDP 172.18.0.34:5060;branch=z9hG4bK4e2a9fb2;rport=5060
  78. Call-ID: 00cb370752ba9dad0505c4042e682889@172.18.0.34
  79. From: "asterisk"<sip:asterisk@172.18.0.34>;tag=as31a21a46
  80. To: <sip:0800707020@10.1.16.72:5060>;tag=6c0828e6
  81. CSeq: 102 INVITE
  82. Reason: Q.850;cause=0;text="unknown"
  83. Content-Length: 0
  84.  
  85.  
  86. <------------->
  87. --- (8 headers 0 lines) ---
  88. Transmitting (no NAT) to 10.1.16.72:5060:
  89. ACK sip:0800707020@10.1.16.72:5060 SIP/2.0
  90. Via: SIP/2.0/UDP 172.18.0.34:5060;branch=z9hG4bK4e2a9fb2;rport
  91. Max-Forwards: 70
  92. From: "asterisk" <sip:asterisk@172.18.0.34>;tag=as31a21a46
  93. To: <sip:0800707020@10.1.16.72:5060>;tag=6c0828e6
  94. Contact: <sip:asterisk@172.18.0.34>
  95. Call-ID: 00cb370752ba9dad0505c4042e682889@172.18.0.34
  96. CSeq: 102 ACK
  97. User-Agent: Asterisk PBX 1.6.2.18
  98. Content-Length: 0
  99.  
  100.  
  101. ---
  102. << Hangup on console >>
  103. Really destroying SIP dialog '00cb370752ba9dad0505c4042e682889@172.18.0.34' Method: INVITE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement