Author Topic: Problem with outgoing calls  (Read 7153 times)

jgsm

  • Newbie
  • *
  • Posts: 4
    • View Profile
Problem with outgoing calls
« on: September 01, 2014, 10:31:00 PM »
Hello!

I've configured SIP account in accfile as in 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 ?

Monica Tepelus

  • Administrator
  • Full Member
  • *****
  • Posts: 198
    • View Profile
Re: Problem with outgoing calls
« Reply #1 on: September 03, 2014, 05:18:51 PM »
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.

jgsm

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Problem with outgoing calls -SOLVED
« Reply #2 on: September 03, 2014, 08:21:36 PM »
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 :)