[asterisk-users] Two phone numbers, one SIP provider

Benjamin Stocker bstocker at gmail.com
Fri Jul 21 05:18:33 MST 2006


2006/7/21, David Cook <dbc_asterisk at advan.ca>:
>
> From: Filip Dr?gowski <f.dragowski at ontp.net>
> > Subject: Re: [asterisk-users] Two phone numbers, one SIP provider
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> >       <asterisk-users at lists.digium.com>
> > Message-ID: <44C07951.6040008 at ontp.net>
> > Content-Type: text/plain; charset=ISO-8859-2; format=flowed
> >
> > I think that context=incoming-[number] in firends definion is used
> > rather for determinig context for outgoing calls.
> > In sip.conf [general] section there is context=  and
> > register=>..../[extension]
> > i think that extension in register line should be in context specified
> > in [general] context=[context]
> >
> >>
> >>
> >>> register => 1111:pass at sippro.com/1111
> >>> register => 2222:pass at sippro.com/2222
> >>>
> >
> I am only using inbound IAX but I do have multiple DID's from the same
> provider and I hope the action of parsing the files is the same. I don't
> think you want the extensions listed after the host. The following is
> what I have for my IAX trunks
>
> ; Registrations for remote IAX servers (dynamic config)
> register => 416xxxxxxx:zzzzz at myprovider.ca   ; Home line
> register => 416yyyyyyy:zzzzz at myprovider.ca   ; Business line
>
> Both calls happily go to contexts [416xxxxxxx] and [416yyyyyyyy]
> respectively.
>

That won't help either. Context is always 'default', but what I want is a
different context on any number. Maybe oej's peermatch branch solves the
problem. But I cannot compile it, There are lots of '>>>>>> merge right'
tags in chan_sip.c.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060721/a4f57c77/attachment.htm


More information about the asterisk-users mailing list