On April 25th, 2008 edwardlobo (tadpole) said:

Can someone please help me ?

I have a trixbox on a laptop with Freepbx 2.2.0rc3. I have set up a sip trunk there as follows
PEER Detail:
allow=alaw&ulaw&gsm
context=from-pstn
disallow=all
dtmfmode=inband
fromdomain=sip.lowratevoip.com
fromuser=xyzxyz
host=sip.lowratevoip.com
insecure=very
nat=yes
qualify=yes
secret=passwd
srvlookup=yes
type=friend
username=xyzxyz

and registration string as
xyzxyz:[email protected]/xyzxyz

and it works fine. When I copy the same thing to a “pbx in a flash” with freepbx 2.4 I cannot use the trunk at all. It continues to say all “all circuits are busy now…”

I have really tried over a day to fix this. Tried changing conf files as they appear in the old box but it just doesn’t like it.

The only other difference between the old box and new is that the new one also has 8 pri lines which work fine for outgoing and incoming calls.

I would be really very appreciative of any help you offer.

Many thanks.

move your disallow all above the allow=alaw&ulaw&gsm, otherwise you are disallowing all codecs.

Another observation is that it does not register the trunk. 2.4 puts the register info in sip_registrations.conf and 2.2 in sip_additional.conf

Sip_registrations.conf is called in 2.4 in sip.conf I tried commenting out the line but still no change.
When I enter the register info in sip_additional.conf in 2.4 it registers but it still does not let me do an outside call.

The log of 2.4 is below during the call

-- Executing [907825211107@from-internal:1] Macro("SIP/80-b7d02338", "user-callerid|SKIPTTL|") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("SIP/80-b7d02338", "user-callerid: device 80") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/80-b7d02338", "AMPUSER=80") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/80-b7d02338", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/80-b7d02338", "1|Set|REALCALLERIDNUM=80") in new stack
-- Executing [s@macro-user-callerid:5] NoOp("SIP/80-b7d02338", "REALCALLERIDNUM is 80") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/80-b7d02338", "AMPUSER=80") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/80-b7d02338", "AMPUSERCIDNAME=Conference Room") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/80-b7d02338", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/80-b7d02338", "AMPUSERCID=80") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/80-b7d02338", "CALLERID(all)="Conference Room" <80>") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/80-b7d02338", "REALCALLERIDNUM=80") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("SIP/80-b7d02338", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:13] NoOp("SIP/80-b7d02338", "TTL:  ARG1: SKIPTTL") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/80-b7d02338", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("SIP/80-b7d02338", "Using CallerID "Conference Room" <80>") in new stack
-- Executing [907825211107@from-internal:2] Set("SIP/80-b7d02338", "_NODEST=") in new stack
-- Executing [907825211107@from-internal:3] Macro("SIP/80-b7d02338", "record-enable|80|OUT|") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/80-b7d02338", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/80-b7d02338", "recordingcheck|20080425-192651|1209148011.14") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck

recordingcheck|20080425-192651|1209148011.14: PHPAGI internal configuration:
recordingcheck|20080425-192651|1209148011.14: Array
recordingcheck|20080425-192651|1209148011.14: (
recordingcheck|20080425-192651|1209148011.14: [phpagi] => Array
recordingcheck|20080425-192651|1209148011.14: (
recordingcheck|20080425-192651|1209148011.14: [debug] => 1
recordingcheck|20080425-192651|1209148011.14: [error_handler] => 1
recordingcheck|20080425-192651|1209148011.14: [admin] => root@localhost
recordingcheck|20080425-192651|1209148011.14: [hostname] => 127.0.0.1
recordingcheck|20080425-192651|1209148011.14: [tempdir] => /var/spool/asterisk/tmp/
recordingcheck|20080425-192651|1209148011.14: )
recordingcheck|20080425-192651|1209148011.14:
recordingcheck|20080425-192651|1209148011.14: [asmanager] => Array
recordingcheck|20080425-192651|1209148011.14: (
recordingcheck|20080425-192651|1209148011.14: [server] => localhost
recordingcheck|20080425-192651|1209148011.14: [port] => 5038
recordingcheck|20080425-192651|1209148011.14: [username] => meetme
recordingcheck|20080425-192651|1209148011.14: [secret] => meetme3
recordingcheck|20080425-192651|1209148011.14: )
recordingcheck|20080425-192651|1209148011.14:
recordingcheck|20080425-192651|1209148011.14: [fastagi] => Array
recordingcheck|20080425-192651|1209148011.14: (
recordingcheck|20080425-192651|1209148011.14: [#setuid] => 1
recordingcheck|20080425-192651|1209148011.14: [#basedir] => /var/lib/asterisk/agi-bin/
recordingcheck|20080425-192651|1209148011.14: )
recordingcheck|20080425-192651|1209148011.14:
recordingcheck|20080425-192651|1209148011.14: [festival] => Array
recordingcheck|20080425-192651|1209148011.14: (
recordingcheck|20080425-192651|1209148011.14: [text2wave] => /usr/bin/text2wave
recordingcheck|20080425-192651|1209148011.14: )
recordingcheck|20080425-192651|1209148011.14:
recordingcheck|20080425-192651|1209148011.14: [cepstral] => Array
recordingcheck|20080425-192651|1209148011.14: (
recordingcheck|20080425-192651|1209148011.14: [#swift] => /opt/swift/bin/swift
recordingcheck|20080425-192651|1209148011.14: [#voice] => David
recordingcheck|20080425-192651|1209148011.14: )
recordingcheck|20080425-192651|1209148011.14:
recordingcheck|20080425-192651|1209148011.14: )
recordingcheck|20080425-192651|1209148011.14:
recordingcheck|20080425-192651|1209148011.14: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] NoOp(“SIP/80-b7d02338”, “No recording needed”) in new stack
– Executing [907825211107@from-internal:4] Macro(“SIP/80-b7d02338”, “dialout-trunk|3|7825211107||”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/80-b7d02338”, “DIAL_TRUNK=3”) in new stack
– Executing [s@macro-dialout-trunk:2] ExecIf(“SIP/80-b7d02338”, “0|Authenticate|”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/80-b7d02338”, “0?disabletrunk|1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/80-b7d02338”, “DIAL_NUMBER=7825211107”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/80-b7d02338”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/80-b7d02338”, “GROUP()=OUT_3”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/80-b7d02338”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/80-b7d02338”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/80-b7d02338”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/80-b7d02338”, “outbound-callerid|3”) in new stack
– Executing [s@macro-outbound-callerid:1] GotoIf(“SIP/80-b7d02338”, “1?start”) in new stack
– Goto (macro-outbound-callerid,s,3)
– Executing [s@macro-outbound-callerid:3] NoOp(“SIP/80-b7d02338”, “REALCALLERIDNUM is 80”) in new stack
– Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/80-b7d02338”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,9)
– Executing [s@macro-outbound-callerid:9] Set(“SIP/80-b7d02338”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:10] Set(“SIP/80-b7d02338”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:11] Set(“SIP/80-b7d02338”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:12] GotoIf(“SIP/80-b7d02338”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,16)
– Executing [s@macro-outbound-callerid:16] GotoIf(“SIP/80-b7d02338”, “1?usercid”) in new stack
– Goto (macro-outbound-callerid,s,18)
– Executing [s@macro-outbound-callerid:18] GotoIf(“SIP/80-b7d02338”, “1?report”) in new stack
– Goto (macro-outbound-callerid,s,22)
– Executing [s@macro-outbound-callerid:22] NoOp(“SIP/80-b7d02338”, “CallerID set to “Conference Room” <80>”) in new stack
– Executing [s@macro-dialout-trunk:12] AGI(“SIP/80-b7d02338”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
fixlocalprefix: PHPAGI internal configuration:
fixlocalprefix: Array
fixlocalprefix: (
fixlocalprefix: [phpagi] => Array
fixlocalprefix: (
fixlocalprefix: [debug] => 1
fixlocalprefix: [error_handler] => 1
fixlocalprefix: [admin] => root@localhost
fixlocalprefix: [hostname] => 127.0.0.1
fixlocalprefix: [tempdir] => /var/spool/asterisk/tmp/
fixlocalprefix: )
fixlocalprefix:
fixlocalprefix: [asmanager] => Array
fixlocalprefix: (
fixlocalprefix: [server] => localhost
fixlocalprefix: [port] => 5038
fixlocalprefix: [username] => meetme
fixlocalprefix: [secret] => meetme3
fixlocalprefix: )
fixlocalprefix:
fixlocalprefix: [fastagi] => Array
fixlocalprefix: (
fixlocalprefix: [#setuid] => 1
fixlocalprefix: [#basedir] => /var/lib/asterisk/agi-bin/
fixlocalprefix: )
fixlocalprefix:
fixlocalprefix: [festival] => Array
fixlocalprefix: (
fixlocalprefix: [text2wave] => /usr/bin/text2wave
fixlocalprefix: )
fixlocalprefix:
fixlocalprefix: [cepstral] => Array
fixlocalprefix: (
fixlocalprefix: [#swift] => /opt/swift/bin/swift
fixlocalprefix: [#voice] => David
fixlocalprefix: )
fixlocalprefix:
fixlocalprefix: )
fixlocalprefix:
– AGI Script fixlocalprefix completed, returning 0
– Executing [s@macro-dialout-trunk:13] Set(“SIP/80-b7d02338”, “OUTNUM=7825211107”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/80-b7d02338”, “custom=”) in new stack
– Executing [s@macro-dialout-trunk:15] GotoIf(“SIP/80-b7d02338”, “1?gocall”) in new stack
– Goto (macro-dialout-trunk,s,17)
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/80-b7d02338”, “dialout-trunk-predial-hook|”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/80-b7d02338”, “0?bypass|1”) in new stack
– Executing [s@macro-dialout-trunk:19] GotoIf(“SIP/80-b7d02338”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:20] Dial(“SIP/80-b7d02338”, “/7825211107|300|”) in new stack
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:21] Goto(“SIP/80-b7d02338”, “s-CHANUNAVAIL|1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf(“SIP/80-b7d02338”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp(“SIP/80-b7d02338”, “TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks”) in new stack
– Executing [907825211107@from-internal:5] Macro(“SIP/80-b7d02338”, “outisbusy|”) in new stack
– Executing [s@macro-outisbusy:1] Playback(“SIP/80-b7d02338”, “all-circuits-busy-now|noanswer”) in new stack
– <SIP/80-b7d02338> Playing ‘all-circuits-busy-now’ (language ‘en’)
– Executing [s@macro-outisbusy:2] Playback(“SIP/80-b7d02338”, “pls-try-call-later|noanswer”) in new stack
– <SIP/80-b7d02338> Playing ‘pls-try-call-later’ (language ‘en’)
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on ‘SIP/80-b7d02338’ in macro ‘outisbusy’
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on ‘SIP/80-b7d02338’

-- Executing Macro("SIP/2000-08ce67c8", "dialout-trunk|6|7825211107||") in new stack
-- Executing Set("SIP/2000-08ce67c8", "DIAL_TRUNK=6") in new stack
-- Executing Set("SIP/2000-08ce67c8", "_NODEST=") in new stack
-- Executing Set("SIP/2000-08ce67c8", "DIAL_NUMBER=7825211107") in new stack
-- Executing Set("SIP/2000-08ce67c8", "ROUTE_PASSWD=") in new stack
-- Executing Set("SIP/2000-08ce67c8", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing GotoIf("SIP/2000-08ce67c8", "1?noauth") in new stack
-- Goto (macro-dialout-trunk,s,8)
-- Executing Set("SIP/2000-08ce67c8", "GROUP()=OUT_6") in new stack
-- Executing Macro("SIP/2000-08ce67c8", "user-callerid|SKIPTTL") in new stack
-- Executing NoOp("SIP/2000-08ce67c8", "user-callerid: device 2000") in new stack
-- Executing GotoIf("SIP/2000-08ce67c8", "0?report") in new stack
-- Executing GotoIf("SIP/2000-08ce67c8", "0?start") in new stack
-- Executing Set("SIP/2000-08ce67c8", "REALCALLERIDNUM=2000") in new stack
-- Executing NoOp("SIP/2000-08ce67c8", "REALCALLERIDNUM is 2000") in new stack
-- Executing Set("SIP/2000-08ce67c8", "AMPUSER=2000") in new stack
-- Executing Set("SIP/2000-08ce67c8", "AMPUSERCIDNAME=Accounts") in new stack
-- Executing GotoIf("SIP/2000-08ce67c8", "0?report") in new stack
-- Executing Set("SIP/2000-08ce67c8", "CALLERID(all)=Accounts <2000>") in new stack
-- Executing Set("SIP/2000-08ce67c8", "REALCALLERIDNUM=2000") in new stack
-- Executing NoOp("SIP/2000-08ce67c8", "TTL:  ARG1: SKIPTTL") in new stack
-- Executing GotoIf("SIP/2000-08ce67c8", "1?continue") in new stack
-- Goto (macro-user-callerid,s,21)
-- Executing NoOp("SIP/2000-08ce67c8", "Using CallerID "Accounts" <2000>") in new stack
-- Executing Macro("SIP/2000-08ce67c8", "record-enable|2000|OUT") in new stack
-- Executing GotoIf("SIP/2000-08ce67c8", "0 > 0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing DeadAGI("SIP/2000-08ce67c8", "recordingcheck|20080425-193836|1209148716.32") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck

recordingcheck|20080425-193836|1209148716.32: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“SIP/2000-08ce67c8”, “No recording needed”) in new stack
– Executing GotoIf(“SIP/2000-08ce67c8”, “0?skipoutcid”) in new stack
– Executing Set(“SIP/2000-08ce67c8”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing Macro(“SIP/2000-08ce67c8”, “outbound-callerid|6”) in new stack
– Executing GotoIf(“SIP/2000-08ce67c8”, “1?start”) in new stack
– Goto (macro-outbound-callerid,s,3)
– Executing NoOp(“SIP/2000-08ce67c8”, “REALCALLERIDNUM is 2000”) in new stack
– Executing GotoIf(“SIP/2000-08ce67c8”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,9)
– Executing Set(“SIP/2000-08ce67c8”, “USEROUTCID=”) in new stack
– Executing Set(“SIP/2000-08ce67c8”, “EMERGENCYCID=”) in new stack
– Executing Set(“SIP/2000-08ce67c8”, “TRUNKOUTCID=<02071833718>”) in new stack
– Executing GotoIf(“SIP/2000-08ce67c8”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,16)
– Executing GotoIf(“SIP/2000-08ce67c8”, “0?usercid”) in new stack
– Executing Set(“SIP/2000-08ce67c8”, “CALLERID(all)=<02071833718>”) in new stack
– Executing GotoIf(“SIP/2000-08ce67c8”, “1?report”) in new stack
– Goto (macro-outbound-callerid,s,22)
– Executing NoOp(“SIP/2000-08ce67c8”, “CallerID set to “” <02071833718>”) in new stack
– Executing GotoIf(“SIP/2000-08ce67c8”, “0?nomax”) in new stack
– Executing GotoIf(“SIP/2000-08ce67c8”, “0?chanfull”) in new stack
– Executing DeadAGI(“SIP/2000-08ce67c8”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern 0044+Z.
== fixlocalprefix: Dialpattern 0044+Z. matched. 7825211107 -> 00447825211107
– AGI Script fixlocalprefix completed, returning 0
– Executing Set(“SIP/2000-08ce67c8”, “OUTNUM=00447825211107”) in new stack
– Executing Set(“SIP/2000-08ce67c8”, “custom=SIP/lowratevoipCB”) in new stack
– Executing GotoIf(“SIP/2000-08ce67c8”, “0?customtrunk”) in new stack
– Executing Dial(“SIP/2000-08ce67c8”, “SIP/lowratevoipCB/00447825211107|300|”) in new stack
– Called lowratevoipCB/00447825211107
– SIP/lowratevoipCB-08d0bf18 is making progress passing it to SIP/2000-08ce67c8
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on ‘SIP/2000-08ce67c8’ in macro ‘dialout-trunk’
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on ‘SIP/2000-08ce67c8’
– Executing Macro(“SIP/2000-08ce67c8”, “hangupcall”) in new stack
– Executing ResetCDR(“SIP/2000-08ce67c8”, “w”) in new stack
– Executing NoCDR(“SIP/2000-08ce67c8”, “”) in new stack
– Executing GotoIf(“SIP/2000-08ce67c8”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing GotoIf(“SIP/2000-08ce67c8”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing Wait(“SIP/2000-08ce67c8”, “5”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/2000-08ce67c8’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/2000-08ce67c8’

Given this line:

– Executing [s@macro-dialout-trunk:20] Dial(“SIP/80-b7d02338”, “/7825211107|300|”) in new stack

it appears that you have messed something up in your configuration or upgrade. If this was a restore from a backup on the old system on to the new, then it will be all messed up as you can’t restore from a different version. If this was an upgrade, something bad happened. Otherwise, completely remove the trunk and re-enter the information. The above would indicate that there is a trunk number screwed up or one of the globals screwed up - resulting in it dialing nonsense since the above section

“/7825211107|300|”

should look something like:

“SIP/peer_name/7825211107|300|”

This is a new “pbx in a flash” install after trixbox and others failed with the card. I must have installed atleast 5 times different asterisk versions which continually led to kernel panic. Finally pbx in a flash installed nicely and so far has not crashed. (2 days running)

I tried several times removing and reinstalling the trunk with different settings. No luck

I don’t know if it was just the disallow thing. I changed that and all is working just perfect.

Many many thanks sir. I’ll make a small donation to the forum in appreciation.

regards,

donations are always welcome, just use that donate button on the left. The change you made probably re-generated the trunk fixing what ever got corrupted although who knows why it got corrupted.