bayonne-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bayonne-devel] Testing Bayonne2 with SIP support


From: David Sugar
Subject: Re: [Bayonne-devel] Testing Bayonne2 with SIP support
Date: Fri, 29 Jul 2005 11:10:58 -0400
User-agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711)

I did try something similar to your test app:

./sipit siptest.scr
testing 0.6.4 on Power Macintosh Darwin; driver=sip, timeslots=2
libexec starting; path=/Users/dyfet/testing/bayonne2/tests
sip/0: session starting
sip/1: session starting
sip: failed to bind 5060
sip: adding sdp encoding 0 PCMU/8000
sip: adding sdp encoding 101 telephony-event/8000
sip: bound to port 5070
sip/0: state=initial, event=100, seq=0
sip/0: state=idle, event=100, seq=0
sip/1: state=initial, event=100, seq=0
sip/1: state=idle, event=100, seq=0
sip msgport starting
register sip:address@hidden:5070 as sip:address@hidden to sip:localhost
compiled siptest; 4 steps
1 applications compiled
sip driver started; 2 timeslot(s) used
sip: event 0001; cid=0, did=0, rid=1
registration for sip:address@hidden:5070 confirmed
sip: event 000d; cid=1, did=2, rid=0
sip: invited sip:address@hidden:5070 from David Sugar <sip:address@hidden:5050>;tag=686714201 sip: starting siptest on timeslot 0; connecting 192.168.1.101:5072 to 192.168.1.101:8000
sip/0: state=idle, event=200, seq=1
sip/0: state=pickup, event=100, seq=1
sip: event 000e; cid=1, did=2, rid=0
sip/0: state=pickup, event=503, seq=2
sip/0: state=run, event=100, seq=2
hello
sip/0: state=hangup, event=100, seq=2
sip/0: state=idle, event=100, seq=2
sip/0: state=idle, event=711, seq=3
sip/0: state=idle, event=712, seq=4
sip: event 0015; cid=1, did=0, rid=0

Where "sipit" is:

if test -z "$*" ; then
  ../server/bayonne --test sip --timeslots=2 --libexec=../tests test.scr
else
  ../server/bayonne --test sip --timeslots=2 --libexec=../tests $*
fi

And my test script is:

        register.sip proxy=localhost uri=sip:address@hidden
        echo "hello"
        exit

^1
        echo "1"
        exit


Alexandre BOULANGER wrote:
Hi David,


Thanks for your answer, it did the trick. Here's what I got after
Bayonne and my UA have registered:

bayonne:5070 --------------- linphone:5070
 =IP_A                        =IP_B
  +
partysip:5060


# strace /usr/local/lib/bayonne-0.6/bayonne.bin -trace
sip /root/scripts/test.scr

[...]
sip msgport starting
register sip:address@hidden:5070 as sip:address@hidden to sip:localhost
compiled test; 4 steps
apps scanning /etc/bayonne
sip driver started; 2 timeslot(s) used
sip: event 0001; cid=0, did=0, rid=1
[...]
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGINT, {0x804dd00, [ALRM], SA_RESTART}, {0x804dd00,
[ALRM], SA_RESTART}, 8) = 0
rt_sigaction(SIGHUP, {0x804dd00, [ALRM], SA_RESTART}, {0x804dd00,
[ALRM], SA_RESTART}, 8) = 0
rt_sigaction(SIGTERM, {0x804dd00, [ALRM], SA_RESTART}, {0x804dd00,
[ALRM], SA_RESTART}, 8) = 0
rt_sigaction(SIGABRT, {0x804dd00, [ALRM], SA_RESTART}, {0x804dd00,
[ALRM], SA_RESTART}, 8) = 0
unlink("/var/run/bayonne/bayonne.ctrl") = 0
mknod("/var/run/bayonne/bayonne.ctrl", S_IFIFO|0770) = 0
open("/var/run/bayonne/bayonne.ctrl", O_RDWR) = 11
read(11, sip: event 0001; cid=0, did=0, rid=1
registration for sip:address@hidden:5070 confirmed
sip: event 000d; cid=1, did=2, rid=0
sip: invited sip:address@hidden:5070 from sip:address@hidden
sip: starting test on timeslot 0; connecting IP_A:5072 to IP_B:7078
sip/0: state=idle, event=200, seq=1
sip/0: state=pickup, event=100, seq=1
0xbffff8f0, 1)                 = ? ERESTARTSYS (To be restarted)
+++ killed by SIGSEGV +++
shell_prompt# libexec exiting; server lost


test.scr is just like:
        register.sip proxy=localhost uri=sip:address@hidden
        echo "HELLO"
        exit

^1
        echo "1"
        exit



Linphone is last version with libOSIP 2.2
I've used the most recent version of each component, maybe it's too much
bleeding edge?

I'll try tomorrow with earlier versions


Attachment: dyfet.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]