[Asterisk-Users] IAX.conf problem (NEWBIE ALERT!)

Roy Eddleston roy at cedar-house.org
Mon Aug 30 04:13:31 MST 2004


I have several of incoming numbers on IAX from voiptalk and magrathea
but have a problem with IAX.conf.  If I follow the example from voiptalk


[VoIPTalk Incoming Number]
type=friend
username=VoIPTalk Incoming Number
context=[XXXXXXXX]

and make incoming entries in IAX.conf for the numbers like below with a
different entry for each number pointing to a different context,
incoming numbers always use the same entry and ignore the others.

PSTN Numbers below are fictitious. 

[0700681001]
type=friend
username=08700681001
context=context1

[0700681002]
type=friend
username=08700681002
context=context2

[0700681003]
type=friend
username=0700681003
context=context3

So if the first incoming number 0700681001 arrives pointing at context1
it works, when incoming number 0700681002 arrives it seems to still use
the entry for 0700681001 and therefore goes to the wrong context in
extensions.conf and then of course can't find the numbers entry.  If I
bung all the numbers in the same context in extensions.conf it works
fine but still only follows the one entry out of IAX.conf.

What am I missing?  How should I set up IAX.conf to receive multiple
numbers via IAX from the same provider?

I want to cover the following scenarios.

Multiple numbers under the same account from one provider

Multiple numbers on individual accounts from one provider

Multiple providers using both of the above. 

I want to be able to direct the different incoming numbers to different
contexts in extensions.conf

Cheers!

Roy.....







More information about the asterisk-users mailing list