<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><br>This looks like a SIP registration problem to me. You should enable sip debugging. If the problem/solution does not become obvious then post the results so we can take a look.<br><br><i>localhost*CLI> sip show peers<br>Name/username Host Dyn Nat ACL Port Status<br>new/42634 203.196.128.56 5080 OK (112 ms)<br><br>localhost*CLI> sip set debug ip 203.196.128.56<br>SIP Debugging Enabled for IP: 203.196.128.56<br>localhost*CLI><br></i><br>It may take a several seconds but you should see a bunch of sip traffic come by. After debugging you can use 'sip set debug off' to turn off sip debugging. <br><br>I hope this helps.. <br><br><br><br>
<blockquote webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size: 10pt; color: black; font-family: verdana;">
<div >
-------- Original Message --------<br>
Subject: [asterisk-users] Configuring SIP Trunk<br>
From: Sathyan M <m.sathyan@ymail.com><br>
Date: Fri, May 08, 2009 6:01 am<br>
To: asterisk-users@lists.digium.com<br>
<br>
<style type="text/css">
#wmMessage DIV {margin:0px;}
</style><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi All,<br><br>I have searched the various post and not able to find the solution.<br><br>I am using Asterisk 1.4.21.2 for outgoing calls. Earlier i used ZAP trunk and it works fine. Now i need to move to SIP trunk and configured the same.<br><br>When i try from softphone i got error as "Call rejected" and in the asterisk i got error as <br><br>*****************************************************************************************************<br><br> -- Executing [90012127773456@from-internal:1] Macro("SIP/2022-083c53f0", "user-callerid|SKIPTTL|") in new stack<br> -- Executing [s@macro-user-callerid:1] NoOp("SIP/2022-083c53f0", "user-callerid: device 2022") in new stack<br> -- Executing [s@macro-user-callerid:2] Set("SIP/2022-083c53f0", "AMPUSER=2022") in new stack<br> -- Executing [s@macro-user-callerid:3] GotoIf("SIP/2022-083c53f0", "0?report") in new stack<br> -- Executing [s@macro-user-callerid:4] ExecIf("SIP/2022-083c53f0", "1|Set|REALCALLERIDNUM=2022") in new stack<br> -- Executing [s@macro-user-callerid:5] NoOp("SIP/2022-083c53f0", "REALCALLERIDNUM is 2022") in new stack<br> -- Executing [s@macro-user-callerid:6] Set("SIP/2022-083c53f0", "AMPUSER=2022") in new stack<br> -- Executing [s@macro-user-callerid:7] Set("SIP/2022-083c53f0", "AMPUSERCIDNAME=EXTs1") in new stack<br> -- Executing [s@macro-user-callerid:8] GotoIf("SIP/2022-083c53f0", "0?report") in new stack<br> -- Executing [s@macro-user-callerid:9] Set("SIP/2022-083c53f0", "AMPUSERCID=2022") in new stack<br> -- Executing [s@macro-user-callerid:10] Set("SIP/2022-083c53f0", "CALLERID(all)="EXTs1" <2022>") in new stack<br> -- Executing [s@macro-user-callerid:11] Set("SIP/2022-083c53f0", "REALCALLERIDNUM=2022") in new stack<br> -- Executing [s@macro-user-callerid:12] ExecIf("SIP/2022-083c53f0", "0|Set|CHANNEL(language)=") in new stack<br> -- Executing [s@macro-user-callerid:13] NoOp("SIP/2022-083c53f0", "TTL: ARG1: SKIPTTL") in new stack<br> -- Executing [s@macro-user-callerid:14] GotoIf("SIP/2022-083c53f0", "1?continue") in new stack<br> -- Goto (macro-user-callerid,s,23)<br> -- Executing [s@macro-user-callerid:23] NoOp("SIP/2022-083c53f0", "Using CallerID "EXTs1" <2022>") in new stack<br> -- Executing [90012127773456@from-internal:2] Set("SIP/2022-083c53f0", "_NODEST=") in new stack<br> -- Executing [90012127773456@from-internal:3] Macro("SIP/2022-083c53f0", "record-enable|2022|OUT|") in new stack<br> -- Executing [s@macro-record-enable:1] GotoIf("SIP/2022-083c53f0", "0?2:4") in new stack<br> -- Goto (macro-record-enable,s,4)<br> -- Executing [s@macro-record-enable:4] AGI("SIP/2022-083c53f0", "recordingcheck|20090508-171018|1241782818.40") in new stack<br> -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck<br> recordingcheck|20090508-171018|1241782818.40: Outbound recording not enabled<br> -- AGI Script recordingcheck completed, returning 0<br> -- Executing [s@macro-record-enable:5] NoOp("SIP/2022-083c53f0", "No recording needed") in new stack<br> -- Executing [90012127773456@from-internal:4] Macro("SIP/2022-083c53f0", "dialout-trunk|2|0012127773456||") in new stack<br> -- Executing [s@macro-dialout-trunk:1] Set("SIP/2022-083c53f0", "DIAL_TRUNK=2") in new stack<br> -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/2022-083c53f0", "0|Authenticate|") in new stack<br> -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/2022-083c53f0", "0?disabletrunk|1") in new stack<br> -- Executing [s@macro-dialout-trunk:4] Set("SIP/2022-083c53f0", "DIAL_NUMBER=0012127773456") in new stack<br> -- Executing [s@macro-dialout-trunk:5] Set("SIP/2022-083c53f0", "DIAL_TRUNK_OPTIONS=tr") in new stack<br> -- Executing [s@macro-dialout-trunk:6] Set("SIP/2022-083c53f0", "GROUP()=OUT_2") in new stack<br> -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/2022-083c53f0", "1?nomax") in new stack<br> -- Goto (macro-dialout-trunk,s,9)<br> -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/2022-083c53f0", "0?skipoutcid") in new stack<br> -- Executing [s@macro-dialout-trunk:10] Set("SIP/2022-083c53f0", "DIAL_TRUNK_OPTIONS=") in new stack<br> -- Executing [s@macro-dialout-trunk:11] Macro("SIP/2022-083c53f0", "outbound-callerid|2") in new stack<br> -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/2022-083c53f0", "0|SetCallerPres|") in new stack<br> -- Executing [s@macro-outbound-callerid:2] GotoIf("SIP/2022-083c53f0", "1?start") in new stack<br> -- Goto (macro-outbound-callerid,s,4)<br> -- Executing [s@macro-outbound-callerid:4] NoOp("SIP/2022-083c53f0", "REALCALLERIDNUM is 2022") in new stack<br> -- Executing [s@macro-outbound-callerid:5] GotoIf("SIP/2022-083c53f0", "1?normcid") in new stack<br> -- Goto (macro-outbound-callerid,s,10)<br> -- Executing [s@macro-outbound-callerid:10] Set("SIP/2022-083c53f0", "USEROUTCID=") in new stack<br> -- Executing [s@macro-outbound-callerid:11] Set("SIP/2022-083c53f0", "EMERGENCYCID=") in new stack<br> -- Executing [s@macro-outbound-callerid:12] Set("SIP/2022-083c53f0", "TRUNKOUTCID=") in new stack<br> -- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/2022-083c53f0", "1?trunkcid") in new stack<br> -- Goto (macro-outbound-callerid,s,17)<br> -- Executing [s@macro-outbound-callerid:17] GotoIf("SIP/2022-083c53f0", "1?usercid") in new stack<br> -- Goto (macro-outbound-callerid,s,19)<br> -- Executing [s@macro-outbound-callerid:19] GotoIf("SIP/2022-083c53f0", "1?report") in new stack<br> -- Goto (macro-outbound-callerid,s,23)<br> -- Executing [s@macro-outbound-callerid:23] NoOp("SIP/2022-083c53f0", "CallerID set to "EXTs1" <2022>") in new stack<br> -- Executing [s@macro-dialout-trunk:12] AGI("SIP/2022-083c53f0", "fixlocalprefix") in new stack<br> -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix<br> -- AGI Script fixlocalprefix completed, returning 0<br> -- Executing [s@macro-dialout-trunk:13] Set("SIP/2022-083c53f0", "OUTNUM=0012127773456") in new stack<br> -- Executing [s@macro-dialout-trunk:14] Set("SIP/2022-083c53f0", "custom=SIP/New") in new stack<br> -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/2022-083c53f0", "1?gocall") in new stack<br> -- Goto (macro-dialout-trunk,s,17)<br> -- Executing [s@macro-dialout-trunk:17] Macro("SIP/2022-083c53f0", "dialout-trunk-predial-hook|") in new stack<br> -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/2022-083c53f0", "0?bypass|1[0 ;37;40m") in new stack<br> -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/2022-083c53f0", "0?customtrunk") in new stack<br> -- Executing [s@macro-dialout-trunk:20] Dial("SIP/2022-083c53f0", "SIP/New/0012127773456|300|") in new stack<br> -- Couldn't call New/0012127773456<br> == Everyone is busy/congested at this time (0:0/0/0)<br> -- Executing [s@macro-dialout-trunk:21] Goto("SIP/2022-083c53f0", "s-CHANUNAVAIL|1") in new stack<br> -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)<br> -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/2022-083c53f0", "1?noreport") in new stack<br> -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)<br> -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/2022-083c53f0", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack<br> -- Executing [90012127773456@from-internal:5] Macro("SIP/2022-083c53f0", "outisbusy|") in new stack<br> -- Executing [s@macro-outisbusy:1] Playback("SIP/2022-083c53f0", "all-circuits-busy-now|noanswer") in new stack<br> -- <SIP/2022-083c53f0> Playing 'all-circuits-busy-now' (language 'en')<br> -- Executing [s@macro-outisbusy:2] Playback("SIP/2022-083c53f0", "pls-try-call-later|noanswer") in new stack<br> -- <SIP/2022-083c53f0> Playing 'pls-try-call-later' (language 'en')<br> -- Executing [s@macro-outisbusy:3] Macro("SIP/2022-083c53f0", "hangupcall") in new stack<br> -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/2022-083c53f0", "w") in new stack<br> -- Executing [s@macro-hangupcall:2] NoCDR("SIP/2022-083c53f0", "") in new stack<br> -- Executing [s@macro-hangupcall:3] GotoIf("SIP/2022-083c53f0", "1?skiprg") in new stack<br> -- Goto (macro-hangupcall,s,6)<br> -- Executing [s@macro-hangupcall:6] GotoIf("SIP/2022-083c53f0", "1?skipblkvm") in new stack<br> -- Goto (macro-hangupcall,s,9)<br> -- Executing [s@macro-hangupcall:9] GotoIf("SIP/2022-083c53f0", "1?theend") in new stack<br> -- Goto (macro-hangupcall,s,11)<br> -- Executing [s@macro-hangupcall:11] Hangup("SIP/2022-083c53f0", "") in new stack<br> == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2022-083c53f0' in macro 'hangupcall'<br> == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2022-083c53f0' in macro 'outisbusy'<br> == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2022-083c53f0'<br><br>****************************************************************************************************<br><br>vi sip_additional.conf<br>===============<br>[2022]<br>type=peer<br>secret=2022<br>record_out=Adhoc<br>record_in=Adhoc<br>qualify=yes<br>port=5060<br>pickupgroup=<br>nat=no<br>mailbox=2022@device<br>host=dynamic<br>dtmfmode=rfc2833<br>dial=SIP/2022<br>context=from-internal<br>canreinvite=no<br>callgroup=<br>callerid=device <2022><br>accountcode=<br>call-limit=50<br><br>[New]<br>allow=ulaw<br>allow=alaw<br>allow=gsm<br>canreinvite=yes<br>context=from-trunk<br>disallow=all<br>dtmf=auto<br>dtmfmode=rfc2833<br>outboundproxy=203.196.128.56<br>progressinbound=yes<br>host=xxx.xxx.xxx.xxx<br>qualify=300<br>insecure=port,invite<br>secret=xxxxxx<br>type=peer<br>username=XXXXX<br>nat=yes<br>externip=xxx.xxx.xxx.xxx<br>localnet=192.168.10.0/255.255.255.0<br><br>vi sip_registrations.conf<br>=================<br>register=XXXXX:xxxxx@xxx.xxx.xxx.xxx<br><br>Sip registered to the sip provider.<br><br>When i checked with service provide they informed that they get userid append with some other digit like "42634XXXXX". But where as no where i have configured "42634".<br><br>Let me know where do i done the mistake.<br></div></div><br> <hr size="1"> Bollywood news, movie reviews, film trailers and more! <a href="http://in.rd.yahoo.com/tagline_movies_1/*http://in.movies.yahoo.com/?wm=n/" target="_blank" mce_href="http://in.rd.yahoo.com/tagline_movies_1/*http://in.movies.yahoo.com/?wm=n/"> Click here.</a><hr>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank" mce_href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" mce_href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</div>
</blockquote></span></body></html>