Comment 4 for bug 1130467

Revision history for this message
James Troup (elmo) wrote :

*sigh*, fine. Here is an example config, steps with which to
reproduce and messages output with debug turned all the way up.

| apt-get install asterisk sip-tester
|
| From the example-config.tar.gz copy into /etc/asterisk/:
|
| * asterisk.conf - set verbose and debug to 10
| * extensions.conf - dummy extensions to demonstrate problem
| * logger.conf - enable logging of debug and verbose messages
| * modules.conf - don't load AEL or Lua extensions (not strictly necessary)
| * sip.conf - two dummy users, one for sipp and for a SIP UA
|
| # /etc/init.d/asterisk stop
| # rm /var/log/asterisk/messages
| # /etc/init.d/asterisk start
|
| Configure SIP UA (e.g. empathy) to register to local asterisk server.
|
| $ sipp -i 127.0.0.1 -d 1000000 -s 5550 -m 1 -sn uac -timeout 30 127.0.0.1
|
| Answer the call in SIP UA and hang up.
|
| Notice in asterisk console output:
|
| -- Executing [h@macro-test-e-only:1] NoOp("SIP/sipp-00000000", ""I'm in h@macro-test and TESTVAR is foo"") in new stack
|
| $ sipp -i 127.0.0.1 -d 1000000 -s 5555 -m 1 -sn uac -timeout 30 127.0.0.1
|
| Answer the call in SIP UA and hang up.
|
| Notice TESTVAR is not saved in console output and the 'h' extension
| is not correctly executed in the original context as described in
| the original bug report.