Summary: | ASTERISK-08599: mohsuggest doesn't work | ||
Reporter: | mdu113 (mdu113) | Labels: | |
Date Opened: | 2007-01-17 16:53:20.000-0600 | Date Closed: | 2007-01-18 12:39:57.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | mohsuggest options doesn't work (has no effect). mohinterpret work as expected ****** ADDITIONAL INFORMATION ****** Here's excerpt from sip.conf: [xyz011101] type=friend username=xyz011101 md5secret=7c7bad2e3d3bb30bbfb413ec14755db2 context=xyz host=dynamic dtmfmode=rfc2833 mailbox=111@xyz mohsuggest=xyz According to documentation I expect that when friend 'xyz011101' put someone on hold the asterisk should play moh class 'xyz' to the bridged channel. Instead of doing this it always play moh class 'default' regardless mohsuggest setting. Below is asterisk console output: -- Executing [100@xyz:1] Set("SIP/xyz011101-081cdc78", "TIMEOUT(absolute)=10800") in new stack -- Channel will hangup at 2007-01-18 01:50:23 UTC. -- Executing [100@xyz:2] AGI("SIP/xyz011101-081cdc78", "callprocessing.agi") in new stack -- Launched AGI Script /usr/local/asterisk/var/lib/asterisk/agi-bin/callprocessing.agi -- AGI Script Executing Application: (Set) Options: (CDR(userfield)=2:xyz011101>100) -- AGI Script Executing Application: (Set) Options: (CALLERID(name)=poly work|CALLERID(num)=111) -- AGI Script Executing Application: (Dial) Options: (SIP/12128121207010001|15|) -- Called 12128121207010001 -- SIP/12128121207010001-081d3188 is ringing -- SIP/12128121207010001-081d3188 answered SIP/xyz011101-081cdc78 -- Packet2Packet bridging SIP/xyz011101-081cdc78 and SIP/12128121207010001-081d3188 -- Started music on hold, class 'default', on channel 'SIP/12128121207010001-081d3188' Please let me know if you need any additional info. | ||
Comments: | By: Joshua C. Colp (jcolp) 2007-01-17 18:21:21.000-0600 Fixed in 1.4 as of revision 51211 and trunk as of revision 51212. Thanks! By: mdu113 (mdu113) 2007-01-18 12:07:17.000-0600 Unfortunately issue only partially solved. Initial scenario is solved, i.e. if friend 'xyz011101' originates the call then it works as expected. If in contrast 'xyz011101' is not originating the call, but being called then mohsuggest still has no effect. In other words mohsuggest now works for the sip endpoints originating calls, but not for sip endpoints terminating calls. sip.conf: [xyz011101] type=friend username=xyz011101 md5secret=7c7bad2e3d3bb30bbfb413ec14755db2 context=xyz host=dynamic dtmfmode=rfc2833 mailbox=111@xyz mohsuggest=xyz [12128121207010001] type=friend username=12128121207010001 md5secret=98606cdae4adaaf7bc2835cedc013ce7 context=xyz host=dynamic dtmfmode=rfc2833 callerid=100 mailbox=100@xyz Console output of such a call: -- Executing [111@xyz:1] Set("SIP/12128121207010001-081cada0", "TIMEOUT(absolute)=10800") in new stack -- Channel will hangup at 2007-01-18 21:06:45 UTC. -- Executing [111@xyz:2] AGI("SIP/12128121207010001-081cada0", "callprocessing.agi") in new stack -- Launched AGI Script /usr/local/asterisk/var/lib/asterisk/agi-bin/callprocessing.agi -- AGI Script Executing Application: (Set) Options: (CDR(userfield)=2:12128121207010001>111) -- AGI Script Executing Application: (Set) Options: (CALLERID(name)=Operator|CALLERID(num)=100) -- AGI Script Executing Application: (Dial) Options: (SIP/xyz011101|10|) -- Called xyz011101 -- SIP/xyz011101-081d0288 is ringing -- SIP/xyz011101-081d0288 answered SIP/12128121207010001-081cada0 -- Packet2Packet bridging SIP/12128121207010001-081cada0 and SIP/xyz011101-081d0288 -- Started music on hold, class 'default', on channel 'SIP/12128121207010001-081cada0' By: Joshua C. Colp (jcolp) 2007-01-18 12:39:57.000-0600 Fixed in 1.4 as of revision 51243 and trunk as of revision 51244 ... again. |