[asterisk-users] distinguishing users by their domain

2006-09-08 Thread Ricardo Carvalho
In extensions.conf I want to implement a dial plan that distinguishes 
the users that wish to dial a PSTN number by their own domain, so that 
[EMAIL PROTECTED] goes out to PSTN by a different DID than [EMAIL PROTECTED]


I tried the following line, but that doesn't distinguish between 
domains, and then if [EMAIL PROTECTED] or [EMAIL PROTECTED] dials some PSTN 
number, both calls goes out using same DID (did1):


exten = _[0-9]./john,1,Dial(SIP/[EMAIL PROTECTED],120)

I tried then using the following lines:

exten = _[0-9]./[EMAIL PROTECTED],1,Dial(SIP/[EMAIL PROTECTED],120)
exten = _[0-9]./[EMAIL PROTECTED],1,Dial(SIP/[EMAIL PROTECTED],120)

But those syntax doesn't work.
How can I do it? Any clues?

Thanks,
Ricardo.

___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-users] distinguishing users by their domain

2006-09-08 Thread Benjamin Jacob


My q too!!
I mean, simple extension numbers, 3000, 3001, etc, can be present in 
multiple pbxes(in any hosted pbx service).
I guess 'context' is a way, but it seems, in *, the dialplan(and hence 
the context) is decided by the callee digits. Any work arnd over this one?


cheerz
Ben.

Ricardo Carvalho wrote:

In extensions.conf I want to implement a dial plan that distinguishes 
the users that wish to dial a PSTN number by their own domain, so that 
[EMAIL PROTECTED] goes out to PSTN by a different DID than [EMAIL PROTECTED]


I tried the following line, but that doesn't distinguish between 
domains, and then if [EMAIL PROTECTED] or [EMAIL PROTECTED] dials some PSTN 
number, both calls goes out using same DID (did1):


exten = _[0-9]./john,1,Dial(SIP/[EMAIL PROTECTED],120)

I tried then using the following lines:

exten = _[0-9]./[EMAIL PROTECTED],1,Dial(SIP/[EMAIL PROTECTED],120)
exten = _[0-9]./[EMAIL PROTECTED],1,Dial(SIP/[EMAIL PROTECTED],120)

But those syntax doesn't work.
How can I do it? Any clues?

Thanks,
Ricardo.

___
--Bandwidth and Colocation provided by Easynews.com --

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


___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-users] distinguishing users by their domain

2006-09-08 Thread Ricardo Carvalho

So... does anybody know how can I do this?
Maybe using a way to distinguish users not by their username, but by 
other fields of SIP INVITE messages?


Regards,
Ricardo.






Ricardo Carvalho wrote:
In extensions.conf I want to implement a dial plan that distinguishes 
the users that wish to dial a PSTN number by their own domain, so that 
[EMAIL PROTECTED] goes out to PSTN by a different DID than [EMAIL PROTECTED]


I tried the following line, but that doesn't distinguish between 
domains, and then if [EMAIL PROTECTED] or [EMAIL PROTECTED] dials some PSTN 
number, both calls goes out using same DID (did1):


exten = _[0-9]./john,1,Dial(SIP/[EMAIL PROTECTED],120)

I tried then using the following lines:

exten = _[0-9]./[EMAIL PROTECTED],1,Dial(SIP/[EMAIL PROTECTED],120)
exten = _[0-9]./[EMAIL PROTECTED],1,Dial(SIP/[EMAIL PROTECTED],120)

But those syntax doesn't work.
How can I do it? Any clues?

Thanks,
Ricardo.



___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-users] distinguishing users by their domain

2006-09-08 Thread Tim St. Pierre
Isn't there a way to specify a context based on the incoming domain in 
sip.conf?




On September 8, 2006 14:03, Ricardo Carvalho wrote:
 So... does anybody know how can I do this?
 Maybe using a way to distinguish users not by their username, but by
 other fields of SIP INVITE messages?

 Regards,
 Ricardo.

 Ricardo Carvalho wrote:
  In extensions.conf I want to implement a dial plan that distinguishes
  the users that wish to dial a PSTN number by their own domain, so that
  [EMAIL PROTECTED] goes out to PSTN by a different DID than [EMAIL PROTECTED]
 
  I tried the following line, but that doesn't distinguish between
  domains, and then if [EMAIL PROTECTED] or [EMAIL PROTECTED] dials some PSTN
  number, both calls goes out using same DID (did1):
 
  exten = _[0-9]./john,1,Dial(SIP/[EMAIL PROTECTED],120)
 
  I tried then using the following lines:
 
  exten = _[0-9]./[EMAIL PROTECTED],1,Dial(SIP/[EMAIL PROTECTED],120)
  exten = _[0-9]./[EMAIL PROTECTED],1,Dial(SIP/[EMAIL PROTECTED],120)
 
  But those syntax doesn't work.
  How can I do it? Any clues?
 
  Thanks,
  Ricardo.

 ___
 --Bandwidth and Colocation provided by Easynews.com --

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

-- 
Tim St. Pierre

IP telephony specialist
sip://[EMAIL PROTECTED]
Toronto: 647 722 6930
Toll-Free 1 888 488 6940
[EMAIL PROTECTED]


pgp8ng4FvO5vJ.pgp
Description: PGP signature
___
--Bandwidth and Colocation provided by Easynews.com --

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