[asterisk-bugs] [JIRA] (ASTERISK-23008) Asterisk 1.8.24 local channels loose caller id name when dahdi channel connects

Michael Cargile (JIRA) noreply at issues.asterisk.org
Mon Dec 16 13:39:03 CST 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Cargile updated ASTERISK-23008:
---------------------------------------

    Description: 
Local channels do not seem to be keeping the caller id name for Dahdi channels. After the call connects the caller id name ends up blank. This works fine for SIP and IAX channels.

Here is the dialplan I am using:

exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,n,Noop(${CALLERID(name)})
exten => _91NXXNXXXXXX,n,Dial(${TRUNKX}/${EXTEN:1},,To)
exten => _91NXXNXXXXXX,n,Hangup()

exten => 8302,1,Answer()
exten => 8302,n,Noop(${CALLERID(name)})
exten => 8302,n,Playback(conf)
exten => 8302,n,Hangup()


Here is a call placed with the Local Channel:

vicibox*CLI> ! perl /usr/src/astguiclient/trunk/extras/test_call.pl 918999995777 8302 test 8633939330
INSERT INTO vicidial_manager values( '', '', '2013-12-16 14:12:44', 'NEW', 'N', '192.168.198.106', '', 'Originate', 'TESTCIDBLASTCALL0124', 'Channel: Local/918999995777', 'Context; default', 'Exten: 8302', 'Priority: 1', 'Callerid: "test" <8633939330>', '', '', '', '', '' );
[Dec 16 14:12:44]   == Manager 'sendcron' logged on from 127.0.0.1
[Dec 16 14:12:44]     -- Executing [918999995777 at default:1] AGI("Local/918999995777 at default-00000001;2", "agi://127.0.0.1:4577/call_log") in new stack
[Dec 16 14:12:44]     -- <Local/918999995777 at default-00000001;2>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Dec 16 14:12:44]     -- Executing [918999995777 at default:2] NoOp("Local/918999995777 at default-00000001;2", "test") in new stack
[Dec 16 14:12:44]     -- Executing [918999995777 at default:3] Dial("Local/918999995777 at default-00000001;2", "DAHDI/r1/18999995777,,To") in new stack
[Dec 16 14:12:44]     -- Requested transfer capability: 0x00 - SPEECH
[Dec 16 14:12:44]     -- Called DAHDI/r1/18999995777
[Dec 16 14:12:44]     -- DAHDI/i1/18999995777-6 is proceeding passing it to Local/918999995777 at default-00000001;2
[Dec 16 14:12:44]     -- DAHDI/i1/18999995777-6 answered Local/918999995777 at default-00000001;2
[Dec 16 14:12:44]        > Channel Local/918999995777 at default-00000001;1 was answered.
[Dec 16 14:12:44]     -- Executing [8302 at default:1] Answer("Local/918999995777 at default-00000001;1", "") in new stack
[Dec 16 14:12:44]     -- Executing [8302 at default:2] NoOp("Local/918999995777 at default-00000001;1", "") in new stack
[Dec 16 14:12:44]     -- Executing [8302 at default:3] Playback("Local/918999995777 at default-00000001;1", "conf") in new stack
[Dec 16 14:12:44]     -- <Local/918999995777 at default-00000001;1> Playing 'conf.gsm' (language 'en')
[Dec 16 14:12:44]     -- Executing [h at default:1] AGI("Local/918999995777 at default-00000001;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----0-----0") in new stack
[Dec 16 14:12:44]     -- <Local/918999995777 at default-00000001;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----0-----0 completed, returning 0
[Dec 16 14:12:44]   == Spawn extension (default, 918999995777, 3) exited non-zero on 'Local/918999995777 at default-00000001;2'
[Dec 16 14:12:45]   == Manager 'sendcron' logged off from 127.0.0.1

Here is a call placed with the DAHDI channel directly:

vicibox*CLI> ! perl /usr/src/astguiclient/trunk/extras/test_dahdi_call.pl 18999995777 8302 test 8633939330
INSERT INTO vicidial_manager values( '', '', '2013-12-16 14:12:32', 'NEW', 'N', '192.168.198.106', '', 'Originate', 'TESTCIDBLASTCALL0124', 'Channel: DAHDI/r1/18999995777', 'Context; default', 'Exten: 8302', 'Priority: 1', 'Callerid: "test" <8633939330>', '', '', '', '', '' );
[Dec 16 14:12:32]   == Manager 'sendcron' logged on from 127.0.0.1
[Dec 16 14:12:32]     -- Requested transfer capability: 0x00 - SPEECH
[Dec 16 14:12:32]        > Channel DAHDI/i1/18999995777-5 was answered.
[Dec 16 14:12:32]     -- Executing [8302 at default:1] Answer("DAHDI/i1/18999995777-5", "") in new stack
[Dec 16 14:12:32]     -- Executing [8302 at default:2] NoOp("DAHDI/i1/18999995777-5", "test") in new stack
[Dec 16 14:12:32]     -- Executing [8302 at default:3] Playback("DAHDI/i1/18999995777-5", "conf") in new stack
[Dec 16 14:12:32]     -- <DAHDI/i1/18999995777-5> Playing 'conf.gsm' (language 'en')
[Dec 16 14:12:33]   == Manager 'sendcron' logged off from 127.0.0.1


As I said this works for SIP and IAX channels in Asterisk 1.8 just fine. The last time I tested this with Dahdi though was when using Asterisk 1.4.44 and it worked then.

  was:
Local channels do not seem to be keeping the caller id name for Dahdi channels. After the call connects the caller id name ends up blank. This works fine for SIP and IAX channels.

Here is the dialplan I am using:

exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,n,Noop(${CALLERID(name)})
exten => _91NXXNXXXXXX,n,Dial(${TRUNKX}/${EXTEN:1},,To)
exten => _91NXXNXXXXXX,n,Hangup()

exten => 8302,1,Answer()
exten => 8302,n,Noop(${CALLERID(name)})
exten => 8302,n,Playback(conf)
exten => 8302,n,Hangup()


Here is a call placed with the Local Channel:

vicibox*CLI> ! perl /usr/src/astguiclient/trunk/extras/test_call.pl 918999995777 8302 test 8633939330
INSERT INTO vicidial_manager values( '', '', '2013-12-16 14:12:44', 'NEW', 'N', '192.168.198.106', '', 'Originate', 'TESTCIDBLASTCALL0124', 'Channel: Local/918999995777', 'Context; default', 'Exten: 8302', 'Priority: 1', 'Callerid: "test" <8633939330>', '', '', '', '', '' );
[Dec 16 14:12:44]   == Manager 'sendcron' logged on from 127.0.0.1
[Dec 16 14:12:44]     -- Executing [918999995777 at default:1] AGI("Local/918999995777 at default-00000001;2", "agi://127.0.0.1:4577/call_log") in new stack
[Dec 16 14:12:44]     -- <Local/918999995777 at default-00000001;2>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Dec 16 14:12:44]     -- Executing [918999995777 at default:2] NoOp("Local/918999995777 at default-00000001;2", "test") in new stack
[Dec 16 14:12:44]     -- Executing [918999995777 at default:3] Dial("Local/918999995777 at default-00000001;2", "DAHDI/r1/18999995777,,To") in new stack
[Dec 16 14:12:44]     -- Requested transfer capability: 0x00 - SPEECH
[Dec 16 14:12:44]     -- Called DAHDI/r1/18999995777
[Dec 16 14:12:44]     -- DAHDI/i1/18999995777-6 is proceeding passing it to Local/918999995777 at default-00000001;2
[Dec 16 14:12:44]     -- DAHDI/i1/18999995777-6 answered Local/918999995777 at default-00000001;2
[Dec 16 14:12:44]        > Channel Local/918999995777 at default-00000001;1 was answered.
[Dec 16 14:12:44]     -- Executing [8302 at default:1] Answer("Local/918999995777 at default-00000001;1", "") in new stack
[Dec 16 14:12:44]     -- Executing [8302 at default:2] NoOp("Local/918999995777 at default-00000001;1", "") in new stack
[Dec 16 14:12:44]     -- Executing [8302 at default:3] Playback("Local/918999995777 at default-00000001;1", "conf") in new stack
[Dec 16 14:12:44]     -- <Local/918999995777 at default-00000001;1> Playing 'conf.gsm' (language 'en')
[Dec 16 14:12:44]     -- Executing [h at default:1] AGI("Local/918999995777 at default-00000001;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----0-----0") in new stack
[Dec 16 14:12:44]     -- <Local/918999995777 at default-00000001;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----0-----0 completed, returning 0
[Dec 16 14:12:44]   == Spawn extension (default, 918999995777, 3) exited non-zero on 'Local/918999995777 at default-00000001;2'
[Dec 16 14:12:45]   == Manager 'sendcron' logged off from 127.0.0.1

Here is a call placed with the DAHDI channel directly:

vicibox*CLI> ! perl /usr/src/astguiclient/trunk/extras/test_dahdi_call.pl 18999995777 8302 test 8633939330
INSERT INTO vicidial_manager values( '', '', '2013-12-16 14:12:32', 'NEW', 'N', '192.168.198.106', '', 'Originate', 'TESTCIDBLASTCALL0124', 'Channel: DAHDI/r1/18999995777', 'Context; default', 'Exten: 8302', 'Priority: 1', 'Callerid: "test" <8633939330>', '', '', '', '', '' );
[Dec 16 14:12:32]   == Manager 'sendcron' logged on from 127.0.0.1
[Dec 16 14:12:32]     -- Requested transfer capability: 0x00 - SPEECH
[Dec 16 14:12:32]        > Channel DAHDI/i1/18999995777-5 was answered.
[Dec 16 14:12:32]     -- Executing [8302 at default:1] Answer("DAHDI/i1/18999995777-5", "") in new stack
[Dec 16 14:12:32]     -- Executing [8302 at default:2] NoOp("DAHDI/i1/18999995777-5", "test") in new stack
[Dec 16 14:12:32]     -- Executing [8302 at default:3] Playback("DAHDI/i1/18999995777-5", "conf") in new stack
[Dec 16 14:12:32]     -- <DAHDI/i1/18999995777-5> Playing 'conf.gsm' (language 'en')
[Dec 16 14:12:33]   == Manager 'sendcron' logged off from 127.0.0.1


As I said this works for SIP and IAX channels just fine. The last time I tested this with Dahdi though was when using Asterisk 1.4.44.

    
> Asterisk 1.8.24 local channels loose caller id name when dahdi channel connects
> -------------------------------------------------------------------------------
>
>                 Key: ASTERISK-23008
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23008
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_dahdi, Channels/chan_local
>    Affects Versions: 1.8.24.0
>         Environment: Server is running Asterisk 1.8.24, DAHDI 2.8.0, and Libpri 1.4.14
>            Reporter: Michael Cargile
>
> Local channels do not seem to be keeping the caller id name for Dahdi channels. After the call connects the caller id name ends up blank. This works fine for SIP and IAX channels.
> Here is the dialplan I am using:
> exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
> exten => _91NXXNXXXXXX,n,Noop(${CALLERID(name)})
> exten => _91NXXNXXXXXX,n,Dial(${TRUNKX}/${EXTEN:1},,To)
> exten => _91NXXNXXXXXX,n,Hangup()
> exten => 8302,1,Answer()
> exten => 8302,n,Noop(${CALLERID(name)})
> exten => 8302,n,Playback(conf)
> exten => 8302,n,Hangup()
> Here is a call placed with the Local Channel:
> vicibox*CLI> ! perl /usr/src/astguiclient/trunk/extras/test_call.pl 918999995777 8302 test 8633939330
> INSERT INTO vicidial_manager values( '', '', '2013-12-16 14:12:44', 'NEW', 'N', '192.168.198.106', '', 'Originate', 'TESTCIDBLASTCALL0124', 'Channel: Local/918999995777', 'Context; default', 'Exten: 8302', 'Priority: 1', 'Callerid: "test" <8633939330>', '', '', '', '', '' );
> [Dec 16 14:12:44]   == Manager 'sendcron' logged on from 127.0.0.1
> [Dec 16 14:12:44]     -- Executing [918999995777 at default:1] AGI("Local/918999995777 at default-00000001;2", "agi://127.0.0.1:4577/call_log") in new stack
> [Dec 16 14:12:44]     -- <Local/918999995777 at default-00000001;2>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
> [Dec 16 14:12:44]     -- Executing [918999995777 at default:2] NoOp("Local/918999995777 at default-00000001;2", "test") in new stack
> [Dec 16 14:12:44]     -- Executing [918999995777 at default:3] Dial("Local/918999995777 at default-00000001;2", "DAHDI/r1/18999995777,,To") in new stack
> [Dec 16 14:12:44]     -- Requested transfer capability: 0x00 - SPEECH
> [Dec 16 14:12:44]     -- Called DAHDI/r1/18999995777
> [Dec 16 14:12:44]     -- DAHDI/i1/18999995777-6 is proceeding passing it to Local/918999995777 at default-00000001;2
> [Dec 16 14:12:44]     -- DAHDI/i1/18999995777-6 answered Local/918999995777 at default-00000001;2
> [Dec 16 14:12:44]        > Channel Local/918999995777 at default-00000001;1 was answered.
> [Dec 16 14:12:44]     -- Executing [8302 at default:1] Answer("Local/918999995777 at default-00000001;1", "") in new stack
> [Dec 16 14:12:44]     -- Executing [8302 at default:2] NoOp("Local/918999995777 at default-00000001;1", "") in new stack
> [Dec 16 14:12:44]     -- Executing [8302 at default:3] Playback("Local/918999995777 at default-00000001;1", "conf") in new stack
> [Dec 16 14:12:44]     -- <Local/918999995777 at default-00000001;1> Playing 'conf.gsm' (language 'en')
> [Dec 16 14:12:44]     -- Executing [h at default:1] AGI("Local/918999995777 at default-00000001;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----0-----0") in new stack
> [Dec 16 14:12:44]     -- <Local/918999995777 at default-00000001;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----0-----0 completed, returning 0
> [Dec 16 14:12:44]   == Spawn extension (default, 918999995777, 3) exited non-zero on 'Local/918999995777 at default-00000001;2'
> [Dec 16 14:12:45]   == Manager 'sendcron' logged off from 127.0.0.1
> Here is a call placed with the DAHDI channel directly:
> vicibox*CLI> ! perl /usr/src/astguiclient/trunk/extras/test_dahdi_call.pl 18999995777 8302 test 8633939330
> INSERT INTO vicidial_manager values( '', '', '2013-12-16 14:12:32', 'NEW', 'N', '192.168.198.106', '', 'Originate', 'TESTCIDBLASTCALL0124', 'Channel: DAHDI/r1/18999995777', 'Context; default', 'Exten: 8302', 'Priority: 1', 'Callerid: "test" <8633939330>', '', '', '', '', '' );
> [Dec 16 14:12:32]   == Manager 'sendcron' logged on from 127.0.0.1
> [Dec 16 14:12:32]     -- Requested transfer capability: 0x00 - SPEECH
> [Dec 16 14:12:32]        > Channel DAHDI/i1/18999995777-5 was answered.
> [Dec 16 14:12:32]     -- Executing [8302 at default:1] Answer("DAHDI/i1/18999995777-5", "") in new stack
> [Dec 16 14:12:32]     -- Executing [8302 at default:2] NoOp("DAHDI/i1/18999995777-5", "test") in new stack
> [Dec 16 14:12:32]     -- Executing [8302 at default:3] Playback("DAHDI/i1/18999995777-5", "conf") in new stack
> [Dec 16 14:12:32]     -- <DAHDI/i1/18999995777-5> Playing 'conf.gsm' (language 'en')
> [Dec 16 14:12:33]   == Manager 'sendcron' logged off from 127.0.0.1
> As I said this works for SIP and IAX channels in Asterisk 1.8 just fine. The last time I tested this with Dahdi though was when using Asterisk 1.4.44 and it worked then.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list