babyTEL and Asterisk
August 19th, 2004
Jonathon Moody contacted me to ask how I had setup babyTEL to work with Asterisk, so here’s a quick note:
- babyTEL requires use of their outbound proxy;
- Asterisk’s chan_sip.o module does not support using an outbound proxy;
There are two known solutions:
- Use chan_sip2 by Olle E. Johansson;
- Use the hack originaly proposed to me by one of babyTEL’s technicians;
The hack is to put the IP address for nat.babytel.ca into your /etc/hosts file as sip.babytel.ca. This will force your system to resolve sip.babytel.ca to babyTEL’s outbound proxy. The second step is to put “port=5065″ in your sip.conf entry for babyTEL (You may also need “insecure=very”, although I don’t completely understand that.)
Hope this helps someone!
A.
Update: Page on the VoIP-Info Wiki about babyTEL is here.
Categories: VoIP
Hi, I’m not able to configure asterisk to make the outgoing call with babytel. Can someone help me?
I use the “hosts” hack, but I receive “401 unauthorized” from the proxy. I can’t figure out what I’m doing wrong.
Anybody could post a sample of their sip.conf with babytel?
For the record, here’s mine:
[general] port = 5065 ; Port to bind to bindaddr=x.x.x.x insecure=very
register => 1xxxxxxxxxx:******:1xxxxxxxxxx@sip.babytel.ca:5065
[sip.babytel.ca] type=peer port=5065 username=1xxxxxxxxxx authuser=1xxxxxxxxxx fromdomain=sip.babytel.ca fromuser=1xxxxxxxxxx secret=******* host=sip.babytel.ca insecure=very
hmm…. let’s try again:
[general] port = 5065 bindaddr=x.x.x.x insecure=very
register =>::@sip.babytel.ca:5065
[sip.babytel.ca] type=peer port=5065 username=
authuser=
fromdomain=sip.babytel.ca
fromuser=
secret=
host=sip.babytel.ca
insecure=very
For starters, you probably don’t want the port=5065 under the [general] section. That’s going to break things.
You do want it under the context for babyTEL though.
A.
It would be nice one a explaination on how to place it into the /etc/hosts file
do I just add it in there save it and reboot and everything is peachy keen or do I type it in and add something beside it
any decent linkswould help me very much. ——-my—hosts——file——-debian 127.0.0.1 box localhost nat.babytel.ca
The following lines are desirable for IPv6 capable hosts
(added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Is that how I enter it in.. and what does this do?
Yes, you must associate the IP of nat.babytel.ca with the name sip.babytel.ca:
sip.babytel.ca IP_ADDRESS_OF_nat.babytel.ca
Then you just need to wait for Asterisk to retry it’s registration.
A.