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.


3395 posts

Uber Geek
+1 received by user: 397

Trusted

Topic # 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





Create new topic
26486 posts

Uber Geek
+1 received by user: 6036

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  Reply # 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.



3395 posts

Uber Geek
+1 received by user: 397

Trusted

  Reply # 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'







3395 posts

Uber Geek
+1 received by user: 397

Trusted

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

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





26486 posts

Uber Geek
+1 received by user: 6036

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  Reply # 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.




3395 posts

Uber Geek
+1 received by user: 397

Trusted

  Reply # 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.







3395 posts

Uber Geek
+1 received by user: 397

Trusted

  Reply # 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...





3174 posts

Uber Geek
+1 received by user: 593

Trusted

  Reply # 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




26486 posts

Uber Geek
+1 received by user: 6036

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  Reply # 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?

3174 posts

Uber Geek
+1 received by user: 593

Trusted

  Reply # 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




26486 posts

Uber Geek
+1 received by user: 6036

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  Reply # 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

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34


Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07


All or Nothing: New Zealand All Blacks arrives on Amazon Prime Video
Posted 2-Jun-2018 16:21


Innovation Grant, High Tech Awards and new USA office for Kiwi tech company SwipedOn
Posted 1-Jun-2018 20:54


Commerce Commission warns Apple for misleading consumers about their rights
Posted 30-May-2018 13:15


IBM leads Call for Code to use cloud, data, AI, blockchain for natural disaster relief
Posted 25-May-2018 14:12


New FUJIFILM X-T100 aims to do better job than smartphones
Posted 24-May-2018 20:17


Stuff takes 100% ownership of Stuff Fibre
Posted 24-May-2018 19:41



Geekzone Live »

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



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.