[Freeswitch-users] Sangoma PRI/Freetdm issue: LOSE_RACE error on first call after FS startup

Moises Silva moises.silva at gmail.com
Sat Dec 15 23:33:18 MSK 2012


Hello Neil,

On Fri, Dec 14, 2012 at 9:26 PM, Neil Patel <neilp at cs.stanford.edu> wrote:

> Hi All,
>
> I recently upgraded my box to Ubuntu 12.04 LTS and re-installed FS from
> latest git. I'm using a Sangoma A108DE card, interfacing with FS with
> freetdm. Since upgrade, I'm getting a weird behavior: whenever I first
> start up freeswitch, the *first call* I make to any of my PRI lines does
> not go through. The error is pasted below. Subsequent calls go through
> fine, without the error. So this problem only occurs anytime I have to
> restart FS; I have to call each of the lines manually to get each of them
> to "wake up".
>

It would seem we receive a disconnect just after the setup message. In
order to determine if the disconnect really comes from the network, we need
protocol traces.

Try enabling Q.931 and Q.921 traces just after you restart freeswitch.

fscli> ftdm sangoma_isdn trace q921 <freetdm-span-name>
fscli> ftdm sangoma_isdn trace q931 <freetdm-span-name>

The <freetdm-span-name> argument is the span name you configured in
freetdm.conf.xml

Then also enable some pcap traces at the kernel driver level.

wanpipemon  -i w1g1 -pcap -pcap_file w1g1.pcap -prot ISDN -full -systime -c
trd

This assumes your span is the first one (w1g1), adjust as necessary.

Start all the traces just after you started FreeSWITCH. Then place a single
call in one of your lines (the one you report always fail), then wait a few
seconds, and place the second call that should succeed. Finally stop the
traces and send them to techdesk at sangoma.com with your description of the
problem. Tell them you already talked to me on the FreeSWITCH mailing lists.

Cheers,

*Moises Silva
**Manager, Software Engineering***

msilva at sangoma.com

Sangoma Technologies

100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada


t.   +1 800 388 2475 (N. America)

t.   +1 905 474 1990 x128

f.   +1 905 474 9223



**<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures>

Products<http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
 | Solutions<http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
 | Events<http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
 | Contact<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
 | Wiki<http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
 | Facebook<http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
 | Twitter<http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>`|
| YouTube<http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>







>
> Judging by the error, my first thought is that this is a
> Sangoma/FreeTDM/Wanpipe driver issue. Can a real expert weigh in? Happy to
> provide more logs/output. Thanks!
> Neil
>
> ===================
> 2012-12-15 07:38:01.241594 [INFO] ftmod_sangoma_isdn_stack_rcv.c:96
> [s4c1][4:1] Received SETUP (suId:1 suInstId:0 spInstId:59)
> 2012-12-15 07:38:05.241594 [WARNING] ftmod_sangoma_isdn_stack_rcv.c:862
> [SNGISDN Q931] s4: Protocol: Unknown Event Code(2): Incomp Msg(276)
> 2012-12-15 07:38:09.241595 [INFO] ftmod_sangoma_isdn_stack_rcv.c:232
> [s4c1][4:1] Received DISCONNECT (suId:1 suInstId:0 spInstId:59)
> 2012-12-15 07:38:09.241595 [INFO] ftmod_sangoma_isdn_stack_hndl.c:153
> [s4c1][4:1] Incoming call: Called No:[61608300] Calling No:[919586550654]
> 2012-12-15 07:38:09.241595 [NOTICE] switch_channel.c:968 New Channel
> FreeTDM/4:1/61608300 [458fb2e2-465c-11e2-b550-cfadc9bb1b74]
> 2012-12-15 07:38:09.241595 [NOTICE] mod_freetdm.c:425 Hangup
> FreeTDM/4:1/61608300 [CS_INIT] [LOSE_RACE]
> 2012-12-15 07:38:09.241595 [INFO] ftmod_sangoma_isdn_stack_out.c:441
> [s4c1][4:1] Sending RELEASE/RELEASE COMPLETE (suId:1 suInstId:59
> spInstId:59)
> 2012-12-15 07:38:09.241595 [NOTICE] switch_core_session.c:1506 Session 59
> (FreeTDM/4:1/61608300) Ended
> 2012-12-15 07:38:09.241595 [NOTICE] switch_core_session.c:1510 Close
> Channel FreeTDM/4:1/61608300 [CS_DESTROY]
> 2012-12-15 07:38:09.281595 [INFO] ftmod_sangoma_isdn_stack_rcv.c:267
> [s4c1][4:1] Received RELEASE/RELEASE COMPLETE (suId:1 suInstId:59
> spInstId:59)
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121215/741bafe7/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list