Hi Schneur,<div><br></div><div>Yes, there is a very easy way. Check out the lookup function is the Registrar module:</div><div><br></div><div><a href="http://www.opensips.org/html/docs/modules/1.8.x/registrar.html#id292636">http://www.opensips.org/html/docs/modules/1.8.x/registrar.html#id292636</a> </div>
<div><br></div><div>Regards,</div><div>Ali Pey<br><br><div class="gmail_quote">On Thu, Aug 9, 2012 at 12:45 PM, Schneur Rosenberg <span dir="ltr">&lt;<a href="mailto:rosenberg11219@gmail.com" target="_blank">rosenberg11219@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I would like to send calls to a user that is registered to opensips,<br>
the user is a PBX and I would like to send a extension like its coming<br>
from a pri, basically its sending a URI to a registered peer, I cant<br>
send a URI, because the ip address is not static, in asterisk i would<br>
do dial(sip/pbxpeername/123456789) where pbxpeername is the asterisk<br>
peer name for that client, and 123456789 is the extension I would like<br>
to send the call to,  how would I do it in opensips? is there any<br>
simple way, or do I have to manually find the registered ip address<br>
and send the invite to there.<br>
<br>
The calls are being routed through asterisk, so when sending a call to<br>
a regular ip phone I send it as sip/phone@opensipsip, this works great<br>
but I cant do sip/123456789@phone@opensipsIP, so I will send a new<br>
header with the extension and have opensips pull the header and<br>
rewrite the to header, is there a simpler solution?<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>