* You are viewing the archive for March 2nd, 2011

How do I find a phone numbers issued by Rogers?

Hi,

Is there a way of finding out what block of phone numbers were issued to Roger’s business customers in my end of the woods?  

Thanks,

Sincerely,

 

Robert Augustyn

how to use qualify times to route calls

I’m using 1.8.3, and have 2 sip providers. Both are set with
qualify=yes. Each of them sometimes have qualify times 10+ times the
other. For instance, one will be at 10-15ms, the other at 200ms.

Is there a way I can route an outgoing call to the provider with the
lower qualify time?

sean

Question on Asterisk 1.8 and Wait()

When I switched to 1.8 from 1.4 I am getting this error

pbx.c:4055 pbx_extension_helper: No application ‘Wait,1′ for extension
(default, s, 1)

http://www.voip-info.org/wiki/view/Asterisk+-+documentation+of+application+commands
This page says its in 1.0 and I dont think has been removed.

Did I do something wrong? Everything else seems to be ok.

Thanks,

Jerry

asterisk behind nat

On 3/2/2011 9:46 AM, Leif Neland wrote:
> Some of the phones are being disconnected with Asterisk saying “no reply
> to critical packet”

What kind of phones are they? I might have nothing to do with your
network configuration; try adding to sip.conf [general]:

session-timers=refuse

Doubt about cdr on asterisk

I have the following situation….

I’m using Action Originate to originate a call for a costumer. Originate goes to a context that call the dial application. Before the application (Dial using the G option) to be invoked i’m setting the variable cellphone like this:

[firstcontext]
exten => s,1,Set(CDR(cellphone)=${CELLPHONE})
exten => s,n,Dial(IAX2/user:pass@otherasterisk/${CELLPHONE},30,G(secondcontext^s^1))

[secondcontext]
exten => s,1,Hangup()
exten => s,n,Playback(something)
exten => s,n,NoOp(CDR(cellphone)
exten => s,n,Hangup()

When the costumer answer the call, caller party goes to secondcontex on extension 1 and the called party goes to secondcontex on extension 2. On firstcontext (before the Dial) i can see the value of variable cellphone, but on my secondcontext (after Dial) the variable CDR(cellphone) is blank.

Is there something that i can do to pass the value after Dial application?

Luiz Gustavo Chiaretto

Comparing value of string with spaces?

Changing

exten => start,n,While($[${MYVAR} != "Some string"])

to

exten => start,n,While($["${MYVAR}" != "Some string"])

does the trick for me.