[asterisk-users] callerid between 2 asterisk servers

2010-08-04 Thread jwexler
I've got 2 asterisk servers on the same box: ubuntu 10.04 lucid. I have not
been able to send useful callerid info between them (callerid becomes
serverB).

serverA register statement: (serverB has the exact opposite statement)
register = serverA:serverapassw...@ip_of_serverb_nic/serverB

users.conf of serverA:  users.conf of serverB:

[serverB]   [serverA]
type=friend type=friend
fromuser=serverBfromuser=serverA
secret=serverBpassword  secret=serverApassword
host=dynamichost=dynamic
etc.etc.

[serverA]   [serverB]
type=user   type=user
secret=serverApassword  secret=serverBpassword
context=serverA_incomingcontext=serverB_incoming
host=dynamichost=dynamic
etc.etc.

serverA extensions.conf:
exten = _8X.,n,Dial(SIP/serverB/${EXTEN},20,r)

With this set up, when I dial from an extension such as 6000 on serverA to
an extension such as 8000 on serverB, instead of sending the callerid info
of 6000 it sends serverB. I cannot seem to find a way around this.
Anyone know of a way to send the 6000 callerid info? Somehow via sending a
user-defined field via the dial statement?
If not via the dial, then a way to transfer via writing to the file system?
Is there a way to use, in extensions.conf, some kind of info transferred
between serverA and serverB such as the tag id so that I can specify a
filename for them to write/read? I cannot seam to find something that each
server sees which I can dynamically read in and use in extensions.conf.

Thanks!!



-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] callerid between 2 asterisk servers

2010-08-04 Thread unserossi



I've got 2 asterisk servers on the same box: ubuntu 10.04 lucid. I have not
een able to send useful callerid info between them (callerid becomes
serverB).
serverA register statement: (serverB has the exact opposite statement)
egister = serverA:serverapassw...@ip_of_serverb_nic/serverB
users.conf of serverA:  users.conf of serverB:
[serverB]   [serverA]
ype=friend type=friend
romuser=serverBfromuser=serverA
ecret=serverBpassword  secret=serverApassword
ost=dynamichost=dynamic
tc.etc.
[serverA]   [serverB]
ype=user   type=user
ecret=serverApassword  secret=serverBpassword
ontext=serverA_incomingcontext=serverB_incoming
ost=dynamichost=dynamic
tc.etc.
serverA extensions.conf:
xten = _8X.,n,Dial(SIP/serverB/${EXTEN},20,r)
With this set up, when I dial from an extension such as 6000 on serverA to
n extension such as 8000 on serverB, instead of sending the callerid info
f 6000 it sends serverB. I cannot seem to find a way around this.
nyone know of a way to send the 6000 callerid info? Somehow via sending a
ser-defined field via the dial statement?
f not via the dial, then a way to transfer via writing to the file system?
s there a way to use, in extensions.conf, some kind of info transferred
etween serverA and serverB such as the tag id so that I can specify a
ilename for them to write/read? I cannot seam to find something that each
erver sees which I can dynamically read in and use in extensions.conf.
Thanks!!

-- 
Try uncommenting fromuser on both boxes.
Or did you set callerid in your users.conf when you write etc.? If so, also 
uncomment it.

Oliver

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] callerid between 2 asterisk servers

2010-08-04 Thread jwexler
Thanks Oliver.

 

I tried those approaches but they did not work.

 

However, I just found a workaround finally. The SIPAddHeader and SIP_HEADER
functions enabled me to get the callerid working.

 

Thanks again!!

 

 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of
unsero...@aol.com
Sent: Wednesday, August 04, 2010 8:53 PM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] callerid between 2 asterisk servers

 

I've got 2 asterisk servers on the same box: ubuntu 10.04 lucid. I have not
been able to send useful callerid info between them (callerid becomes
serverB).
 
serverA register statement: (serverB has the exact opposite statement)
register = serverA:serverapassw...@ip_of_serverb_nic/serverB
 
users.conf of serverA:  users.conf of serverB:
 
[serverB]   [serverA]
type=friend type=friend
fromuser=serverBfromuser=serverA
secret=serverBpassword  secret=serverApassword
host=dynamichost=dynamic
etc.etc.
 
[serverA]   [serverB]
type=user   type=user
secret=serverApassword  secret=serverBpassword
context=serverA_incomingcontext=serverB_incoming
host=dynamichost=dynamic
etc.etc.
 
serverA extensions.conf:
exten = _8X.,n,Dial(SIP/serverB/${EXTEN},20,r)
 
With this set up, when I dial from an extension such as 6000 on serverA to
an extension such as 8000 on serverB, instead of sending the callerid info
of 6000 it sends serverB. I cannot seem to find a way around this.
Anyone know of a way to send the 6000 callerid info? Somehow via sending a
user-defined field via the dial statement?
If not via the dial, then a way to transfer via writing to the file system?
Is there a way to use, in extensions.conf, some kind of info transferred
between serverA and serverB such as the tag id so that I can specify a
filename for them to write/read? I cannot seam to find something that each
server sees which I can dynamically read in and use in extensions.conf.
 
Thanks!!
 
 
 
-- 
 
Try uncommenting fromuser on both boxes.
 
 
Or did you set callerid in your users.conf when you write etc.? If so,
also uncomment it.













Oliver
 
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users