<div dir="ltr"><div><div><div><div>Hi Travis:<br><br></div>Maybe you should take a look to drouting module<a href="http://www.opensips.org/html/docs/modules/2.1.x/drouting.html"> http://www.opensips.org/html/docs/modules/2.1.x/drouting.html</a><br></div><br>It makes what you want and much more, it automatically disables a PBX if is down, cache the results, do automatic failover,....<br><br>Remember
that make a query directly in your code can be a slow process. If you do
it take in consideration using async operations. This is a great improvement in 2.x branch<br><br></div>Regards,<br></div>Carlos Oliva<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><b style="font-size:13px"><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><br>
<span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><br><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh6.googleusercontent.com/WN6hk84ri7BRmKal1fKNiC-AMmPYSDb0PtICYSJrzUa8tBua0VLuBXzjNCsxZYm2STOwRHUUnQmBKAirtvexlLg_AHY40gGbdEYQGf9oPE3yuTka_QfxoMajnQ" height="28px;" width="200px;"></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">_________________________________________________</span></p><br><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt">
<span style="font-family:Verdana;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap">Carlos Oliva</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Departamento de Sistemas<b></b></span></p>
<br><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">C/ Pujades, 77-79, 8a Planta 9B | 08005 Barcelona</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><a href="http://www.numintec.com/" style="text-decoration:none" target="_blank"><span style="font-family:Verdana;font-weight:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">www.numintec.com</span></a><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> | </span><span style="font-family:Verdana;color:rgb(17,85,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:carlos.oliva@numintec.com" target="_blank">carlos.oliva@numintec.com</a></span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-family:Verdana;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">|</span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> T: </span><span style="font-family:Verdana;color:rgb(17,85,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">902 02 02 97</span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> </span></p>
<br><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">_________________________________________________</span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span></p>
<br><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><a href="http://www.youtube.com/user/numintec" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Talking Numintec: Dialogando con empresarios de éxito</span></a></p>
<br><a href="http://www.youtube.com/user/numintec" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"></span></a><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt">
<a href="http://www.numintec.com/category/caso-de-exito/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Las soluciones en la nube de Numintec - Casos de éxito</span></a></p>
<br><a href="http://www.numintec.com/category/caso-de-exito/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"></span></a><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt">
<a href="http://www.numintec.com/demo/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Solicita una demo</span></a></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">_________________________________________________</span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span></p>
<br><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);vertical-align:baseline;white-space:pre-wrap">Medio Ambiente: </span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Antes de imprimir este mensaje, asegúrese de que es necesario. </span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);vertical-align:baseline;white-space:pre-wrap">Nota Legal:</span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap">La información contenida en la presente transmisión es confidencial y su
uso únicamente está permitido a su(s) destinatario(s). Le informamos que
los datos personales que facilite/ha facilitado pasarán/han pasado a
formar parte de un fichero responsabilidad de NUMINTEC COMUNICACIONES
S.L.. y que tiene por finalidad gestionar las relaciones. Tiene la
posibilidad de ejercitar los derechos de acceso, rectificación,
cancelación y oposición respecto a sus datos ante la empresa, en el
e-mail</span><span style="font-size:11px;font-family:Arial;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:comunicacion@numintec.com" target="_blank">comunicacion@numintec.com</a></span><span style="font-size:11px;font-family:Arial;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"> o bien en el domicilio sito en C/ Pujades, 77-79 8ª Planta 9-B</span><span style="font-size:11px;font-family:Arial;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap">08005 de Barcelona.</span></p></b></div></div>
<br><div class="gmail_quote">2015-09-29 20:53 GMT+02:00 Rodrigo Pimenta Carvalho <span dir="ltr"><<a href="mailto:pimenta@inatel.br" target="_blank">pimenta@inatel.br</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
I think so.<br>
Good lucky.<span class=""><br>
<p><br>
</p>
<p><br>
</p>
<div>
<div name="divtagdefaultwrapper">
<div><font size="2">
<div>RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: <a href="tel:%2B55%2035%203471%209200" value="+553534719200" target="_blank">+55 35 3471 9200</a> RAMAL 979<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
</span><div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><span class=""><b>De:</b> <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> em nome de Travis Manson-Drake <<a href="mailto:travism@simplybits.com" target="_blank">travism@simplybits.com</a>><br>
</span><b>Enviado:</b> terça-feira, 29 de setembro de 2015 14:42<br>
<b>Para:</b> OpenSIPS users mailling list<br>
<b>Assunto:</b> Re: [OpenSIPS-Users] Questions in opensips</font>
<div> </div>
</div><div><div class="h5">
<div>
<div>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Rodrigo,</span></p>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thank you for this! This helps out a lot in relation to pulling the info from a database.</span></p>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I think I may be able to do something with variable $fu</span></p>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Select PBX</span></p>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">From table</span></p>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Where CustomerContext like ‘%$fu%’</span></p>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">That way If I have multiple customercontext it can dynamically select the correct PBX</span></p>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> [mailto:<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>]
<b>On Behalf Of </b>Rodrigo Pimenta Carvalho<br>
<b>Sent:</b> Tuesday, September 29, 2015 10:17 AM<br>
<b>To:</b> OpenSIPS users mailling list <<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>><br>
<b>Subject:</b> Re: [OpenSIPS-Users] Questions in opensips</span></p>
</div>
</div>
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
</p>
<div>
<p style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-family:"Calibri",sans-serif;color:black">Hi.<br>
I'm new to OpenSIPS too and I have received good help from experts that access this forum.<br>
But, one point that you have to do is access a database to get the information about the PBX, haven't you? For this, you can use the module AVPOP:<br>
<br>
modparam("avpops","db_url","sqlite:///usr/local/opensips_proxy/sqlite") # CUSTOMIZE ME<br>
<br>
That is, you can use a module that allows you to access the database. In this example, I use SQLite.<br>
<br>
Are you familiar with the database handling actions via such module?<br>
<br>
To get data from database, you can do something like this:<br>
<br>
avp_db_query(put sql query here, "$avp(myAvp)"); # the avp will contain the query result.<br>
<br>
About the others details, like forwarding calls, someone expert might reply to you.<br>
<br>
You SQL will be similar to: select PBX from table where Exten = 'extension' and CustomerContext = 'the customer context';<br>
<br>
{exten} & {CustomerContext}, the query returns a value of which PBX <br>
<br>
Tell me if this information is useful for you, please.<br>
<br>
Regards.</span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<div>
<div name="divtagdefaultwrapper">
<div>
<div>
<p style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:black">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: <a href="tel:%2B55%2035%203471%209200" value="+553534719200" target="_blank">+55 35 3471 9200</a> RAMAL 979</span></p>
</div>
</div>
</div>
</div>
<p style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<div>
<div style="text-align:center;background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif" align="center">
<span style="font-family:"Calibri",sans-serif;color:black">
<hr align="center" size="2" width="98%">
</span></div>
<div>
<p style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">De:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">
</span><a style="color:blue;text-decoration:underline" href="mailto:users-bounces@lists.opensips.org" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">users-bounces@lists.opensips.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">
<</span><a style="color:blue;text-decoration:underline" href="mailto:users-bounces@lists.opensips.org" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">users-bounces@lists.opensips.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">>
em nome de Travis Manson-Drake <</span><a style="color:blue;text-decoration:underline" href="mailto:travism@simplybits.com" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">travism@simplybits.com</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">><br>
<b>Enviado:</b> terça-feira, 29 de setembro de 2015 13:54<br>
<b>Para:</b> </span><a style="color:blue;text-decoration:underline" href="mailto:Users@lists.opensips.org" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Users@lists.opensips.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"><br>
<b>Assunto:</b> [OpenSIPS-Users] Questions in opensips</span><span style="font-family:"Calibri",sans-serif;color:black">
</span></p>
<div>
<p style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
</div>
</div>
<div>
<div>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Hello everyone,
</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">I wanted to pick your brains and see if any of you have done something like this before, or might eb able to send me in the right direction.</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Here’s what I’m trying to accomplish.</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Thought process</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Sip packet comes into proxy</span></p>
<p style="margin-right:0in;margin-bottom:8.0pt;margin-left:.5in;line-height:105%;background:white">
<span style="font-size:11.0pt;line-height:105%;font-family:"Calibri",sans-serif;color:black">-</span><span style="font-size:7.0pt;line-height:105%;color:black">
</span><span style="font-size:11.0pt;line-height:105%;font-family:"Calibri",sans-serif;color:black">Proxy parses sip message, and checks from_uri (for example {exten}{CustomerConetxt}@proxyIPaddr)</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">- once the proxy parses the data, we query a database.</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">- based on the value of {exten} & {CustomerContext}, the query returns a value of which PBX this {exten}&{CustomerContext} belongs to.</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">- once this info has been returned to the proxy it then manipulates the dest_uri to something like {exten}&{CustomerContext}@PBX DNS</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">At this point the sip message is forwarded onto the appropriate PBX, and we simply Record_Route for future communications.</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">I know I can hard code the PBX’s value in the sip server of the UAC, and just have the proxy do what it does.</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">But what I’m really trying to go for is to simply hardcode the info for a sip proxy, have the UAC send its request to it, then it forwards on traffic to
the appropriate PBX based upon the value of the from_uri</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">With that being said:</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">How would I do this?</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">I had looked at sipmsgops and some of its functions however I can’t seem to find one that will enable me to pull just the dest uri, & extract info from
it</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Is there also a function in sipmsgops for manipulating the dest_uri?
</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Any input is greatly appreciated!
</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Thank you for your time,</span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
<p style="line-height:115%;background:white"><b><span style="font-size:10.0pt;line-height:115%;font-family:"Arial",sans-serif;color:navy">Travis Manson-Drake</span></b><span style="font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:black"></span></p>
<p style="line-height:115%;background:white"><b><span style="font-size:10.0pt;line-height:115%;font-family:"Arial",sans-serif;color:navy">Voice Systems Analyst L1</span></b><span style="font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:black"></span></p>
<p style="background:white"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:navy">Simply Bits, LLC</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"></span></p>
<p style="background:white"><b><i><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#ffc000">Now You’re Thinkin’ Smart!</span></i></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"></span></p>
<p style="line-height:115%;background:white"><span style="font-size:8.0pt;line-height:115%;font-family:"Arial",sans-serif;color:navy">5225 N. Sabino Canyon Road
<br>
Tucson, AZ 85750</span><span style="font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:black"></span></p>
<p style="line-height:115%;background:white"><b><span style="font-size:8.0pt;line-height:115%;font-family:"Arial",sans-serif;color:navy">Phone:</span></b><span style="font-size:8.0pt;line-height:115%;font-family:"Arial",sans-serif;color:navy">
</span><span style="font-size:8.0pt;line-height:115%;font-family:"Arial",sans-serif;color:#002060"><a href="tel:520-545-0311" value="+15205450311" target="_blank">520-545-0311</a></span><span style="font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:black"></span></p>
<p style="line-height:115%;background:white"><b><span style="font-size:8.0pt;line-height:115%;font-family:"Arial",sans-serif;color:navy">Fax:</span></b><span style="font-size:8.0pt;line-height:115%;font-family:"Arial",sans-serif;color:navy">
</span><span style="font-size:8.0pt;line-height:115%;font-family:"Arial",sans-serif;color:#002060"><a href="tel:520-545-7252" value="+15205457252" target="_blank">520-545-7252</a></span><span style="font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:black"></span></p>
<p style="line-height:115%;background:white"><b><span style="font-size:8.0pt;line-height:115%;font-family:"Arial",sans-serif;color:navy">Support Hotline</span></b><span style="font-size:8.0pt;line-height:115%;font-family:"Arial",sans-serif;color:navy">:
</span><span style="font-size:8.0pt;line-height:115%;font-family:"Arial",sans-serif;color:#002060"><a href="tel:5205450333" value="+15205450333" target="_blank">5205450333</a></span><span style="font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:black"></span></p>
<p style="background:white"><a style="color:blue;text-decoration:underline" href="http://www.simplybits.com/" title="http://www.simplybits.com/" target="_blank"><span style="font-size:8.0pt;color:#0563c1">www.simplybits.com</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"></span></p>
<div style="margin-top:15.0pt;margin-bottom:15.0pt;overflow:auto">
<table style="width:80.0%;background:white;border-top:solid #cccccc 1.0pt;border-left:none;border-bottom:solid #cccccc 1.0pt;border-right:none" border="1" cellpadding="0" width="80%">
<tbody>
<tr>
<td style="border:none;padding:.75pt .75pt .75pt .75pt" valign="top">
<div style="margin-left:10.5pt;margin-top:6.0pt;margin-right:10.5pt">
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:16.0pt;font-family:"Segoe UI Semilight",sans-serif;color:#333333">Internet - Phone - Business Technology Solutions | Simply Bits</span></p>
</div>
<div style="margin-left:10.5pt;margin-top:6.0pt;margin-right:10.5pt">
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:10.0pt;font-family:"Segoe UI",sans-serif;color:#666666">Providing buisnesses with qualtiy solutions for Internet Service, VoIP Phone Service, Fax to email, Website Design, Internet Marketing and much more.</span></p>
</div>
<div style="margin-left:10.5pt;margin-top:6.0pt;margin-right:10.5pt;margin-bottom:7.5pt;text-overflow:ellipsis;overflow:hidden">
<p style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<a style="color:blue;text-decoration:underline" href="http://www.simplybits.com/" target="_blank"><span style="font-size:8.5pt;font-family:"Segoe UI",sans-serif;text-decoration:none">Leia mais...</span></a></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<p style="background:white"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>
<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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>