Try adding a forkcdr in just before your dial command.
bp
On 1/8/07, Peder @ NetworkOblivion <peder@networkoblivion.com>
wrote:>
> I have a little call recording script that I am running and it works
> fine, but I have one problem. I get CDR when a user calls into the
> extension, but I do not get CDR for the call that it makes outbound on #
> 17. Any idea why? Here is the extensions info:
>
> [default]
> exten => 2211,1,Answer
> exten => 2211,2,Wait(1)
> exten => 2211,3,Playback(/etc/asterisk/recording/getshop)
> exten => 2211,4,playback(beep)
> exten => 2211,5,Read(shopid)
> exten => 2211,6,AGI,getnumber.agi|${shopid}
> exten => 2211,7,Noop,${shopid}
> exten => 2211,8,GotoIf($[${SHOPPHONE} = 1]?20:9)
> exten => 2211,9,Noop,${SHOPPHONE}
> exten => 2211,10,GotoIf($[${SHOPPHONE} = 2]?22:11)
> exten => 2211,11,Noop,${SHOPNO}
> exten => 2211,12,GotoIf($[${SHOPPHONE} = 3]?24:13)
> exten => 2211,13,SetVar(CALLFILENAME=${SHOPNO}-${TIMESTAMP})
> exten => 2211,14,AGI,startlog.agi|${SHOPPHONE}|${CALLFILENAME}
> exten => 2211,15,SetCallerPres(prohib)
> exten => 2211,15,SetCIDNum(2211)
> exten => 2211,16,Monitor(wav,${CALLFILENAME},m)
> exten => 2211,17,Dial(SIP/${SHOPPHONE}@192.168.1.100)
> exten => 2211,18,wait(2)
> exten => 2211,19,hangup
> exten => 2211,20,playback(/etc/asterisk/recording/problem)
> exten => 2211,21,goto(default,2211,2)
> exten => 2211,22,playback(/etc/asterisk/recording/invalid)
> exten => 2211,23,goto(default,2211,2)
> exten => 2211,24,playback(/etc/asterisk/recording/syserror)
> exten => 2211,25,goto(default,2211,2)
>
> How it works is that a user calls in and enters a code. It then does a
> database lookup of the code to find a number to call. It calls the
> number and then bridges the two ends together, records it and mixes it
> to an mp3. As I said, it works fine and has for over a year. The only
> issue is that I don't get outbound CDR for some reason and I don't
know
> why....
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20070110/d661059c/attachment.htm