Yate Community Forum
General Category => Yate users hangout place => Topic started by: jgsm on September 01, 2014, 10:31:00 PM
-
Hello!
I've configured SIP account in accfile as in http://docs.yate.ro/wiki/Accfile (http://docs.yate.ro/wiki/Accfile) but can;t make any outgoing calls. Incoming calls are working.
accfile.conf:
[outbound]
protocol=sip
username=user816
server=sip.xxxxx
password=xxxxxx
ip_transport=UDP
enabled=yes
match_port=yes
match_user=yes
regexroute.conf:
^0\(.*\)$=line/\0;line=outbound
^user816$=return;called=302
In log file I have:
20140901215042.346283 <ybts/24:CALL> Incoming imsi=001501983xxxxxx conn=32 [0x7f5c480041b0]
20140901215042.706597 <ybts/24:CALL> Hangup reason='noconn' [0x7f5c480041b0]
What is wrong ?
-
How are you calling. Does your called number start with 0?
Why aren't you using nib.js? It does both incoming and outgoing calls.
-
Finally I've found problem: In configuration created from nib, the From field in SIP messages contained user@IP, where my SIP server required user@domain. I've fixed this, by changing regexroute to:
^0\(.*\)$=line/\1;line=outbound;domain=sip.xxxxx
now it works :)