1. fkhosravy
  2. عمومی - ایزابل، الستیکس، فری پی بی اکس ...
  3. دوشنبه, 25 بهمن 1389
سلام
ما روی دو کامپیوتر استریسک نصب کرده ایم. میخواهیم کامپیوتر اول تماسهای دریافتی اش را از طریق sip trunk به دومی منتقل کند.
کامپیوتر دوم از بیرون قابل دسترس بوده و امکان تماس به بیرون را نیز از روی آن داریم، ولی زمانی که تماسها از روی کامپیوتر اول به دومی منتقل میشوند، صرف نظر از اینکه تماس داخلی باشد یا خارجی و شماره معتبر باشد یا نه، همواره یک پیام پخش میشود:
The Number You have dialed is not in service

لاگ کامپیوتر اول
[left]

elastix*CLI>
-- Executing [[email protected]:1] Macro("SIP/110-093c7d38", "user-callerid|SKIPTTL|") in new stack
-- Executing [[email protected]:1] Set("SIP/110-093c7d38", "AMPUSER=110") in new stack
-- Executing [[email protected]:2] GotoIf("SIP/110-093c7d38", "0?report") in new stack
-- Executing [[email protected]:3] ExecIf("SIP/110-093c7d38", "1|Set|REALCALLERIDNUM=110") in new stack
-- Executing [[email protected]:4] Set("SIP/110-093c7d38", "AMPUSER=110") in new stack
-- Executing [[email protected]:5] Set("SIP/110-093c7d38", "AMPUSERCIDNAME=110") in new stack
-- Executing [[email protected]:6] GotoIf("SIP/110-093c7d38", "0?report") in new stack
-- Executing [[email protected]:7] Set("SIP/110-093c7d38", "AMPUSERCID=110") in new stack
-- Executing [[email protected]:8] Set("SIP/110-093c7d38", "CALLERID(all)="110" <110>") in new stack
-- Executing [[email protected]:9] Set("SIP/110-093c7d38", "REALCALLERIDNUM=110") in new stack
-- Executing [[email protected]:10] ExecIf("SIP/110-093c7d38", "0|Set|CHANNEL(language)=") in new stack
-- Executing [[email protected]:11] GotoIf("SIP/110-093c7d38", "1?continue") in new stack
-- Goto (macro-user-callerid,s,20)
-- Executing [[email protected]:20] NoOp("SIP/110-093c7d38", "Using CallerID "110" <110>") in new stack
-- Executing [[email protected]:2] Set("SIP/110-093c7d38", "_NODEST=") in new stack
-- Executing [[email protected]:3] Macro("SIP/110-093c7d38", "record-enable|110|OUT|") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/110-093c7d38", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [[email protected]:4] AGI("SIP/110-093c7d38", "recordingcheck|20110214-084350|1297660430.55") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20110214-084350|1297660430.55: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [[email protected]:5] MacroExit("SIP/110-093c7d38", "") in new stack
-- Executing [[email protected]:4] Macro("SIP/110-093c7d38", "dialout-trunk|2|101||") in new stack
-- Executing [[email protected]:1] Set("SIP/110-093c7d38", "DIAL_TRUNK=2") in new stack
-- Executing [[email protected]:2] GosubIf("SIP/110-093c7d38", "0?sub-pincheck|s|1") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/110-093c7d38", "0?disabletrunk|1") in new stack
-- Executing [[email protected]:4] Set("SIP/110-093c7d38", "DIAL_NUMBER=101") in new stack
-- Executing [[email protected]:5] Set("SIP/110-093c7d38", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [[email protected]:6] Set("SIP/110-093c7d38", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [[email protected]:7] GotoIf("SIP/110-093c7d38", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [[email protected]:9] GotoIf("SIP/110-093c7d38", "0?skipoutcid") in new stack
-- Executing [[email protected]:10] Set("SIP/110-093c7d38", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [[email protected]:11] Macro("SIP/110-093c7d38", "outbound-callerid|2") in new stack
-- Executing [[email protected]:1] ExecIf("SIP/110-093c7d38", "0|SetCallerPres|") in new stack
-- Executing [[email protected]:2] ExecIf("SIP/110-093c7d38", "0|Set|REALCALLERIDNUM=110") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/110-093c7d38", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [[email protected]:6] Set("SIP/110-093c7d38", "USEROUTCID=") in new stack
-- Executing [[email protected]:7] Set("SIP/110-093c7d38", "EMERGENCYCID=") in new stack
-- Executing [[email protected]:8] Set("SIP/110-093c7d38", "TRUNKOUTCID=sip trunk") in new stack
-- Executing [[email protected]:9] GotoIf("SIP/110-093c7d38", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [[email protected]:12] ExecIf("SIP/110-093c7d38", "1|Set|CALLERID(all)=sip trunk") in new stack
-- Executing [[email protected]:13] GotoIf("SIP/110-093c7d38", "1?exit") in new stack
-- Goto (macro-outbound-callerid,s,11)
-- Executing [[email protected]:11] MacroExit("SIP/110-093c7d38", "") in new stack
-- Executing [[email protected]:12] ExecIf("SIP/110-093c7d38", "1|AGI|fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern .
== fixlocalprefix: Dialpattern . matched. 101 -> 101
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [[email protected]:13] Set("SIP/110-093c7d38", "OUTNUM=101") in new stack
-- Executing [[email protected]:14] Set("SIP/110-093c7d38", "custom=SIP/siptrunk") in new stack
-- Executing [[email protected]:15] ExecIf("SIP/110-093c7d38", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
-- Executing [[email protected]:16] Macro("SIP/110-093c7d38", "dialout-trunk-predial-hook|") in new stack
-- Executing [[email protected]:1] MacroExit("SIP/110-093c7d38", "") in new stack
-- Executing [[email protected]:17] GotoIf("SIP/110-093c7d38", "0?bypass|1") in new stack
-- Executing [[email protected]:18] GotoIf("SIP/110-093c7d38", "0?customtrunk") in new stack
-- Executing [[email protected]:19] Dial("SIP/110-093c7d38", "SIP/siptrunk/101|300|") in new stack
-- Called siptrunk/101
-- SIP/siptrunk-093cbd58 answered SIP/110-093c7d38
-- Packet2Packet bridging SIP/110-093c7d38 and SIP/siptrunk-093cbd58
-- Executing [[email protected]:1] Macro("SIP/110-093c7d38", "hangupcall|") in new stack
-- Executing [[email protected]:1] ResetCDR("SIP/110-093c7d38", "w") in new stack
-- Executing [[email protected]:2] NoCDR("SIP/110-093c7d38", "") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/110-093c7d38", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [[email protected]:6] GotoIf("SIP/110-093c7d38", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [[email protected]:9] GotoIf("SIP/110-093c7d38", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [[email protected]:11] Hangup("SIP/110-093c7d38", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on &#39;SIP/110-093c7d38&#39; in macro &#39;hangupcall&#39;
== Spawn h extension (macro-dialout-trunk, h, 1) exited non-zero on &#39;SIP/110-093c7d38&#39;
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on &#39;SIP/110-093c7d38&#39; in macro &#39;dialout-trunk&#39;
== Spawn extension (from-internal, 101, 4) exited non-zero on &#39;SIP/110-093c7d38&#39;

[/left]

لاگ کامپیوتر دوم
[left]

elastix*CLI>
-- Executing [[email protected]:1] NoOp("SIP/192.168.20.121-09275268", "Received incoming SIP connection from unknown peer to 101") in new stack
-- Executing [[email protected]:2] Set("SIP/192.168.20.121-09275268", "DID=101") in new stack
-- Executing [[email protected]:3] Goto("SIP/192.168.20.121-09275268", "s|1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [[email protected]:1] GotoIf("SIP/192.168.20.121-09275268", "0?from-trunk|101|1") in new stack
-- Executing [[email protected]:2] Set("SIP/192.168.20.121-09275268", "TIMEOUT(absolute)=15") in new stack
-- Channel will hangup at 2011-02-14 08:44:06 UTC.
-- Executing [[email protected]:3] Answer("SIP/192.168.20.121-09275268", "") in new stack
-- Executing [[email protected]:4] Wait("SIP/192.168.20.121-09275268", "2") in new stack
-- Executing [[email protected]:5] Playback("SIP/192.168.20.121-09275268", "ss-noservice") in new stack
-- <SIP/192.168.20.121-09275268> Playing &#39;ss-noservice&#39; (language &#39;en&#39;)
-- Executing [[email protected]:6] PlayTones("SIP/192.168.20.121-09275268", "congestion") in new stack
-- Executing [[email protected]:7] Congestion("SIP/192.168.20.121-09275268", "5") in new stack
== Spawn extension (from-sip-external, s, 7) exited non-zero on &#39;SIP/192.168.20.121-09275268&#39;
-- Executing [[email protected]:1] NoOp("SIP/192.168.20.121-09275268", "Hangup") in new stack
-- Executing [[email protected]:2] Set("SIP/192.168.20.121-09275268", "DID=s") in new stack
-- Executing [[email protected]:3] Goto("SIP/192.168.20.121-09275268", "s|1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [[email protected]:1] GotoIf("SIP/192.168.20.121-09275268", "0?from-trunk|s|1") in new stack
-- Executing [[email protected]:2] Set("SIP/192.168.20.121-09275268", "TIMEOUT(absolute)=15") in new stack
-- Channel will hangup at 2011-02-14 08:44:18 UTC.
-- Executing [[email protected]:3] Answer("SIP/192.168.20.121-09275268", "") in new stack
== Spawn extension (from-sip-external, s, 3) exited non-zero on &#39;SIP/192.168.20.121-09275268&#39;
-- Remote UNIX connection
-- Remote UNIX connection disconnected

[/left]
نظر
هنوز هیچ نظری ارسال نشده است!
پاسخ پذیرفته شده Pending Moderation
0
رای
بازگشت
مقدار Allow Anonymous Inbound SIP Calls واقع در general setting را برابر با true قرار دادم و مشکل به نوعی حل شد.

کسی میدونه نحوه تعریف user و pass برای sip trunk ها چیست و چگونه این کار انجام میشود؟
نظر
هنوز هیچ نظری ارسال نشده است!
پاسخ پذیرفته شده Pending Moderation
0
رای
بازگشت
برای iax ترانک ها تو همین سایت توضیح داده شده است.
نظر
هنوز هیچ نظری ارسال نشده است!
  • صفحه :
  • 1


هنوز هیچ پاسخی برای این پرسش ارسال نشده است
همچنین شما برای ارسال پاسخ به این پرسش مجاب نیستید