Re: Testing Bayonne2 with SIP support

David Sugar <[email protected]>
Newsgroups gmane.comp.gnu.bayonne.devel
Organization GNU Telephony
Message-ID <[email protected]>
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:[email protected]:5070 as sip:test@localhost 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:[email protected]:5070 confirmed
sip: event 000d; cid=1, did=2, rid=0
sip: invited sip:[email protected]:5070 from David Sugar 
<sip:[email protected]: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:test@localhost
         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:test@IP_A:5070 as sip:bayonne@sip 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:test@IP_A:5070 confirmed
> sip: event 000d; cid=1, did=2, rid=0
> sip: invited sip:test@IP_A:5070 from sip:alex@IP_B
> 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:bayonne@sip
>         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
> 
>

_______________________________________________
Bayonne-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bayonne-devel
dyfet.vcf (text/x-vcard, 187 B)
begin:vcard
fn:David Sugar
n:Sugar;David
org:GNU Telephony
adr:;;;;;;USA
email;internet:[email protected]
x-mozilla-html:FALSE
url:http://www.gnutelephony.org
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.