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

Ken Rice krice at freeswitch.org
Sat Dec 11 01:27:19 MSK 2010


It was never designed to do that from the beginning however you might be
able the noat option and leave the gateway IP field blank to get the desired
result

However keep in mind that you probably don't even need to use a gateway
unless the gateway requires sip challenge/response authentication...

Easyroute was intended as a way for itsps and the like easily route incoming
calls to the appropriate proxy for handling incoming calls where IP
authentication is the authentication of choice


On 12/10/10 3:47 PM, "Gavin Henry" <gavin.henry at gmail.com> wrote:

> 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.





More information about the FreeSWITCH-users mailing list