Re: [Asterisk-Users] ANI matching trouble

2003-05-30 Thread Jim Gottlieb
On 2003-05-28 at 22:39, Mark Spencer ([EMAIL PROTECTED]) wrote:

  exten = 4044633/_213.,1,OurApp,losangeles-queue
  exten = 4044633/_.,1,OurApp,default-queue
 
 Take out the _. rule and just leave it 4044633 and it should work fine.

That did it.  Works great!  Thanks.


 Not postive the _ is required on matching the callerid part, but honestly
 i just don't remember.

It _is_ required.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] ANI matching trouble

2003-05-29 Thread Jim Gottlieb
Hi.  I need to send calls to different programs depending on where the
call originates.  For example, I need calls from San Diego (NPA 619 and
858) to to be routed differently than L.A. calls.  I tried entries like:

exten = 4044633/_619.,1,OurApp,sandiego-queue
exten = 4044633/_858.,1,OurApp,sandiego-queue
exten = 4044633/_213.,1,OurApp,losangeles-queue
exten = 4044633/_.,1,OurApp,default-queue

but it didn't seem to work.  Every call went to the default queue.

I also tried
exten = 4044633/_619XXX,1,OurApp,sandiego-queue
to no avail.

It did work if I put a specific number in there:
exten = 4044633/6193644788,1,OurApp,sandiego-queue

but of course I can't list every possible number.

What am I doing wrong?  Thanks...
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] ANI matching trouble

2003-05-29 Thread John Todd
I don't think you can use wildcards in the ANI matching areas, though 
I'd be happy if this were the case.

You'll probably need to write an AGI that hands back an appropriate 
variable set to something that a Goto can parse.

The use of wildcards in ANI matches would be darn handy, though.

JT

Hi.  I need to send calls to different programs depending on where the
call originates.  For example, I need calls from San Diego (NPA 619 and
858) to to be routed differently than L.A. calls.  I tried entries like:
exten = 4044633/_619.,1,OurApp,sandiego-queue
exten = 4044633/_858.,1,OurApp,sandiego-queue
exten = 4044633/_213.,1,OurApp,losangeles-queue
exten = 4044633/_.,1,OurApp,default-queue
but it didn't seem to work.  Every call went to the default queue.

I also tried
exten = 4044633/_619XXX,1,OurApp,sandiego-queue
to no avail.
It did work if I put a specific number in there:
exten = 4044633/6193644788,1,OurApp,sandiego-queue
but of course I can't list every possible number.

What am I doing wrong?  Thanks...
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] ANI matching trouble

2003-05-29 Thread Jamie Carl
I was just thinking that.  Shouldn't this be a feature? 
I'm sure coding it would be a cut and past job. :)

Another one for the TO-DO list Mark. 
:)

Jamie

On Wed, 28 May 2003 16:45:44 -0700
 John Todd [EMAIL PROTECTED] wrote:
*This message was transferred with a trial version of 
CommuniGate(tm) Pro*
I don't think you can use wildcards in the ANI matching 
areas, though I'd be happy if this were the case.

You'll probably need to write an AGI that hands back an 
appropriate variable set to something that a Goto can 
parse.

The use of wildcards in ANI matches would be darn handy, 
though.

JT

Hi.  I need to send calls to different programs depending 
on where the
call originates.  For example, I need calls from San 
Diego (NPA 619 and
858) to to be routed differently than L.A. calls.  I 
tried entries like:

exten = 4044633/_619.,1,OurApp,sandiego-queue
exten = 4044633/_858.,1,OurApp,sandiego-queue
exten = 4044633/_213.,1,OurApp,losangeles-queue
exten = 4044633/_.,1,OurApp,default-queue
but it didn't seem to work.  Every call went to the 
default queue.

I also tried
exten = 4044633/_619XXX,1,OurApp,sandiego-queue
to no avail.
It did work if I put a specific number in there:
exten = 4044633/6193644788,1,OurApp,sandiego-queue
but of course I can't list every possible number.

What am I doing wrong?  Thanks...
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
Regards,

Jamie Carl
Jazz Inc.
Email:  [EMAIL PROTECTED]
Web:www.jazz-inc.net
Phone:  +61-414-365-466
Jabber: [EMAIL PROTECTED]
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] ANI matching trouble

2003-05-29 Thread Mark Spencer
 exten = 4044633/_619.,1,OurApp,sandiego-queue
 exten = 4044633/_858.,1,OurApp,sandiego-queue
 exten = 4044633/_213.,1,OurApp,losangeles-queue
 exten = 4044633/_.,1,OurApp,default-queue

 but it didn't seem to work.  Every call went to the default queue.

Take out the _. rule and just leave it 4044633 and it should work fine.
Not postive the _ is required on matching the callerid part, but honestly
i just don't remember.

Mark

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] ANI matching trouble

2003-05-29 Thread Jamie Carl
Shouldn't the priority also be different for each entry?

This would make it:

exten = 4044633/_619.,1,OurApp,sandiego-queue
exten = 4044633/_858.,2,OurApp,sandiego-queue
exten = 4044633/_213.,3,OurApp,losangeles-queue
exten = 4044633,4,OurApp,default-queue
This should work I would think.  Give it a shot, if it 
doesn't remove the _'s from the ANI pattern.

Jamie

On Wed, 28 May 2003 22:39:19 -0500 (CDT)
 Mark Spencer [EMAIL PROTECTED] wrote:
*This message was transferred with a trial version of 
CommuniGate(tm) Pro*
exten = 4044633/_619.,1,OurApp,sandiego-queue
exten = 4044633/_858.,1,OurApp,sandiego-queue
exten = 4044633/_213.,1,OurApp,losangeles-queue
exten = 4044633/_.,1,OurApp,default-queue
but it didn't seem to work.  Every call went to the 
default queue.
Take out the _. rule and just leave it 4044633 and it 
should work fine.
Not postive the _ is required on matching the callerid 
part, but honestly
i just don't remember.

Mark

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
Regards,

Jamie Carl
Jazz Inc.
Email:  [EMAIL PROTECTED]
Web:www.jazz-inc.net
Phone:  +61-414-365-466
Jabber: [EMAIL PROTECTED]
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users