[asterisk-users] distinguishing users by their domain
Tim St. Pierre
tim at communicatefreely.net
Fri Sep 8 11:56:07 MST 2006
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
> > john at domain_A goes out to PSTN by a different DID than john at domain_B.
> >
> > I tried the following line, but that doesn't distinguish between
> > domains, and then if john at domain_A or john at domain_B dials some PSTN
> > number, both calls goes out using same DID (did1):
> >
> > exten => _[0-9]./john,1,Dial(SIP/${EXTEN}@did1,120)
> >
> > I tried then using the following lines:
> >
> > exten => _[0-9]./john at domain_A,1,Dial(SIP/${EXTEN}@did1,120)
> > exten => _[0-9]./john at domain_B,1,Dial(SIP/${EXTEN}@did2,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://5101@communicatefreely.net
Toronto: 647 722 6930
Toll-Free 1 888 488 6940
tim at communicatefreely.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060908/91cddcb6/attachment.pgp
More information about the asterisk-users
mailing list