Hi All,<div><br></div><div>I am having some issues with Asterisk 1.8.3 extensions with a SIP Phone and an gateway.</div><div><br></div><div>My setup is that I have my SIP Phone setup to register with the gateway. Then the gateway should sent calls to the Asterisk as a type of friend. This works fine if the SIP Phone configuration username and password isn't already set into the asterisk. The configuration of the SIP Phone username and password on the asterisk is just for backup/testing purpose.</div>
<div><br></div><div>The situation now is that when the SIP Phone is registered to the gateway and I make a call from the SIP Phone to the gateway, which sends the calls to the Asterisk. If the username in the From: of the SIP messages matches any peers in the realtime configuration of the sipfriends. The asterisk will automatically use the From field and take that context, which in this case is the context of "testing". While the actual call came from the gateway which has a context of "outgoing-calls". Is there a way to of not "transfer" or to limit the context to the peer that the call actually came from?</div>
<div><br></div><div>Gateway = context(outgoing-call)</div><div>SIP Phone = context(testing)</div><div>Asterisk using realtime config with a sipfriend of type friend username=123</div><div><br></div><div>Call make from SIP Phone (username=123) to gateway, which sends to asterisk. The asterisk would use the context testing instead of from outgoing-call, since I assume that it is using the From field in the SIP Message.</div>
<div><br></div><div>Please help. Many thanks.</div><div><br></div><div>Regards,</div><div>Kengie</div>