[asterisk-bugs] [Asterisk 0011241]: Asterisk-1.4.13 :: chan_h323 :: callerid(name) / h323id not sent during setup message

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Dec 5 00:50:37 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11241 
====================================================================== 
Reported By:                tusar
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11241
Category:                   Channels/chan_h323
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.13  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-14-2007 02:19 CST
Last Modified:              12-05-2007 00:50 CST
====================================================================== 
Summary:                    Asterisk-1.4.13 :: chan_h323 :: callerid(name) /
h323id not sent during setup message
Description: 
Asterisk-1.4.13 with chan_h323 is *not* sending callerid(name) / h323id
during *setup message . But Asterisk-1.2.x with chan_h323 is working fine
as expected.

PWLib-v1.10.0
OpenH323-v1.18.0

[test]
exten => _XXX,1,Wait,1
exten => _XXX,n,Set(CALLERID(name)=Tusar)
exten => _XXX,n,Set(CALLERID(num)=555555)
exten => _XXX,n,Dial(H323/${EXTEN}@xx.xx.xx.xx:1720,60)
exten => _XXX,n,Hangup


====================================================================== 

---------------------------------------------------------------------- 
 tusar - 12-05-07 00:50  
---------------------------------------------------------------------- 
Attached patch file solved my problem.

--- ast_h323.cxx.orig   2007-12-04 18:28:42.000000000 +0600
+++ ast_h323.cxx        2007-12-05 12:25:16.000000000 +0600
@@ -718,7 +718,8 @@
                fastStartState = (opts->fastStart ? FastStartInitiate :
FastStartDisabled);
                h245Tunneling = (opts->h245Tunneling ? TRUE : FALSE);
        } else {
-               SetLocalPartyName(PString(opts->cid_num));
+               sourceE164 = PString(opts->cid_num);
+               SetLocalPartyName(PString(opts->cid_name));
                SetDisplayName(PString(opts->cid_name));
                if (opts->redirect_reason >= 0) {
                        rdnis = PString(opts->cid_rdnis);
@@ -1247,7 +1248,7 @@
        /* OpenH323 will build calling party information with default
           type and presentation information, so build it to be recorded
           by embedding routines */
-       setupPDU.GetQ931().SetCallingPartyNumber(GetLocalPartyName(),
(cid_ton >> 4) & 0x07,
+       setupPDU.GetQ931().SetCallingPartyNumber(sourceE164, (cid_ton >>
4) & 0x07,
                        cid_ton & 0x0f, (cid_presentation >> 5) & 0x03,
cid_presentation & 0x1f);
        setupPDU.GetQ931().SetDisplayName(GetDisplayName());


Thanks,

//Tusar// 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-05-07 00:50  tusar          Note Added: 0074797                          
======================================================================




More information about the asterisk-bugs mailing list