[Asterisk-Users] Anyone having trouble with VoicePulse Connect?

beonice beonice at yahoo.com
Fri Feb 18 17:55:46 MST 2005


Andrew, thanks for the explanation ... see more
questions below. :)

--- Andrew Thompson <asteriskuser at aktzero.com> wrote:

> beonice wrote:
        --- snipped some ---
> > 
> > I guess the fundamental question is "why is a call
> > coming in from a DID any different?" And, of
> course,
> > "does a call coming in _not_ from a DID (maybe via
> an
> > SIP device? I don't know what the options are!)
> get
> > automagically handled by the 's' handler without
> > special mappings?"
> 
> I think you've confused your DID with inbound
> callerid.
> 
> Unless you have a international DID, the
> exten=>_NXXNXXXXXX pattern 
> should always accept any call bound for you from
> that context.
> 
> Even if someone calls you from an international
> location, voicepulse 
> *should* always present a unique DID to you the same
> way every time.

Okay. I think you unintentionally cleared up a
visualization problem for me. I was treating ALL my
extensions the same, including the inbound DID number.
So, I had:

[voicepulse_connect_context]
exten=>_NXXNXXXXXX,... 
exten => s,...
exten => i,...
exten => h,...
exten => t,...
exten => 1000,...
exten => 1001,...
etc. 

As you can see, all were lumped in the same context.
So (bear with me here, I'm trying to reason my way
through this), if I split up the internal extensions
into a different context, like so:

[voicepulse_connect_context]
exten=> 9995551212 Goto(my_internal_extensions, s, 1)
    ; where 9995551212 is the incoming DID
exten => s,...
exten => i,...
exten => h,...
exten => t,...

[my_internal_extensions]
exten => s,1,Answer
exten => #,1,Hangup
exten => 1000,...
exten => 1001,...
exten => 9995551212,... ; where 9995551212 is 
                        ; an internal extension
, etc.

then I'd basically be able to treat the DID value
differently from what I want to do when the actual
extension 9995551212 is dialed?? All calls coming in
from that DID would go to the "my_internal_extensions"
handler for 's'. After that, if the caller dials an
extension, the "my_internal_extensions" context takes
over and handles the actual extensions.

Am I misunderstanding this? I'm going to go try it
out. :)

> 
> Now, if you want to do processing of an inbound call
> diferently based on 
> it's origination number(it's callerid), you handle
> that afterwards.
    -- snipped an interesting example --

Naaaah. That wasn't what I was trying to achieve. I
just wasn't at all understanding what that "let's
handle an incoming DID as an extension" achieved.

If my "new" understanding of contexts is correct, then
I can see lots of possibilities. :)

Thanks a bunch!

Cheers,
Maya



		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 




More information about the asterisk-users mailing list