<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Good Morning,<BR>
<BR>
I have an asterisk18-1.8.7.1 running on a FreeBSD 8.2-STABLE, and it is working well so far, i'm just having some problems with atxfer.<BR>
<BR>
I have written this macro to dial sip extensions:<BR>
<BR>
macro dial_sip(exten) {<BR>
Verbose(2,"==> Chamando a MACRO dial_sip - ponto 1 macros.ael <==");<BR>
Verbose(4,"====> Macro dial_sip iniciada.");<BR>
ChanIsAvail(SIP/${exten});<BR>
Verbose(2,"==> ${AVAILORIGCHAN}");<BR>
<BR>
if ("${AVAILORIGCHAN}" != "")<BR>
{<BR>
Verbose(4,"====> SIP/${exten} parece estar disponivel, vou disca-lo agora.");<BR>
Set(FromExt=${CALLERID(num)});<BR>
System(/bin/sh /var/spool/asterisk/calllog/log.sh SIP/${FromExt} SIP/${exten} SIP-TO-SIP);<BR>
Verbose(4,"====> System status: ${SYSTEMSTATUS}");<BR>
Dial(SIP/${exten},${SIP_DIAL_TIMEOUT},Ttr);<BR>
Hangup();<BR>
}<BR>
else<BR>
{<BR>
Verbose(2,"====> SIP/${exten} nao esta disponivel.");<BR>
Hangup();<BR>
};<BR>
<BR>
<BR>
NoOp("From ${MACRO_EXTEN} to ${exten});<BR>
System(${CALLLOGDIR}/log.sh ${exten});<BR>
<BR>
return;<BR>
};<BR>
<BR>
It is working, but the calling party is not able to transfer the calls because asterisk doesn't wait all the digits be typed, it tries to transfer the call when the first digit is pressed (We use 3 digits extensions):<BR>
<BR>
[Oct 31 09:04:01] WARNING[2926]: features.c:2315 builtin_atxfer: Extension '1' does not exist in context 'dial_sip'<BR>
== Spawn extension (dial_sip, ~~s~~, 11) exited non-zero on 'SIP/modesto-0000000d'<BR>
[Oct 31 09:04:03] WARNING[2926]: features.c:2319 builtin_atxfer: No digits dialed for atxfer.<BR>
<BR>
Does anyone have suggestions?<BR>
<BR>
Regards.
</BODY>
</HTML>