Re: [Asterisk-Users] NuFone + VoIPJet = busy busy busy

2005-03-16 Thread Jean-Michel Hiver

(obviously if you do other magic in your dialplan this needs to be adjusted.  
The important part is the 'g' flag to Dial (go on after hangup), and the NoOp 
which echos the dialstatus and hangupcause variables to the console.
 

How would you do this in an AGI script? Basically what I have at the 
moment is:

(minimize connection time, tries to open both nufone and voipjet and 
route through
which one is fastest)

my $dialstr = 
IAX2/[EMAIL PROTECTED]/$numberIAX2/[EMAIL PROTECTED]/$number|120;
my $res = $::YKOZ_AGI-exec (DIAL $dialstr);

Here is what I see on the CLI:
AGI Rx  EXEC DIAL 
IAX2/[EMAIL PROTECTED]/01133692660587IAX2/[EMAIL PROTECTED]/01133692660587|120 
   -- AGI Script Executing Application: (DIAL) Options: 
(IAX2/[EMAIL PROTECTED]/01133692660587IAX2/[EMAIL PROTECTED]/01133692660587|120)
   -- Called [EMAIL PROTECTED]/01133692660587
   -- Called [EMAIL PROTECTED]/01133692660587
   -- Call accepted by 216.118.117.46 (format ulaw)
   -- Format for call is ulaw
   -- Call accepted by 66.225.202.72 (format ulaw)
   -- Format for call is ulaw
   -- IAX2/voipjet/7 is making progress passing it to IAX2/[EMAIL PROTECTED]/1
   -- IAX2/NuFone/6 is circuit-busy
   -- Hungup 'IAX2/NuFone/6'
   -- IAX2/voipjet/7 is busy
   -- Hungup 'IAX2/voipjet/7'
 == Everyone is busy/congested at this time


Nufone is rock-solid stable.  I have been using them for about 5kmin/month 
over the past year with *no* issues, which is why I'd like to see what you're 
getting back for a dialstatus and hangupcause.
 

Well maybe it depends on the route you're using... you know, like 
'connect me to a mobile phone on some lost island in the indian ocean' 
might not be as reliable as 'pass me onto the library of new york' :)

Cheers,
Jean-Michel.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] NuFone + VoIPJet = busy busy busy

2005-03-16 Thread Eric Wieling
Once you run Dial from an AGI script, you lose control of the call via 
the AGI script.

Jean-Michel Hiver wrote:

(obviously if you do other magic in your dialplan this needs to be 
adjusted.  The important part is the 'g' flag to Dial (go on after 
hangup), and the NoOp which echos the dialstatus and hangupcause 
variables to the console.
 

How would you do this in an AGI script? Basically what I have at the 
moment is:

(minimize connection time, tries to open both nufone and voipjet and 
route through
which one is fastest)

my $dialstr = 
IAX2/[EMAIL PROTECTED]/$numberIAX2/[EMAIL PROTECTED]/$number|120;
my $res = $::YKOZ_AGI-exec (DIAL $dialstr);

Here is what I see on the CLI:
AGI Rx  EXEC DIAL 
IAX2/[EMAIL PROTECTED]/01133692660587IAX2/[EMAIL PROTECTED]/01133692660587|120 
   -- AGI Script Executing Application: (DIAL) Options: 
(IAX2/[EMAIL PROTECTED]/01133692660587IAX2/[EMAIL PROTECTED]/01133692660587|120)
   -- Called [EMAIL PROTECTED]/01133692660587
   -- Called [EMAIL PROTECTED]/01133692660587
   -- Call accepted by 216.118.117.46 (format ulaw)
   -- Format for call is ulaw
   -- Call accepted by 66.225.202.72 (format ulaw)
   -- Format for call is ulaw
   -- IAX2/voipjet/7 is making progress passing it to IAX2/[EMAIL PROTECTED]/1
   -- IAX2/NuFone/6 is circuit-busy
   -- Hungup 'IAX2/NuFone/6'
   -- IAX2/voipjet/7 is busy
   -- Hungup 'IAX2/voipjet/7'
 == Everyone is busy/congested at this time


Nufone is rock-solid stable.  I have been using them for about 
5kmin/month over the past year with *no* issues, which is why I'd like 
to see what you're getting back for a dialstatus and hangupcause.
 

Well maybe it depends on the route you're using... you know, like 
'connect me to a mobile phone on some lost island in the indian ocean' 
might not be as reliable as 'pass me onto the library of new york' :)

Cheers,
Jean-Michel.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

--
Always do right. This will gratify some people and astonish the rest.
Mark Twain
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] NuFone + VoIPJet = busy busy busy

2005-03-09 Thread Jean-Michel Hiver
Hi List,
I'm using VoIPJet and NuFone as a fallback, and it seems that both of 
them are circuit busy!

Also it seems that VoIPJet takes forever to return 'circuit busy' while 
NuFone does it instantly.

At any rate, is there like a reliable third VoIP provider I can use for 
fallback when the two others are busy?

Cheers,
Jean-Michel.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] NuFone + VoIPJet = busy busy busy

2005-03-09 Thread Yair Hakak
the following is on voipjet's site:

Please note we are having a temporary glitch with our New York
location. Please send traffic to our West Coast Premium Server until
the problem is fixed sometime today. New SERVER IP: 69.25.60.30

although i guess an email to this effect would have been nice.

-yair


On Wed, 09 Mar 2005 17:41:07 +0400, Jean-Michel Hiver
[EMAIL PROTECTED] wrote:
 Hi List,
 
 I'm using VoIPJet and NuFone as a fallback, and it seems that both of
 them are circuit busy!
 
 Also it seems that VoIPJet takes forever to return 'circuit busy' while
 NuFone does it instantly.
 
 At any rate, is there like a reliable third VoIP provider I can use for
 fallback when the two others are busy?
 
 Cheers,
 Jean-Michel.
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] NuFone + VoIPJet = busy busy busy

2005-03-09 Thread Andrew Kohlsmith
On March 9, 2005 08:41 am, Jean-Michel Hiver wrote:
 I'm using VoIPJet and NuFone as a fallback, and it seems that both of
 them are circuit busy!

What exactly is the return code for nufone?  Your dialplan should look 
something like this:

exten = whatever,1,Dial([EMAIL PROTECTED]/${EXTEN},,g)
exten = whatever,2,NoOp(DIALSTATUS IS ${DIALSTATUS}, HANGUPCAUSE IS 
${HANGUPCAUSE})
exten = whatever,3,Hangup

(obviously if you do other magic in your dialplan this needs to be adjusted.  
The important part is the 'g' flag to Dial (go on after hangup), and the NoOp 
which echos the dialstatus and hangupcause variables to the console.

Nufone is rock-solid stable.  I have been using them for about 5kmin/month 
over the past year with *no* issues, which is why I'd like to see what you're 
getting back for a dialstatus and hangupcause.

-A.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] NuFone + VoIPJet = busy busy busy

2005-03-09 Thread Cirelle Internet Products
Jean-Michel Hiver wrote:
Hi List,
I'm using VoIPJet and NuFone as a fallback, and it seems that both of 
them are circuit busy!

How are you determining a fallback condition from one voip to another?
greg
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] NuFone + VoIPJet = busy busy busy

2005-03-09 Thread Andrew Kohlsmith
On March 9, 2005 10:43 am, Cirelle Internet Products wrote:
 How are you determining a fallback condition from one voip to another?

Mine's rather simple but it works well:

[macro-nufone-dial]
exten = s,1,GotoIf($[$ACCOUNTCODE != ],s,gotac)
exten = s,n,SetVar(ACCOUNTCODE=${ARG2})
exten = s,n,GotoIf($[{$ARG2} != ],s,gotac)
exten = s,n,SetVar(ACCOUNTCODE=benshaw)
exten = s,n(gotac),SetAccount(${ACCOUNTCODE})
exten = s,n,GotoIf($[${LEN(${ARG1})} = 10]?s,add1)
exten = s,n,Dial(IAX2/[EMAIL PROTECTED]/${ARG1},,g)
exten = s,n,NoOp(NUFONE: HANGUPCAUSE is ${HANGUPCAUSE} and DIALSTATUS is 
${DIALSTATUS})
exten = s,n,Goto(dial-${DIALSTATUS},1)
exten = s,n(add1),Dial(IAX2/[EMAIL PROTECTED]/1${ARG1},,g)
exten = s,n,NoOp(NUFONE: HANGUPCAUSE is ${HANGUPCAUSE} and DIALSTATUS is 
${DIALSTATUS})
exten = s,n,Goto(dial-${DIALSTATUS},1)

exten = dial-CANCEL,1,Hangup
exten = dial-ANSWER,1,Hangup
exten = dial-NOANSWER,1,Hangup
exten = dial-BUSY,1,Busy
exten = dial-CONGESTION,1,Macro(pri-dial,${ARG1},${ARG2})
exten = dial-CHANUNAVAIL,1,Macro(pri-dial,${ARG1},${ARG2})

; handle NXX-NXX-, 1-NXX-NXX- and 011...
[nufone]
exten = _NXXNXX,1,Macro(nufone-dial,${EXTEN})
exten = _1NXXNXX,1,Macro(nufone-dial,${EXTEN:1})
exten = _011.,1,Macro(nufone-dial,${EXTEN})

You can ignore the accountcode stuff, we handle calls for several businesses 
so I sort the accounting out that way.  

For contexts that I want to have calls go out to Nufone I include the 'nufone' 
context.  As you can see, it handles 10-digit, 11-digit and international 
(variable-digit) extensions.

Basically if it's a 10-digit #, add a '1' to it.  Then attempt to Dial() 
through my Nufone account.  You'll notice the 'g' flag to the Dial() 
application which tells it to go on in context after a hangup.  I then check 
the status of DIALSTATUS and if the result was CONGESTION or CHANUNAVAIL I 
fall back and dial out my PRI.

Personally I think that CONGESTION should never be returned unless the other 
side SAYS piss off, I'm too busy to handle your call but IAX will throw 
back a CONGESTION status if it can't reach the other side, which is why I 
have to check for both CONGESTION and CHANUNAVAIL.

-A.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] NuFone + VoIPJet = busy busy busy

2005-03-09 Thread Cirelle Internet Products
Andrew Kohlsmith wrote:
On March 9, 2005 10:43 am, Cirelle Internet Products wrote:
 

How are you determining a fallback condition from one voip to another?
   

Mine's rather simple but it works well:
[macro-nufone-dial]
exten = s,1,GotoIf($[$ACCOUNTCODE != ],s,gotac)
exten = s,n,SetVar(ACCOUNTCODE=${ARG2})
exten = s,n,GotoIf($[{$ARG2} != ],s,gotac)
exten = s,n,SetVar(ACCOUNTCODE=benshaw)
exten = s,n(gotac),SetAccount(${ACCOUNTCODE})
exten = s,n,GotoIf($[${LEN(${ARG1})} = 10]?s,add1)
exten = s,n,Dial(IAX2/[EMAIL PROTECTED]/${ARG1},,g)
exten = s,n,NoOp(NUFONE: HANGUPCAUSE is ${HANGUPCAUSE} and DIALSTATUS is 
${DIALSTATUS})
exten = s,n,Goto(dial-${DIALSTATUS},1)
exten = s,n(add1),Dial(IAX2/[EMAIL PROTECTED]/1${ARG1},,g)
exten = s,n,NoOp(NUFONE: HANGUPCAUSE is ${HANGUPCAUSE} and DIALSTATUS is 
${DIALSTATUS})
exten = s,n,Goto(dial-${DIALSTATUS},1)

exten = dial-CANCEL,1,Hangup
exten = dial-ANSWER,1,Hangup
exten = dial-NOANSWER,1,Hangup
exten = dial-BUSY,1,Busy
exten = dial-CONGESTION,1,Macro(pri-dial,${ARG1},${ARG2})
exten = dial-CHANUNAVAIL,1,Macro(pri-dial,${ARG1},${ARG2})
; handle NXX-NXX-, 1-NXX-NXX- and 011...
[nufone]
exten = _NXXNXX,1,Macro(nufone-dial,${EXTEN})
exten = _1NXXNXX,1,Macro(nufone-dial,${EXTEN:1})
exten = _011.,1,Macro(nufone-dial,${EXTEN})
You can ignore the accountcode stuff, we handle calls for several businesses 
so I sort the accounting out that way.  

For contexts that I want to have calls go out to Nufone I include the 'nufone' 
context.  As you can see, it handles 10-digit, 11-digit and international 
(variable-digit) extensions.

Basically if it's a 10-digit #, add a '1' to it.  Then attempt to Dial() 
through my Nufone account.  You'll notice the 'g' flag to the Dial() 
application which tells it to go on in context after a hangup.  I then check 
the status of DIALSTATUS and if the result was CONGESTION or CHANUNAVAIL I 
fall back and dial out my PRI.

Personally I think that CONGESTION should never be returned unless the other 
side SAYS piss off, I'm too busy to handle your call but IAX will throw 
back a CONGESTION status if it can't reach the other side, which is why I 
have to check for both CONGESTION and CHANUNAVAIL.

-A.
 

Thanx Andrew
greg
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users