Page 1 of 1

Dial Plan problem

PostPosted: Fri Jul 17, 2009 11:25 am
by cottonking2000
Current

exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten=>_91NXXNXXXXXX,2,Dial(newiax:test@192.168.0.250:4569/${EXTEN:1},,tTor)
exten => _91NXXNXXXXXX,3,Hangup

Is there a problem you see here above?

Global register string:
VOIPSTREETIAXTRUNK = IAX2/voipstreet

What am I doing wrong?

PostPosted: Fri Jul 17, 2009 6:04 pm
by mflorell
Do you also have the account information in the carrier entry? I don't see that listed here.

fixed - read my solution

PostPosted: Sun Jul 19, 2009 1:27 am
by cottonking2000
What I learned

1) Dial 9 service is hard coded into the main extensions.conf, so you must
delete it to use dial 9 in a carrier (or hard code it into the
extensions.conf, which I do not recommend). OR you can do what we did here,
use dial 8 service instead.

2) Use the global variable definition system to your advantage (Do NOT put
your iax context directly in your dial plan, put the VARIABLE into it).

3) You cannot remove the switches from the "Dial" command. We switched back
to "standard" Vicidial formatting for the dial plan and Dial Command itself.

The changes below....good learning...for those starting out!


exten =>_81NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten =>_81NXXNXXXXXX,2,Dial(${DIAL8TRUNK}/${EXTEN:1},,tTor)
exten =>_81NXXNXXXXXX,3,Hangup

[voipstreet]
context=default
type=friend
host=(YOUR REGISTEREDVOIP ASSIGNED NAME)
auth=md5
username=(VOIP USER NAME)
secret=(PASSWORD)
disallow=all
allow=all

I had 9's instead of 8's _81NXXNXXXXXX up top.....

They cleaned up a few other things.....

Dial(${DIAL8TRUNK}/${EXTEN:1},,tTor)

from this

Dial(${IAX28TRUNK}/${EXTEN:1},,tTor)

Thats all that needed to be done......

I am dialing on IAX2 account/Device...onward and upward!

Thank You Bill!

PostPosted: Sun Jul 19, 2009 4:20 am
by mflorell
Thank you for posting your solution.

As a note, the 91NXXNXXXXXX will no longer be hard-coded in future releases.

PostPosted: Sun Jul 19, 2009 11:08 pm
by williamconley
Al! You can't call me Bill here! Use my code name ... LOL

And did we all see the time matt posted? 4am! Whoa. And I thought I was workin hard this weekend. I wimped out at 2.

:-)

PostPosted: Mon Jul 20, 2009 3:46 pm
by cottonking2000
LOL

PostPosted: Mon Jul 20, 2009 6:24 pm
by mflorell
As long as you don't call me Mike or Mark(not sure where people get that one from). I'm up at 4AM quite a bit, we have clients in Europe that we frequently do work for and are up for their go-live at 8-9AM local time.