<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><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>
<!--1--><hr size=1></hr> 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/"> Click here.</a></body></html>