Hi,

I have configured asterisk with Sangoma analog card. Outbound and Inbound calls are working fine. I have issue with CDR for outbound call.

When I call to 0XXXXXXXXX number using sip/test, CDR is created between sip and dahdi channel.

Here is CDR and CEL  :-

+---------------------+--------------------+-----+-------------+-------------+---------------------+------------+---------+-------------------------+----------+---------+-------------+----------+-------------+---------------+-----------+
| calldate | clid | src | dst | dcontext | channel | dstchannel | lastapp | lastdata | duration | billsec | disposition | amaflags | accountcode | uniqueid | userfield |
+---------------------+--------------------+-----+-------------+-------------+---------------------+------------+---------+-------------------------+----------+---------+-------------+----------+-------------+---------------+-----------+
| 2012-09-05 02:11:25 | "sip/test" <101> | 101 | 0XXXXXXXXXX | test | SIP/test-00000024 | DAHDI/3-1 | Dial | dahdi/g0/0XXXXXXXXXX,20 | 48 | 33 | ANSWERED | 3 | | 1346825485.69 | |
+---------------------+--------------------+-----+-------------+-------------+---------------------+------------+---------+-------------------------+----------+---------+-------------+----------+-------------+---------------+-----------+

Here disposition is always answered whether I attend or reject the call.

eventtype eventtime CALLERID(name) CALLERID(num) CALLERID(ANI) CALLERID(RDNIS) CALLERID(DNID) CHANNEL(exten) CHANNEL(context) CHANNEL(channame) CHANNEL(appname) CHANNEL(appdata) CHANNEL(amaflags) CHANNEL(accountcode) CHANNEL(uniqueid) CHANNEL(linkedid) BRIDGEPEER CHANNEL(userfield) userdeftype eventextra
CHAN_START      2012-09-05 02:11:25     
        101     
        
        
        s       test    SIP/test-00000024       
        
        3       
        1346825485.69   1346825485.69   
        
        
        
ANSWER  2012-09-05 02:11:37     sip/test        101     101     
        
        
        test    SIP/test-00000024       
        
        3       
        1346825485.69   1346825485.69   
        
        
        
CHAN_START      2012-09-05 02:11:37     
        
        
        
        
        s       from-zaptel     DAHDI/3-1       
        
        3       
        1346825497.7    1346825485.69   
        
        
        
ANSWER  2012-09-05 02:11:40     sip/test        XXXXXXXXXX      
        
        
        9717330017      from-zaptel     DAHDI/3-1       AppDial         
(Outgoing Line)         3       
        1346825497.7    1346825485.69   
        
        
        
BRIDGE_START    2012-09-05 02:11:40     sip/test        101     101     
        
        s       macro-std       SIP/test-00000024       Dial    
dahdi/g0/0XXXXXXXXXX,20         3       
        1346825485.69   1346825485.69   DAHDI/3-1       
        
        
BRIDGE_END      2012-09-05 02:12:13     sip/test        101     101     
        
        s       macro-std       SIP/test-00000024       Dial    
dahdi/g0/0XXXXXXXXXX,20         3       
        1346825485.69   1346825485.69   DAHDI/3-1       
        
        
HANGUP  2012-09-05 02:12:13     sip/test        XXXXXXXXXX      
        
        
        
        macro-std       DAHDI/3-1       AppDial         (Outgoing Line)         
3       
        1346825497.7    1346825485.69   
        
        
        16,SIP/test-00000024,
CHAN_END        2012-09-05 02:12:13     sip/test        XXXXXXXXXX      
        
        
        
        macro-std       DAHDI/3-1       AppDial         (Outgoing Line)         
3       
        1346825497.7    1346825485.69   
        
        
        
HANGUP  2012-09-05 02:12:13     sip/test        101     101     
        
        9717330017      test    SIP/test-00000024       
        
        3       
        1346825485.69   1346825485.69   
        
        
        16,SIP/test-00000024,ANSWER
CHAN_END        2012-09-05 02:12:13     sip/test        101     101     
        
        9717330017      test    SIP/test-00000024       
        
        3       
        1346825485.69   1346825485.69   
        
        
        
LINKEDID_END    2012-09-05 02:12:13     sip/test        101     101     
        
        9717330017      test    SIP/test-00000024       
        
        3       
        1346825485.69   1346825485.69   
        
        
        

        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        



and here is my dial plan:

[test]
exten => _XXXXXXXXXXX,1,Dial(dahdi/g0/${EXTEN:})

Could anyone please tell me where I am doing mistake.


Any help will be appreciable.


Thanks

Parveen

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to