Hi,<br><br> I've created a tiny dialplan to test the return of a call on transfers, like this: (I had to use the DEVSTATE backport here)<br><br>[phones]<br>exten => _12XX,1,Dial(SIP/${EXTEN},6,tT)<br>exten => _12XX,n,GotoIf($[ "x${BLINDTRANSFER}" = "x" ]?noBT)<br>
exten => _12XX,n,Set(DIALRET=${CUT(BLINDTRANSFER,-,1)});<br>exten => _12XX,n,Goto(dRet)<br>exten => _12XX,n(noBT),GotoIf($[ "x${TRANSFERERNAME}" = "x" ]?sai)<br>exten => _12XX,n,Set(DIALRET=${CUT(TRANSFERERNAME,-,1)});<br>
exten => _12XX,n,GotoIf($[ "${DEVSTATE(${DIALRET})}" = "INUSE" ]?sai);<br>exten => _12XX,n(dRet),Set(CALLERID(all)=RET_${EXTEN} <${CALLERID(num)}>)<br>exten => _12XX,n,Dial(${DIALRET},,mTt)<br>
exten => _12XX,n(sai),Hangup()<br><br>It all works like a charm, except that when I do an atxfer and dial another SIP and it rings, but dont answer, asterisk plays the 'pbx-invalid' sound, that is a bit confusing, because the phone is there and actually rang . Here is the CLI output<br>
<br>*CLI><br> -- Executing [1201@irrestrito-user:1] Dial("SIP/1202-08330f80", "SIP/1201|6|tT") in new stack<br> -- Called 1201<br> -- SIP/1201-08335530 is ringing<br> -- SIP/1201-08335530 answered SIP/1202-08330f80<br>
-- Started music on hold, class 'default', on SIP/1202-08330f80<br> -- <SIP/1201-08335530> Playing 'pbx-transfer' (language 'en')<br> -- Executing [1203@irrestrito-user:1] Dial("Local/1203@irrestrito-user-70b2,2", "SIP/1203|6|tT") in new stack<br>
-- Called 1203<br> -- SIP/1203-08325260 is ringing<br> -- Local/1203@irrestrito-user-70b2,1 is ringing<br> <br> <br>>>>>>>>>>> Ring and no answer...<br><br> -- Nobody picked up in 6000 ms<br>
-- Executing [1203@irrestrito-user:2] GotoIf("Local/1203@irrestrito-user-70b2,2", "1?noBT") in new stack<br> -- Goto (irrestrito-user,1203,5)<br> -- Executing [1203@irrestrito-user:5] GotoIf("Local/1203@irrestrito-user-70b2,2", "0?sai") in new stack<br>
-- Executing [1203@irrestrito-user:6] Set("Local/1203@irrestrito-user-70b2,2", "DIALRET=SIP/1201") in new stack<br> -- Executing [1203@irrestrito-user:7] GotoIf("Local/1203@irrestrito-user-70b2,2", "1?sai") in new stack<br>
-- Goto (irrestrito-user,1203,10)<br> -- Executing [1203@irrestrito-user:10] Hangup("Local/1203@irrestrito-user-70b2,2", "") in new stack<br> == Spawn extension (irrestrito-user, 1203, 10) exited non-zero on 'Local/1203@irrestrito-user-70b2,2'<br>
-- Stopped music on hold on SIP/1202-08330f80<br>>>? -- <SIP/1201-08335530> Playing 'pbx-invalid' (language 'en')<br><br><br>am I doing something wrong?<br><br>Thanks,<br>Gabriel<br>