Guest User

Untitled

a guest
Nov 16th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.64 KB | None | 0 0
  1. sip.conf
  2. ==============
  3. [4001]
  4. deny=0.0.0.0/0.0.0.0
  5. secret=abc123
  6. dtmfmode=auto
  7. canreinvite=no
  8. context=from-internal
  9. host=dynamic
  10. type=friend
  11. nat=yes
  12. port=5060
  13. qualify=yes
  14. callgroup=
  15. pickupgroup=
  16. dial=SIP/4001
  17. mailbox=4001@device
  18. permit=0.0.0.0/0.0.0.0
  19. callerid=device <4001>
  20. callcounter=yes
  21. faxdetect=no
  22.  
  23. [nymgo-in]
  24. ;qualify=yes
  25. context=from-trunk-sip-nymgo-out
  26.  
  27. [nymgo-out]
  28. disallow=all
  29. type=peer
  30. username=username
  31. secret=password
  32. nat=yes
  33. dtmfmode=RFC2833
  34. allow=g729
  35. ;qualify=yes
  36. host=ata.nymgo.com
  37. port=5060
  38. externip=213.204.79.112
  39. localnet=192.168.6.0/255.255.255.0
  40. localnet=10.0.0.0/255.255.255.0
  41. context=from-trunk-sip-nymgo-out
  42.  
  43. [root@pbx ~]#
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. == Using SIP RTP TOS bits 184
  52. == Using SIP RTP CoS mark 5
  53. -- Executing [9611351400@from-internal:1] Macro("SIP/4001-0000000f", "user-callerid,SKIPTTL,") in new stack
  54. -- Executing [s@macro-user-callerid:1] Set("SIP/4001-0000000f", "AMPUSER=4001") in new stack
  55. -- Executing [s@macro-user-callerid:2] GotoIf("SIP/4001-0000000f", "0?report") in new stack
  56. -- Executing [s@macro-user-callerid:3] ExecIf("SIP/4001-0000000f", "1?Set(REALCALLERIDNUM=4001)") in new stack
  57. -- Executing [s@macro-user-callerid:4] Set("SIP/4001-0000000f", "AMPUSER=4001") in new stack
  58. -- Executing [s@macro-user-callerid:5] Set("SIP/4001-0000000f", "AMPUSERCIDNAME=4001") in new stack
  59. -- Executing [s@macro-user-callerid:6] GotoIf("SIP/4001-0000000f", "0?report") in new stack
  60. -- Executing [s@macro-user-callerid:7] Set("SIP/4001-0000000f", "AMPUSERCID=4001") in new stack
  61. -- Executing [s@macro-user-callerid:8] Set("SIP/4001-0000000f", "CALLERID(all)="4001" <4001>") in new stack
  62. -- Executing [s@macro-user-callerid:9] ExecIf("SIP/4001-0000000f", "0?Set(CHANNEL(language)=)") in new stack
  63. -- Executing [s@macro-user-callerid:10] GotoIf("SIP/4001-0000000f", "1?continue") in new stack
  64. -- Goto (macro-user-callerid,s,19)
  65. -- Executing [s@macro-user-callerid:19] Set("SIP/4001-0000000f", "CALLERID(number)=4001") in new stack
  66. -- Executing [s@macro-user-callerid:20] Set("SIP/4001-0000000f", "CALLERID(name)=4001") in new stack
  67. -- Executing [s@macro-user-callerid:21] NoOp("SIP/4001-0000000f", "Using CallerID "4001" <4001>") in new stack
  68. -- Executing [9611351400@from-internal:2] NoOp("SIP/4001-0000000f", "Calling Out Route: nymgo") in new stack
  69. -- Executing [9611351400@from-internal:3] Set("SIP/4001-0000000f", "MOHCLASS=default") in new stack
  70. -- Executing [9611351400@from-internal:4] ExecIf("SIP/4001-0000000f", "1?Set(TRUNKCIDOVERRIDE=9613790100)") in new stack
  71. -- Executing [9611351400@from-internal:5] Set("SIP/4001-0000000f", "_NODEST=") in new stack
  72. -- Executing [9611351400@from-internal:6] Macro("SIP/4001-0000000f", "record-enable,4001,OUT,") in new stack
  73. -- Executing [s@macro-record-enable:1] GotoIf("SIP/4001-0000000f", "1?check") in new stack
  74. -- Goto (macro-record-enable,s,4)
  75. -- Executing [s@macro-record-enable:4] ExecIf("SIP/4001-0000000f", "0?MacroExit()") in new stack
  76. -- Executing [s@macro-record-enable:5] GotoIf("SIP/4001-0000000f", "0?Group:OUT") in new stack
  77. -- Goto (macro-record-enable,s,15)
  78. -- Executing [s@macro-record-enable:15] GotoIf("SIP/4001-0000000f", "0?IN") in new stack
  79. -- Executing [s@macro-record-enable:16] ExecIf("SIP/4001-0000000f", "1?MacroExit()") in new stack
  80. -- Executing [9611351400@from-internal:7] Macro("SIP/4001-0000000f", "dialout-trunk,2,9611351400,") in new stack
  81. -- Executing [s@macro-dialout-trunk:1] Set("SIP/4001-0000000f", "DIAL_TRUNK=2") in new stack
  82. -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/4001-0000000f", "0?sub-pincheck,s,1") in new stack
  83. -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/4001-0000000f", "0?disabletrunk,1") in new stack
  84. -- Executing [s@macro-dialout-trunk:4] Set("SIP/4001-0000000f", "DIAL_NUMBER=9611351400") in new stack
  85. -- Executing [s@macro-dialout-trunk:5] Set("SIP/4001-0000000f", "DIAL_TRUNK_OPTIONS=tr") in new stack
  86. -- Executing [s@macro-dialout-trunk:6] Set("SIP/4001-0000000f", "OUTBOUND_GROUP=OUT_2") in new stack
  87. -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/4001-0000000f", "1?nomax") in new stack
  88. -- Goto (macro-dialout-trunk,s,9)
  89. -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/4001-0000000f", "0?skipoutcid") in new stack
  90. -- Executing [s@macro-dialout-trunk:10] Set("SIP/4001-0000000f", "DIAL_TRUNK_OPTIONS=") in new stack
  91. -- Executing [s@macro-dialout-trunk:11] Macro("SIP/4001-0000000f", "outbound-callerid,2") in new stack
  92. -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/4001-0000000f", "0?Set(CALLERPRES()=)") in new stack
  93. -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/4001-0000000f", "0?Set(REALCALLERIDNUM=4001)") in new stack
  94. -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/4001-0000000f", "1?normcid") in new stack
  95. -- Goto (macro-outbound-callerid,s,6)
  96. -- Executing [s@macro-outbound-callerid:6] Set("SIP/4001-0000000f", "USEROUTCID=") in new stack
  97. -- Executing [s@macro-outbound-callerid:7] Set("SIP/4001-0000000f", "EMERGENCYCID=") in new stack
  98. -- Executing [s@macro-outbound-callerid:8] Set("SIP/4001-0000000f", "TRUNKOUTCID=9613790100") in new stack
  99. -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/4001-0000000f", "1?trunkcid") in new stack
  100. -- Goto (macro-outbound-callerid,s,12)
  101. -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/4001-0000000f", "1?Set(CALLERID(all)=9613790100)") in new stack
  102. -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/4001-0000000f", "0?Set(CALLERID(all)=)") in new stack
  103. -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/4001-0000000f", "1?Set(CALLERID(all)=9613790100)") in new stack
  104. -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/4001-0000000f", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
  105. -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/4001-0000000f", "1?sub-flp-2,s,1") in new stack
  106. -- Executing [s@sub-flp-2:1] ExecIf("SIP/4001-0000000f", "1?Return()") in new stack
  107. -- Executing [s@macro-dialout-trunk:13] Set("SIP/4001-0000000f", "OUTNUM=9611351400") in new stack
  108. -- Executing [s@macro-dialout-trunk:14] Set("SIP/4001-0000000f", "custom=SIP/nymgo-out") in new stack
  109. -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/4001-0000000f", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
  110. -- Executing [s@macro-dialout-trunk:16] Macro("SIP/4001-0000000f", "dialout-trunk-predial-hook,") in new stack
  111. -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/4001-0000000f", "") in new stack
  112. -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/4001-0000000f", "0?bypass,1") in new stack
  113. -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/4001-0000000f", "0?customtrunk") in new stack
  114. -- Executing [s@macro-dialout-trunk:19] Dial("SIP/4001-0000000f", "SIP/nymgo-out/9611351400,300,") in new stack
  115. == Using SIP RTP TOS bits 184
  116. == Using SIP RTP CoS mark 5
  117. -- Couldn't call SIP/nymgo-out/9611351400
  118. == Everyone is busy/congested at this time (0:0/0/0)
  119. -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/4001-0000000f", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0") in new stack
  120. -- Executing [s@macro-dialout-trunk:21] Goto("SIP/4001-0000000f", "s-CHANUNAVAIL,1") in new stack
  121. -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
  122. -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/4001-0000000f", "RC=0") in new stack
  123. -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/4001-0000000f", "0,1") in new stack
  124. -- Goto (macro-dialout-trunk,0,1)
  125. -- Executing [0@macro-dialout-trunk:1] Goto("SIP/4001-0000000f", "continue,1") in new stack
  126. -- Goto (macro-dialout-trunk,continue,1)
  127. -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/4001-0000000f", "1?noreport") in new stack
  128. -- Goto (macro-dialout-trunk,continue,3)
  129. -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/4001-0000000f", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0 - failing through to other trunks") in new stack
  130. -- Executing [continue@macro-dialout-trunk:4] Set("SIP/4001-0000000f", "CALLERID(number)=4001") in new stack
  131. -- Executing [9611351400@from-internal:8] Macro("SIP/4001-0000000f", "dialout-trunk,1,9611351400,") in new stack
  132. -- Executing [s@macro-dialout-trunk:1] Set("SIP/4001-0000000f", "DIAL_TRUNK=1") in new stack
  133. -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/4001-0000000f", "0?sub-pincheck,s,1") in new stack
  134. -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/4001-0000000f", "0?disabletrunk,1") in new stack
  135. -- Executing [s@macro-dialout-trunk:4] Set("SIP/4001-0000000f", "DIAL_NUMBER=9611351400") in new stack
  136. -- Executing [s@macro-dialout-trunk:5] Set("SIP/4001-0000000f", "DIAL_TRUNK_OPTIONS=tr") in new stack
  137. -- Executing [s@macro-dialout-trunk:6] Set("SIP/4001-0000000f", "OUTBOUND_GROUP=OUT_1") in new stack
  138. -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/4001-0000000f", "1?nomax") in new stack
  139. -- Goto (macro-dialout-trunk,s,9)
  140. -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/4001-0000000f", "0?skipoutcid") in new stack
  141. -- Executing [s@macro-dialout-trunk:10] Set("SIP/4001-0000000f", "DIAL_TRUNK_OPTIONS=") in new stack
  142. -- Executing [s@macro-dialout-trunk:11] Macro("SIP/4001-0000000f", "outbound-callerid,1") in new stack
  143. -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/4001-0000000f", "0?Set(CALLERPRES()=)") in new stack
  144. -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/4001-0000000f", "0?Set(REALCALLERIDNUM=4001)") in new stack
  145. -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/4001-0000000f", "1?normcid") in new stack
  146. -- Goto (macro-outbound-callerid,s,6)
  147. -- Executing [s@macro-outbound-callerid:6] Set("SIP/4001-0000000f", "USEROUTCID=") in new stack
  148. -- Executing [s@macro-outbound-callerid:7] Set("SIP/4001-0000000f", "EMERGENCYCID=") in new stack
  149. -- Executing [s@macro-outbound-callerid:8] Set("SIP/4001-0000000f", "TRUNKOUTCID=") in new stack
  150. -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/4001-0000000f", "1?trunkcid") in new stack
  151. -- Goto (macro-outbound-callerid,s,12)
  152. -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/4001-0000000f", "0?Set(CALLERID(all)=)") in new stack
  153. -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/4001-0000000f", "0?Set(CALLERID(all)=)") in new stack
  154. -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/4001-0000000f", "1?Set(CALLERID(all)=9613790100)") in new stack
  155. -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/4001-0000000f", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
  156. -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/4001-0000000f", "0?sub-flp-1,s,1") in new stack
  157. -- Executing [s@macro-dialout-trunk:13] Set("SIP/4001-0000000f", "OUTNUM=9611351400") in new stack
  158. -- Executing [s@macro-dialout-trunk:14] Set("SIP/4001-0000000f", "custom=DAHDI/g0") in new stack
  159. -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/4001-0000000f", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
  160. -- Executing [s@macro-dialout-trunk:16] Macro("SIP/4001-0000000f", "dialout-trunk-predial-hook,") in new stack
  161. -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/4001-0000000f", "") in new stack
  162. -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/4001-0000000f", "0?bypass,1") in new stack
  163. -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/4001-0000000f", "0?customtrunk") in new stack
  164. -- Executing [s@macro-dialout-trunk:19] Dial("SIP/4001-0000000f", "DAHDI/g0/9611351400,300,") in new stack
  165. == Everyone is busy/congested at this time (1:0/0/1)
  166. -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/4001-0000000f", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 6") in new stack
  167. -- Executing [s@macro-dialout-trunk:21] Goto("SIP/4001-0000000f", "s-CHANUNAVAIL,1") in new stack
  168. -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
  169. -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/4001-0000000f", "RC=6") in new stack
  170. -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/4001-0000000f", "6,1") in new stack
  171. -- Goto (macro-dialout-trunk,6,1)
  172. -- Executing [6@macro-dialout-trunk:1] Goto("SIP/4001-0000000f", "continue,1") in new stack
  173. -- Goto (macro-dialout-trunk,continue,1)
  174. -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/4001-0000000f", "1?noreport") in new stack
  175. -- Goto (macro-dialout-trunk,continue,3)
  176. -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/4001-0000000f", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 6 - failing through to other trunks") in new stack
  177. -- Executing [continue@macro-dialout-trunk:4] Set("SIP/4001-0000000f", "CALLERID(number)=4001") in new stack
  178. -- Executing [9611351400@from-internal:9] Macro("SIP/4001-0000000f", "outisbusy,") in new stack
  179. -- Executing [s@macro-outisbusy:1] Progress("SIP/4001-0000000f", "") in new stack
  180. -- Executing [s@macro-outisbusy:2] GotoIf("SIP/4001-0000000f", "0?emergency,1") in new stack
  181. -- Executing [s@macro-outisbusy:3] GotoIf("SIP/4001-0000000f", "0?intracompany,1") in new stack
  182. -- Executing [s@macro-outisbusy:4] Playback("SIP/4001-0000000f", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
  183. -- <SIP/4001-0000000f> Playing 'all-circuits-busy-now.gsm' (language 'en')
  184. -- <SIP/4001-0000000f> Playing 'pls-try-call-later.gsm' (language 'en')
  185. -- Executing [s@macro-outisbusy:5] Congestion("SIP/4001-0000000f", "20") in new stack
  186. == Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/4001-0000000f' in macro 'outisbusy'
  187. == Spawn extension (from-internal, 9611351400, 9) exited non-zero on 'SIP/4001-0000000f'
  188. -- Executing [h@from-internal:1] Macro("SIP/4001-0000000f", "hangupcall") in new stack
  189. -- Executing [s@macro-hangupcall:1] GotoIf("SIP/4001-0000000f", "1?endmixmoncheck") in new stack
  190. -- Goto (macro-hangupcall,s,9)
  191. -- Executing [s@macro-hangupcall:9] NoOp("SIP/4001-0000000f", "End of MIXMON check") in new stack
  192. -- Executing [s@macro-hangupcall:10] GotoIf("SIP/4001-0000000f", "1?nomeetmemon") in new stack
  193. -- Goto (macro-hangupcall,s,28)
  194. -- Executing [s@macro-hangupcall:28] NoOp("SIP/4001-0000000f", "End of MEETME check") in new stack
  195. -- Executing [s@macro-hangupcall:29] GotoIf("SIP/4001-0000000f", "1?noautomon") in new stack
  196. -- Goto (macro-hangupcall,s,34)
  197. -- Executing [s@macro-hangupcall:34] NoOp("SIP/4001-0000000f", "TOUCH_MONITOR_OUTPUT=") in new stack
  198. -- Executing [s@macro-hangupcall:35] GotoIf("SIP/4001-0000000f", "1?noautomon2") in new stack
  199. -- Goto (macro-hangupcall,s,41)
  200. -- Executing [s@macro-hangupcall:41] NoOp("SIP/4001-0000000f", "MONITOR_FILENAME=") in new stack
  201. -- Executing [s@macro-hangupcall:42] GotoIf("SIP/4001-0000000f", "1?skiprg") in new stack
  202. -- Goto (macro-hangupcall,s,45)
  203. -- Executing [s@macro-hangupcall:45] GotoIf("SIP/4001-0000000f", "1?skipblkvm") in new stack
  204. -- Goto (macro-hangupcall,s,48)
  205. -- Executing [s@macro-hangupcall:48] GotoIf("SIP/4001-0000000f", "1?theend") in new stack
  206. -- Goto (macro-hangupcall,s,50)
  207. -- Executing [s@macro-hangupcall:50] AGI("SIP/4001-0000000f", "hangup.agi") in new stack
  208. -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
  209. -- <SIP/4001-0000000f>AGI Script hangup.agi completed, returning 0
  210. -- Executing [s@macro-hangupcall:51] Hangup("SIP/4001-0000000f", "") in new stack
  211. == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/4001-0000000f' in macro 'hangupcall'
  212. == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/4001-0000000f'
  213. pbx*CLI>
Add Comment
Please, Sign In to add comment