Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


Zeon

3644 posts

Uber Geek

Trusted

#28971 17-Dec-2008 16:55
Send private message

Hey Everyone,
OK this is a very wierd situation. This company has two offices, one in Auckland and one in Wellington. The Auckland office has a trixbox installed which has two VFX trunks coming in, an 09 number and 04 number. Both have been setup with exactly the same settings (see below) and both can receive calls fine. However I can't ring out if I use the Auckland trunk on our outbound route, I get a message "all circuits are busy now, please try again later" however if I use the Wellington trunk it's fine. Any ideas?

Setup:
username=XXXX
type=peer
secret=XXXXX
nat=yes
insecure=invite,port
host=pan.wxnz.net
fromuser=4237XXXX
fromdomain=pan.wxnz.net
dtmfmode=rfc2833
disallow=all
canreinvite=no
allow=ulaw&alaw




Speedtest 2019-10-14


Create new topic
sbiddle
29277 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  #184815 17-Dec-2008 17:09
Send private message

You aren't trying to set the CID on the Auckland outbound trunk to be that of the Wellington trunk are you?

Without seeing any debug logs it could be any number of things.

Zeon

3644 posts

Uber Geek

Trusted

  #184820 17-Dec-2008 17:28
Send private message

Thanks mate, here is the output when running asterisk -r from console:


    -- Executing [s@macro-user-callerid:2] Set("SIP/901-b7700c08", "AMPUSER=901"                                                                          ) in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/901-b7700c08", "0?report"                                                                          ) in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/901-b7700c08", "1|Set|REA                                                                          LCALLERIDNUM=901") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/901-b7700c08", "REALCALLERI                                                                          DNUM is 901") in new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/901-b7700c08", "AMPUSER=901"                                                                          ) in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/901-b7700c08", "AMPUSERCIDNA                                                                          ME=Jonathan Spence") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/901-b7700c08", "0?report"                                                                          ) in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/901-b7700c08", "AMPUSERCID=9                                                                          01") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/901-b7700c08", "CALLERID(al                                                                          l)="Jonathan Spence" <901>") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/901-b7700c08", "REALCALLERI                                                                          DNUM=901") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/901-b7700c08", "0|Set|CH                                                                          ANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/901-b7700c08", "TTL:  ARG1                                                                          : SKIPTTL") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/901-b7700c08", "1?contin                                                                          ue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/901-b7700c08", "Using Call                                                                          erID "Jonathan Spence" <901>") in new stack
    -- Executing [1095768507@from-internal:2] Set("SIP/901-b7700c08", "_NODEST="                                                                          ) in new stack
    -- Executing [1095768507@from-internal:3] Macro("SIP/901-b7700c08", "record-                                                                          enable|901|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/901-b7700c08", "0?2:4") i                                                                          n new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/901-b7700c08", "recordingche                                                                          ck|20081217-172647|1229488007.116") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20081217-172647|1229488007.116: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/901-b7700c08", "No recordin                                                                          g needed") in new stack
    -- Executing [1095768507@from-internal:4] Macro("SIP/901-b7700c08", "dialout                                                                          -trunk|3|095768507||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/901-b7700c08", "DIAL_TRUNK=3                                                                          ") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/901-b7700c08", "0|Authent                                                                          icate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/901-b7700c08", "0?disable                                                                          trunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/901-b7700c08", "DIAL_NUMBER=                                                                          095768507") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/901-b7700c08", "DIAL_TRUNK_O                                                                          PTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/901-b7700c08", "GROUP()=OUT_                                                                          3") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/901-b7700c08", "0?nomax")                                                                           in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/901-b7700c08", "0?chanful                                                                          l") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/901-b7700c08", "0?skipout                                                                          cid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/901-b7700c08", "DIAL_TRUNK_                                                                          OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/901-b7700c08", "outbound-                                                                          callerid|3") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/901-b7700c08", "0|Set                                                                          CallerPres|") in new stack
    -- Executing [s@macro-outbound-callerid:2] GotoIf("SIP/901-b7700c08", "1?sta                                                                          rt") in new stack
    -- Goto (macro-outbound-callerid,s,4)
    -- Executing [s@macro-outbound-callerid:4] NoOp("SIP/901-b7700c08", "REALCAL                                                                          LERIDNUM is 901") in new stack
    -- Executing [s@macro-outbound-callerid:5] GotoIf("SIP/901-b7700c08", "1?nor                                                                          mcid") in new stack
    -- Goto (macro-outbound-callerid,s,10)
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/901-b7700c08", "USEROUT                                                                          CID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/901-b7700c08", "EMERGEN                                                                          CYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] Set("SIP/901-b7700c08", "TRUNKOU                                                                          TCID=Power Business") in new stack
    -- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/901-b7700c08", "1?tr                                                                          unkcid") in new stack
    -- Goto (macro-outbound-callerid,s,17)
    -- Executing [s@macro-outbound-callerid:17] GotoIf("SIP/901-b7700c08", "0?us                                                                          ercid") in new stack
    -- Executing [s@macro-outbound-callerid:18] Set("SIP/901-b7700c08", "CALLERI                                                                          D(all)=Power Business") in new stack
    -- Executing [s@macro-outbound-callerid:19] GotoIf("SIP/901-b7700c08", "1?re                                                                          port") in new stack
    -- Goto (macro-outbound-callerid,s,23)
    -- Executing [s@macro-outbound-callerid:23] NoOp("SIP/901-b7700c08", "Caller                                                                          ID set to "Power Business" <>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/901-b7700c08", "fixlocalpre                                                                          fix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/901-b7700c08", "OUTNUM=0957                                                                          68507") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/901-b7700c08", "custom=SIP/                                                                          PBS - Auckland") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/901-b7700c08", "1?gocall                                                                          ") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/901-b7700c08", "dialout-t                                                                          runk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/901-b7700c08", "0?bypass                                                                          |1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/901-b7700c08", "0?custom                                                                          trunk") in new stack
    -- Executing [s@macro-dialout-trunk:20] Dial("SIP/901-b7700c08", "SIP/PBS -                                                                           Auckland/095768507|300|") in new stack
    -- Couldn't call PBS - Auckland/095768507
  == Everyone is busy/congested at this time (0:0/0/0)
    -- Executing [s@macro-dialout-trunk:21] Goto("SIP/901-b7700c08", "s-CHANUNAV                                                                          AIL|1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/901-b7700c08"                                                                          , "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/901-b7700c08",                                                                           "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new                                                                           stack
    -- Executing [1095768507@from-internal:5] Macro("SIP/901-b7700c08", "dialout                                                                          -trunk|1|095768507||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/901-b7700c08", "DIAL_TRUNK=1                                                                          ") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/901-b7700c08", "0|Authent                                                                          icate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/901-b7700c08", "0?disable                                                                          trunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/901-b7700c08", "DIAL_NUMBER=                                                                          095768507") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/901-b7700c08", "DIAL_TRUNK_O                                                                          PTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/901-b7700c08", "GROUP()=OUT_                                                                          1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/901-b7700c08", "0?nomax")                                                                           in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/901-b7700c08", "0?chanful                                                                          l") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/901-b7700c08", "0?skipout                                                                          cid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/901-b7700c08", "DIAL_TRUNK_                                                                          OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/901-b7700c08", "outbound-                                                                          callerid|1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/901-b7700c08", "0|Set                                                                          CallerPres|") in new stack
    -- Executing [s@macro-outbound-callerid:2] GotoIf("SIP/901-b7700c08", "1?sta                                                                          rt") in new stack
    -- Goto (macro-outbound-callerid,s,4)
    -- Executing [s@macro-outbound-callerid:4] NoOp("SIP/901-b7700c08", "REALCAL                                                                          LERIDNUM is 901") in new stack
    -- Executing [s@macro-outbound-callerid:5] GotoIf("SIP/901-b7700c08", "1?nor                                                                          mcid") in new stack
    -- Goto (macro-outbound-callerid,s,10)
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/901-b7700c08", "USEROUT                                                                          CID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/901-b7700c08", "EMERGEN                                                                          CYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] Set("SIP/901-b7700c08", "TRUNKOU                                                                          TCID=Power Business") in new stack
    -- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/901-b7700c08", "1?tr                                                                          unkcid") in new stack
    -- Goto (macro-outbound-callerid,s,17)
    -- Executing [s@macro-outbound-callerid:17] GotoIf("SIP/901-b7700c08", "0?us                                                                          ercid") in new stack
    -- Executing [s@macro-outbound-callerid:18] Set("SIP/901-b7700c08", "CALLERI                                                                          D(all)=Power Business") in new stack
    -- Executing [s@macro-outbound-callerid:19] GotoIf("SIP/901-b7700c08", "1?re                                                                          port") in new stack
    -- Goto (macro-outbound-callerid,s,23)
    -- Executing [s@macro-outbound-callerid:23] NoOp("SIP/901-b7700c08", "Caller                                                                          ID set to "Power Business" <>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/901-b7700c08", "fixlocalpre                                                                          fix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/901-b7700c08", "OUTNUM=0957                                                                          68507") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/901-b7700c08", "custom=SIP/                                                                          PBS - Wellington") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/901-b7700c08", "1?gocall                                                                          ") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/901-b7700c08", "dialout-t                                                                          runk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/901-b7700c08", "0?bypass                                                                          |1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/901-b7700c08", "0?custom                                                                          trunk") in new stack
    -- Executing [s@macro-dialout-trunk:20] Dial("SIP/901-b7700c08", "SIP/PBS -                                                                           Wellington/095768507|300|") in new stack
    -- Called PBS - Wellington/095768507
    -- SIP/PBS - Wellington-0918e280 is ringing
  == Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/901-b7                                                                          700c08' in macro 'dialout-trunk'
  == Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/901-b7                                                                          700c08'
    -- Executing [h@macro-dialout-trunk:1] Macro("SIP/901-b7700c08", "hangupcall                                                                          |") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/901-b7700c08", "w") in new                                                                           stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/901-b7700c08", "") in new sta                                                                          ck
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/901-b7700c08", "1?skiprg") i                                                                          n new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/901-b7700c08", "1?skipblkvm"                                                                          ) in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/901-b7700c08", "1?theend") i                                                                          n new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/901-b7700c08", "") in new s                                                                          tack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/901-b7700                                                                          c08' in macro 'hangupcall'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/901-b7700                                                                          c08'




Speedtest 2019-10-14


 
 
 
 


Zeon

3644 posts

Uber Geek

Trusted

  #184821 17-Dec-2008 17:30
Send private message

And no, they both have the Caller ID of "company name"




Speedtest 2019-10-14


sbiddle
29277 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  #184824 17-Dec-2008 17:37
Send private message

What UDP ports do you have open?

Try read this here from a few days ago.


Zeon

3644 posts

Uber Geek

Trusted

  #184831 17-Dec-2008 17:51
Send private message

It's wierd because its on a public IP while I try to eliminate anything that could be causing this issue.




Speedtest 2019-10-14


Zeon

3644 posts

Uber Geek

Trusted

  #184839 17-Dec-2008 19:10
Send private message

All fixed, I deleted all outbound routes, deleted all trunks and set them back up. Must have made a misconfiguration somewhere. Now the only thing I still have to figure out is how to use touch tone when I call into a helpdesk and need to press a number...




Speedtest 2019-10-14


raytaylor
3468 posts

Uber Geek

Trusted

  #188589 10-Jan-2009 15:48
Send private message

Zeon: All fixed, I deleted all outbound routes, deleted all trunks and set them back up. Must have made a misconfiguration somewhere. Now the only thing I still have to figure out is how to use touch tone when I call into a helpdesk and need to press a number...


I am currently trying to also get a trixbox working with the touch tones. I find that if i set them to inband i think i am getting the best results on the trunks and they work with a few helpdesks. I think i may need to get a analog trunk card to act as a timer. When i enter numbers into the ivm using the tones, i hear clicks and i think this is caused by the lack of a timing device, and the ivm may think i am pressing the button twice or something.

So that would be my suggestion - a timing device. Im getting one next week so i will be able to confirm weather it works




Ray Taylor
Taylor Broadband (rural hawkes bay)
www.ruralkiwi.com

There is no place like localhost
For my general guide to extending your wireless network Click Here




 
 
 
 


sbiddle
29277 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  #188596 10-Jan-2009 16:19
Send private message

There is no need for any hardware for DTMF. You just need to ensure you have all devices set correctly. if you are using inband it will only work with ulaw/alaw or G722 which are ISDN quality voice codecs. It will not work with compressed codecs such as G.729.

Most people use RFC2833 which sends DTMF signalling and will work with any codec. I've never had a single issues with DTMF on the numerous Asterisk distributions I've played with. What type of ATA or IP phone are you using?

raytaylor
3468 posts

Uber Geek

Trusted

  #188613 10-Jan-2009 17:41
Send private message

sbiddle: There is no need for any hardware for DTMF. You just need to ensure you have all devices set correctly. if you are using inband it will only work with ulaw/alaw or G722 which are ISDN quality voice codecs. It will not work with compressed codecs such as G.729.

Most people use RFC2833 which sends DTMF signalling and will work with any codec. I've never had a single issues with DTMF on the numerous Asterisk distributions I've played with. What type of ATA or IP phone are you using?


I have been using IDEFSK 2 free by asterisk guru - its a softphone and also had a play with the 3cix soft phone as well.
It says when i connect that its using ulaw but that may just be to the trixbox and not up the IAX trunk. I might fiddle with the allowed trunk codecs and see what happens.

For me its working with ANZ phone banking, but not the world clock at 0800-000-000
Im going to get a x100p card off trademe to act as a timing device so i can fix up the voicemail and music on hold anyway. Im not going to use it for an auctual line because i know they are crap.




Ray Taylor
Taylor Broadband (rural hawkes bay)
www.ruralkiwi.com

There is no place like localhost
For my general guide to extending your wireless network Click Here




sbiddle
29277 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  #188619 10-Jan-2009 18:26
Send private message

Timing isn't really a big issue any longer. I don't have any cards in my main box here at home running trixbox and have no issues at all and haven't for several years now.

If you run zttest you'll get some timing results from the zaptel interface. Digium recommend 99.98 as an acceptable result. I get 99.95 here as my average.

Run the test on my test box (which has some TDM400's and Sangoma cards) and this of course improves to around 99.99%

What codecs is the software using? It sounds very like you're using inband if you're getting hit and miss random results. There is no real reason not to use RFC2833.

Create new topic





News »

Nanoleaf enhances lighting line with launch of Triangles and Mini Triangles
Posted 17-Oct-2020 20:18


Synology unveils DS16211+
Posted 17-Oct-2020 20:12


Ingram Micro introduces FootfallCam to New Zealand channel
Posted 17-Oct-2020 20:06


Dropbox adopts Virtual First working policy
Posted 17-Oct-2020 19:47


OPPO announces Reno4 Series 5G line-up in NZ
Posted 16-Oct-2020 08:52


Microsoft Highway to a Hundred expands to Asia Pacific
Posted 14-Oct-2020 09:34


Spark turns on 5G in Auckland
Posted 14-Oct-2020 09:29


AMD Launches AMD Ryzen 5000 Series Desktop Processors
Posted 9-Oct-2020 10:13


Teletrac Navman launches integrated multi-camera solution for transport and logistics industry
Posted 8-Oct-2020 10:57


Farmside hits 10,000 RBI customers
Posted 7-Oct-2020 15:32


NordVPN starts deploying colocated servers
Posted 7-Oct-2020 09:00


Google introduces Nest Wifi routers in New Zealand
Posted 7-Oct-2020 05:00


Orcon to bundle Google Nest Wifi router with new accounts
Posted 7-Oct-2020 05:00


Epay and Centrapay partner to create digital gift cards
Posted 2-Oct-2020 17:34


Inseego launches 5G MiFi M2000 mobile hotspot
Posted 2-Oct-2020 14:53









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.