Asterisk传出CDRlogging到Mysql
尝试使用自定义字段来使用cdr日志logging(到MySQL)。 我面对的问题是只有当一个呼出电话被放置,在呼入自定义字段我能够login没有问题。 我遇到问题的原因是因为我需要的自定义cdr字段是系统上每个用户的唯一值。 sip.conf … … [sales_department](!) type=friend host=dynamic context=SalesAgents disallow=all allow=ulaw allow=alaw qualify=yes qualifyfreq=30 ;; company sales agents: [11](sales_agent) secret=xxxxxx callerid="<…>" [12](sales_agent) secret=xxxxxx callerid="<…>" [13](sales_agent) secret=xxxxxx callerid="<…>" [14](sales_agent) secret=xxxxxx callerid="<…>" extensions.conf文件 [SalesAgents] include => Services ; Outbound calls exten=>_1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@myprovider) ; Inbound calls exten=>100,1,NoOp() same => n,Set(CDR(agent_id)=11) same => n,CELGenUserEvent(Custom Event) same => n,Dial(${11_1},25) same […]