<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:10pt"><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 10pt;">After spending all day working with carrierroute, I think I am missing something pretty fundamental about it.<br><br>I see that I can use cr_tree_rewrite_uri() to select a new carrier, but WHY does the carrier have to be hard coded in the cfg file, and why does it require a STRING name of the carrier? I really don't understand that. It makes no sense whatsoever to hard code your carriers in your config file.<br><br>Doug.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Douglas Garstang &lt;dougmig33@yahoo.com&gt;<br>To: Ovidiu Sas &lt;osas@voipembedded.com&gt;<br>Cc: users@lists.openser.org<br>Sent: Monday, March 24, 2008 7:59:13 PM<br>Subject:
 Re: [OpenSER-Users] Carrierroute<br><br>
<div style="font-family: courier,monaco,monospace,sans-serif; font-size: 10pt;"><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 10pt;">Ovidiu,<br><br>Ok... thanks... now... do you know how I can change carrier mid call?<br><br>Doug.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Ovidiu Sas &lt;osas@voipembedded.com&gt;<br>To: Douglas Garstang &lt;dougmig33@yahoo.com&gt;<br>Cc: users@lists.openser.org<br>Sent: Monday, March 24, 2008 7:24:31 PM<br>Subject: Re: [OpenSER-Users] Carrierroute<br><br>
The 
database 
config 
is 
right 
in 
the 
README 
file.<br><br>Here 
are 
the 
trees:<br>+----+----------+<br>| 
id 

carrier&nbsp; 
|<br>+----+----------+<br>|&nbsp; 


carrier1 
|<br>|&nbsp; 


carrier2 
|<br>|&nbsp; 


default&nbsp; 
|<br>+----+----------+<br><br>I 
agree 
with 
you 
that 
the 
names 
are 
confusing 
:)<br>You 
may 
or 
may 
not 
need 
to 
use 
the 
subscriber 
tables, 
based 
on 
what<br>functions 
are 
you 
using.<br>In 
the 
example 
that 

gave 
you, 
you 
don't 
need 
the 
location 
table.<br>Instead, 
you 
force 

routing 
tree 
(in 
my 
example 
is 
the 
"default"<br>tree).<br><br><br>Hope 
this 
helps,<br>Ovidiu 
Sas<br><br>On 
Mon, 
Mar 
24, 
2008 
at 
9:51 
PM, 
Douglas 
Garstang 
&lt;<a rel="nofollow" ymailto="mailto:dougmig33@yahoo.com" target="_blank" href="mailto:dougmig33@yahoo.com">dougmig33@yahoo.com</a>&gt; 
wrote:<br>&gt;<br>&gt; 
Ovidiu,<br>&gt;<br>&gt;&nbsp; 

need 
database 
config 
info.... 
your 
example 
uses 
the 
config 
file.<br>&gt;&nbsp; 
What 
is 

'tree'? 
The 
documentation 
keeps 
talking 
about 
it, 
but 

don't 
see<br>&gt; 
it 
defined 
anywhere. 
Carrierroute 
SEEMS 
to 
need 
the 
subscriber 
table, 
but 
it<br>&gt; 
doesn't 
load 
it 
from 
the 
database.... 
why 
not?<br>&gt;<br>&gt;&nbsp; 
Why 
should 

spend 
days 
experimenting 
to 
get 
it 
to 
work? 
If 
the 
docs 
where<br>&gt; 
adequate, 
that 
wouldn't 
be 
required.<br>&gt;<br>&gt;&nbsp; 
Doug.<br>&gt;<br>&gt;<br>&gt;<br>&gt; 
----- 
Original 
Message 
----<br>&gt; 
From: 
Ovidiu 
Sas 
&lt;<a rel="nofollow" ymailto="mailto:osas@voipembedded.com" target="_blank" href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>&gt;<br>&gt; 
To: 
Douglas 
Garstang 
&lt;<a rel="nofollow" ymailto="mailto:dougmig33@yahoo.com" target="_blank" href="mailto:dougmig33@yahoo.com">dougmig33@yahoo.com</a>&gt;<br>&gt; 
Cc: 
<a rel="nofollow" ymailto="mailto:users@lists.openser.org" target="_blank" href="mailto:users@lists.openser.org">users@lists.openser.org</a><br>&gt; 
Sent: 
Monday, 
March 
24, 
2008 
5:43:53 
PM<br>&gt; 
Subject: 
Re: 
[OpenSER-Users] 
Carrierroute<br>&gt;<br>&gt;&nbsp; 
Hello 
Douglas,<br>&gt;<br>&gt; 
The 
database 
sample 
is 
available 
in 
the 
README 
file 
here:<br>&gt; 
<a rel="nofollow" target="_blank" href="http://www.openser.org/docs/modules/1.3.x/carrierroute.html#AEN575">http://www.openser.org/docs/modules/1.3.x/carrierroute.html#AEN575</a><br>&gt; 
The 
entire 
documentation 
is 
there, 
you 
just 
need 
to 
read 
it 
carefully<br>&gt; 
and 
experiment.<br>&gt;<br>&gt; 
You 
had 

similar 
post 
about 
the 
documentation 
for 
the 
lcr 
module 
and<br>&gt; 
in 
the 
end 
it 
seems 
that 
you 
figure 
it 
out 
:)<br>&gt; 
If 
you 
think 
that 
you 
can 
improve 
documentation, 
feel 
free 
to 
send<br>&gt; 
patches 
for 
the 
README 
file.<br>&gt;<br>&gt; 
Here 
you 
can 
find 

configuration 
file 
example 
for 
carrierroute:<br>&gt; 
<a rel="nofollow" target="_blank" href="http://voipembedded.com/resources/openser_cr.cfg">http://voipembedded.com/resources/openser_cr.cfg</a><br>&gt;<br>&gt;<br>&gt; 
Regards,<br>&gt; 
Ovidiu 
Sas<br>&gt;<br>&gt;<br>&gt; 
On 
Mon, 
Mar 
24, 
2008 
at 
7:52 
PM, 
Douglas 
Garstang 
&lt;<a rel="nofollow" ymailto="mailto:dougmig33@yahoo.com" target="_blank" href="mailto:dougmig33@yahoo.com">dougmig33@yahoo.com</a>&gt;<br>&gt; 
wrote:<br>&gt; 
&gt;<br>&gt; 
&gt; 

have 
been 
trying 
to 
get 
the 
carrierroute 
module 
to 
work 
ALL 
day.<br>&gt; 
&gt; 
Can 
someone 
'supplement' 
the 
openser 
docs 
with 
maybe 
some 
sample 
database<br>&gt; 
&gt; 
data?<br>&gt; 
&gt;<br>&gt; 
&gt; 
The 
docs 
really 
aren't 
making 
sense. 
The 
docs 
keep 
talking 
about 

routing<br>&gt; 
&gt; 
tree? 
What 
is 

routing 
tree?<br>&gt; 
&gt; 
When 

start 
openser, 

don't 
see 
it 
query 
the 
subscriber 
table. 
Should<br>&gt; 
it?<br>&gt; 
&gt;<br>&gt; 
&gt; 
Thanks,<br>&gt; 
&gt; 
Doug.<br>&gt; 
&gt;<br>&gt; 
&gt;<br>&gt; 
&gt; 
__________________________________________________<br>&gt; 
&gt; 
Do 
You 
Yahoo!?<br>&gt; 
&gt; 
Tired 
of 
spam? 
Yahoo! 
Mail 
has 
the 
best 
spam 
protection 
around<br>&gt; 
&gt; 
<a rel="nofollow" target="_blank" href="http://mail.yahoo.com">http://mail.yahoo.com</a><br>&gt; 
&gt; 
_______________________________________________<br>&gt; 
&gt;&nbsp; 
Users 
mailing 
list<br>&gt; 
&gt;&nbsp; 
<a rel="nofollow" ymailto="mailto:Users@lists.openser.org" target="_blank" href="mailto:Users@lists.openser.org">Users@lists.openser.org</a><br>&gt; 
&gt;&nbsp; 
<a rel="nofollow" target="_blank" href="http://lists.openser.org/cgi-bin/mailman/listinfo/users">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>&gt; 
&gt;<br>&gt; 
&gt;<br>&gt;<br>&gt;<br>&gt;&nbsp; 
________________________________<br>&gt; 
Be 

better 
friend, 
newshound, 
and 
know-it-all 
with 
Yahoo! 
Mobile. 
Try 
it<br>&gt; 
now.<br></div><br></div></div><br>
      <hr size="1">Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20"> Try it now.</a><!-- kill --><div><br><br>-----Inline Attachment Follows-----<br><br>_______________________________________________<br>Users 
mailing 
list<br><a ymailto="mailto:Users@lists.openser.org" href="mailto:Users@lists.openser.org">Users@lists.openser.org</a><br><a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br></div></div><br></div></div><br>
      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>