Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-03-2012, 11:50 PM   #1
Registered: May 2009
Distribution: Debian wheezy
Posts: 252

Rep: Reputation: 31
Transfer in Asterisk: doesn't work on calling phone, but does on called phone

I am having a strange issue with transfers in Asterisk. When preforming transfers from the called phone it works as expected. However, when transferring from the calling phone, one of two things happens. When attempting a blind transfer, asterisk tries to find the extension immediately after entering the first digit (which fails because I have no defined single-digit extensions). When preforming an attended transfer, the asterisk command-line indicates "Warning...Did not read data" and emits a beep on the attempting phone. This behavior is consistent after an Asterisk restart and restart of both softphones. It is also identical independent of which phone initiates the call: the caller always has the problem.

My dialplan:

These macros are for easy generation of entries for local phones and for a "call all local phones" number.

m4_define(`CALL_ALL_LOCAL_EXTS', `')
m4_define(`gen_local_ext', `m4_define(`CALL_ALL_LOCAL_EXTS', CALL_ALL_LOCAL_EXTS`'m4_ifelse(CALL_ALL_LOCAL_EXTS, `', `', `&')`Local/$1@local-users')m4_dnl
exten => $1,hint,$2
exten => $1,1,Gosub(local-call,call,1($2))')


exten => s,1,Zapateller(answer) ; because we don't like tellers
exten => s,n,Playback(queue-periodic-announce)
exten => s,n,Queue(incoming-q,th,,,600)
exten => s,n,Congestion(10)

exten => _1XXZ,1,Dial(Local/${EXTEN}@local-users)
same  =>       n,Answer()
same  =>       n,Playback(invalid)
same  =>       n,Hangup()

exten => _9NXXXXXX,1,Gosub(trunk-call,call,1(${EXTEN:1}))
same  =>           n,Hangup()

exten => _9NXXNXXXXXX,1,Gosub(trunk-call,call,1(${EXTEN:1}))
same  =>              n,Hangup()

exten => _91NXXNXXXXXX,1,Gosub(trunk-call,call,1(${EXTEN:1}))
same  =>               n,Hangup()

exten => call,1,Answer()
exten => call,n,SayDigits(${ARG1}) ; Were we to have a trunk, we would dial throuh it here
exten => call,n,Return()

include => parkedcalls ; call 7000; on 7001-7099
include => outgoing

exten => s,1,Goto(all,1)


exten => all,1,Dial(CALL_ALL_LOCAL_EXTS,20,th)
exten => all,n,Congestion(10)
exten => 1000,1,Goto(all,1)

exten => 6000,1,MeetMe()
exten => 6000,n,Hangup()

exten => _60XX,1,MeetMe(${EXTEN})
same  =>       n,Hangup()

exten => 7000,1,Zapateller(answer)
exten => 7000,n,Dial(Local/all@local-users)
exten => 7000,n,Hangup()

exten => 8000,1,Goto(incoming,s,1)

exten => logon,1,AddQueueMember(incoming-q)
same  =>       n,Answer()
same  =>       n,SayAlpha(${AQMSTATUS})
same  =>       n,Hangup()

exten => logoff,1,RemoveQueueMember(incoming-q)
same  =>        n,Answer()
same  =>        n,SayAlpha(${RQMSTATUS})
same  =>        n,Hangup()

exten => call,1,NoOp() ; Set(__DYNAMIC_FEATURES=whatever)
exten => call,n,Dial(${ARG1},20,tT)
exten => call,n,Busy()
exten => call,n,Return()
Yes, it is being #exec'd through m4, and yes, I did enable #exec includes in Asterisk.

Attached is a log of the output during a test session with core debug and verbose both at 3, and sip debugging on.

I am using Asterisk and Ekiga 3.2.7 on Debian Squeeze. Ekiga is set to send DTMF as INFO over SIP.
Attached Files
File Type: log asterisk_problem.log (15.4 KB, 13 views)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Phone Line Modem -> Phone Line Server Transfer Files renthemighty Linux - Newbie 1 07-29-2011 10:07 PM
Internet Phone Calling aquaboot Linux - Software 1 10-18-2007 01:10 PM
Bluetooth remote control with nokia S60 phone doesn't work rahilrai Linux - Newbie 1 12-18-2005 07:11 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration