[asterisk-addons-commits] file: trunk r320 - in /trunk: ./ asterisk-ooh323c/src/chan_h323.c

asterisk-addons-commits at lists.digium.com asterisk-addons-commits at lists.digium.com
Thu Dec 14 15:22:13 MST 2006


Author: file
Date: Thu Dec 14 16:22:12 2006
New Revision: 320

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=320
Log:
Merged revisions 319 via svnmerge from 
https://origsvn.digium.com/svn/asterisk-addons/branches/1.4

........
r319 | file | 2006-12-14 17:19:53 -0500 (Thu, 14 Dec 2006) | 2 lines

Update ast_channel_alloc call to new API format. (issue #8582 reported by DEA with minor mods by moi)

........

Modified:
    trunk/   (props changed)
    trunk/asterisk-ooh323c/src/chan_h323.c

Propchange: trunk/
------------------------------------------------------------------------------
--- branch-1.4-merged (original)
+++ branch-1.4-merged Thu Dec 14 16:22:12 2006
@@ -1,1 +1,1 @@
-/branches/1.4:1-299,308,310,317
+/branches/1.4:1-299,308,310,317,319

Modified: trunk/asterisk-ooh323c/src/chan_h323.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/asterisk-ooh323c/src/chan_h323.c?view=diff&rev=320&r1=319&r2=320
==============================================================================
--- trunk/asterisk-ooh323c/src/chan_h323.c (original)
+++ trunk/asterisk-ooh323c/src/chan_h323.c Thu Dec 14 16:22:12 2006
@@ -247,15 +247,13 @@
 
    /* Don't hold a h323 pvt lock while we allocate a channel */
    ast_mutex_unlock(&i->lock);
-   ch = ast_channel_alloc(1);
+   ch = ast_channel_alloc(1, state, i->callerid_num, i->callerid_name, "OOH323/%s-%04x", host, rand() & 0xffff);
    ast_mutex_lock(&i->lock);
 
    if(ch)
    {
       ast_mutex_lock(&ch->lock);
       ch->tech = &ooh323_tech;
-      ast_string_field_build(ch, name, "OOH323/%s-%04x", 
-                                                     host, rand() & 0xffff);
 
       ch->nativeformats = i->capability;
 



More information about the asterisk-addons-commits mailing list