oquidave

sip trunk config and sip debug output

May 5th, 2011
298
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:[email protected]: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:[email protected]>;tag=as31a21a46
  34. To: <sip:[email protected]:5060>
  35. Contact: <sip:[email protected]>
  36. CSeq: 102 INVITE
  37. User-Agent: Asterisk PBX 1.6.2.18
  38. Date: Thu, 05 May 2011 16:08:14 GMT
  39. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
  40. Supported: replaces, timer
  41. Content-Type: application/sdp
  42. Content-Length: 280
  43.  
  44. v=0
  45. o=root 471337243 471337243 IN IP4 172.18.0.34
  46. s=Asterisk PBX 1.6.2.18
  47. c=IN IP4 172.18.0.34
  48. t=0 0
  49. m=audio 13374 RTP/AVP 3 0 8 101
  50. a=rtpmap:3 GSM/8000
  51. a=rtpmap:0 PCMU/8000
  52. a=rtpmap:8 PCMA/8000
  53. a=rtpmap:101 telephone-event/8000
  54. a=fmtp:101 0-16
  55. a=ptime:20
  56. a=sendrecv
  57.  
  58. ---
  59. [May 5 19:08:14] NOTICE[2986]: console_video.c:133 console_video_start: voice only, console video support not present
  60.  
  61. <--- SIP read from UDP:10.1.16.72:5060 --->
  62. SIP/2.0 100 Trying
  63. Via: SIP/2.0/UDP 172.18.0.34:5060;branch=z9hG4bK4e2a9fb2;rport=5060
  64. From: "asterisk"<sip:[email protected]>;tag=as31a21a46
  65. To: <sip:[email protected]:5060>
  66. CSeq: 102 INVITE
  67. Content-Length: 0
  68.  
  69.  
  70. <------------->
  71. --- (7 headers 0 lines) ---
  72.  
  73. <--- SIP read from UDP:10.1.16.72:5060 --->
  74. SIP/2.0 500 Server Internal Error
  75. Via: SIP/2.0/UDP 172.18.0.34:5060;branch=z9hG4bK4e2a9fb2;rport=5060
  76. From: "asterisk"<sip:[email protected]>;tag=as31a21a46
  77. To: <sip:[email protected]:5060>;tag=6c0828e6
  78. CSeq: 102 INVITE
  79. Reason: Q.850;cause=0;text="unknown"
  80. Content-Length: 0
  81.  
  82.  
  83. <------------->
  84. --- (8 headers 0 lines) ---
  85. Transmitting (no NAT) to 10.1.16.72:5060:
  86. ACK sip:[email protected]:5060 SIP/2.0
  87. Via: SIP/2.0/UDP 172.18.0.34:5060;branch=z9hG4bK4e2a9fb2;rport
  88. Max-Forwards: 70
  89. From: "asterisk" <sip:[email protected]>;tag=as31a21a46
  90. To: <sip:[email protected]:5060>;tag=6c0828e6
  91. Contact: <sip:[email protected]>
  92. CSeq: 102 ACK
  93. User-Agent: Asterisk PBX 1.6.2.18
  94. Content-Length: 0
  95.  
  96.  
  97. ---
  98. << Hangup on console >>
  99. Really destroying SIP dialog '[email protected]' Method: INVITE
Advertisement
Add Comment
Please, Sign In to add comment