<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br>yes, same thing<br><div>
<div>&nbsp;</div></div><br><br><div><hr id="stopSpelling">From: fborot@hotmail.com<br>To: fborot@hotmail.com<br>Subject: RE: same sip peer as user and provider<br>Date: Tue, 30 Aug 2011 10:35:01 -0400<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>

<div dir="ltr">
yes my friend. same thing<br><br><div>
<div>&nbsp;</div></div><br><br><div><hr id="ecxstopSpelling">From: fborot@hotmail.com<br>To: asterisk-users@lists.digium.com<br>Subject: same sip peer as user and provider<br>Date: Tue, 30 Aug 2011 10:16:11 -0400<br><br>



<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>

<div dir="ltr">
Hello<br><br>Up to version 1.6.0 we have been able&nbsp; to configure the same SIP device as a user [inbound trunk] and as a peer [outbound trunk] w/o issues.<br>After we switched to version 1.8 this setup wont work, apparently one can not have the same IP on 2 different trunks anymore. The trunk that is configured as user or friend is not choosen when the inbound call hits asterisk, instead the outbound trunk is and that trunk is usually w/o context and then asterisk can not find any "call logic" in the dialplan in the default extension, hence the call fails.<br><br>as a workaround I have been trying the SIP_CODEC variables [inbound and outbound] but it wont help me in all cases.<br><div>
<div>Also I can not set the ptime on the fly using those variables in the dialplan.<br><br>After reading in the forums and the books/guides apparently the "users" are matched by the From header and "peers" are matched by IP. <br><br>Is this is the intended behavior now?<br><br>any help is greatly appreciated, txs a lot in advance<br>fborot <br></div></div>                                               </div></div>                                               </div></div>                                               </div></body>
</html>