How to connect to a Voip Provider (Phonemaxpr)?

Currently installed the 1.5.0 version of AsteriskNOW with several phone extensions in my company, everything works fine on the local network but when trying to connect to my voip provider (Phonemaxpr) to make calls to the outside world can not do. He says: Your call can not be completed as dialed, please check the number and dial again.

This is the current configuration of my Trunk allegedly is connected to my voip provider “phonemaxpr.com

Outgoing Settings

Trunk Name: Phonemaxpr

PEER Details:

allow=ulaw&gsm
canreinvite=no
context=from-phonemaxpr
disallow=all
fromuser=Myusername
host=phonemaxpr.com
nat=yes
qualify=yes
secret=mypassword
sendrpid=yes
trustrpid=yes
type=friend

Incoming Settings

Nothing

Registration

myusername:[email protected]

This is what happens in the Asterisk terminal when I try to make a call to the outside world:

– Executing [7872252930@from-internal:1] ResetCDR(“SIP/200-b7804d20”, “”) in new stack
– Executing [7872252930@from-internal:2] NoCDR(“SIP/200-b7804d20”, “”) in new stack
– Executing [7872252930@from-internal:3] Wait(“SIP/200-b7804d20”, “1”) in new stack
– Executing [7872252930@from-internal:4] Playback(“SIP/200-b7804d20”, “silence/1&cannot-complete-as-dialed&check-number-dial-again|noanswer”) in new stack
– <SIP/200-b7804d20> Playing ‘silence/1’ (language ‘en’)
– <SIP/200-b7804d20> Playing ‘cannot-complete-as-dialed’ (language ‘en’)
– <SIP/200-b7804d20> Playing ‘check-number-dial-again’ (language ‘en’)
– Executing [7872252930@from-internal:5] Wait(“SIP/200-b7804d20”, “1”) in new stack
– Executing [7872252930@from-internal:6] Congestion(“SIP/200-b7804d20”, “20”) in new stack
== Spawn extension (from-internal, 7872252930, 6) exited non-zero on ‘SIP/200-b7804d20’
– Executing [h@from-internal:1] Macro(“SIP/200-b7804d20”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/200-b7804d20”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [s@macro-hangupcall:4] GotoIf(“SIP/200-b7804d20”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] GotoIf(“SIP/200-b7804d20”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] Hangup(“SIP/200-b7804d20”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/200-b7804d20’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/200-b7804d20’
localhost*CLI>

My voip service provider only gives me these parameters so i can use in ipsoftphone or hardphones:

User Name: My user name

Password: My Password

Proxy: 66.50.240.46

Proxy Port: 5060

Domain Name: phonemaxpr.com

And finally my Voip provider says check this option in the settings: “There is a firewall / NAT between my PC and this proxy”.

Any suggestions to make my Asterisk server work???

Thanks!!

The disallow line needs to be above the allow, having it below disables all CODEC’s.

Your context is wrong. For outbound peers should be from-internal

Ok i fix the PEERS Settings but when a try to make a call to the outside the X-lite say:Your call can not be completed as dialed, please check the number and dial again.

This is my sip trunk configuration:

Trunk Description: phonemaxpr.com
Outbound Caller ID: 7877777777

Block Foreign CallerIDs: Check

Dial Rules: 1787+NXXXXXX

Outgoing Settings

Trunk Name: phonemaxpr.com

PEERS Details:

type=friend
trustrpid=yes
sendrpid=yes
secret=mypassword
qualify=yes
nat=yes
host=phonemaxpr.com
fromuser=myusername
disallow=all
context=from-internal
canreinvite=no
allow=ulaw&gsm

Incoming Settings:

NOTHING

Registration:

myusername:[email protected]

At the Asterisk terminal when i try to call a regular telephone outside my LAN:

Connected to Asterisk 1.4.28 currently running on localhost (pid = 2497)
Verbosity is at least 3
– Executing [7872252930@from-internal:1] ResetCDR(“SIP/200-00000013”, “”) in new stack
– Executing [7872252930@from-internal:2] NoCDR(“SIP/200-00000013”, “”) in new stack
– Executing [7872252930@from-internal:3] Wait(“SIP/200-00000013”, “1”) in new stack
– Executing [7872252930@from-internal:4] Playback(“SIP/200-00000013”, “silence/1&cannot-complete-as-dialed&check-number-dial-again|noanswer”) in new stack
– <SIP/200-00000013> Playing ‘silence/1’ (language ‘en’)
– <SIP/200-00000013> Playing ‘cannot-complete-as-dialed’ (language ‘en’)
– <SIP/200-00000013> Playing ‘check-number-dial-again’ (language ‘en’)
== Spawn extension (from-internal, 7872252930, 4) exited non-zero on ‘SIP/200-00000013’
– Executing [h@from-internal:1] Macro(“SIP/200-00000013”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/200-00000013”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [s@macro-hangupcall:4] GotoIf(“SIP/200-00000013”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] GotoIf(“SIP/200-00000013”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] Hangup(“SIP/200-00000013”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/200-00000013’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/200-00000013’
localhost*CLI>

Looks to me line you don’t have a route to that trunk. The call never leaves the PBX.

Route Name: phonemaxpr

Route Passsword:

Pin Set: none

Emergency Dialing: uncheck

Intra Company Route: Uncheck

Music on hold: default

Dial Patterns:
NXXXXXX
NXXNXXXXXX

Trunk Sequences: SIP/phonemaxpr

I change the context to from-trunk andi get this error: TRUNK Dial failed due to CONGESTION - failing through to other trunks

@ Asterisk terminal when try to call outside mi LAN:

Connected to Asterisk 1.4.28 currently running on localhost (pid = 2486)
Verbosity is at least 3
– Registered SIP ‘200’ at 192.168.1.100 port 26580
– Executing [7872252930@from-internal:1] Macro(“SIP/200-00000000”, “user-callerid|SKIPTTL|”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/200-00000000”, “AMPUSER=200”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/200-00000000”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/200-00000000”, “1|Set|REALCALLERIDNUM=200”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/200-00000000”, “AMPUSER=200”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/200-00000000”, “AMPUSERCIDNAME=Jaime J Calderin”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/200-00000000”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/200-00000000”, “AMPUSERCID=200”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/200-00000000”, “CALLERID(all)=“Jaime J Calderin” <200>”) in new stack
– Executing [s@macro-user-callerid:9] ExecIf(“SIP/200-00000000”, “0|Set|CHANNEL(language)=”) in new stack
– Executing [s@macro-user-callerid:10] GotoIf(“SIP/200-00000000”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [s@macro-user-callerid:19] NoOp(“SIP/200-00000000”, “Using CallerID “Jaime J Calderin” <200>”) in new stack
– Executing [7872252930@from-internal:2] Set(“SIP/200-00000000”, “_NODEST=”) in new stack
– Executing [7872252930@from-internal:3] Macro(“SIP/200-00000000”, “record-enable|200|OUT|”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/200-00000000”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“SIP/200-00000000”, “recordingcheck|20100104-030753|1262588873.0”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20100104-030753|1262588873.0: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] MacroExit(“SIP/200-00000000”, “”) in new stack
– Executing [7872252930@from-internal:4] Macro(“SIP/200-00000000”, “dialout-trunk|1|7872252930||”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/200-00000000”, “DIAL_TRUNK=1”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/200-00000000”, “0?sub-pincheck|s|1”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/200-00000000”, “0?disabletrunk|1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/200-00000000”, “DIAL_NUMBER=7872252930”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/200-00000000”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/200-00000000”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/200-00000000”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/200-00000000”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/200-00000000”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/200-00000000”, “outbound-callerid|1”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/200-00000000”, “0|SetCallerPres|”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/200-00000000”, “0|Set|REALCALLERIDNUM=200”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/200-00000000”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/200-00000000”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/200-00000000”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/200-00000000”, “TRUNKOUTCID=7875249138”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/200-00000000”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/200-00000000”, “1|Set|CALLERID(all)=7875249138”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/200-00000000”, “0|Set|CALLERID(all)=”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/200-00000000”, “0|SetCallerPres|prohib_passed_screen”) in new stack
– Executing [s@macro-dialout-trunk:12] ExecIf(“SIP/200-00000000”, “1|AGI|fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
== fixlocalprefix: Dialpattern X. matched. 7872252930 -> 7872252930
– AGI Script fixlocalprefix completed, returning 0
– Executing [s@macro-dialout-trunk:13] Set(“SIP/200-00000000”, “OUTNUM=7872252930”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/200-00000000”, “custom=SIP/phonemaxpr”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/200-00000000”, “0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)”) in new stack
– Executing [s@macro-dialout-trunk:16] Macro(“SIP/200-00000000”, “dialout-trunk-predial-hook|”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/200-00000000”, “”) in new stack
– Executing [s@macro-dialout-trunk:17] GotoIf(“SIP/200-00000000”, “0?bypass|1”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/200-00000000”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:19] Dial(“SIP/200-00000000”, “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-00000001 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [s@macro-dialout-trunk:20] Goto(“SIP/200-00000000”, “s-CONGESTION|1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf(“SIP/200-00000000”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,3)
– Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp(“SIP/200-00000000”, “TRUNK Dial failed due to CONGESTION - failing through to other trunks”) in new stack
– Executing [7872252930@from-internal:5] Macro(“SIP/200-00000000”, “outisbusy|”) in new stack
– Executing [s@macro-outisbusy:1] GotoIf(“SIP/200-00000000”, “0?emergency|1”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“SIP/200-00000000”, “0?intracompany|1”) in new stack
– Executing [s@macro-outisbusy:3] PlayTones(“SIP/200-00000000”, “congestion”) in new stack
– Executing [s@macro-outisbusy:4] Congestion(“SIP/200-00000000”, “20”) in new stack
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on ‘SIP/200-00000000’ in macro ‘outisbusy’
== Spawn extension (from-internal, 7872252930, 5) exited non-zero on ‘SIP/200-00000000’
– Executing [h@from-internal:1] Macro(“SIP/200-00000000”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/200-00000000”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [s@macro-hangupcall:4] GotoIf(“SIP/200-00000000”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] GotoIf(“SIP/200-00000000”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] Hangup(“SIP/200-00000000”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/200-00000000’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/200-00000000’
localhost*CLI>

The trunk (phonemaxpr) is registered and online. You think, my problem is in the Dial Rules settings?

Change the context to from-trunk and you should be good. Sorry for the confusion.

The trunk is working, your provider rejected the call:

-- Called phonemaxpr/7872252930 -- Got SIP response 500 "Server Internal Error" back from 66.50.240.46 -- SIP/phonemaxpr-00000001 is circuit-busy

Is this the format they want the numbers? You know you are communicating with them now so you can call them for tech support.

I believe he just needs to add a 1 in the dial sequence.

Nop! I add a 1 in the dial sequence and i got the same error.

I call to Technical support and can not help me to setup my Asterisk Server, they say it must be a person who specializes in configuring Asterisk servers. WTF!!!

Any suggestion?

Thanks!

Hmm, I think that the allow= is wrong, your setup is

disallow=all
context=from-internal
canreinvite=no
allow=ulaw&gsm

But it should be like this, in order of preference for the codecs

disallow=all
context=from-internal
canreinvite=no
allow=ulaw
allow=gsm

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’
localhost
CLI>

THANK!