[OpenSIPS-Users] Managing Origination Routes
Nick Khamis
symack at gmail.com
Thu Mar 7 20:16:11 CET 2013
Thank you so much for your help Bogdan!!! I know how to query
dr_groups for username and domain (i.e., do_routing()) however, unsure
on how to query the table for just the domain. An example like the
last would be great! Kindly.
Also, the previous example of do_translate("1","$ru/$avp(dr_id)"),
$avp(dr_id) is always null for some reason. I know that the dialplan
table has the correct values, and the regex fires correctly for
dp_translate("0","$ru/$ru")).
The values in dialplan table looks like:
id | dpid | pr | match_op | match_exp
| match_len | subst_exp | repl_exp | disabled | attrs |
+----+------+----+----------+-------------------------------------------------------+-----------+-----------+----------+----------+-------+
| 29 | 1 | 1 | 1 | ^sip:(.*)\.69\.147\.236\.82$
| 0 | | 1 | 0 | ext |
+----+------+----+----------+-------------------------------------------------------+-----------+-----------+----------+----------+-------+
Is ("1","$ru/$avp(dr_id)") suppose to be ("1","$ru/$avp(dpid)")?
As soon as I figure out how the parameter list works for
dp_translate() and do_routing(), life will be so much better. Is it:
dp_translate(<table_column_number>,<$ru,$fu,$fd..../$avp(extracted_value)>)
* "table_column_number" being, for example, 1 for "dpid"
* "$avp(extracted_value)" being the value returned from the database
for "dpid" for the matching regex. In this case 1?
Thanks again Bogdan,
Nick.
More information about the Users
mailing list