search for: build_contact

Displaying 6 results from an estimated 6 matches for "build_contact".

2003 Nov 25
1
Crashed Asterisk
...4952. The call in stack frame #1 is the call to get_destination() /* Get destination right away */ gotdest = get_destination(p, NULL); get_rdnis(p, NULL); extract_uri(p, req); build_contact(p); The version of chan_sip.c is v 1.198 I'm going to refresh to the latest version of Asterisk but I don't know if this problem has been addressed. Any help would be appreciated.
2003 Oct 27
0
Asterisk behind nat with hole, hardcoding solution
...r rtp) to my asterisk gateway. 2. Now make sure your /etc/asterisk/rtp.conf correctly reflects the 'rtp' hole in the nat device (for me that's between 10000 and 10020). Now we need to make three small changes to the file /usr/src/asterisk/channels/chan_sip.c 3. First find the function build_contact( ) and insert your ?outside? ip address in the right position, as is indicated below (the original line is commented out): static void build_contact(struct sip_pvt *p) { /* Construct Contact: header */ if (ourport != 5060) snprintf(p->our_contact, sizeof(p->ou...
2009 Nov 06
0
Nested objects not propagating from view
...ongs_to :biztype accepts_nested_attributes_for :address, { :allow_destroy => true, :reject_if => :all_blank } end class Address < ActiveRecord::Base has_one :contact has_one :property belongs_to :state end # controller def new @user = User.new @user.build_contact.build_address respond_to do |format| format.html # new.html.erb format.xml { render :xml => @user } end end def edit @user = User.find(params[:id]) end When I run on the console, I can create a new user object with nested attributes like so: >> user=User...
2003 Sep 13
1
Caller-ID name delivered in double-quotes
I did some searching in the archive, but found only one message with this same question and no answer. Hopefully it's a simple config problem. When the Caller-ID is delivered, it is surrounded by double-quotes, like this: "ATA-57 1" On long caller-id strings, the last character is cut off to make room for the leading double-quote: "BudgeTone 1234 instead of BudgeTone
2010 Nov 05
2
How to append custom option to Contact: header on outgoing SIP INVITE msgs?
Hi list, My need is to append a site specific parameter to the Contact: header on all INVITEs exiting * via a SIP trunk. I'd like it to look something like this: Contact: <bob:3125551212 at 10.10.10.10;SITE-ID=us.here> where SITE-ID=us.here is set in a config file that * parses on startup. Or in a Dial() command option? Or I don't care exactly how. :-) It is possible to
2010 Jun 08
9
[Rails Heroku] Problem with saving object (on heroku hosting)
Hi All, I have some strange problem which appears only on heroku hosting 2.3.5 default stack (not on my local computer) I have some models. Here they are: class Contact < ActiveRecord::Base belongs_to :user belongs_to :type, :class_name => "ContactType", :foreign_key => "type_id" validates_presence_of :name, :on => :create, :message =>