<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<span class="postbody">Hi,
<br>
<br>
I have a setup where I have multiple lines to the same provider - in
this case broadvoice.
<br>
<br>
I have created the entries in sip.conf for both accounts - and
independently they work fine. When they both are in use, incomming
calls are placed to the one that's the last in the sip.conf file.
<br>
<br>
On voip-info I found the following:
<br>
</span>
<table align="center" border="0" cellpadding="3" cellspacing="1"
width="90%">
<tbody>
<tr>
<td><span class="genmed"><b>Quote:</b></span></td>
</tr>
<tr>
<td class="quote"><br>
When Asterisk receives an incoming SIP call, the SIP Channel Module
<br>
<br>
* first tries to find a [user] section matching the caller name
<br>
(From: username),
<br>
* then tries to find a [peer] section matching the caller's IP address.
<br>
* If no matching user or peer is found, the call is sent to the
<br>
context defined in the [general] section of sip.conf.
<br>
</td>
</tr>
</tbody>
</table>
<span class="postbody"><br>
<br>
This would imply that one had to split the entry into a inbound and an
outbound entry ? Did anyone try this and got it to work ?
<br>
<br>
Is there anybody that has gotten this to work, such that the
correct context based on the phone number is activated when a call
comes in.
<br>
<br>
My sip.conf structures are:
<br>
<br>
</span>
<table align="center" border="0" cellpadding="3" cellspacing="1"
width="90%">
<tbody>
<tr>
<td><span class="genmed"><b>Code:</b></span></td>
</tr>
<tr>
<td class="code"><br>
[broadvoice-1178]
<br>
type=friend
<br>
host=sip.broadvoice.com
<br>
username=<Number>
<br>
fromuser=<Number>
<br>
authname=<Number>
<br>
fromdomain=sip.broadvoice.com
<br>
context=1178-incoming
<br>
secret=<secret>
<br>
canreinvite=no
<br>
insecure=very
<br>
;dtmfmode=inband
<br>
;dtmf=inband
<br>
dtmfmode=rfc2833
<br>
dtmf=rfc2833
<br>
qualify=0
<br>
<br>
[broadvoice-4633]
<br>
type=friend
<br>
host=sip.broadvoice.com
<br>
username=<Number>
<br>
fromuser=<Number>
<br>
authname=<Number>
<br>
fromdomain=sip.broadvoice.com
<br>
context=4633-incoming
<br>
secret=<secret>
<br>
canreinvite=no
<br>
insecure=very
<br>
;dtmfmode=inband
<br>
;dtmf=inband
<br>
dtmfmode=rfc2833
<br>
dtmf=rfc2833
<br>
qualify=0
<br>
<br>
</td>
</tr>
</tbody>
</table>
<span class="postbody"><br>
<br>
Thanks <br>
/S</span>
</body>
</html>