[OpenSIPS-Users] Blind Transfer to Asterisk

Schneur Rosenberg rosenberg11219 at gmail.com
Tue May 15 23:34:34 CEST 2012


I tried doing that before but on a blind transfer the values were of
no use but I ran a DumpChan() and found a variable called
${SIPTRANSFER_REFERER} and from that I was able to cut the referer
then I did a SELECT statement in my sip devices  table and pulled the
context from that user and it worked

On Tue, May 15, 2012 at 6:44 PM,  <duane.larson at gmail.com> wrote:
> You need something in your default context that will figure out the correct
> context to send it too. I'm not sure what to do with REFER messages but my
> contexts are named after my customers Domains. So in the default context you
> could have something like
>
> exten => _NXXXXXXXXX,1,Set(dm=${SIP_HEADER(TO):15})
> exten => _NXXXXXXXXX,n,Set(dm=${CUT(dm,>,1)})
> exten => _NXXXXXXXXX,n,GotoIf(${dm} != ${CONTEXT}?${dm},${EXTEN},1)
>
>
> Once again this totally depends on your OpenSIPS and Asterisk setup. We
> would need more information.
>
>
> On , Schneur Rosenberg <rosenberg11219 at gmail.com> wrote:
>> I use opensips to send calls via Asterisk, I share the sip usernames
>>
>> and passwords from opensips with Asterisk, and thats how Asterisk
>>
>> knows what context, caller id etc to use.
>>
>>
>>
>> everything works fine, the only issue is when doing a Blind Transfer
>>
>> OpenSIPS sends a REFER to asterisk, but for some reason when that
>>
>> happens, asterisk does not realize which user sent the REFER and it
>>
>> tries to call the number from the default context.
>>
>>
>>
>> Is there anyway I can create a new INVITE request and drop the REFER
>>
>> request, whenever a REFER comes in?
>>
>>
>>
>> _______________________________________________
>>
>> Users mailing list
>>
>> Users at lists.opensips.org
>>
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list