[Freeswitch-users] mod_easyroute and dialling via a gateway (not appending an IP to the return route)

Gavin Henry gavin.henry at gmail.com
Sat Dec 11 00:47:54 MSK 2010


Hi all,

With easyroute how do I get it *not* to stick the gateway IP at the
end of THE ROUTE, i.e. to dial out of a gateway? I just want
sofia/gateway/suretec/441224279484 returned for entries that *are not*
in the database number table. It's fine to have @XX.XX.XX.XX for
entries *in* the database. I've checked mod_easyroute.c and I don't
think you can?

[DEBUG] mod_easyroute.c:242 THE ROUTE
[sofia/gateway/suretec/441224279484 at XX.XX.XX.XX]

My tables are like:

freeswitch=# select * from gateways;
 gateway_id | gateway_ip  |  group   | limit |      techprofile
------------+-------------+----------+-------+------------------------
          0 | XX.XX.XX.XX | suretec |   300 | sofia/gateway/suretec
(1 row)

freeswitch=# select * from numbers;
 number_id | gateway_id |    number    | acctcode | translated
-----------+------------+--------------+----------+------------
         0 |          0 | 441224279484 | 100      |
(1 row)


easyroute config:

    <!-- Default Technology and profile -->
    <param name="default-techprofile" value="sofia/gateway/suretec"/>

    <!-- IP or Hostname of Default Route -->
    <param name="default-gateway" value="suretec"/>


FS CLI results:

*In* the database (which is where I'm happy with an IP on the end as a
client will be getting the DID/DDI delivered to their IP address):

freeswitch at internal> easyroute 441224279484
Number    	Limit     	Group    	AcctCode  	Dialstring
441224279484	300       	surevoip  	100
	sofia/gateway/suretec/441224279484 at XX.XX.XX.XX


*Not* in the database (which is where *I'm not* happy with an IP on
the end as it needs to go through the gateway definition):

freeswitch at internal> easyroute 441224279485
Number    	Limit     	Group    	AcctCode  	Dialstring
441224279485	9999      	          	
	sofia/gateway/suretec/441224279485 at suretec


Thanks.

-- 
http://www.suretecsystems.com/services/openldap/
http://www.surevoip.co.uk



More information about the FreeSWITCH-users mailing list