|Summary:||ASTERISK-03455: [patch] Redirect/Transfer Issue|
|Reporter:||Curt Moore (jcmoore)||Labels:|
|Date Opened:||2005-02-08 10:18:23.000-0600||Date Closed:||2011-06-07 14:10:13|
|Environment:||Attachments:||( 0) redirect_patch.diff|
|Description:||When not using Asterisk as the SIP registrar, transfers and 302 redirects do not always work reliably. This appears to be due to the fact that users aren't registered directly with Asterisk and calls do not originate from the context of the user making the referral/transfer but instead use the default SIP context.|
****** ADDITIONAL INFORMATION ******
This patch attempts to lookup the context of the user originating the transfer/redirect and place this in the sip_pvt structure as it would be normally if the user was registered with Asterisk. This allows the outbound call to originate from the correct context. This is somewhat of an end around of the default behavior of using the default SIP context when a context is not available/specified.
This hasn't been extensively tested in a scenario where Asterisk _is_ the SIP registrar, the way it's used by most people, so it could break the default behavior. That said, it seems to work great in my scenario.
I have a disclaimer on file.
|Comments:||By: Mark Spencer (markster) 2005-02-21 00:24:15.000-0600|
Where are the calls coming from / going to then if Asterisk is not the SIP registrar?
By: Curt Moore (jcmoore) 2005-02-21 10:29:06.000-0600
SER is being used as the SIP registrar in this setup. SER forwards calls to one of a number of Asterisk boxes. The Asterisk boxes then dial the user at the SER box. This patch was necessary since Asterisk wasn't looking up the SIP users correctly since they were not registered with Asterisk directly.
edited on: 02-21-05 10:29
By: Mark Spencer (markster) 2005-03-02 23:22:21.000-0600
Users are not used for outbound calls, only peers. Perhaps you can create your entries as "friend" entries where host=<host of your ser server> so you can use @user to use that entry?
By: Olle Johansson (oej) 2005-03-17 08:18:54.000-0600
tgrman: Any comments?
By: Curt Moore (jcmoore) 2005-03-21 14:13:46.000-0600
I think that Mark's suggestion of using the host parameter along with the port parameter will work, at least it seems to so far. I suppose there is always more than 1 way... :-)
By: Olle Johansson (oej) 2005-03-21 14:37:14.000-0600