I change the parameters to
allow=ulaw
allow=gsm
But i get the same error. Maybe the problem is in the SIP settings and not in the Trunk settings.
Remember I’m running a AsteriskNOW. The asterisk is already updated via the command “yum update” on the terminal server and the FreePBX is updated via Module Administration.
These are the settings of my SIP:
Asterisk SIP Settings
NAT: YES
IP Configuration: Dynamic IP
Codecs: Ulaw Alaw gsm
Non-Standars g726: NO
T38 Pass-Through: NO
Video Codecs
Video Support: Disable
MEDIA & RTP Settings
Reinvite Behavior: NO
RTP Timers: 30(rtptimeout) 300(rtpholdtimeout) 0 (RTPKEEPALIVE)
Notification & MWI
MWI Polling Freq: 10
Notify Ringing: YES
Notify Hold: YES
Registration Settings
Registrations: 60 (registertimeout) 0 registerattemps)
Registration Times: 60(minexpiry) 3600(masexpiry) 120(defaultxpiry)
Jitter Buffer Settings
Jitter Buffer: Disabled
Advanced General Settings
Language:
Default Context:
Bind Address:
Bind Port:
Allow SIP Guests: YES
SRV Lookup: Disabled
Other SIP Settings: useragent=Softphone
@ the Asterisk terminal when we try to make a call to the outside world:
localhostCLI>
– Executing [7872252930@from-internal:1] Macro(“SIP/200-00000037”, “user-callerid|SKIPTTL|”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/200-00000037”, “AMPUSER=200”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/200-00000037”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/200-00000037”, “1|Set|REALCALLERIDNUM=200”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/200-00000037”, “AMPUSER=200”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/200-00000037”, “AMPUSERCIDNAME=Jaime J Calderin”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/200-00000037”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/200-00000037”, “AMPUSERCID=200”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/200-00000037”, “CALLERID(all)=“Jaime J Calderin” <200>”) in new stack
– Executing [s@macro-user-callerid:9] ExecIf(“SIP/200-00000037”, “0|Set|CHANNEL(language)=”) in new stack
– Executing [s@macro-user-callerid:10] GotoIf(“SIP/200-00000037”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [s@macro-user-callerid:19] NoOp(“SIP/200-00000037”, “Using CallerID “Jaime J Calderin” <200>”) in new stack
– Executing [7872252930@from-internal:2] Set(“SIP/200-00000037”, “_NODEST=”) in new stack
– Executing [7872252930@from-internal:3] Macro(“SIP/200-00000037”, “record-enable|200|OUT|”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/200-00000037”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“SIP/200-00000037”, “recordingcheck|20100105-212556|1262741156.55”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20100105-212556|1262741156.55: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] MacroExit(“SIP/200-00000037”, “”) in new stack
– Executing [7872252930@from-internal:4] Macro(“SIP/200-00000037”, “dialout-trunk|1|7872252930||”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/200-00000037”, “DIAL_TRUNK=1”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/200-00000037”, “0?sub-pincheck|s|1”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/200-00000037”, “0?disabletrunk|1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/200-00000037”, “DIAL_NUMBER=7872252930”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/200-00000037”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/200-00000037”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/200-00000037”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:8] GotoIf(“SIP/200-00000037”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/200-00000037”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/200-00000037”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/200-00000037”, “outbound-callerid|1”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/200-00000037”, “0|SetCallerPres|”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/200-00000037”, “0|Set|REALCALLERIDNUM=200”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/200-00000037”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/200-00000037”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/200-00000037”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/200-00000037”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/200-00000037”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/200-00000037”, “0|Set|CALLERID(all)=”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/200-00000037”, “0|Set|CALLERID(all)=”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/200-00000037”, “0|SetCallerPres|prohib_passed_screen”) in new stack
– Executing [s@macro-dialout-trunk:12] ExecIf(“SIP/200-00000037”, “1|AGI|fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
== fixlocalprefix: Dialpattern 787NXXXXXX matched. 7872252930 -> 7872252930
– AGI Script fixlocalprefix completed, returning 0
– Executing [s@macro-dialout-trunk:13] Set(“SIP/200-00000037”, “OUTNUM=7872252930”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/200-00000037”, “custom=SIP/phonemaxpr”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/200-00000037”, “0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)”) in new stack
– Executing [s@macro-dialout-trunk:16] Macro(“SIP/200-00000037”, “dialout-trunk-predial-hook|”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/200-00000037”, “”) in new stack
– Executing [s@macro-dialout-trunk:17] GotoIf(“SIP/200-00000037”, “0?bypass|1”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/200-00000037”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:19] Dial(“SIP/200-00000037”, “SIP/phonemaxpr/7872252930|300|”) in new stack
– Called phonemaxpr/7872252930
– Got SIP response 500 “Server Internal Error” back from 66.50.240.46
– SIP/phonemaxpr-00000038 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [s@macro-dialout-trunk:20] Goto(“SIP/200-00000037”, “s-CONGESTION|1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf(“SIP/200-00000037”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,3)
– Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp(“SIP/200-00000037”, “TRUNK Dial failed due to CONGESTION - failing through to other trunks”) in new stack
– Executing [7872252930@from-internal:5] Macro(“SIP/200-00000037”, “outisbusy|”) in new stack
– Executing [s@macro-outisbusy:1] GotoIf(“SIP/200-00000037”, “0?emergency|1”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“SIP/200-00000037”, “0?intracompany|1”) in new stack
– Executing [s@macro-outisbusy:3] PlayTones(“SIP/200-00000037”, “congestion”) in new stack
– Executing [s@macro-outisbusy:4] Congestion(“SIP/200-00000037”, “20”) in new stack
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on ‘SIP/200-00000037’ in macro ‘outisbusy’
== Spawn extension (from-internal, 7872252930, 5) exited non-zero on ‘SIP/200-00000037’
– Executing [h@from-internal:1] Macro(“SIP/200-00000037”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/200-00000037”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [s@macro-hangupcall:4] GotoIf(“SIP/200-00000037”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] GotoIf(“SIP/200-00000037”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] Hangup(“SIP/200-00000037”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/200-00000037’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/200-00000037’
localhostCLI>
THANK!