[Freeswitch-users] Q931 decoding Update

Anthony Minessale anthony.minessale at gmail.com
Thu Jan 29 05:49:06 PST 2009


Would you like to check in the patch into tree now?
We can give you commit access and we call all work on it together.


On Thu, Jan 29, 2009 at 5:02 AM, Stefan Knoblich <stkn at freeswitch.org>wrote:

> Am Thursday 29 January 2009 schrieb Helmut Kuper:
> > Hello,
> >
> >
> > a further update:
> >
> > The code is implemented and seems to work as it should. I still can do
> > outgoing calls when q931ToPcap is active :) So it shouldn't be too wrong
> > what I did in the openzap code.
> > The pcap File is generated in FS's log dir either with default filename
> > or with optional given filename. Existing files of same name will be
> > overwritten without a warning.
> >
> > I attached a screenshot of such a pcap file viewed in wireshark.
> > Currently I work on a little linux cli perl script, which displays the
> > decoded Q931 packets on a CLI as showed in my yesterday mail.
> >
> > One thing I couldn't solve is, how to get the span_id when FS receives
> > or send a Q931 packet?
> >
> > In ozmod_isdn functions "static int zap_isdn_921_23" (Receive) and
> > "static int q931_rx_32" (Send) I'm converting *pvt to zap_span_t  like
> this:
> >
> > zap_span_t *span = (zap_span_t *) pvt;
> >
> > Then I try to access span_id by span->span_id, but it seems it's allways
> > zero.
> >
> >
> > Any ideas?
> >
> > regards
> > helmut
> >
> >
>
> Hi,
>
> --- a/src/ozmod/ozmod_isdn/ozmod_isdn.c
> +++ b/src/ozmod/ozmod_isdn/ozmod_isdn.c
> @@ -1970,7 +1993,7 @@ static
> ZIO_SIG_CONFIGURE_FUNCTION(isdn_configure_span)
>                                   span,
>                                   &isdn_data->q931);
>
> -       Q921SetLogCB(&isdn_data->q921, &zap_isdn_q921_log, isdn_data);
> +       Q921SetLogCB(&isdn_data->q921, &zap_isdn_q921_log, span);
>        Q921SetLogLevel(&isdn_data->q921, (Q921LogLevel_t)q921loglevel);
>
>        Q931InitTrunk(&isdn_data->q931,
>
> @@ -1983,7 +2006,7 @@ static
> ZIO_SIG_CONFIGURE_FUNCTION(isdn_configure_span)
>                                          &isdn_data->q921,
>                                          span);
>
> -       Q931SetLogCB(&isdn_data->q931, &zap_isdn_q931_log, isdn_data);
> +       Q931SetLogCB(&isdn_data->q931, &zap_isdn_q931_log, span);
>        Q931SetLogLevel(&isdn_data->q931, (Q931LogLevel_t)q931loglevel);
>
>        /* Register new event hander CB */
>
>
> --
> Stefan Knoblich
>
> Web:   http://stkn.techmage.de/        http://oss.axsentis.de/people/stkn/
> Email: stkn at freeswitch.org
> IRC:    #freeswitch-de @ irc.freenode.net
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090129/9a17185f/attachment-0002.html 


More information about the FreeSWITCH-users mailing list